When testing for getpwuid_r and getgrgid_r also check the signature. Solaris
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 49200 2007-10-17 17:55:25Z 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 AR
683 subdirs
684 PKG_CONFIG
685 GTK_CFLAGS
686 GTK_LIBS
687 GTK_CONFIG
688 DIRECTFB_CFLAGS
689 DIRECTFB_LIBS
690 XMKMF
691 X_CFLAGS
692 X_PRE_LIBS
693 X_LIBS
694 X_EXTRA_LIBS
695 PANGOX_CFLAGS
696 PANGOX_LIBS
697 PANGOFT2_CFLAGS
698 PANGOFT2_LIBS
699 PANGOXFT_CFLAGS
700 PANGOXFT_LIBS
701 CFLAGS_VISIBILITY
702 CXXFLAGS_VISIBILITY
703 LIBICONV
704 SDL_CONFIG
705 SDL_CFLAGS
706 SDL_LIBS
707 GTKPRINT_CFLAGS
708 GTKPRINT_LIBS
709 LIBGNOMEPRINTUI_CFLAGS
710 LIBGNOMEPRINTUI_LIBS
711 GNOMEVFS_CFLAGS
712 GNOMEVFS_LIBS
713 HILDON_CFLAGS
714 HILDON_LIBS
715 CAIRO_CFLAGS
716 CAIRO_LIBS
717 GST_CFLAGS
718 GST_LIBS
719 ALL_WX_LIBS
720 BUILT_WX_LIBS
721 STD_BASE_LIBS
722 STD_GUI_LIBS
723 wxUSE_ZLIB
724 wxUSE_REGEX
725 wxUSE_EXPAT
726 wxUSE_ODBC
727 wxUSE_LIBJPEG
728 wxUSE_LIBPNG
729 wxUSE_LIBTIFF
730 VENDOR
731 OFFICIAL_BUILD
732 WX_FLAVOUR
733 WX_LIB_FLAVOUR
734 WXUNIV
735 MONOLITHIC
736 USE_PLUGINS
737 CXXWARNINGS
738 EXTRALIBS
739 EXTRALIBS_XML
740 EXTRALIBS_HTML
741 EXTRALIBS_ODBC
742 EXTRALIBS_GUI
743 EXTRALIBS_OPENGL
744 EXTRALIBS_SDL
745 WITH_PLUGIN_SDL
746 EXTRALIBS_GTKPRINT
747 EXTRALIBS_GNOMEPRINT
748 EXTRALIBS_GNOMEVFS
749 EXTRALIBS_HILDON
750 UNICODE
751 BUILD
752 DEBUG_INFO
753 DEBUG_FLAG
754 TOOLKIT_LOWERCASE
755 TOOLKIT_VERSION
756 SAMPLES_RPATH_FLAG
757 SAMPLES_RPATH_POSTLINK
758 HOST_SUFFIX
759 CPPUNIT_CFLAGS
760 CPPUNIT_LIBS
761 RANLIB
762 INSTALL_PROGRAM
763 INSTALL_SCRIPT
764 INSTALL_DATA
765 LN_S
766 SET_MAKE
767 MAKE_SET
768 AROPTIONS
769 STRIP
770 NM
771 INSTALL_DIR
772 LDFLAGS_GUI
773 IF_GNU_MAKE
774 PLATFORM_UNIX
775 PLATFORM_WIN32
776 PLATFORM_MSDOS
777 PLATFORM_MAC
778 PLATFORM_MACOS
779 PLATFORM_MACOSX
780 PLATFORM_OS2
781 PLATFORM_BEOS
782 SO_SUFFIX
783 SO_SUFFIX_MODULE
784 DLLIMP_SUFFIX
785 LIBPREFIX
786 LIBEXT
787 DLLPREFIX
788 DLLPREFIX_MODULE
789 dlldir
790 AIX_CXX_LD
791 SHARED_LD_CC
792 SHARED_LD_CXX
793 SHARED_LD_MODULE_CC
794 SHARED_LD_MODULE_CXX
795 PIC_FLAG
796 WINDOWS_IMPLIB
797 USE_SOVERSION
798 USE_SOVERLINUX
799 USE_SOVERSOLARIS
800 USE_SOVERCYGWIN
801 USE_MACVERSION
802 USE_SOSYMLINKS
803 SONAME_FLAG
804 DEPS_TRACKING
805 BK_DEPS
806 WINDRES
807 REZ
808 SETFILE
809 GCC_PCH
810 ICC_PCH
811 BK_MAKE_PCH
812 COND_BUILD_DEBUG
813 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
814 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
815 COND_BUILD_DEBUG_UNICODE_0
816 COND_BUILD_DEBUG_UNICODE_1
817 COND_BUILD_RELEASE
818 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
819 COND_BUILD_RELEASE_UNICODE_0
820 COND_BUILD_RELEASE_UNICODE_1
821 COND_DEBUG_FLAG_1
822 COND_DEBUG_INFO_0
823 COND_DEBUG_INFO_1
824 COND_DEPS_TRACKING_0
825 COND_DEPS_TRACKING_1
826 COND_GCC_PCH_1
827 COND_ICC_PCH_1
828 COND_MONOLITHIC_0
829 COND_MONOLITHIC_0_SHARED_0
830 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
835 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
836 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
837 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
838 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
839 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
840 COND_MONOLITHIC_0_SHARED_1
841 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
846 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
847 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
848 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
849 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
850 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
851 COND_MONOLITHIC_0_USE_AUI_1
852 COND_MONOLITHIC_0_USE_GUI_1
853 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
854 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1
855 COND_MONOLITHIC_0_USE_HTML_1
856 COND_MONOLITHIC_0_USE_MEDIA_1
857 COND_MONOLITHIC_0_USE_ODBC_1
858 COND_MONOLITHIC_0_USE_QA_1
859 COND_MONOLITHIC_0_USE_RICHTEXT_1
860 COND_MONOLITHIC_0_USE_STC_1
861 COND_MONOLITHIC_0_USE_XRC_1
862 COND_MONOLITHIC_1
863 COND_MONOLITHIC_1_SHARED_0
864 COND_MONOLITHIC_1_SHARED_1
865 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
866 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
867 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
868 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
869 COND_PLATFORM_MACOSX_1
870 COND_PLATFORM_MACOSX_1_TOOLKIT_
871 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
872 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
873 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
874 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
875 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
876 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
877 COND_PLATFORM_MACOSX_1_USE_GUI_1
878 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
879 COND_PLATFORM_MACOS_1
880 COND_PLATFORM_MAC_1
881 COND_PLATFORM_MSDOS_0
882 COND_PLATFORM_MSDOS_1
883 COND_PLATFORM_OS2_1
884 COND_PLATFORM_UNIX_0
885 COND_PLATFORM_UNIX_1
886 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
887 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
888 COND_PLATFORM_UNIX_1_USE_GUI_1
889 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
890 COND_PLATFORM_WIN32_0
891 COND_PLATFORM_WIN32_1
892 COND_SHARED_0
893 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
894 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
895 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
896 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
897 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
899 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
900 COND_SHARED_0_USE_STC_1
901 COND_SHARED_0_USE_XRC_1
902 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
903 COND_SHARED_0_WXUSE_ODBC_BUILTIN
904 COND_SHARED_0_WXUSE_REGEX_BUILTIN
905 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
906 COND_SHARED_1
907 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
908 COND_SHARED_1_USE_XRC_1
909 COND_TOOLKIT_
910 COND_TOOLKIT_COCOA
911 COND_TOOLKIT_COCOA_USE_GUI_1
912 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
913 COND_TOOLKIT_DFB
914 COND_TOOLKIT_DFB_USE_GUI_1
915 COND_TOOLKIT_GTK
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
917 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
918 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
919 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
921 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
922 COND_TOOLKIT_GTK_USE_GUI_1
923 COND_TOOLKIT_MAC
924 COND_TOOLKIT_MAC_USE_GUI_1
925 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
926 COND_TOOLKIT_MGL
927 COND_TOOLKIT_MGL_USE_GUI_1
928 COND_TOOLKIT_MOTIF
929 COND_TOOLKIT_MOTIF_USE_GUI_1
930 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
931 COND_TOOLKIT_MSW
932 COND_TOOLKIT_MSW_USE_GUI_1
933 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
934 COND_TOOLKIT_MSW_WXUNIV_0
935 COND_TOOLKIT_PM
936 COND_TOOLKIT_PM_USE_GUI_1
937 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
938 COND_TOOLKIT_WINCE
939 COND_TOOLKIT_WINCE_USE_GUI_1
940 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
941 COND_TOOLKIT_WINCE_WXUNIV_0
942 COND_TOOLKIT_X11
943 COND_TOOLKIT_X11_USE_GUI_1
944 COND_UNICODE_1
945 COND_USE_EXCEPTIONS_0
946 COND_USE_EXCEPTIONS_1
947 COND_USE_GUI_0
948 COND_USE_GUI_1
949 COND_USE_GUI_1_USE_OPENGL_1
950 COND_USE_GUI_1_WXUNIV_0
951 COND_USE_GUI_1_WXUNIV_1
952 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
953 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
954 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
955 COND_USE_ODBC_1
956 COND_USE_OPENGL_1
957 COND_USE_PCH_1
958 COND_USE_PLUGINS_0
959 COND_USE_RTTI_0
960 COND_USE_RTTI_1
961 COND_USE_SOSYMLINKS_1
962 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
963 COND_USE_SOVERLINUX_1
964 COND_USE_SOVERSION_0
965 COND_USE_SOVERSOLARIS_1
966 COND_USE_STC_1
967 COND_USE_THREADS_0
968 COND_USE_THREADS_1
969 COND_USE_XRC_1
970 COND_WINDOWS_IMPLIB_1
971 COND_WITH_PLUGIN_SDL_1
972 COND_WXUNIV_0
973 COND_WXUNIV_1
974 COND_WXUSE_EXPAT_BUILTIN
975 COND_WXUSE_LIBJPEG_BUILTIN
976 COND_WXUSE_LIBPNG_BUILTIN
977 COND_WXUSE_LIBTIFF_BUILTIN
978 COND_WXUSE_ODBC_BUILTIN
979 COND_WXUSE_REGEX_BUILTIN
980 COND_WXUSE_ZLIB_BUILTIN
981 DEREZ
982 SHARED
983 WX_LIBRARY_BASENAME_NOGUI
984 WX_LIBRARY_BASENAME_GUI
985 USE_GUI
986 AFMINSTALL
987 WIN32INSTALL
988 TOOLKIT
989 TOOLKIT_DIR
990 TOOLCHAIN_NAME
991 TOOLCHAIN_FULLNAME
992 cross_compiling
993 WIDGET_SET
994 WX_RELEASE
995 WX_VERSION
996 WX_SUBVERSION
997 WX_CHARTYPE
998 WX_DEBUGTYPE
999 WXCONFIG_CPPFLAGS
1000 WXCONFIG_CFLAGS
1001 WXCONFIG_CXXFLAGS
1002 WXCONFIG_LIBS
1003 WXCONFIG_RPATH
1004 WXCONFIG_LDFLAGS_GUI
1005 WXCONFIG_RESFLAGS
1006 GUIDIST
1007 DISTDIR
1008 SAMPLES_SUBDIRS
1009 LDFLAGS_GL
1010 OPENGL_LIBS
1011 DMALLOC_LIBS
1012 WX_VERSION_TAG
1013 RESCOMP
1014 RESFLAGS
1015 RESPROGRAMOBJ
1016 WX_RESOURCES_MACOSX_ASCII
1017 WX_RESOURCES_MACOSX_DATA
1018 LIBWXMACRES
1019 POSTLINK_COMMAND
1020 MACSETFILE
1021 GCC
1022 DLLTOOL
1023 CPPUNIT_CONFIG
1024 LIBOBJS
1025 LTLIBOBJS'
1026 ac_subst_files=''
1027       ac_precious_vars='build_alias
1028 host_alias
1029 target_alias
1030 CC
1031 CFLAGS
1032 LDFLAGS
1033 LIBS
1034 CPPFLAGS
1035 CPP
1036 CXX
1037 CXXFLAGS
1038 CCC
1039 PKG_CONFIG
1040 DIRECTFB_CFLAGS
1041 DIRECTFB_LIBS
1042 XMKMF
1043 PANGOX_CFLAGS
1044 PANGOX_LIBS
1045 PANGOFT2_CFLAGS
1046 PANGOFT2_LIBS
1047 PANGOXFT_CFLAGS
1048 PANGOXFT_LIBS
1049 GTKPRINT_CFLAGS
1050 GTKPRINT_LIBS
1051 LIBGNOMEPRINTUI_CFLAGS
1052 LIBGNOMEPRINTUI_LIBS
1053 GNOMEVFS_CFLAGS
1054 GNOMEVFS_LIBS
1055 HILDON_CFLAGS
1056 HILDON_LIBS
1057 CAIRO_CFLAGS
1058 CAIRO_LIBS
1059 GST_CFLAGS
1060 GST_LIBS'
1061 ac_subdirs_all='src/tiff
1062 src/expat'
1063
1064 # Initialize some variables set by options.
1065 ac_init_help=
1066 ac_init_version=false
1067 # The variables have the same names as the options, with
1068 # dashes changed to underlines.
1069 cache_file=/dev/null
1070 exec_prefix=NONE
1071 no_create=
1072 no_recursion=
1073 prefix=NONE
1074 program_prefix=NONE
1075 program_suffix=NONE
1076 program_transform_name=s,x,x,
1077 silent=
1078 site=
1079 srcdir=
1080 verbose=
1081 x_includes=NONE
1082 x_libraries=NONE
1083
1084 # Installation directory options.
1085 # These are left unexpanded so users can "make install exec_prefix=/foo"
1086 # and all the variables that are supposed to be based on exec_prefix
1087 # by default will actually change.
1088 # Use braces instead of parens because sh, perl, etc. also accept them.
1089 # (The list follows the same order as the GNU Coding Standards.)
1090 bindir='${exec_prefix}/bin'
1091 sbindir='${exec_prefix}/sbin'
1092 libexecdir='${exec_prefix}/libexec'
1093 datarootdir='${prefix}/share'
1094 datadir='${datarootdir}'
1095 sysconfdir='${prefix}/etc'
1096 sharedstatedir='${prefix}/com'
1097 localstatedir='${prefix}/var'
1098 includedir='${prefix}/include'
1099 oldincludedir='/usr/include'
1100 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1101 infodir='${datarootdir}/info'
1102 htmldir='${docdir}'
1103 dvidir='${docdir}'
1104 pdfdir='${docdir}'
1105 psdir='${docdir}'
1106 libdir='${exec_prefix}/lib'
1107 localedir='${datarootdir}/locale'
1108 mandir='${datarootdir}/man'
1109
1110 ac_prev=
1111 ac_dashdash=
1112 for ac_option
1113 do
1114   # If the previous option needs an argument, assign it.
1115   if test -n "$ac_prev"; then
1116     eval $ac_prev=\$ac_option
1117     ac_prev=
1118     continue
1119   fi
1120
1121   case $ac_option in
1122   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123   *)    ac_optarg=yes ;;
1124   esac
1125
1126   # Accept the important Cygnus configure options, so we can diagnose typos.
1127
1128   case $ac_dashdash$ac_option in
1129   --)
1130     ac_dashdash=yes ;;
1131
1132   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1133     ac_prev=bindir ;;
1134   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1135     bindir=$ac_optarg ;;
1136
1137   -build | --build | --buil | --bui | --bu)
1138     ac_prev=build_alias ;;
1139   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1140     build_alias=$ac_optarg ;;
1141
1142   -cache-file | --cache-file | --cache-fil | --cache-fi \
1143   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1144     ac_prev=cache_file ;;
1145   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1146   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1147     cache_file=$ac_optarg ;;
1148
1149   --config-cache | -C)
1150     cache_file=config.cache ;;
1151
1152   -datadir | --datadir | --datadi | --datad)
1153     ac_prev=datadir ;;
1154   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1155     datadir=$ac_optarg ;;
1156
1157   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1158   | --dataroo | --dataro | --datar)
1159     ac_prev=datarootdir ;;
1160   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1161   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1162     datarootdir=$ac_optarg ;;
1163
1164   -disable-* | --disable-*)
1165     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1166     # Reject names that are not valid shell variable names.
1167     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1169    { (exit 1); exit 1; }; }
1170     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1171     eval enable_$ac_feature=no ;;
1172
1173   -docdir | --docdir | --docdi | --doc | --do)
1174     ac_prev=docdir ;;
1175   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1176     docdir=$ac_optarg ;;
1177
1178   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1179     ac_prev=dvidir ;;
1180   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1181     dvidir=$ac_optarg ;;
1182
1183   -enable-* | --enable-*)
1184     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190     eval enable_$ac_feature=\$ac_optarg ;;
1191
1192   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1193   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1194   | --exec | --exe | --ex)
1195     ac_prev=exec_prefix ;;
1196   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1197   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1198   | --exec=* | --exe=* | --ex=*)
1199     exec_prefix=$ac_optarg ;;
1200
1201   -gas | --gas | --ga | --g)
1202     # Obsolete; use --with-gas.
1203     with_gas=yes ;;
1204
1205   -help | --help | --hel | --he | -h)
1206     ac_init_help=long ;;
1207   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1208     ac_init_help=recursive ;;
1209   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1210     ac_init_help=short ;;
1211
1212   -host | --host | --hos | --ho)
1213     ac_prev=host_alias ;;
1214   -host=* | --host=* | --hos=* | --ho=*)
1215     host_alias=$ac_optarg ;;
1216
1217   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1218     ac_prev=htmldir ;;
1219   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1220   | --ht=*)
1221     htmldir=$ac_optarg ;;
1222
1223   -includedir | --includedir | --includedi | --included | --include \
1224   | --includ | --inclu | --incl | --inc)
1225     ac_prev=includedir ;;
1226   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1227   | --includ=* | --inclu=* | --incl=* | --inc=*)
1228     includedir=$ac_optarg ;;
1229
1230   -infodir | --infodir | --infodi | --infod | --info | --inf)
1231     ac_prev=infodir ;;
1232   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1233     infodir=$ac_optarg ;;
1234
1235   -libdir | --libdir | --libdi | --libd)
1236     ac_prev=libdir ;;
1237   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1238     libdir=$ac_optarg ;;
1239
1240   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1241   | --libexe | --libex | --libe)
1242     ac_prev=libexecdir ;;
1243   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1244   | --libexe=* | --libex=* | --libe=*)
1245     libexecdir=$ac_optarg ;;
1246
1247   -localedir | --localedir | --localedi | --localed | --locale)
1248     ac_prev=localedir ;;
1249   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1250     localedir=$ac_optarg ;;
1251
1252   -localstatedir | --localstatedir | --localstatedi | --localstated \
1253   | --localstate | --localstat | --localsta | --localst | --locals)
1254     ac_prev=localstatedir ;;
1255   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1256   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1257     localstatedir=$ac_optarg ;;
1258
1259   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1260     ac_prev=mandir ;;
1261   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1262     mandir=$ac_optarg ;;
1263
1264   -nfp | --nfp | --nf)
1265     # Obsolete; use --without-fp.
1266     with_fp=no ;;
1267
1268   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1269   | --no-cr | --no-c | -n)
1270     no_create=yes ;;
1271
1272   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1273   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1274     no_recursion=yes ;;
1275
1276   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1277   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1278   | --oldin | --oldi | --old | --ol | --o)
1279     ac_prev=oldincludedir ;;
1280   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1281   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1282   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1283     oldincludedir=$ac_optarg ;;
1284
1285   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1286     ac_prev=prefix ;;
1287   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1288     prefix=$ac_optarg ;;
1289
1290   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1291   | --program-pre | --program-pr | --program-p)
1292     ac_prev=program_prefix ;;
1293   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1294   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1295     program_prefix=$ac_optarg ;;
1296
1297   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1298   | --program-suf | --program-su | --program-s)
1299     ac_prev=program_suffix ;;
1300   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1301   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1302     program_suffix=$ac_optarg ;;
1303
1304   -program-transform-name | --program-transform-name \
1305   | --program-transform-nam | --program-transform-na \
1306   | --program-transform-n | --program-transform- \
1307   | --program-transform | --program-transfor \
1308   | --program-transfo | --program-transf \
1309   | --program-trans | --program-tran \
1310   | --progr-tra | --program-tr | --program-t)
1311     ac_prev=program_transform_name ;;
1312   -program-transform-name=* | --program-transform-name=* \
1313   | --program-transform-nam=* | --program-transform-na=* \
1314   | --program-transform-n=* | --program-transform-=* \
1315   | --program-transform=* | --program-transfor=* \
1316   | --program-transfo=* | --program-transf=* \
1317   | --program-trans=* | --program-tran=* \
1318   | --progr-tra=* | --program-tr=* | --program-t=*)
1319     program_transform_name=$ac_optarg ;;
1320
1321   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1322     ac_prev=pdfdir ;;
1323   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1324     pdfdir=$ac_optarg ;;
1325
1326   -psdir | --psdir | --psdi | --psd | --ps)
1327     ac_prev=psdir ;;
1328   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1329     psdir=$ac_optarg ;;
1330
1331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1332   | -silent | --silent | --silen | --sile | --sil)
1333     silent=yes ;;
1334
1335   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1336     ac_prev=sbindir ;;
1337   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1338   | --sbi=* | --sb=*)
1339     sbindir=$ac_optarg ;;
1340
1341   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1342   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1343   | --sharedst | --shareds | --shared | --share | --shar \
1344   | --sha | --sh)
1345     ac_prev=sharedstatedir ;;
1346   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1347   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1348   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1349   | --sha=* | --sh=*)
1350     sharedstatedir=$ac_optarg ;;
1351
1352   -site | --site | --sit)
1353     ac_prev=site ;;
1354   -site=* | --site=* | --sit=*)
1355     site=$ac_optarg ;;
1356
1357   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1358     ac_prev=srcdir ;;
1359   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1360     srcdir=$ac_optarg ;;
1361
1362   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1363   | --syscon | --sysco | --sysc | --sys | --sy)
1364     ac_prev=sysconfdir ;;
1365   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1366   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1367     sysconfdir=$ac_optarg ;;
1368
1369   -target | --target | --targe | --targ | --tar | --ta | --t)
1370     ac_prev=target_alias ;;
1371   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1372     target_alias=$ac_optarg ;;
1373
1374   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1375     verbose=yes ;;
1376
1377   -version | --version | --versio | --versi | --vers | -V)
1378     ac_init_version=: ;;
1379
1380   -with-* | --with-*)
1381     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1382     # Reject names that are not valid shell variable names.
1383     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       { echo "$as_me: error: invalid package name: $ac_package" >&2
1385    { (exit 1); exit 1; }; }
1386     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1387     eval with_$ac_package=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393       { echo "$as_me: error: invalid package name: $ac_package" >&2
1394    { (exit 1); exit 1; }; }
1395     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1396     eval with_$ac_package=no ;;
1397
1398   --x)
1399     # Obsolete; use --with-x.
1400     with_x=yes ;;
1401
1402   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1403   | --x-incl | --x-inc | --x-in | --x-i)
1404     ac_prev=x_includes ;;
1405   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1406   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1407     x_includes=$ac_optarg ;;
1408
1409   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1410   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1411     ac_prev=x_libraries ;;
1412   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1413   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1414     x_libraries=$ac_optarg ;;
1415
1416   -*) { echo "$as_me: error: unrecognized option: $ac_option
1417 Try \`$0 --help' for more information." >&2
1418    { (exit 1); exit 1; }; }
1419     ;;
1420
1421   *=*)
1422     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1423     # Reject names that are not valid shell variable names.
1424     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1425       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1426    { (exit 1); exit 1; }; }
1427     eval $ac_envvar=\$ac_optarg
1428     export $ac_envvar ;;
1429
1430   *)
1431     # FIXME: should be removed in autoconf 3.0.
1432     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1433     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1434       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1435     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436     ;;
1437
1438   esac
1439 done
1440
1441 if test -n "$ac_prev"; then
1442   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1443   { echo "$as_me: error: missing argument to $ac_option" >&2
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 # Be sure to have absolute directory names.
1448 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1449                 datadir sysconfdir sharedstatedir localstatedir includedir \
1450                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1451                 libdir localedir mandir
1452 do
1453   eval ac_val=\$$ac_var
1454   case $ac_val in
1455     [\\/$]* | ?:[\\/]* )  continue;;
1456     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1457   esac
1458   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1459    { (exit 1); exit 1; }; }
1460 done
1461
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1465 build=$build_alias
1466 host=$host_alias
1467 target=$target_alias
1468
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471   if test "x$build_alias" = x; then
1472     cross_compiling=maybe
1473     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1474     If a cross compiler is detected then cross compile mode will be used." >&2
1475   elif test "x$build_alias" != "x$host_alias"; then
1476     cross_compiling=yes
1477   fi
1478 fi
1479
1480 ac_tool_prefix=
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482
1483 test "$silent" = yes && exec 6>/dev/null
1484
1485
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489   { echo "$as_me: error: Working directory cannot be determined" >&2
1490    { (exit 1); exit 1; }; }
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492   { echo "$as_me: error: pwd does not report name of working directory" >&2
1493    { (exit 1); exit 1; }; }
1494
1495
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498   ac_srcdir_defaulted=yes
1499   # Try the directory containing this script, then the parent directory.
1500   ac_confdir=`$as_dirname -- "$0" ||
1501 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502          X"$0" : 'X\(//\)[^/]' \| \
1503          X"$0" : 'X\(//\)$' \| \
1504          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1505 echo X"$0" |
1506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)[^/].*/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\/\)$/{
1515             s//\1/
1516             q
1517           }
1518           /^X\(\/\).*/{
1519             s//\1/
1520             q
1521           }
1522           s/.*/./; q'`
1523   srcdir=$ac_confdir
1524   if test ! -r "$srcdir/$ac_unique_file"; then
1525     srcdir=..
1526   fi
1527 else
1528   ac_srcdir_defaulted=no
1529 fi
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1533    { (exit 1); exit 1; }; }
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1538    { (exit 1); exit 1; }; }
1539         pwd)`
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542   srcdir=.
1543 fi
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1547 case $srcdir in
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 esac
1550 for ac_var in $ac_precious_vars; do
1551   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_env_${ac_var}_value=\$${ac_var}
1553   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 done
1556
1557 #
1558 # Report the --help message.
1559 #
1560 if test "$ac_init_help" = "long"; then
1561   # Omit some internal or obsolete options to make the list less imposing.
1562   # This message is too long to be a string in the A/UX 3.1 sh.
1563   cat <<_ACEOF
1564 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1565
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1567
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE.  See below for descriptions of some of the useful variables.
1570
1571 Defaults for the options are specified in brackets.
1572
1573 Configuration:
1574   -h, --help              display this help and exit
1575       --help=short        display options specific to this package
1576       --help=recursive    display the short help of all the included packages
1577   -V, --version           display version information and exit
1578   -q, --quiet, --silent   do not print \`checking...' messages
1579       --cache-file=FILE   cache test results in FILE [disabled]
1580   -C, --config-cache      alias for \`--cache-file=config.cache'
1581   -n, --no-create         do not create output files
1582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1583
1584 Installation directories:
1585   --prefix=PREFIX         install architecture-independent files in PREFIX
1586                           [$ac_default_prefix]
1587   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1588                           [PREFIX]
1589
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1594
1595 For better control, use the options below.
1596
1597 Fine tuning of the installation directories:
1598   --bindir=DIR           user executables [EPREFIX/bin]
1599   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1600   --libexecdir=DIR       program executables [EPREFIX/libexec]
1601   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1602   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1603   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1604   --libdir=DIR           object code libraries [EPREFIX/lib]
1605   --includedir=DIR       C header files [PREFIX/include]
1606   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1607   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1608   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1609   --infodir=DIR          info documentation [DATAROOTDIR/info]
1610   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1611   --mandir=DIR           man documentation [DATAROOTDIR/man]
1612   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1613   --htmldir=DIR          html documentation [DOCDIR]
1614   --dvidir=DIR           dvi documentation [DOCDIR]
1615   --pdfdir=DIR           pdf documentation [DOCDIR]
1616   --psdir=DIR            ps documentation [DOCDIR]
1617 _ACEOF
1618
1619   cat <<\_ACEOF
1620
1621 X features:
1622   --x-includes=DIR    X include files are in DIR
1623   --x-libraries=DIR   X library files are in DIR
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628   --target=TARGET   configure for building compilers for TARGET [HOST]
1629 _ACEOF
1630 fi
1631
1632 if test -n "$ac_init_help"; then
1633   case $ac_init_help in
1634      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1635    esac
1636   cat <<\_ACEOF
1637
1638 Optional Features:
1639   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1640   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1641   --disable-gui           don't build GUI parts of the library
1642   --enable-monolithic     build wxWidgets as single library
1643   --enable-plugins        build parts of wxWidgets as loadable components
1644   --enable-official_build official build of wxWidgets (win32 DLL only)
1645   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1646   --disable-all-features  disable all optional features to build minimal library
1647   --enable-universal      use wxWidgets GUI controls instead of native ones
1648   --enable-nanox          use NanoX
1649   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1650   --enable-gpe            use GNOME PDA Environment features if possible
1651   --disable-shared        create static library instead of shared
1652   --disable-optimise      create optimised code
1653   --enable-debug          same as debug_flag and debug_info
1654   --enable-stl            use STL for containers
1655   --enable-std_iostreams  use standard C++ stream classes
1656   --enable-std_string     use standard C++ string classes
1657   --disable-unicode       compile without Unicode support
1658   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1659   --enable-utf8           use UTF-8 representation for strings (Unix only)
1660   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1661   --enable-extended_rtti  use extended RTTI (XTI)
1662   --enable-omf            use OMF object format
1663   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1664   --enable-debug_info     create code with debugging information
1665   --enable-debug_gdb      create code with extra GDB debugging information
1666   --enable-debug_cntxt    use wxDebugContext
1667   --enable-mem_tracing    create code with memory tracing
1668   --enable-profile        create code with profiling information
1669   --enable-no_rtti        create code without RTTI information
1670   --enable-no_exceptions  create code without C++ exceptions handling
1671   --enable-permissive     compile code disregarding strict ANSI
1672   --enable-no_deps        create code without dependency information
1673   --disable-vararg_macros don't use vararg macros, even if they are supported
1674   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1675   --enable-compat26       enable wxWidgets 2.6 compatibility
1676   --disable-compat28      disable wxWidgets 2.8 compatibility
1677   --disable-rpath         disable use of rpath for uninstalled builds
1678   --enable-objc_uniquifying enable Objective-C class name uniquifying
1679   --disable-visibility    disable use of ELF symbols visibility even if supported
1680   --enable-intl           use internationalization system
1681   --enable-config         use wxConfig (and derived) classes
1682   --enable-protocols      use wxProtocol and derived classes
1683   --enable-ftp            use wxFTP (requires wxProtocol
1684   --enable-http           use wxHTTP (requires wxProtocol
1685   --enable-fileproto      use wxFileProto class (requires wxProtocol
1686   --enable-sockets        use socket/network classes
1687   --enable-ole            use OLE classes (Win32 only)
1688   --enable-dataobj        use data object classes
1689   --enable-ipc            use interprocess communication (wxSocket etc.)
1690   --enable-baseevtloop    use event loop in console programs too
1691   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1692   --enable-selectloop     use wxSelectDispatcher class
1693   --enable-apple_ieee     use the Apple IEEE codec
1694   --enable-arcstream      use wxArchive streams
1695   --enable-base64         use base64 encoding/decoding functions
1696   --enable-backtrace      use wxStackWalker class for getting backtraces
1697   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1698   --enable-cmdline        use wxCmdLineParser class
1699   --enable-datetime       use wxDateTime class
1700   --enable-debugreport    use wxDebugReport class
1701   --enable-dialupman      use dialup network classes
1702   --enable-dynlib         use wxLibrary class for DLL loading
1703   --enable-dynamicloader  use (new) wxDynamicLibrary class
1704   --enable-exceptions     build exception-safe library
1705   --enable-ffile          use wxFFile class
1706   --enable-file           use wxFile class
1707   --enable-filesystem     use virtual file systems classes
1708   --enable-fontenum       use wxFontEnumerator class
1709   --enable-fontmap        use font encodings conversion classes
1710   --enable-fs_archive     use virtual archive filesystems
1711   --enable-fs_inet        use virtual HTTP/FTP filesystems
1712   --enable-fs_zip         now replaced by fs_archive
1713   --enable-geometry       use geometry class
1714   --enable-log            use logging system
1715   --enable-longlong       use wxLongLong class
1716   --enable-mimetype       use wxMimeTypesManager
1717   --enable-snglinst       use wxSingleInstanceChecker class
1718   --enable-stdpaths       use wxStandardPaths class
1719   --enable-stopwatch      use wxStopWatch class
1720   --enable-streams        use wxStream etc classes
1721   --enable-sysoptions     use wxSystemOptions
1722   --enable-tarstream      use wxTar streams
1723   --enable-textbuf        use wxTextBuffer class
1724   --enable-textfile       use wxTextFile class
1725   --enable-timer          use wxTimer class
1726   --enable-sound          use wxSound class
1727   --enable-mediactrl      use wxMediaCtrl class
1728   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1729   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1730   --enable-zipstream      use wxZip streams
1731   --enable-url            use wxURL class
1732   --enable-variant        use wxVariant class
1733   --enable-protocol       use wxProtocol class
1734   --enable-protocol-http  HTTP support in wxProtocol
1735   --enable-protocol-ftp   FTP support in wxProtocol
1736   --enable-protocol-file  FILE support in wxProtocol
1737   --enable-threads        use threads
1738   --enable-iniconf        use wxIniConfig (Win32 only)
1739   --enable-regkey         use wxRegKey class (Win32 only)
1740   --enable-docview        use document view architecture
1741   --enable-help           use help subsystem
1742   --enable-mshtmlhelp     use MS HTML Help (win32)
1743   --enable-html           use wxHTML sub-library
1744   --enable-htmlhelp       use wxHTML-based help
1745   --enable-xrc            use XRC resources sub-library
1746   --enable-aui            use AUI docking library
1747   --enable-stc            use wxStyledTextCtrl library
1748   --enable-constraints    use layout-constraints system
1749   --enable-printarch      use printing architecture
1750   --enable-mdi            use multiple document interface architecture
1751   --enable-mdidoc         use docview architecture with MDI
1752   --enable-loggui         use standard GUI logger
1753   --enable-logwin         use wxLogWindow
1754   --enable-logdialog      use wxLogDialog
1755   --enable-webkit         use wxWebKitCtrl (Mac)
1756   --enable-richtext       use wxRichTextCtrl
1757   --enable-graphics_ctx   use graphics context 2D drawing API
1758   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1759   --enable-svg            use wxSVGFileDC device context
1760   --enable-clipboard      use wxClipboard class
1761   --enable-dnd            use Drag'n'Drop classes
1762   --enable-metafile       use win32 metafiles
1763   --disable-controls      disable compilation of all standard controls
1764   --enable-accel          use accelerators
1765   --enable-animatectrl    use wxAnimationCtrl class
1766   --enable-button         use wxButton class
1767   --enable-bmpbutton      use wxBitmapButton class
1768   --enable-bmpcombobox    use wxBitmapComboBox class
1769   --enable-calendar       use wxCalendarCtrl class
1770   --enable-caret          use wxCaret class
1771   --enable-checkbox       use wxCheckBox class
1772   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1773   --enable-choice         use wxChoice class
1774   --enable-choicebook     use wxChoicebook class
1775   --enable-collpane       use wxCollapsiblePane class
1776   --enable-colourpicker   use wxColourPickerCtrl class
1777   --enable-combobox       use wxComboBox class
1778   --enable-comboctrl      use wxComboCtrl class
1779   --enable-datepick       use wxDatePickerCtrl class
1780   --enable-dirpicker      use wxDirPickerCtrl class
1781   --enable-display        use wxDisplay class
1782   --enable-detect_sm      use code to detect X11 session manager
1783   --enable-editablebox    use wxEditableListBox class
1784   --enable-filepicker     use wxFilePickerCtrl class
1785   --enable-filectrl       use wxFileCtrl class
1786   --enable-fontpicker     use wxFontPickerCtrl class
1787   --enable-gauge          use wxGauge class
1788   --enable-grid           use wxGrid class
1789   --enable-dataviewctrl   use wxDataViewCtrl class
1790   --enable-hyperlink      use wxHyperlinkCtrl class
1791   --enable-imaglist       use wxImageList class
1792   --enable-listbook       use wxListbook class
1793   --enable-listbox        use wxListBox class
1794   --enable-listctrl       use wxListCtrl class
1795   --enable-notebook       use wxNotebook class
1796   --enable-odcombobox     use wxOwnerDrawnComboBox class
1797   --enable-radiobox       use wxRadioBox class
1798   --enable-radiobtn       use wxRadioButton class
1799   --enable-sash           use wxSashWindow class
1800   --enable-scrollbar      use wxScrollBar class and scrollable windows
1801   --enable-searchctrl     use wxSearchCtrl class
1802   --enable-slider         use wxSlider class
1803   --enable-spinbtn        use wxSpinButton class
1804   --enable-spinctrl       use wxSpinCtrl class
1805   --enable-splitter       use wxSplitterWindow class
1806   --enable-statbmp        use wxStaticBitmap class
1807   --enable-statbox        use wxStaticBox class
1808   --enable-statline       use wxStaticLine class
1809   --enable-stattext       use wxStaticText class
1810   --enable-statusbar      use wxStatusBar class
1811   --enable-tabdialog      use wxTabControl class
1812   --enable-taskbaricon    use wxTaskBarIcon class
1813   --enable-textctrl       use wxTextCtrl class
1814   --enable-togglebtn      use wxToggleButton class
1815   --enable-toolbar        use wxToolBar class
1816   --enable-tbarnative     use native wxToolBar class
1817   --enable-treebook       use wxTreebook class
1818   --enable-toolbook       use wxToolbook class
1819   --enable-treectrl       use wxTreeCtrl class
1820   --enable-tipwindow      use wxTipWindow class
1821   --enable-popupwin       use wxPopUpWindow class
1822   --enable-commondlg      use all common dialogs
1823   --enable-aboutdlg       use wxAboutBox
1824   --enable-choicedlg      use wxChoiceDialog
1825   --enable-coldlg         use wxColourDialog
1826   --enable-filedlg        use wxFileDialog
1827   --enable-finddlg        use wxFindReplaceDialog
1828   --enable-fontdlg        use wxFontDialog
1829   --enable-dirdlg         use wxDirDialog
1830   --enable-msgdlg         use wxMessageDialog
1831   --enable-numberdlg      use wxNumberEntryDialog
1832   --enable-splash         use wxSplashScreen
1833   --enable-textdlg        use wxTextDialog
1834   --enable-tipdlg         use startup tips
1835   --enable-progressdlg    use wxProgressDialog
1836   --enable-wizarddlg      use wxWizard
1837   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1838   --enable-miniframe      use wxMiniFrame class
1839   --enable-tooltips       use wxToolTip class
1840   --enable-splines        use spline drawing code
1841   --enable-mousewheel     use mousewheel
1842   --enable-validators     use wxValidator and derived classes
1843   --enable-busyinfo       use wxBusyInfo
1844   --enable-joystick       use wxJoystick
1845   --enable-metafiles      use wxMetaFile (Win32 only)
1846   --enable-dragimage      use wxDragImage
1847   --enable-accessibility  enable accessibility support
1848   --enable-palette        use wxPalette class
1849   --enable-image          use wxImage class
1850   --enable-gif            use gif images (GIF file format)
1851   --enable-pcx            use pcx images (PCX file format)
1852   --enable-tga            use tga images (TGA file format)
1853   --enable-iff            use iff images (IFF file format)
1854   --enable-pnm            use pnm images (PNM file format)
1855   --enable-xpm            use xpm images (XPM file format)
1856   --enable-icocur         use Windows ICO and CUR formats
1857   --enable-dccache        cache temporary wxDC objects (Win32 only)
1858   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1859   --enable-ownerdrawn     use owner drawn controls (Win32 only)
1860   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1861   --enable-wxdib          use wxDIB class (Win32 only)
1862   --disable-largefile     omit support for large files
1863   --disable-gtktest       do not try to compile and run a test GTK+ program
1864   --disable-gtktest       Do not try to compile and run a test GTK program
1865   --disable-sdltest       Do not try to compile and run a test SDL program
1866   --enable-omf            use OMF object format (OS/2)
1867   --disable-dependency-tracking
1868                           don't use dependency tracking even if the compiler
1869                           can
1870   --disable-precomp-headers
1871                           don't use precompiled headers even if compiler can
1872
1873 Optional Packages:
1874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1876   --without-subdirs       don't generate makefiles for samples/demos/...
1877   --with-flavour=NAME     specify a name to identify this build
1878   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1879   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1880   --with-motif            use Motif/Lesstif
1881   --with-mac              use Mac OS X
1882   --with-cocoa            use Cocoa
1883   --with-wine             use Wine
1884   --with-msw              use MS-Windows
1885   --with-pm               use OS/2 Presentation Manager
1886   --with-mgl              use SciTech MGL
1887   --with-directfb         use DirectFB
1888   --with-microwin         use MicroWindows
1889   --with-x11              use X11
1890   --with-libpng           use libpng (PNG image format)
1891   --with-libjpeg          use libjpeg (JPEG file format)
1892   --with-libtiff          use libtiff (TIFF file format)
1893   --with-libxpm           use libxpm (XPM file format)
1894   --with-libmspack        use libmspack (CHM help files loading)
1895   --without-gtkprint      don't use GTK printing support
1896   --without-gnomeprint    don't use GNOME printing libraries
1897   --with-gnomevfs         use GNOME VFS for associating MIME types
1898   --with-hildon           use Hildon framework for Nokia 770
1899   --with-opengl           use OpenGL (or Mesa)
1900   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1901   --with-sdl              use SDL for audio on Unix
1902   --with-regex            enable support for wxRegEx class
1903   --with-zlib             use zlib for LZW compression
1904   --with-odbc             use the IODBC and wxODBC classes
1905   --with-expat            enable XML support using expat parser
1906   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1907   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1908   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1909   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1910   --with-x                use the X Window System
1911   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1912   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1913   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1914   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1915   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1916
1917 Some influential environment variables:
1918   CC          C compiler command
1919   CFLAGS      C compiler flags
1920   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1921               nonstandard directory <lib dir>
1922   LIBS        libraries to pass to the linker, e.g. -l<library>
1923   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1924               you have headers in a nonstandard directory <include dir>
1925   CPP         C preprocessor
1926   CXX         C++ compiler command
1927   CXXFLAGS    C++ compiler flags
1928   PKG_CONFIG  path to pkg-config utility
1929   DIRECTFB_CFLAGS
1930               C compiler flags for DIRECTFB, overriding pkg-config
1931   DIRECTFB_LIBS
1932               linker flags for DIRECTFB, overriding pkg-config
1933   XMKMF       Path to xmkmf, Makefile generator for X Window System
1934   PANGOX_CFLAGS
1935               C compiler flags for PANGOX, overriding pkg-config
1936   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1937   PANGOFT2_CFLAGS
1938               C compiler flags for PANGOFT2, overriding pkg-config
1939   PANGOFT2_LIBS
1940               linker flags for PANGOFT2, overriding pkg-config
1941   PANGOXFT_CFLAGS
1942               C compiler flags for PANGOXFT, overriding pkg-config
1943   PANGOXFT_LIBS
1944               linker flags for PANGOXFT, overriding pkg-config
1945   GTKPRINT_CFLAGS
1946               C compiler flags for GTKPRINT, overriding pkg-config
1947   GTKPRINT_LIBS
1948               linker flags for GTKPRINT, overriding pkg-config
1949   LIBGNOMEPRINTUI_CFLAGS
1950               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1951   LIBGNOMEPRINTUI_LIBS
1952               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1953   GNOMEVFS_CFLAGS
1954               C compiler flags for GNOMEVFS, overriding pkg-config
1955   GNOMEVFS_LIBS
1956               linker flags for GNOMEVFS, overriding pkg-config
1957   HILDON_CFLAGS
1958               C compiler flags for HILDON, overriding pkg-config
1959   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1960   CAIRO_CFLAGS
1961               C compiler flags for CAIRO, overriding pkg-config
1962   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1963   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1964   GST_LIBS    linker flags for GST, overriding pkg-config
1965
1966 Use these variables to override the choices made by `configure' or to help
1967 it to find libraries and programs with nonstandard names/locations.
1968
1969 Report bugs to <wx-dev@lists.wxwidgets.org>.
1970 _ACEOF
1971 ac_status=$?
1972 fi
1973
1974 if test "$ac_init_help" = "recursive"; then
1975   # If there are subdirs, report their specific --help.
1976   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1977     test -d "$ac_dir" || continue
1978     ac_builddir=.
1979
1980 case "$ac_dir" in
1981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1982 *)
1983   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1984   # A ".." for each directory in $ac_dir_suffix.
1985   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1986   case $ac_top_builddir_sub in
1987   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1989   esac ;;
1990 esac
1991 ac_abs_top_builddir=$ac_pwd
1992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1993 # for backward compatibility:
1994 ac_top_builddir=$ac_top_build_prefix
1995
1996 case $srcdir in
1997   .)  # We are building in place.
1998     ac_srcdir=.
1999     ac_top_srcdir=$ac_top_builddir_sub
2000     ac_abs_top_srcdir=$ac_pwd ;;
2001   [\\/]* | ?:[\\/]* )  # Absolute name.
2002     ac_srcdir=$srcdir$ac_dir_suffix;
2003     ac_top_srcdir=$srcdir
2004     ac_abs_top_srcdir=$srcdir ;;
2005   *) # Relative name.
2006     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007     ac_top_srcdir=$ac_top_build_prefix$srcdir
2008     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2009 esac
2010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2011
2012     cd "$ac_dir" || { ac_status=$?; continue; }
2013     # Check for guested configure.
2014     if test -f "$ac_srcdir/configure.gnu"; then
2015       echo &&
2016       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017     elif test -f "$ac_srcdir/configure"; then
2018       echo &&
2019       $SHELL "$ac_srcdir/configure" --help=recursive
2020     else
2021       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2022     fi || ac_status=$?
2023     cd "$ac_pwd" || { ac_status=$?; break; }
2024   done
2025 fi
2026
2027 test -n "$ac_init_help" && exit $ac_status
2028 if $ac_init_version; then
2029   cat <<\_ACEOF
2030 wxWidgets configure 2.9.0
2031 generated by GNU Autoconf 2.61
2032
2033 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2034 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2035 This configure script is free software; the Free Software Foundation
2036 gives unlimited permission to copy, distribute and modify it.
2037 _ACEOF
2038   exit
2039 fi
2040 cat >config.log <<_ACEOF
2041 This file contains any messages produced by compilers while
2042 running configure, to aid debugging if configure makes a mistake.
2043
2044 It was created by wxWidgets $as_me 2.9.0, which was
2045 generated by GNU Autoconf 2.61.  Invocation command line was
2046
2047   $ $0 $@
2048
2049 _ACEOF
2050 exec 5>>config.log
2051 {
2052 cat <<_ASUNAME
2053 ## --------- ##
2054 ## Platform. ##
2055 ## --------- ##
2056
2057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2062
2063 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2064 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2065
2066 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2067 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2068 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2069 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2070 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2071 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2072 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2073
2074 _ASUNAME
2075
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   echo "PATH: $as_dir"
2082 done
2083 IFS=$as_save_IFS
2084
2085 } >&5
2086
2087 cat >&5 <<_ACEOF
2088
2089
2090 ## ----------- ##
2091 ## Core tests. ##
2092 ## ----------- ##
2093
2094 _ACEOF
2095
2096
2097 # Keep a trace of the command line.
2098 # Strip out --no-create and --no-recursion so they do not pile up.
2099 # Strip out --silent because we don't want to record it for future runs.
2100 # Also quote any args containing shell meta-characters.
2101 # Make two passes to allow for proper duplicate-argument suppression.
2102 ac_configure_args=
2103 ac_configure_args0=
2104 ac_configure_args1=
2105 ac_must_keep_next=false
2106 for ac_pass in 1 2
2107 do
2108   for ac_arg
2109   do
2110     case $ac_arg in
2111     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2112     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2113     | -silent | --silent | --silen | --sile | --sil)
2114       continue ;;
2115     *\'*)
2116       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2117     esac
2118     case $ac_pass in
2119     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2120     2)
2121       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2122       if test $ac_must_keep_next = true; then
2123         ac_must_keep_next=false # Got value, back to normal.
2124       else
2125         case $ac_arg in
2126           *=* | --config-cache | -C | -disable-* | --disable-* \
2127           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2128           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2129           | -with-* | --with-* | -without-* | --without-* | --x)
2130             case "$ac_configure_args0 " in
2131               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2132             esac
2133             ;;
2134           -* ) ac_must_keep_next=true ;;
2135         esac
2136       fi
2137       ac_configure_args="$ac_configure_args '$ac_arg'"
2138       ;;
2139     esac
2140   done
2141 done
2142 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2143 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2144
2145 # When interrupted or exit'd, cleanup temporary files, and complete
2146 # config.log.  We remove comments because anyway the quotes in there
2147 # would cause problems or look ugly.
2148 # WARNING: Use '\'' to represent an apostrophe within the trap.
2149 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2150 trap 'exit_status=$?
2151   # Save into config.log some information that might help in debugging.
2152   {
2153     echo
2154
2155     cat <<\_ASBOX
2156 ## ---------------- ##
2157 ## Cache variables. ##
2158 ## ---------------- ##
2159 _ASBOX
2160     echo
2161     # The following way of writing the cache mishandles newlines in values,
2162 (
2163   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2164     eval ac_val=\$$ac_var
2165     case $ac_val in #(
2166     *${as_nl}*)
2167       case $ac_var in #(
2168       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2169 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2170       esac
2171       case $ac_var in #(
2172       _ | IFS | as_nl) ;; #(
2173       *) $as_unset $ac_var ;;
2174       esac ;;
2175     esac
2176   done
2177   (set) 2>&1 |
2178     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179     *${as_nl}ac_space=\ *)
2180       sed -n \
2181         "s/'\''/'\''\\\\'\'''\''/g;
2182           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183       ;; #(
2184     *)
2185       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186       ;;
2187     esac |
2188     sort
2189 )
2190     echo
2191
2192     cat <<\_ASBOX
2193 ## ----------------- ##
2194 ## Output variables. ##
2195 ## ----------------- ##
2196 _ASBOX
2197     echo
2198     for ac_var in $ac_subst_vars
2199     do
2200       eval ac_val=\$$ac_var
2201       case $ac_val in
2202       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203       esac
2204       echo "$ac_var='\''$ac_val'\''"
2205     done | sort
2206     echo
2207
2208     if test -n "$ac_subst_files"; then
2209       cat <<\_ASBOX
2210 ## ------------------- ##
2211 ## File substitutions. ##
2212 ## ------------------- ##
2213 _ASBOX
2214       echo
2215       for ac_var in $ac_subst_files
2216       do
2217         eval ac_val=\$$ac_var
2218         case $ac_val in
2219         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220         esac
2221         echo "$ac_var='\''$ac_val'\''"
2222       done | sort
2223       echo
2224     fi
2225
2226     if test -s confdefs.h; then
2227       cat <<\_ASBOX
2228 ## ----------- ##
2229 ## confdefs.h. ##
2230 ## ----------- ##
2231 _ASBOX
2232       echo
2233       cat confdefs.h
2234       echo
2235     fi
2236     test "$ac_signal" != 0 &&
2237       echo "$as_me: caught signal $ac_signal"
2238     echo "$as_me: exit $exit_status"
2239   } >&5
2240   rm -f core *.core core.conftest.* &&
2241     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2242     exit $exit_status
2243 ' 0
2244 for ac_signal in 1 2 13 15; do
2245   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2246 done
2247 ac_signal=0
2248
2249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2250 rm -f -r conftest* confdefs.h
2251
2252 # Predefined preprocessor variables.
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_NAME "$PACKAGE_NAME"
2256 _ACEOF
2257
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2261 _ACEOF
2262
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2266 _ACEOF
2267
2268
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_STRING "$PACKAGE_STRING"
2271 _ACEOF
2272
2273
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2276 _ACEOF
2277
2278
2279 # Let the site file select an alternate cache file if it wants to.
2280 # Prefer explicitly selected file to automatically selected ones.
2281 if test -n "$CONFIG_SITE"; then
2282   set x "$CONFIG_SITE"
2283 elif test "x$prefix" != xNONE; then
2284   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2285 else
2286   set x "$ac_default_prefix/share/config.site" \
2287         "$ac_default_prefix/etc/config.site"
2288 fi
2289 shift
2290 for ac_site_file
2291 do
2292   if test -r "$ac_site_file"; then
2293     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2294 echo "$as_me: loading site script $ac_site_file" >&6;}
2295     sed 's/^/| /' "$ac_site_file" >&5
2296     . "$ac_site_file"
2297   fi
2298 done
2299
2300 if test -r "$cache_file"; then
2301   # Some versions of bash will fail to source /dev/null (special
2302   # files actually), so we avoid doing that.
2303   if test -f "$cache_file"; then
2304     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2305 echo "$as_me: loading cache $cache_file" >&6;}
2306     case $cache_file in
2307       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308       *)                      . "./$cache_file";;
2309     esac
2310   fi
2311 else
2312   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2313 echo "$as_me: creating cache $cache_file" >&6;}
2314   >$cache_file
2315 fi
2316
2317 # Check that the precious variables saved in the cache have kept the same
2318 # value.
2319 ac_cache_corrupted=false
2320 for ac_var in $ac_precious_vars; do
2321   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2322   eval ac_new_set=\$ac_env_${ac_var}_set
2323   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2324   eval ac_new_val=\$ac_env_${ac_var}_value
2325   case $ac_old_set,$ac_new_set in
2326     set,)
2327       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2328 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2329       ac_cache_corrupted=: ;;
2330     ,set)
2331       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2332 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2333       ac_cache_corrupted=: ;;
2334     ,);;
2335     *)
2336       if test "x$ac_old_val" != "x$ac_new_val"; then
2337         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2338 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2339         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2340 echo "$as_me:   former value:  $ac_old_val" >&2;}
2341         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2342 echo "$as_me:   current value: $ac_new_val" >&2;}
2343         ac_cache_corrupted=:
2344       fi;;
2345   esac
2346   # Pass precious variables to config.status.
2347   if test "$ac_new_set" = set; then
2348     case $ac_new_val in
2349     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2350     *) ac_arg=$ac_var=$ac_new_val ;;
2351     esac
2352     case " $ac_configure_args " in
2353       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2354       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2355     esac
2356   fi
2357 done
2358 if $ac_cache_corrupted; then
2359   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2360 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2362 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2363    { (exit 1); exit 1; }; }
2364 fi
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390 ac_ext=c
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2395
2396
2397
2398
2399
2400 ac_aux_dir=
2401 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2402   if test -f "$ac_dir/install-sh"; then
2403     ac_aux_dir=$ac_dir
2404     ac_install_sh="$ac_aux_dir/install-sh -c"
2405     break
2406   elif test -f "$ac_dir/install.sh"; then
2407     ac_aux_dir=$ac_dir
2408     ac_install_sh="$ac_aux_dir/install.sh -c"
2409     break
2410   elif test -f "$ac_dir/shtool"; then
2411     ac_aux_dir=$ac_dir
2412     ac_install_sh="$ac_aux_dir/shtool install -c"
2413     break
2414   fi
2415 done
2416 if test -z "$ac_aux_dir"; then
2417   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2418 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2419    { (exit 1); exit 1; }; }
2420 fi
2421
2422 # These three variables are undocumented and unsupported,
2423 # and are intended to be withdrawn in a future Autoconf release.
2424 # They can cause serious problems if a builder's source tree is in a directory
2425 # whose full name contains unusual characters.
2426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2428 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2429
2430
2431 # Make sure we can run config.sub.
2432 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2433   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2434 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2435    { (exit 1); exit 1; }; }
2436
2437 { echo "$as_me:$LINENO: checking build system type" >&5
2438 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2439 if test "${ac_cv_build+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   ac_build_alias=$build_alias
2443 test "x$ac_build_alias" = x &&
2444   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2445 test "x$ac_build_alias" = x &&
2446   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2447 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2448    { (exit 1); exit 1; }; }
2449 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2450   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2451 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2452    { (exit 1); exit 1; }; }
2453
2454 fi
2455 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2456 echo "${ECHO_T}$ac_cv_build" >&6; }
2457 case $ac_cv_build in
2458 *-*-*) ;;
2459 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2460 echo "$as_me: error: invalid value of canonical build" >&2;}
2461    { (exit 1); exit 1; }; };;
2462 esac
2463 build=$ac_cv_build
2464 ac_save_IFS=$IFS; IFS='-'
2465 set x $ac_cv_build
2466 shift
2467 build_cpu=$1
2468 build_vendor=$2
2469 shift; shift
2470 # Remember, the first character of IFS is used to create $*,
2471 # except with old shells:
2472 build_os=$*
2473 IFS=$ac_save_IFS
2474 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2475
2476
2477 { echo "$as_me:$LINENO: checking host system type" >&5
2478 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2479 if test "${ac_cv_host+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test "x$host_alias" = x; then
2483   ac_cv_host=$ac_cv_build
2484 else
2485   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2486     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2487 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 fi
2492 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2493 echo "${ECHO_T}$ac_cv_host" >&6; }
2494 case $ac_cv_host in
2495 *-*-*) ;;
2496 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2497 echo "$as_me: error: invalid value of canonical host" >&2;}
2498    { (exit 1); exit 1; }; };;
2499 esac
2500 host=$ac_cv_host
2501 ac_save_IFS=$IFS; IFS='-'
2502 set x $ac_cv_host
2503 shift
2504 host_cpu=$1
2505 host_vendor=$2
2506 shift; shift
2507 # Remember, the first character of IFS is used to create $*,
2508 # except with old shells:
2509 host_os=$*
2510 IFS=$ac_save_IFS
2511 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2512
2513
2514 { echo "$as_me:$LINENO: checking target system type" >&5
2515 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2516 if test "${ac_cv_target+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test "x$target_alias" = x; then
2520   ac_cv_target=$ac_cv_host
2521 else
2522   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2523     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2524 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2525    { (exit 1); exit 1; }; }
2526 fi
2527
2528 fi
2529 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2530 echo "${ECHO_T}$ac_cv_target" >&6; }
2531 case $ac_cv_target in
2532 *-*-*) ;;
2533 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2534 echo "$as_me: error: invalid value of canonical target" >&2;}
2535    { (exit 1); exit 1; }; };;
2536 esac
2537 target=$ac_cv_target
2538 ac_save_IFS=$IFS; IFS='-'
2539 set x $ac_cv_target
2540 shift
2541 target_cpu=$1
2542 target_vendor=$2
2543 shift; shift
2544 # Remember, the first character of IFS is used to create $*,
2545 # except with old shells:
2546 target_os=$*
2547 IFS=$ac_save_IFS
2548 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2549
2550
2551 # The aliases save the names the user supplied, while $host etc.
2552 # will get canonicalized.
2553 test -n "$target_alias" &&
2554   test "$program_prefix$program_suffix$program_transform_name" = \
2555     NONENONEs,x,x, &&
2556   program_prefix=${target_alias}-
2557
2558
2559
2560 wx_major_version_number=2
2561 wx_minor_version_number=9
2562 wx_release_number=0
2563 wx_subrelease_number=0
2564
2565 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2566 WX_VERSION=$WX_RELEASE.$wx_release_number
2567 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2568
2569 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2570
2571
2572 wx_top_builddir="`pwd`"
2573
2574
2575
2576
2577 USE_UNIX=1
2578 USE_OS2=0
2579 USE_WIN32=0
2580 USE_DOS=0
2581 USE_BEOS=0
2582 USE_MAC=0
2583
2584 USE_AIX=
2585 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2586 USE_GNU=                            USE_HPUX=
2587 USE_LINUX=
2588 USE_NETBSD=
2589 USE_OPENBSD=
2590 USE_OSF=                            USE_SGI=
2591 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2592 USE_ULTRIX=
2593 USE_UNIXWARE=
2594
2595 USE_ALPHA=
2596
2597 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2598
2599 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2600
2601 DEFAULT_wxUSE_COCOA=0
2602 DEFAULT_wxUSE_GTK=0
2603 DEFAULT_wxUSE_MAC=0
2604 DEFAULT_wxUSE_MGL=0
2605 DEFAULT_wxUSE_MICROWIN=0
2606 DEFAULT_wxUSE_MOTIF=0
2607 DEFAULT_wxUSE_MSW=0
2608 DEFAULT_wxUSE_PM=0
2609 DEFAULT_wxUSE_X11=0
2610 DEFAULT_wxUSE_DFB=0
2611
2612 DEFAULT_DEFAULT_wxUSE_COCOA=0
2613 DEFAULT_DEFAULT_wxUSE_GTK=0
2614 DEFAULT_DEFAULT_wxUSE_MAC=0
2615 DEFAULT_DEFAULT_wxUSE_MGL=0
2616 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2617 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2618 DEFAULT_DEFAULT_wxUSE_MSW=0
2619 DEFAULT_DEFAULT_wxUSE_PM=0
2620 DEFAULT_DEFAULT_wxUSE_X11=0
2621 DEFAULT_DEFAULT_wxUSE_DFB=0
2622
2623 PROGRAM_EXT=
2624 SO_SUFFIX=so
2625 SAMPLES_RPATH_FLAG=
2626 SAMPLES_RPATH_POSTLINK=
2627
2628 DEFAULT_STD_FLAG=yes
2629
2630 case "${host}" in
2631   *-hp-hpux* )
2632     USE_HPUX=1
2633     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2634     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2635     SO_SUFFIX=sl
2636     cat >>confdefs.h <<\_ACEOF
2637 #define __HPUX__ 1
2638 _ACEOF
2639
2640
2641             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2642   ;;
2643   *-*-linux* )
2644     USE_LINUX=1
2645     cat >>confdefs.h <<\_ACEOF
2646 #define __LINUX__ 1
2647 _ACEOF
2648
2649     TMP=`uname -m`
2650     if test "x$TMP" = "xalpha"; then
2651       USE_ALPHA=1
2652       cat >>confdefs.h <<\_ACEOF
2653 #define __ALPHA__ 1
2654 _ACEOF
2655
2656     fi
2657     DEFAULT_DEFAULT_wxUSE_GTK=1
2658   ;;
2659   *-*-gnu* | *-*-k*bsd*-gnu )
2660     USE_GNU=1
2661     TMP=`uname -m`
2662     if test "x$TMP" = "xalpha"; then
2663       USE_ALPHA=1
2664       cat >>confdefs.h <<\_ACEOF
2665 #define __ALPHA__ 1
2666 _ACEOF
2667
2668     fi
2669     DEFAULT_DEFAULT_wxUSE_GTK=1
2670   ;;
2671   *-*-irix5* | *-*-irix6* )
2672     USE_SGI=1
2673     USE_SVR4=1
2674     cat >>confdefs.h <<\_ACEOF
2675 #define __SGI__ 1
2676 _ACEOF
2677
2678     cat >>confdefs.h <<\_ACEOF
2679 #define __SVR4__ 1
2680 _ACEOF
2681
2682     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2683   ;;
2684   *-*-solaris2* )
2685     USE_SUN=1
2686     USE_SOLARIS=1
2687     USE_SVR4=1
2688     cat >>confdefs.h <<\_ACEOF
2689 #define __SUN__ 1
2690 _ACEOF
2691
2692     cat >>confdefs.h <<\_ACEOF
2693 #define __SOLARIS__ 1
2694 _ACEOF
2695
2696     cat >>confdefs.h <<\_ACEOF
2697 #define __SVR4__ 1
2698 _ACEOF
2699
2700     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2701     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2702   ;;
2703   *-*-sunos4* )
2704     USE_SUN=1
2705     USE_SUNOS=1
2706     USE_BSD=1
2707     cat >>confdefs.h <<\_ACEOF
2708 #define __SUN__ 1
2709 _ACEOF
2710
2711     cat >>confdefs.h <<\_ACEOF
2712 #define __SUNOS__ 1
2713 _ACEOF
2714
2715     cat >>confdefs.h <<\_ACEOF
2716 #define __BSD__ 1
2717 _ACEOF
2718
2719     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2720   ;;
2721   *-*-freebsd*)
2722     USE_BSD=1
2723     USE_FREEBSD=1
2724     cat >>confdefs.h <<\_ACEOF
2725 #define __FREEBSD__ 1
2726 _ACEOF
2727
2728     cat >>confdefs.h <<\_ACEOF
2729 #define __BSD__ 1
2730 _ACEOF
2731
2732     DEFAULT_DEFAULT_wxUSE_GTK=1
2733   ;;
2734   *-*-openbsd*|*-*-mirbsd*)
2735     USE_BSD=1
2736     USE_OPENBSD=1
2737     cat >>confdefs.h <<\_ACEOF
2738 #define __OPENBSD__ 1
2739 _ACEOF
2740
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __BSD__ 1
2743 _ACEOF
2744
2745     DEFAULT_DEFAULT_wxUSE_GTK=1
2746   ;;
2747   *-*-netbsd*)
2748     USE_BSD=1
2749     USE_NETBSD=1
2750     cat >>confdefs.h <<\_ACEOF
2751 #define __NETBSD__ 1
2752 _ACEOF
2753
2754     cat >>confdefs.h <<\_ACEOF
2755 #define __BSD__ 1
2756 _ACEOF
2757
2758     DEFAULT_DEFAULT_wxUSE_GTK=1
2759     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2760
2761             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2762   ;;
2763   *-*-osf* )
2764     USE_ALPHA=1
2765     USE_OSF=1
2766     cat >>confdefs.h <<\_ACEOF
2767 #define __ALPHA__ 1
2768 _ACEOF
2769
2770     cat >>confdefs.h <<\_ACEOF
2771 #define __OSF__ 1
2772 _ACEOF
2773
2774     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2775     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2776   ;;
2777   *-*-dgux5* )
2778     USE_ALPHA=1
2779     USE_SVR4=1
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __ALPHA__ 1
2782 _ACEOF
2783
2784     cat >>confdefs.h <<\_ACEOF
2785 #define __SVR4__ 1
2786 _ACEOF
2787
2788     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2789   ;;
2790   *-*-sysv5* )
2791     USE_SYSV=1
2792     USE_SVR4=1
2793     cat >>confdefs.h <<\_ACEOF
2794 #define __SYSV__ 1
2795 _ACEOF
2796
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __SVR4__ 1
2799 _ACEOF
2800
2801     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2802   ;;
2803   *-*-aix* )
2804     USE_AIX=1
2805     USE_SYSV=1
2806     USE_SVR4=1
2807                         SO_SUFFIX=a
2808     cat >>confdefs.h <<\_ACEOF
2809 #define __AIX__ 1
2810 _ACEOF
2811
2812     cat >>confdefs.h <<\_ACEOF
2813 #define __SYSV__ 1
2814 _ACEOF
2815
2816     cat >>confdefs.h <<\_ACEOF
2817 #define __SVR4__ 1
2818 _ACEOF
2819
2820     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2821   ;;
2822
2823   *-*-*UnixWare*)
2824     USE_SYSV=1
2825     USE_SVR4=1
2826     USE_UNIXWARE=1
2827     cat >>confdefs.h <<\_ACEOF
2828 #define __UNIXWARE__ 1
2829 _ACEOF
2830
2831   ;;
2832
2833   *-*-cygwin* | *-*-mingw32* )
2834                 SO_SUFFIX=dll
2835     PROGRAM_EXT=".exe"
2836     DEFAULT_DEFAULT_wxUSE_MSW=1
2837   ;;
2838
2839   *-pc-msdosdjgpp )
2840     USE_UNIX=0
2841     USE_DOS=1
2842     cat >>confdefs.h <<\_ACEOF
2843 #define __DOS__ 1
2844 _ACEOF
2845
2846     PROGRAM_EXT=".exe"
2847     DEFAULT_DEFAULT_wxUSE_MGL=1
2848   ;;
2849
2850   *-pc-os2_emx | *-pc-os2-emx )
2851     cat >>confdefs.h <<\_ACEOF
2852 #define __EMX__ 1
2853 _ACEOF
2854
2855     USE_OS2=1
2856     cat >>confdefs.h <<\_ACEOF
2857 #define __OS2__ 1
2858 _ACEOF
2859
2860     PROGRAM_EXT=".exe"
2861     DEFAULT_DEFAULT_wxUSE_PM=1
2862         CXX=gcc
2863     LDFLAGS="$LDFLAGS -Zcrtdll"
2864                         ac_executable_extensions=".exe"
2865     export ac_executable_extensions
2866             ac_save_IFS="$IFS"
2867     IFS='\\'
2868     ac_TEMP_PATH=
2869     for ac_dir in $PATH; do
2870       IFS=$ac_save_IFS
2871       if test -z "$ac_TEMP_PATH"; then
2872         ac_TEMP_PATH="$ac_dir"
2873       else
2874         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2875       fi
2876     done
2877     export PATH="$ac_TEMP_PATH"
2878     unset ac_TEMP_PATH
2879     DEFAULT_STD_FLAG=no
2880   ;;
2881
2882   *-*-darwin* )
2883         USE_BSD=1
2884     USE_DARWIN=1
2885     SO_SUFFIX=dylib
2886     cat >>confdefs.h <<\_ACEOF
2887 #define __BSD__ 1
2888 _ACEOF
2889
2890     cat >>confdefs.h <<\_ACEOF
2891 #define __DARWIN__ 1
2892 _ACEOF
2893
2894     cat >>confdefs.h <<\_ACEOF
2895 #define TARGET_CARBON 1
2896 _ACEOF
2897
2898     DEFAULT_DEFAULT_wxUSE_MAC=1
2899     DEFAULT_STD_FLAG=no
2900   ;;
2901   powerpc-apple-macos* )
2902         USE_UNIX=0
2903             ac_cv_c_bigendian=yes
2904     SO_SUFFIX=shlib
2905             DEFAULT_DEFAULT_wxUSE_MAC=1
2906     DEFAULT_STD_FLAG=no
2907   ;;
2908
2909   *-*-beos* )
2910         USE_BEOS=1
2911     cat >>confdefs.h <<\_ACEOF
2912 #define __BEOS__ 1
2913 _ACEOF
2914
2915   ;;
2916
2917   *)
2918     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2919 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2920     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2921 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2922
2923     DEFAULT_DEFAULT_wxUSE_X11=1
2924     DEFAULT_wxUSE_SHARED=no
2925 esac
2926
2927
2928
2929
2930           wx_arg_cache_file="configarg.cache"
2931           echo "loading argument cache $wx_arg_cache_file"
2932           rm -f ${wx_arg_cache_file}.tmp
2933           touch ${wx_arg_cache_file}.tmp
2934           touch ${wx_arg_cache_file}
2935
2936
2937 DEFAULT_wxUSE_ALL_FEATURES=yes
2938
2939 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2940 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2941
2942 DEFAULT_wxUSE_DMALLOC=no
2943 DEFAULT_wxUSE_LIBGNOMEVFS=no
2944 DEFAULT_wxUSE_LIBHILDON=no
2945 DEFAULT_wxUSE_LIBMSPACK=no
2946 DEFAULT_wxUSE_LIBSDL=no
2947 DEFAULT_wxUSE_ODBC=no
2948 DEFAULT_wxUSE_OPENGL=no
2949
2950 DEFAULT_wxUSE_ACCESSIBILITY=no
2951 DEFAULT_wxUSE_DATAVIEWCTRL=no
2952 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2953 DEFAULT_wxUSE_MEDIACTRL=no
2954 DEFAULT_wxUSE_TAB_DIALOG=no
2955
2956 DEFAULT_wxUSE_UNICODE_UTF8=auto
2957 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2958
2959 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2960
2961 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2962
2963 DEFAULT_wxUSE_GTK2=yes
2964
2965 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2966
2967
2968 for toolkit in `echo $ALL_TOOLKITS`; do
2969   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2970   if test "x$LINE" != "x" ; then
2971     has_toolkit_in_cache=1
2972     eval "DEFAULT_$LINE"
2973     eval "CACHE_$toolkit=1"
2974
2975     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2976     if test "x$LINE" != "x" ; then
2977         eval "DEFAULT_$LINE"
2978     fi
2979   fi
2980 done
2981
2982
2983
2984
2985
2986           enablestring=disable
2987           defaultval=
2988           if test -z "$defaultval"; then
2989               if test x"$enablestring" = xdisable; then
2990                   defaultval=yes
2991               else
2992                   defaultval=no
2993               fi
2994           fi
2995
2996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2997 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2998           # Check whether --enable-gui was given.
2999 if test "${enable_gui+set}" = set; then
3000   enableval=$enable_gui;
3001                           if test "$enableval" = yes; then
3002                             wx_cv_use_gui='wxUSE_GUI=yes'
3003                           else
3004                             wx_cv_use_gui='wxUSE_GUI=no'
3005                           fi
3006                           cache=yes
3007
3008 else
3009
3010                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
3011                           if test "x$LINE" != x ; then
3012                               eval "DEFAULT_$LINE"
3013                               cache=yes
3014                           else
3015                               cache=no
3016                           fi
3017
3018                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3019
3020 fi
3021
3022
3023           eval "$wx_cv_use_gui"
3024           if test "x$cache" = xyes; then
3025             echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
3026           fi
3027
3028           if test x"$enablestring" = xdisable; then
3029             if test $wxUSE_GUI = yes; then
3030               result=no
3031             else
3032               result=yes
3033             fi
3034           else
3035             result=$wxUSE_GUI
3036           fi
3037
3038           { echo "$as_me:$LINENO: result: $result" >&5
3039 echo "${ECHO_T}$result" >&6; }
3040
3041
3042           enablestring=
3043           defaultval=
3044           if test -z "$defaultval"; then
3045               if test x"$enablestring" = xdisable; then
3046                   defaultval=yes
3047               else
3048                   defaultval=no
3049               fi
3050           fi
3051
3052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3053 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3054           # Check whether --enable-monolithic was given.
3055 if test "${enable_monolithic+set}" = set; then
3056   enableval=$enable_monolithic;
3057                           if test "$enableval" = yes; then
3058                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3059                           else
3060                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3061                           fi
3062                           cache=yes
3063
3064 else
3065
3066                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3067                           if test "x$LINE" != x ; then
3068                               eval "DEFAULT_$LINE"
3069                               cache=yes
3070                           else
3071                               cache=no
3072                           fi
3073
3074                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3075
3076 fi
3077
3078
3079           eval "$wx_cv_use_monolithic"
3080           if test "x$cache" = xyes; then
3081             echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
3082           fi
3083
3084           if test x"$enablestring" = xdisable; then
3085             if test $wxUSE_MONOLITHIC = yes; then
3086               result=no
3087             else
3088               result=yes
3089             fi
3090           else
3091             result=$wxUSE_MONOLITHIC
3092           fi
3093
3094           { echo "$as_me:$LINENO: result: $result" >&5
3095 echo "${ECHO_T}$result" >&6; }
3096
3097
3098           enablestring=
3099           defaultval=
3100           if test -z "$defaultval"; then
3101               if test x"$enablestring" = xdisable; then
3102                   defaultval=yes
3103               else
3104                   defaultval=no
3105               fi
3106           fi
3107
3108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3109 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3110           # Check whether --enable-plugins was given.
3111 if test "${enable_plugins+set}" = set; then
3112   enableval=$enable_plugins;
3113                           if test "$enableval" = yes; then
3114                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3115                           else
3116                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3117                           fi
3118                           cache=yes
3119
3120 else
3121
3122                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3123                           if test "x$LINE" != x ; then
3124                               eval "DEFAULT_$LINE"
3125                               cache=yes
3126                           else
3127                               cache=no
3128                           fi
3129
3130                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3131
3132 fi
3133
3134
3135           eval "$wx_cv_use_plugins"
3136           if test "x$cache" = xyes; then
3137             echo "wxUSE_PLUGINS=$wxUSE_PLUGINS" >> ${wx_arg_cache_file}.tmp
3138           fi
3139
3140           if test x"$enablestring" = xdisable; then
3141             if test $wxUSE_PLUGINS = yes; then
3142               result=no
3143             else
3144               result=yes
3145             fi
3146           else
3147             result=$wxUSE_PLUGINS
3148           fi
3149
3150           { echo "$as_me:$LINENO: result: $result" >&5
3151 echo "${ECHO_T}$result" >&6; }
3152
3153
3154           withstring=without
3155           defaultval=$wxUSE_ALL_FEATURES
3156           if test -z "$defaultval"; then
3157               if test x"$withstring" = xwithout; then
3158                   defaultval=yes
3159               else
3160                   defaultval=no
3161               fi
3162           fi
3163           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3164 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3165
3166 # Check whether --with-subdirs was given.
3167 if test "${with_subdirs+set}" = set; then
3168   withval=$with_subdirs;
3169                         if test "$withval" = yes; then
3170                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3171                         else
3172                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3173                         fi
3174                         cache=yes
3175
3176 else
3177
3178                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3179                         if test "x$LINE" != x ; then
3180                             eval "DEFAULT_$LINE"
3181                             cache=yes
3182                         else
3183                             cache=no
3184                         fi
3185
3186                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3187
3188 fi
3189
3190
3191           eval "$wx_cv_use_subdirs"
3192           if test "x$cache" = xyes; then
3193             echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
3194           fi
3195
3196           if test x"$withstring" = xwithout; then
3197             if test $wxWITH_SUBDIRS = yes; then
3198               result=no
3199             else
3200               result=yes
3201             fi
3202           else
3203             result=$wxWITH_SUBDIRS
3204           fi
3205
3206           { echo "$as_me:$LINENO: result: $result" >&5
3207 echo "${ECHO_T}$result" >&6; }
3208
3209
3210 # Check whether --with-flavour was given.
3211 if test "${with_flavour+set}" = set; then
3212   withval=$with_flavour; WX_FLAVOUR="$withval"
3213 fi
3214
3215
3216           enablestring=
3217           defaultval=
3218           if test -z "$defaultval"; then
3219               if test x"$enablestring" = xdisable; then
3220                   defaultval=yes
3221               else
3222                   defaultval=no
3223               fi
3224           fi
3225
3226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3227 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3228           # Check whether --enable-official_build was given.
3229 if test "${enable_official_build+set}" = set; then
3230   enableval=$enable_official_build;
3231                           if test "$enableval" = yes; then
3232                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3233                           else
3234                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3235                           fi
3236                           cache=yes
3237
3238 else
3239
3240                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3241                           if test "x$LINE" != x ; then
3242                               eval "DEFAULT_$LINE"
3243                               cache=yes
3244                           else
3245                               cache=no
3246                           fi
3247
3248                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3249
3250 fi
3251
3252
3253           eval "$wx_cv_use_official_build"
3254           if test "x$cache" = xyes; then
3255             echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
3256           fi
3257
3258           if test x"$enablestring" = xdisable; then
3259             if test $wxUSE_OFFICIAL_BUILD = yes; then
3260               result=no
3261             else
3262               result=yes
3263             fi
3264           else
3265             result=$wxUSE_OFFICIAL_BUILD
3266           fi
3267
3268           { echo "$as_me:$LINENO: result: $result" >&5
3269 echo "${ECHO_T}$result" >&6; }
3270
3271 # Check whether --enable-vendor was given.
3272 if test "${enable_vendor+set}" = set; then
3273   enableval=$enable_vendor; VENDOR="$enableval"
3274 fi
3275
3276 if test "x$VENDOR" = "x"; then
3277     VENDOR="custom"
3278 fi
3279
3280
3281           enablestring=disable
3282           defaultval=
3283           if test -z "$defaultval"; then
3284               if test x"$enablestring" = xdisable; then
3285                   defaultval=yes
3286               else
3287                   defaultval=no
3288               fi
3289           fi
3290
3291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3292 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3293           # Check whether --enable-all-features was given.
3294 if test "${enable_all_features+set}" = set; then
3295   enableval=$enable_all_features;
3296                           if test "$enableval" = yes; then
3297                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3298                           else
3299                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3300                           fi
3301                           cache=yes
3302
3303 else
3304
3305                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3306                           if test "x$LINE" != x ; then
3307                               eval "DEFAULT_$LINE"
3308                               cache=yes
3309                           else
3310                               cache=no
3311                           fi
3312
3313                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3314
3315 fi
3316
3317
3318           eval "$wx_cv_use_all_features"
3319           if test "x$cache" = xyes; then
3320             echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
3321           fi
3322
3323           if test x"$enablestring" = xdisable; then
3324             if test $wxUSE_ALL_FEATURES = yes; then
3325               result=no
3326             else
3327               result=yes
3328             fi
3329           else
3330             result=$wxUSE_ALL_FEATURES
3331           fi
3332
3333           { echo "$as_me:$LINENO: result: $result" >&5
3334 echo "${ECHO_T}$result" >&6; }
3335
3336
3337
3338 if test "$wxUSE_GUI" = "yes"; then
3339
3340
3341           enablestring=
3342           defaultval=
3343           if test -z "$defaultval"; then
3344               if test x"$enablestring" = xdisable; then
3345                   defaultval=yes
3346               else
3347                   defaultval=no
3348               fi
3349           fi
3350
3351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3352 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3353           # Check whether --enable-universal was given.
3354 if test "${enable_universal+set}" = set; then
3355   enableval=$enable_universal;
3356                           if test "$enableval" = yes; then
3357                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3358                           else
3359                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3360                           fi
3361                           cache=yes
3362
3363 else
3364
3365                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3366                           if test "x$LINE" != x ; then
3367                               eval "DEFAULT_$LINE"
3368                               cache=yes
3369                           else
3370                               cache=no
3371                           fi
3372
3373                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3374
3375 fi
3376
3377
3378           eval "$wx_cv_use_universal"
3379           if test "x$cache" = xyes; then
3380             echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
3381           fi
3382
3383           if test x"$enablestring" = xdisable; then
3384             if test $wxUSE_UNIVERSAL = yes; then
3385               result=no
3386             else
3387               result=yes
3388             fi
3389           else
3390             result=$wxUSE_UNIVERSAL
3391           fi
3392
3393           { echo "$as_me:$LINENO: result: $result" >&5
3394 echo "${ECHO_T}$result" >&6; }
3395
3396 if test "$wxUSE_UNIVERSAL" = "yes"; then
3397
3398 # Check whether --with-themes was given.
3399 if test "${with_themes+set}" = set; then
3400   withval=$with_themes; wxUNIV_THEMES="$withval"
3401 fi
3402
3403 fi
3404
3405
3406 # Check whether --with-gtk was given.
3407 if test "${with_gtk+set}" = set; then
3408   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3409 fi
3410
3411
3412 # Check whether --with-motif was given.
3413 if test "${with_motif+set}" = set; then
3414   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3415 fi
3416
3417
3418 # Check whether --with-mac was given.
3419 if test "${with_mac+set}" = set; then
3420   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3421 fi
3422
3423
3424 # Check whether --with-cocoa was given.
3425 if test "${with_cocoa+set}" = set; then
3426   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3427 fi
3428
3429
3430 # Check whether --with-wine was given.
3431 if test "${with_wine+set}" = set; then
3432   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3433 fi
3434
3435
3436 # Check whether --with-msw was given.
3437 if test "${with_msw+set}" = set; then
3438   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3439 fi
3440
3441
3442 # Check whether --with-pm was given.
3443 if test "${with_pm+set}" = set; then
3444   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3445 fi
3446
3447
3448 # Check whether --with-mgl was given.
3449 if test "${with_mgl+set}" = set; then
3450   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3451 fi
3452
3453
3454 # Check whether --with-directfb was given.
3455 if test "${with_directfb+set}" = set; then
3456   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3457 fi
3458
3459
3460 # Check whether --with-microwin was given.
3461 if test "${with_microwin+set}" = set; then
3462   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3463 fi
3464
3465
3466 # Check whether --with-x11 was given.
3467 if test "${with_x11+set}" = set; then
3468   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3469 fi
3470
3471
3472           enablestring=
3473           defaultval=
3474           if test -z "$defaultval"; then
3475               if test x"$enablestring" = xdisable; then
3476                   defaultval=yes
3477               else
3478                   defaultval=no
3479               fi
3480           fi
3481
3482           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3483 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3484           # Check whether --enable-nanox was given.
3485 if test "${enable_nanox+set}" = set; then
3486   enableval=$enable_nanox;
3487                           if test "$enableval" = yes; then
3488                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3489                           else
3490                             wx_cv_use_nanox='wxUSE_NANOX=no'
3491                           fi
3492                           cache=yes
3493
3494 else
3495
3496                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3497                           if test "x$LINE" != x ; then
3498                               eval "DEFAULT_$LINE"
3499                               cache=yes
3500                           else
3501                               cache=no
3502                           fi
3503
3504                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3505
3506 fi
3507
3508
3509           eval "$wx_cv_use_nanox"
3510           if test "x$cache" = xyes; then
3511             echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
3512           fi
3513
3514           if test x"$enablestring" = xdisable; then
3515             if test $wxUSE_NANOX = yes; then
3516               result=no
3517             else
3518               result=yes
3519             fi
3520           else
3521             result=$wxUSE_NANOX
3522           fi
3523
3524           { echo "$as_me:$LINENO: result: $result" >&5
3525 echo "${ECHO_T}$result" >&6; }
3526
3527
3528 # Check whether --enable-gtk2 was given.
3529 if test "${enable_gtk2+set}" = set; then
3530   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3531 fi
3532
3533
3534           enablestring=
3535           defaultval=
3536           if test -z "$defaultval"; then
3537               if test x"$enablestring" = xdisable; then
3538                   defaultval=yes
3539               else
3540                   defaultval=no
3541               fi
3542           fi
3543
3544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3545 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3546           # Check whether --enable-gpe was given.
3547 if test "${enable_gpe+set}" = set; then
3548   enableval=$enable_gpe;
3549                           if test "$enableval" = yes; then
3550                             wx_cv_use_gpe='wxUSE_GPE=yes'
3551                           else
3552                             wx_cv_use_gpe='wxUSE_GPE=no'
3553                           fi
3554                           cache=yes
3555
3556 else
3557
3558                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3559                           if test "x$LINE" != x ; then
3560                               eval "DEFAULT_$LINE"
3561                               cache=yes
3562                           else
3563                               cache=no
3564                           fi
3565
3566                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3567
3568 fi
3569
3570
3571           eval "$wx_cv_use_gpe"
3572           if test "x$cache" = xyes; then
3573             echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
3574           fi
3575
3576           if test x"$enablestring" = xdisable; then
3577             if test $wxUSE_GPE = yes; then
3578               result=no
3579             else
3580               result=yes
3581             fi
3582           else
3583             result=$wxUSE_GPE
3584           fi
3585
3586           { echo "$as_me:$LINENO: result: $result" >&5
3587 echo "${ECHO_T}$result" >&6; }
3588
3589
3590
3591
3592           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3593 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3594
3595 # Check whether --with-libpng was given.
3596 if test "${with_libpng+set}" = set; then
3597   withval=$with_libpng;
3598                         if test "$withval" = yes; then
3599                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3600                         elif test "$withval" = no; then
3601                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3602                         elif test "$withval" = sys; then
3603                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3604                         elif test "$withval" = builtin; then
3605                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3606                         else
3607                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3608 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3609    { (exit 1); exit 1; }; }
3610                         fi
3611                         cache=yes
3612
3613 else
3614
3615                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3616                         if test "x$LINE" != x ; then
3617                             eval "DEFAULT_$LINE"
3618                             cache=yes
3619                         else
3620                             cache=no
3621                         fi
3622
3623                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3624
3625 fi
3626
3627
3628           eval "$wx_cv_use_libpng"
3629           if test "x$cache" = xyes; then
3630             echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
3631           fi
3632
3633           if test "$wxUSE_LIBPNG" = yes; then
3634             { echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6; }
3636           elif test "$wxUSE_LIBPNG" = no; then
3637             { echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6; }
3639           elif test "$wxUSE_LIBPNG" = sys; then
3640             { echo "$as_me:$LINENO: result: system version" >&5
3641 echo "${ECHO_T}system version" >&6; }
3642           elif test "$wxUSE_LIBPNG" = builtin; then
3643             { echo "$as_me:$LINENO: result: builtin version" >&5
3644 echo "${ECHO_T}builtin version" >&6; }
3645           else
3646             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3647 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3648    { (exit 1); exit 1; }; }
3649           fi
3650
3651
3652           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3653 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3654
3655 # Check whether --with-libjpeg was given.
3656 if test "${with_libjpeg+set}" = set; then
3657   withval=$with_libjpeg;
3658                         if test "$withval" = yes; then
3659                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3660                         elif test "$withval" = no; then
3661                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3662                         elif test "$withval" = sys; then
3663                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3664                         elif test "$withval" = builtin; then
3665                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3666                         else
3667                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3668 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3669    { (exit 1); exit 1; }; }
3670                         fi
3671                         cache=yes
3672
3673 else
3674
3675                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3676                         if test "x$LINE" != x ; then
3677                             eval "DEFAULT_$LINE"
3678                             cache=yes
3679                         else
3680                             cache=no
3681                         fi
3682
3683                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3684
3685 fi
3686
3687
3688           eval "$wx_cv_use_libjpeg"
3689           if test "x$cache" = xyes; then
3690             echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
3691           fi
3692
3693           if test "$wxUSE_LIBJPEG" = yes; then
3694             { echo "$as_me:$LINENO: result: yes" >&5
3695 echo "${ECHO_T}yes" >&6; }
3696           elif test "$wxUSE_LIBJPEG" = no; then
3697             { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3699           elif test "$wxUSE_LIBJPEG" = sys; then
3700             { echo "$as_me:$LINENO: result: system version" >&5
3701 echo "${ECHO_T}system version" >&6; }
3702           elif test "$wxUSE_LIBJPEG" = builtin; then
3703             { echo "$as_me:$LINENO: result: builtin version" >&5
3704 echo "${ECHO_T}builtin version" >&6; }
3705           else
3706             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3707 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3708    { (exit 1); exit 1; }; }
3709           fi
3710
3711
3712           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3713 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3714
3715 # Check whether --with-libtiff was given.
3716 if test "${with_libtiff+set}" = set; then
3717   withval=$with_libtiff;
3718                         if test "$withval" = yes; then
3719                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3720                         elif test "$withval" = no; then
3721                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3722                         elif test "$withval" = sys; then
3723                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3724                         elif test "$withval" = builtin; then
3725                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3726                         else
3727                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3728 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3729    { (exit 1); exit 1; }; }
3730                         fi
3731                         cache=yes
3732
3733 else
3734
3735                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3736                         if test "x$LINE" != x ; then
3737                             eval "DEFAULT_$LINE"
3738                             cache=yes
3739                         else
3740                             cache=no
3741                         fi
3742
3743                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3744
3745 fi
3746
3747
3748           eval "$wx_cv_use_libtiff"
3749           if test "x$cache" = xyes; then
3750             echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
3751           fi
3752
3753           if test "$wxUSE_LIBTIFF" = yes; then
3754             { echo "$as_me:$LINENO: result: yes" >&5
3755 echo "${ECHO_T}yes" >&6; }
3756           elif test "$wxUSE_LIBTIFF" = no; then
3757             { echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6; }
3759           elif test "$wxUSE_LIBTIFF" = sys; then
3760             { echo "$as_me:$LINENO: result: system version" >&5
3761 echo "${ECHO_T}system version" >&6; }
3762           elif test "$wxUSE_LIBTIFF" = builtin; then
3763             { echo "$as_me:$LINENO: result: builtin version" >&5
3764 echo "${ECHO_T}builtin version" >&6; }
3765           else
3766             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3767 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3768    { (exit 1); exit 1; }; }
3769           fi
3770
3771
3772           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3773 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3774
3775 # Check whether --with-libxpm was given.
3776 if test "${with_libxpm+set}" = set; then
3777   withval=$with_libxpm;
3778                         if test "$withval" = yes; then
3779                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3780                         elif test "$withval" = no; then
3781                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3782                         elif test "$withval" = sys; then
3783                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3784                         elif test "$withval" = builtin; then
3785                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3786                         else
3787                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3788 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3789    { (exit 1); exit 1; }; }
3790                         fi
3791                         cache=yes
3792
3793 else
3794
3795                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3796                         if test "x$LINE" != x ; then
3797                             eval "DEFAULT_$LINE"
3798                             cache=yes
3799                         else
3800                             cache=no
3801                         fi
3802
3803                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3804
3805 fi
3806
3807
3808           eval "$wx_cv_use_libxpm"
3809           if test "x$cache" = xyes; then
3810             echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
3811           fi
3812
3813           if test "$wxUSE_LIBXPM" = yes; then
3814             { echo "$as_me:$LINENO: result: yes" >&5
3815 echo "${ECHO_T}yes" >&6; }
3816           elif test "$wxUSE_LIBXPM" = no; then
3817             { echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6; }
3819           elif test "$wxUSE_LIBXPM" = sys; then
3820             { echo "$as_me:$LINENO: result: system version" >&5
3821 echo "${ECHO_T}system version" >&6; }
3822           elif test "$wxUSE_LIBXPM" = builtin; then
3823             { echo "$as_me:$LINENO: result: builtin version" >&5
3824 echo "${ECHO_T}builtin version" >&6; }
3825           else
3826             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3827 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3828    { (exit 1); exit 1; }; }
3829           fi
3830
3831
3832           withstring=
3833           defaultval=$wxUSE_ALL_FEATURES
3834           if test -z "$defaultval"; then
3835               if test x"$withstring" = xwithout; then
3836                   defaultval=yes
3837               else
3838                   defaultval=no
3839               fi
3840           fi
3841           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3842 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3843
3844 # Check whether --with-libmspack was given.
3845 if test "${with_libmspack+set}" = set; then
3846   withval=$with_libmspack;
3847                         if test "$withval" = yes; then
3848                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3849                         else
3850                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3851                         fi
3852                         cache=yes
3853
3854 else
3855
3856                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3857                         if test "x$LINE" != x ; then
3858                             eval "DEFAULT_$LINE"
3859                             cache=yes
3860                         else
3861                             cache=no
3862                         fi
3863
3864                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3865
3866 fi
3867
3868
3869           eval "$wx_cv_use_libmspack"
3870           if test "x$cache" = xyes; then
3871             echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
3872           fi
3873
3874           if test x"$withstring" = xwithout; then
3875             if test $wxUSE_LIBMSPACK = yes; then
3876               result=no
3877             else
3878               result=yes
3879             fi
3880           else
3881             result=$wxUSE_LIBMSPACK
3882           fi
3883
3884           { echo "$as_me:$LINENO: result: $result" >&5
3885 echo "${ECHO_T}$result" >&6; }
3886
3887
3888           withstring=without
3889           defaultval=$wxUSE_ALL_FEATURES
3890           if test -z "$defaultval"; then
3891               if test x"$withstring" = xwithout; then
3892                   defaultval=yes
3893               else
3894                   defaultval=no
3895               fi
3896           fi
3897           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3898 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3899
3900 # Check whether --with-gtkprint was given.
3901 if test "${with_gtkprint+set}" = set; then
3902   withval=$with_gtkprint;
3903                         if test "$withval" = yes; then
3904                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3905                         else
3906                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3907                         fi
3908                         cache=yes
3909
3910 else
3911
3912                         LINE=`grep "^wxUSE_GTKPRINT=" ${wx_arg_cache_file}`
3913                         if test "x$LINE" != x ; then
3914                             eval "DEFAULT_$LINE"
3915                             cache=yes
3916                         else
3917                             cache=no
3918                         fi
3919
3920                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3921
3922 fi
3923
3924
3925           eval "$wx_cv_use_gtkprint"
3926           if test "x$cache" = xyes; then
3927             echo "wxUSE_GTKPRINT=$wxUSE_GTKPRINT" >> ${wx_arg_cache_file}.tmp
3928           fi
3929
3930           if test x"$withstring" = xwithout; then
3931             if test $wxUSE_GTKPRINT = yes; then
3932               result=no
3933             else
3934               result=yes
3935             fi
3936           else
3937             result=$wxUSE_GTKPRINT
3938           fi
3939
3940           { echo "$as_me:$LINENO: result: $result" >&5
3941 echo "${ECHO_T}$result" >&6; }
3942
3943
3944           withstring=without
3945           defaultval=$wxUSE_ALL_FEATURES
3946           if test -z "$defaultval"; then
3947               if test x"$withstring" = xwithout; then
3948                   defaultval=yes
3949               else
3950                   defaultval=no
3951               fi
3952           fi
3953           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3954 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3955
3956 # Check whether --with-gnomeprint was given.
3957 if test "${with_gnomeprint+set}" = set; then
3958   withval=$with_gnomeprint;
3959                         if test "$withval" = yes; then
3960                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3961                         else
3962                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3963                         fi
3964                         cache=yes
3965
3966 else
3967
3968                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3969                         if test "x$LINE" != x ; then
3970                             eval "DEFAULT_$LINE"
3971                             cache=yes
3972                         else
3973                             cache=no
3974                         fi
3975
3976                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3977
3978 fi
3979
3980
3981           eval "$wx_cv_use_gnomeprint"
3982           if test "x$cache" = xyes; then
3983             echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
3984           fi
3985
3986           if test x"$withstring" = xwithout; then
3987             if test $wxUSE_LIBGNOMEPRINT = yes; then
3988               result=no
3989             else
3990               result=yes
3991             fi
3992           else
3993             result=$wxUSE_LIBGNOMEPRINT
3994           fi
3995
3996           { echo "$as_me:$LINENO: result: $result" >&5
3997 echo "${ECHO_T}$result" >&6; }
3998
3999
4000           withstring=
4001           defaultval=$wxUSE_ALL_FEATURES
4002           if test -z "$defaultval"; then
4003               if test x"$withstring" = xwithout; then
4004                   defaultval=yes
4005               else
4006                   defaultval=no
4007               fi
4008           fi
4009           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4010 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4011
4012 # Check whether --with-gnomevfs was given.
4013 if test "${with_gnomevfs+set}" = set; then
4014   withval=$with_gnomevfs;
4015                         if test "$withval" = yes; then
4016                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4017                         else
4018                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4019                         fi
4020                         cache=yes
4021
4022 else
4023
4024                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
4025                         if test "x$LINE" != x ; then
4026                             eval "DEFAULT_$LINE"
4027                             cache=yes
4028                         else
4029                             cache=no
4030                         fi
4031
4032                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4033
4034 fi
4035
4036
4037           eval "$wx_cv_use_gnomevfs"
4038           if test "x$cache" = xyes; then
4039             echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
4040           fi
4041
4042           if test x"$withstring" = xwithout; then
4043             if test $wxUSE_LIBGNOMEVFS = yes; then
4044               result=no
4045             else
4046               result=yes
4047             fi
4048           else
4049             result=$wxUSE_LIBGNOMEVFS
4050           fi
4051
4052           { echo "$as_me:$LINENO: result: $result" >&5
4053 echo "${ECHO_T}$result" >&6; }
4054
4055
4056           withstring=
4057           defaultval=$wxUSE_ALL_FEATURES
4058           if test -z "$defaultval"; then
4059               if test x"$withstring" = xwithout; then
4060                   defaultval=yes
4061               else
4062                   defaultval=no
4063               fi
4064           fi
4065           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4066 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4067
4068 # Check whether --with-hildon was given.
4069 if test "${with_hildon+set}" = set; then
4070   withval=$with_hildon;
4071                         if test "$withval" = yes; then
4072                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4073                         else
4074                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4075                         fi
4076                         cache=yes
4077
4078 else
4079
4080                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
4081                         if test "x$LINE" != x ; then
4082                             eval "DEFAULT_$LINE"
4083                             cache=yes
4084                         else
4085                             cache=no
4086                         fi
4087
4088                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4089
4090 fi
4091
4092
4093           eval "$wx_cv_use_hildon"
4094           if test "x$cache" = xyes; then
4095             echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
4096           fi
4097
4098           if test x"$withstring" = xwithout; then
4099             if test $wxUSE_LIBHILDON = yes; then
4100               result=no
4101             else
4102               result=yes
4103             fi
4104           else
4105             result=$wxUSE_LIBHILDON
4106           fi
4107
4108           { echo "$as_me:$LINENO: result: $result" >&5
4109 echo "${ECHO_T}$result" >&6; }
4110
4111
4112           withstring=
4113           defaultval=$wxUSE_ALL_FEATURES
4114           if test -z "$defaultval"; then
4115               if test x"$withstring" = xwithout; then
4116                   defaultval=yes
4117               else
4118                   defaultval=no
4119               fi
4120           fi
4121           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4122 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4123
4124 # Check whether --with-opengl was given.
4125 if test "${with_opengl+set}" = set; then
4126   withval=$with_opengl;
4127                         if test "$withval" = yes; then
4128                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4129                         else
4130                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4131                         fi
4132                         cache=yes
4133
4134 else
4135
4136                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4137                         if test "x$LINE" != x ; then
4138                             eval "DEFAULT_$LINE"
4139                             cache=yes
4140                         else
4141                             cache=no
4142                         fi
4143
4144                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4145
4146 fi
4147
4148
4149           eval "$wx_cv_use_opengl"
4150           if test "x$cache" = xyes; then
4151             echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
4152           fi
4153
4154           if test x"$withstring" = xwithout; then
4155             if test $wxUSE_OPENGL = yes; then
4156               result=no
4157             else
4158               result=yes
4159             fi
4160           else
4161             result=$wxUSE_OPENGL
4162           fi
4163
4164           { echo "$as_me:$LINENO: result: $result" >&5
4165 echo "${ECHO_T}$result" >&6; }
4166
4167
4168 fi
4169
4170
4171           withstring=
4172           defaultval=$wxUSE_ALL_FEATURES
4173           if test -z "$defaultval"; then
4174               if test x"$withstring" = xwithout; then
4175                   defaultval=yes
4176               else
4177                   defaultval=no
4178               fi
4179           fi
4180           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4181 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4182
4183 # Check whether --with-dmalloc was given.
4184 if test "${with_dmalloc+set}" = set; then
4185   withval=$with_dmalloc;
4186                         if test "$withval" = yes; then
4187                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4188                         else
4189                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4190                         fi
4191                         cache=yes
4192
4193 else
4194
4195                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4196                         if test "x$LINE" != x ; then
4197                             eval "DEFAULT_$LINE"
4198                             cache=yes
4199                         else
4200                             cache=no
4201                         fi
4202
4203                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4204
4205 fi
4206
4207
4208           eval "$wx_cv_use_dmalloc"
4209           if test "x$cache" = xyes; then
4210             echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
4211           fi
4212
4213           if test x"$withstring" = xwithout; then
4214             if test $wxUSE_DMALLOC = yes; then
4215               result=no
4216             else
4217               result=yes
4218             fi
4219           else
4220             result=$wxUSE_DMALLOC
4221           fi
4222
4223           { echo "$as_me:$LINENO: result: $result" >&5
4224 echo "${ECHO_T}$result" >&6; }
4225
4226
4227           withstring=
4228           defaultval=$wxUSE_ALL_FEATURES
4229           if test -z "$defaultval"; then
4230               if test x"$withstring" = xwithout; then
4231                   defaultval=yes
4232               else
4233                   defaultval=no
4234               fi
4235           fi
4236           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4237 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4238
4239 # Check whether --with-sdl was given.
4240 if test "${with_sdl+set}" = set; then
4241   withval=$with_sdl;
4242                         if test "$withval" = yes; then
4243                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4244                         else
4245                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4246                         fi
4247                         cache=yes
4248
4249 else
4250
4251                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4252                         if test "x$LINE" != x ; then
4253                             eval "DEFAULT_$LINE"
4254                             cache=yes
4255                         else
4256                             cache=no
4257                         fi
4258
4259                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4260
4261 fi
4262
4263
4264           eval "$wx_cv_use_sdl"
4265           if test "x$cache" = xyes; then
4266             echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
4267           fi
4268
4269           if test x"$withstring" = xwithout; then
4270             if test $wxUSE_LIBSDL = yes; then
4271               result=no
4272             else
4273               result=yes
4274             fi
4275           else
4276             result=$wxUSE_LIBSDL
4277           fi
4278
4279           { echo "$as_me:$LINENO: result: $result" >&5
4280 echo "${ECHO_T}$result" >&6; }
4281
4282
4283           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4284 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4285
4286 # Check whether --with-regex was given.
4287 if test "${with_regex+set}" = set; then
4288   withval=$with_regex;
4289                         if test "$withval" = yes; then
4290                           wx_cv_use_regex='wxUSE_REGEX=yes'
4291                         elif test "$withval" = no; then
4292                           wx_cv_use_regex='wxUSE_REGEX=no'
4293                         elif test "$withval" = sys; then
4294                           wx_cv_use_regex='wxUSE_REGEX=sys'
4295                         elif test "$withval" = builtin; then
4296                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4297                         else
4298                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4299 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4300    { (exit 1); exit 1; }; }
4301                         fi
4302                         cache=yes
4303
4304 else
4305
4306                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4307                         if test "x$LINE" != x ; then
4308                             eval "DEFAULT_$LINE"
4309                             cache=yes
4310                         else
4311                             cache=no
4312                         fi
4313
4314                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4315
4316 fi
4317
4318
4319           eval "$wx_cv_use_regex"
4320           if test "x$cache" = xyes; then
4321             echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
4322           fi
4323
4324           if test "$wxUSE_REGEX" = yes; then
4325             { echo "$as_me:$LINENO: result: yes" >&5
4326 echo "${ECHO_T}yes" >&6; }
4327           elif test "$wxUSE_REGEX" = no; then
4328             { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4330           elif test "$wxUSE_REGEX" = sys; then
4331             { echo "$as_me:$LINENO: result: system version" >&5
4332 echo "${ECHO_T}system version" >&6; }
4333           elif test "$wxUSE_REGEX" = builtin; then
4334             { echo "$as_me:$LINENO: result: builtin version" >&5
4335 echo "${ECHO_T}builtin version" >&6; }
4336           else
4337             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4338 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4339    { (exit 1); exit 1; }; }
4340           fi
4341
4342
4343           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4344 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4345
4346 # Check whether --with-zlib was given.
4347 if test "${with_zlib+set}" = set; then
4348   withval=$with_zlib;
4349                         if test "$withval" = yes; then
4350                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4351                         elif test "$withval" = no; then
4352                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4353                         elif test "$withval" = sys; then
4354                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4355                         elif test "$withval" = builtin; then
4356                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4357                         else
4358                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4359 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4360    { (exit 1); exit 1; }; }
4361                         fi
4362                         cache=yes
4363
4364 else
4365
4366                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4367                         if test "x$LINE" != x ; then
4368                             eval "DEFAULT_$LINE"
4369                             cache=yes
4370                         else
4371                             cache=no
4372                         fi
4373
4374                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4375
4376 fi
4377
4378
4379           eval "$wx_cv_use_zlib"
4380           if test "x$cache" = xyes; then
4381             echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
4382           fi
4383
4384           if test "$wxUSE_ZLIB" = yes; then
4385             { echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6; }
4387           elif test "$wxUSE_ZLIB" = no; then
4388             { echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6; }
4390           elif test "$wxUSE_ZLIB" = sys; then
4391             { echo "$as_me:$LINENO: result: system version" >&5
4392 echo "${ECHO_T}system version" >&6; }
4393           elif test "$wxUSE_ZLIB" = builtin; then
4394             { echo "$as_me:$LINENO: result: builtin version" >&5
4395 echo "${ECHO_T}builtin version" >&6; }
4396           else
4397             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4398 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4399    { (exit 1); exit 1; }; }
4400           fi
4401
4402
4403           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4404 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4405
4406 # Check whether --with-odbc was given.
4407 if test "${with_odbc+set}" = set; then
4408   withval=$with_odbc;
4409                         if test "$withval" = yes; then
4410                           wx_cv_use_odbc='wxUSE_ODBC=yes'
4411                         elif test "$withval" = no; then
4412                           wx_cv_use_odbc='wxUSE_ODBC=no'
4413                         elif test "$withval" = sys; then
4414                           wx_cv_use_odbc='wxUSE_ODBC=sys'
4415                         elif test "$withval" = builtin; then
4416                           wx_cv_use_odbc='wxUSE_ODBC=builtin'
4417                         else
4418                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4419 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4420    { (exit 1); exit 1; }; }
4421                         fi
4422                         cache=yes
4423
4424 else
4425
4426                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4427                         if test "x$LINE" != x ; then
4428                             eval "DEFAULT_$LINE"
4429                             cache=yes
4430                         else
4431                             cache=no
4432                         fi
4433
4434                         wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
4435
4436 fi
4437
4438
4439           eval "$wx_cv_use_odbc"
4440           if test "x$cache" = xyes; then
4441             echo "wxUSE_ODBC=$wxUSE_ODBC" >> ${wx_arg_cache_file}.tmp
4442           fi
4443
4444           if test "$wxUSE_ODBC" = yes; then
4445             { echo "$as_me:$LINENO: result: yes" >&5
4446 echo "${ECHO_T}yes" >&6; }
4447           elif test "$wxUSE_ODBC" = no; then
4448             { echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6; }
4450           elif test "$wxUSE_ODBC" = sys; then
4451             { echo "$as_me:$LINENO: result: system version" >&5
4452 echo "${ECHO_T}system version" >&6; }
4453           elif test "$wxUSE_ODBC" = builtin; then
4454             { echo "$as_me:$LINENO: result: builtin version" >&5
4455 echo "${ECHO_T}builtin version" >&6; }
4456           else
4457             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4458 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4459    { (exit 1); exit 1; }; }
4460           fi
4461
4462
4463           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4464 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4465
4466 # Check whether --with-expat was given.
4467 if test "${with_expat+set}" = set; then
4468   withval=$with_expat;
4469                         if test "$withval" = yes; then
4470                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4471                         elif test "$withval" = no; then
4472                           wx_cv_use_expat='wxUSE_EXPAT=no'
4473                         elif test "$withval" = sys; then
4474                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4475                         elif test "$withval" = builtin; then
4476                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4477                         else
4478                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4479 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4480    { (exit 1); exit 1; }; }
4481                         fi
4482                         cache=yes
4483
4484 else
4485
4486                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4487                         if test "x$LINE" != x ; then
4488                             eval "DEFAULT_$LINE"
4489                             cache=yes
4490                         else
4491                             cache=no
4492                         fi
4493
4494                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4495
4496 fi
4497
4498
4499           eval "$wx_cv_use_expat"
4500           if test "x$cache" = xyes; then
4501             echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
4502           fi
4503
4504           if test "$wxUSE_EXPAT" = yes; then
4505             { echo "$as_me:$LINENO: result: yes" >&5
4506 echo "${ECHO_T}yes" >&6; }
4507           elif test "$wxUSE_EXPAT" = no; then
4508             { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4510           elif test "$wxUSE_EXPAT" = sys; then
4511             { echo "$as_me:$LINENO: result: system version" >&5
4512 echo "${ECHO_T}system version" >&6; }
4513           elif test "$wxUSE_EXPAT" = builtin; then
4514             { echo "$as_me:$LINENO: result: builtin version" >&5
4515 echo "${ECHO_T}builtin version" >&6; }
4516           else
4517             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4518 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4519    { (exit 1); exit 1; }; }
4520           fi
4521
4522
4523 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4524 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4525
4526 # Check whether --with-macosx-sdk was given.
4527 if test "${with_macosx_sdk+set}" = set; then
4528   withval=$with_macosx_sdk;
4529         wxUSE_MACOSX_SDK=$withval
4530         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4531         echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
4532
4533 else
4534
4535         # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
4536         # will override --enable-universal_binary's automatic SDK usage.
4537         wxUSE_MACOSX_SDK=
4538         LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
4539         if test "x$LINE" != x ; then
4540             eval "$LINE"
4541             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4542         fi
4543
4544 fi
4545
4546 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4547 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4548
4549 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4550 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4551
4552 # Check whether --with-macosx-version-min was given.
4553 if test "${with_macosx_version_min+set}" = set; then
4554   withval=$with_macosx_version_min;
4555         wxUSE_MACOSX_VERSION_MIN=$withval
4556         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4557         echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
4558
4559 else
4560
4561         # default "yes" because when not using an SDK it means the same as no
4562         # but when using an SDK it means to use the SDK version
4563         wxUSE_MACOSX_VERSION_MIN=yes
4564         # See if there is a value in the cache
4565         LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
4566         if test "x$LINE" != x ; then
4567             eval "$LINE"
4568             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4569         fi
4570
4571 fi
4572
4573 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4574 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4575
4576
4577
4578           enablestring=disable
4579           defaultval=
4580           if test -z "$defaultval"; then
4581               if test x"$enablestring" = xdisable; then
4582                   defaultval=yes
4583               else
4584                   defaultval=no
4585               fi
4586           fi
4587
4588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4589 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4590           # Check whether --enable-shared was given.
4591 if test "${enable_shared+set}" = set; then
4592   enableval=$enable_shared;
4593                           if test "$enableval" = yes; then
4594                             wx_cv_use_shared='wxUSE_SHARED=yes'
4595                           else
4596                             wx_cv_use_shared='wxUSE_SHARED=no'
4597                           fi
4598                           cache=yes
4599
4600 else
4601
4602                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4603                           if test "x$LINE" != x ; then
4604                               eval "DEFAULT_$LINE"
4605                               cache=yes
4606                           else
4607                               cache=no
4608                           fi
4609
4610                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4611
4612 fi
4613
4614
4615           eval "$wx_cv_use_shared"
4616           if test "x$cache" = xyes; then
4617             echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
4618           fi
4619
4620           if test x"$enablestring" = xdisable; then
4621             if test $wxUSE_SHARED = yes; then
4622               result=no
4623             else
4624               result=yes
4625             fi
4626           else
4627             result=$wxUSE_SHARED
4628           fi
4629
4630           { echo "$as_me:$LINENO: result: $result" >&5
4631 echo "${ECHO_T}$result" >&6; }
4632
4633
4634           enablestring=disable
4635           defaultval=
4636           if test -z "$defaultval"; then
4637               if test x"$enablestring" = xdisable; then
4638                   defaultval=yes
4639               else
4640                   defaultval=no
4641               fi
4642           fi
4643
4644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4645 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4646           # Check whether --enable-optimise was given.
4647 if test "${enable_optimise+set}" = set; then
4648   enableval=$enable_optimise;
4649                           if test "$enableval" = yes; then
4650                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4651                           else
4652                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4653                           fi
4654                           cache=yes
4655
4656 else
4657
4658                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4659                           if test "x$LINE" != x ; then
4660                               eval "DEFAULT_$LINE"
4661                               cache=yes
4662                           else
4663                               cache=no
4664                           fi
4665
4666                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4667
4668 fi
4669
4670
4671           eval "$wx_cv_use_optimise"
4672           if test "x$cache" = xyes; then
4673             echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
4674           fi
4675
4676           if test x"$enablestring" = xdisable; then
4677             if test $wxUSE_OPTIMISE = yes; then
4678               result=no
4679             else
4680               result=yes
4681             fi
4682           else
4683             result=$wxUSE_OPTIMISE
4684           fi
4685
4686           { echo "$as_me:$LINENO: result: $result" >&5
4687 echo "${ECHO_T}$result" >&6; }
4688
4689
4690           enablestring=
4691           defaultval=
4692           if test -z "$defaultval"; then
4693               if test x"$enablestring" = xdisable; then
4694                   defaultval=yes
4695               else
4696                   defaultval=no
4697               fi
4698           fi
4699
4700           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4701 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4702           # Check whether --enable-debug was given.
4703 if test "${enable_debug+set}" = set; then
4704   enableval=$enable_debug;
4705                           if test "$enableval" = yes; then
4706                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4707                           else
4708                             wx_cv_use_debug='wxUSE_DEBUG=no'
4709                           fi
4710                           cache=yes
4711
4712 else
4713
4714                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4715                           if test "x$LINE" != x ; then
4716                               eval "DEFAULT_$LINE"
4717                               cache=yes
4718                           else
4719                               cache=no
4720                           fi
4721
4722                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4723
4724 fi
4725
4726
4727           eval "$wx_cv_use_debug"
4728           if test "x$cache" = xyes; then
4729             echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
4730           fi
4731
4732           if test x"$enablestring" = xdisable; then
4733             if test $wxUSE_DEBUG = yes; then
4734               result=no
4735             else
4736               result=yes
4737             fi
4738           else
4739             result=$wxUSE_DEBUG
4740           fi
4741
4742           { echo "$as_me:$LINENO: result: $result" >&5
4743 echo "${ECHO_T}$result" >&6; }
4744
4745
4746           enablestring=
4747           defaultval=
4748           if test -z "$defaultval"; then
4749               if test x"$enablestring" = xdisable; then
4750                   defaultval=yes
4751               else
4752                   defaultval=no
4753               fi
4754           fi
4755
4756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4757 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4758           # Check whether --enable-stl was given.
4759 if test "${enable_stl+set}" = set; then
4760   enableval=$enable_stl;
4761                           if test "$enableval" = yes; then
4762                             wx_cv_use_stl='wxUSE_STL=yes'
4763                           else
4764                             wx_cv_use_stl='wxUSE_STL=no'
4765                           fi
4766                           cache=yes
4767
4768 else
4769
4770                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4771                           if test "x$LINE" != x ; then
4772                               eval "DEFAULT_$LINE"
4773                               cache=yes
4774                           else
4775                               cache=no
4776                           fi
4777
4778                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4779
4780 fi
4781
4782
4783           eval "$wx_cv_use_stl"
4784           if test "x$cache" = xyes; then
4785             echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
4786           fi
4787
4788           if test x"$enablestring" = xdisable; then
4789             if test $wxUSE_STL = yes; then
4790               result=no
4791             else
4792               result=yes
4793             fi
4794           else
4795             result=$wxUSE_STL
4796           fi
4797
4798           { echo "$as_me:$LINENO: result: $result" >&5
4799 echo "${ECHO_T}$result" >&6; }
4800
4801
4802           enablestring=
4803           defaultval=
4804           if test -z "$defaultval"; then
4805               if test x"$enablestring" = xdisable; then
4806                   defaultval=yes
4807               else
4808                   defaultval=no
4809               fi
4810           fi
4811
4812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4813 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4814           # Check whether --enable-std_iostreams was given.
4815 if test "${enable_std_iostreams+set}" = set; then
4816   enableval=$enable_std_iostreams;
4817                           if test "$enableval" = yes; then
4818                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4819                           else
4820                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4821                           fi
4822                           cache=yes
4823
4824 else
4825
4826                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4827                           if test "x$LINE" != x ; then
4828                               eval "DEFAULT_$LINE"
4829                               cache=yes
4830                           else
4831                               cache=no
4832                           fi
4833
4834                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4835
4836 fi
4837
4838
4839           eval "$wx_cv_use_std_iostreams"
4840           if test "x$cache" = xyes; then
4841             echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
4842           fi
4843
4844           if test x"$enablestring" = xdisable; then
4845             if test $wxUSE_STD_IOSTREAM = yes; then
4846               result=no
4847             else
4848               result=yes
4849             fi
4850           else
4851             result=$wxUSE_STD_IOSTREAM
4852           fi
4853
4854           { echo "$as_me:$LINENO: result: $result" >&5
4855 echo "${ECHO_T}$result" >&6; }
4856
4857
4858           enablestring=
4859           defaultval=
4860           if test -z "$defaultval"; then
4861               if test x"$enablestring" = xdisable; then
4862                   defaultval=yes
4863               else
4864                   defaultval=no
4865               fi
4866           fi
4867
4868           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4869 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4870           # Check whether --enable-std_string was given.
4871 if test "${enable_std_string+set}" = set; then
4872   enableval=$enable_std_string;
4873                           if test "$enableval" = yes; then
4874                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4875                           else
4876                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4877                           fi
4878                           cache=yes
4879
4880 else
4881
4882                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4883                           if test "x$LINE" != x ; then
4884                               eval "DEFAULT_$LINE"
4885                               cache=yes
4886                           else
4887                               cache=no
4888                           fi
4889
4890                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4891
4892 fi
4893
4894
4895           eval "$wx_cv_use_std_string"
4896           if test "x$cache" = xyes; then
4897             echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
4898           fi
4899
4900           if test x"$enablestring" = xdisable; then
4901             if test $wxUSE_STD_STRING = yes; then
4902               result=no
4903             else
4904               result=yes
4905             fi
4906           else
4907             result=$wxUSE_STD_STRING
4908           fi
4909
4910           { echo "$as_me:$LINENO: result: $result" >&5
4911 echo "${ECHO_T}$result" >&6; }
4912
4913
4914           enablestring=disable
4915           defaultval=
4916           if test -z "$defaultval"; then
4917               if test x"$enablestring" = xdisable; then
4918                   defaultval=yes
4919               else
4920                   defaultval=no
4921               fi
4922           fi
4923
4924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4925 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4926           # Check whether --enable-unicode was given.
4927 if test "${enable_unicode+set}" = set; then
4928   enableval=$enable_unicode;
4929                           if test "$enableval" = yes; then
4930                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4931                           else
4932                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4933                           fi
4934                           cache=yes
4935
4936 else
4937
4938                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4939                           if test "x$LINE" != x ; then
4940                               eval "DEFAULT_$LINE"
4941                               cache=yes
4942                           else
4943                               cache=no
4944                           fi
4945
4946                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4947
4948 fi
4949
4950
4951           eval "$wx_cv_use_unicode"
4952           if test "x$cache" = xyes; then
4953             echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
4954           fi
4955
4956           if test x"$enablestring" = xdisable; then
4957             if test $wxUSE_UNICODE = yes; then
4958               result=no
4959             else
4960               result=yes
4961             fi
4962           else
4963             result=$wxUSE_UNICODE
4964           fi
4965
4966           { echo "$as_me:$LINENO: result: $result" >&5
4967 echo "${ECHO_T}$result" >&6; }
4968
4969
4970           enablestring=
4971           defaultval=
4972           if test -z "$defaultval"; then
4973               if test x"$enablestring" = xdisable; then
4974                   defaultval=yes
4975               else
4976                   defaultval=no
4977               fi
4978           fi
4979
4980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4981 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4982           # Check whether --enable-mslu was given.
4983 if test "${enable_mslu+set}" = set; then
4984   enableval=$enable_mslu;
4985                           if test "$enableval" = yes; then
4986                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4987                           else
4988                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4989                           fi
4990                           cache=yes
4991
4992 else
4993
4994                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4995                           if test "x$LINE" != x ; then
4996                               eval "DEFAULT_$LINE"
4997                               cache=yes
4998                           else
4999                               cache=no
5000                           fi
5001
5002                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
5003
5004 fi
5005
5006
5007           eval "$wx_cv_use_mslu"
5008           if test "x$cache" = xyes; then
5009             echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
5010           fi
5011
5012           if test x"$enablestring" = xdisable; then
5013             if test $wxUSE_UNICODE_MSLU = yes; then
5014               result=no
5015             else
5016               result=yes
5017             fi
5018           else
5019             result=$wxUSE_UNICODE_MSLU
5020           fi
5021
5022           { echo "$as_me:$LINENO: result: $result" >&5
5023 echo "${ECHO_T}$result" >&6; }
5024
5025
5026           enablestring=
5027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
5028 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
5029           # Check whether --enable-utf8 was given.
5030 if test "${enable_utf8+set}" = set; then
5031   enableval=$enable_utf8;
5032                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
5033                           cache=yes
5034
5035 else
5036
5037                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
5038                           if test "x$LINE" != x ; then
5039                             eval "DEFAULT_$LINE"
5040                             cache=yes
5041                           else
5042                             cache=no
5043                           fi
5044
5045                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
5046
5047 fi
5048
5049
5050           eval "$wx_cv_use_utf8"
5051           if test "x$cache" = xyes; then
5052             echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
5053           fi
5054
5055           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
5056 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
5057
5058
5059           enablestring=
5060           defaultval=
5061           if test -z "$defaultval"; then
5062               if test x"$enablestring" = xdisable; then
5063                   defaultval=yes
5064               else
5065                   defaultval=no
5066               fi
5067           fi
5068
5069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5070 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5071           # Check whether --enable-utf8only was given.
5072 if test "${enable_utf8only+set}" = set; then
5073   enableval=$enable_utf8only;
5074                           if test "$enableval" = yes; then
5075                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5076                           else
5077                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5078                           fi
5079                           cache=yes
5080
5081 else
5082
5083                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
5084                           if test "x$LINE" != x ; then
5085                               eval "DEFAULT_$LINE"
5086                               cache=yes
5087                           else
5088                               cache=no
5089                           fi
5090
5091                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5092
5093 fi
5094
5095
5096           eval "$wx_cv_use_utf8only"
5097           if test "x$cache" = xyes; then
5098             echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
5099           fi
5100
5101           if test x"$enablestring" = xdisable; then
5102             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
5103               result=no
5104             else
5105               result=yes
5106             fi
5107           else
5108             result=$wxUSE_UNICODE_UTF8_LOCALE
5109           fi
5110
5111           { echo "$as_me:$LINENO: result: $result" >&5
5112 echo "${ECHO_T}$result" >&6; }
5113
5114
5115           enablestring=
5116           defaultval=
5117           if test -z "$defaultval"; then
5118               if test x"$enablestring" = xdisable; then
5119                   defaultval=yes
5120               else
5121                   defaultval=no
5122               fi
5123           fi
5124
5125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5126 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5127           # Check whether --enable-extended_rtti was given.
5128 if test "${enable_extended_rtti+set}" = set; then
5129   enableval=$enable_extended_rtti;
5130                           if test "$enableval" = yes; then
5131                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5132                           else
5133                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5134                           fi
5135                           cache=yes
5136
5137 else
5138
5139                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
5140                           if test "x$LINE" != x ; then
5141                               eval "DEFAULT_$LINE"
5142                               cache=yes
5143                           else
5144                               cache=no
5145                           fi
5146
5147                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5148
5149 fi
5150
5151
5152           eval "$wx_cv_use_extended_rtti"
5153           if test "x$cache" = xyes; then
5154             echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
5155           fi
5156
5157           if test x"$enablestring" = xdisable; then
5158             if test $wxUSE_EXTENDED_RTTI = yes; then
5159               result=no
5160             else
5161               result=yes
5162             fi
5163           else
5164             result=$wxUSE_EXTENDED_RTTI
5165           fi
5166
5167           { echo "$as_me:$LINENO: result: $result" >&5
5168 echo "${ECHO_T}$result" >&6; }
5169
5170 if test "$USE_OS2" = "1"; then
5171     DEFAULT_wxUSE_OMF=no
5172
5173           enablestring=
5174           defaultval=
5175           if test -z "$defaultval"; then
5176               if test x"$enablestring" = xdisable; then
5177                   defaultval=yes
5178               else
5179                   defaultval=no
5180               fi
5181           fi
5182
5183           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5184 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5185           # Check whether --enable-omf was given.
5186 if test "${enable_omf+set}" = set; then
5187   enableval=$enable_omf;
5188                           if test "$enableval" = yes; then
5189                             wx_cv_use_omf='wxUSE_OMF=yes'
5190                           else
5191                             wx_cv_use_omf='wxUSE_OMF=no'
5192                           fi
5193                           cache=yes
5194
5195 else
5196
5197                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5198                           if test "x$LINE" != x ; then
5199                               eval "DEFAULT_$LINE"
5200                               cache=yes
5201                           else
5202                               cache=no
5203                           fi
5204
5205                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5206
5207 fi
5208
5209
5210           eval "$wx_cv_use_omf"
5211           if test "x$cache" = xyes; then
5212             echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
5213           fi
5214
5215           if test x"$enablestring" = xdisable; then
5216             if test $wxUSE_OMF = yes; then
5217               result=no
5218             else
5219               result=yes
5220             fi
5221           else
5222             result=$wxUSE_OMF
5223           fi
5224
5225           { echo "$as_me:$LINENO: result: $result" >&5
5226 echo "${ECHO_T}$result" >&6; }
5227
5228 fi
5229
5230 if test "$wxUSE_DEBUG" = "yes"; then
5231   DEFAULT_wxUSE_DEBUG_FLAG=yes
5232   DEFAULT_wxUSE_DEBUG_INFO=yes
5233   BUILD=debug
5234 elif test "$wxUSE_DEBUG" = "no"; then
5235   DEFAULT_wxUSE_DEBUG_FLAG=no
5236   DEFAULT_wxUSE_DEBUG_INFO=no
5237   BUILD=release
5238 fi
5239
5240
5241           enablestring=
5242           defaultval=
5243           if test -z "$defaultval"; then
5244               if test x"$enablestring" = xdisable; then
5245                   defaultval=yes
5246               else
5247                   defaultval=no
5248               fi
5249           fi
5250
5251           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5252 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5253           # Check whether --enable-debug_flag was given.
5254 if test "${enable_debug_flag+set}" = set; then
5255   enableval=$enable_debug_flag;
5256                           if test "$enableval" = yes; then
5257                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5258                           else
5259                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5260                           fi
5261                           cache=yes
5262
5263 else
5264
5265                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5266                           if test "x$LINE" != x ; then
5267                               eval "DEFAULT_$LINE"
5268                               cache=yes
5269                           else
5270                               cache=no
5271                           fi
5272
5273                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5274
5275 fi
5276
5277
5278           eval "$wx_cv_use_debug_flag"
5279           if test "x$cache" = xyes; then
5280             echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
5281           fi
5282
5283           if test x"$enablestring" = xdisable; then
5284             if test $wxUSE_DEBUG_FLAG = yes; then
5285               result=no
5286             else
5287               result=yes
5288             fi
5289           else
5290             result=$wxUSE_DEBUG_FLAG
5291           fi
5292
5293           { echo "$as_me:$LINENO: result: $result" >&5
5294 echo "${ECHO_T}$result" >&6; }
5295
5296
5297           enablestring=
5298           defaultval=
5299           if test -z "$defaultval"; then
5300               if test x"$enablestring" = xdisable; then
5301                   defaultval=yes
5302               else
5303                   defaultval=no
5304               fi
5305           fi
5306
5307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5308 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5309           # Check whether --enable-debug_info was given.
5310 if test "${enable_debug_info+set}" = set; then
5311   enableval=$enable_debug_info;
5312                           if test "$enableval" = yes; then
5313                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5314                           else
5315                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5316                           fi
5317                           cache=yes
5318
5319 else
5320
5321                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5322                           if test "x$LINE" != x ; then
5323                               eval "DEFAULT_$LINE"
5324                               cache=yes
5325                           else
5326                               cache=no
5327                           fi
5328
5329                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5330
5331 fi
5332
5333
5334           eval "$wx_cv_use_debug_info"
5335           if test "x$cache" = xyes; then
5336             echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
5337           fi
5338
5339           if test x"$enablestring" = xdisable; then
5340             if test $wxUSE_DEBUG_INFO = yes; then
5341               result=no
5342             else
5343               result=yes
5344             fi
5345           else
5346             result=$wxUSE_DEBUG_INFO
5347           fi
5348
5349           { echo "$as_me:$LINENO: result: $result" >&5
5350 echo "${ECHO_T}$result" >&6; }
5351
5352
5353           enablestring=
5354           defaultval=
5355           if test -z "$defaultval"; then
5356               if test x"$enablestring" = xdisable; then
5357                   defaultval=yes
5358               else
5359                   defaultval=no
5360               fi
5361           fi
5362
5363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5364 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5365           # Check whether --enable-debug_gdb was given.
5366 if test "${enable_debug_gdb+set}" = set; then
5367   enableval=$enable_debug_gdb;
5368                           if test "$enableval" = yes; then
5369                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5370                           else
5371                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5372                           fi
5373                           cache=yes
5374
5375 else
5376
5377                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5378                           if test "x$LINE" != x ; then
5379                               eval "DEFAULT_$LINE"
5380                               cache=yes
5381                           else
5382                               cache=no
5383                           fi
5384
5385                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5386
5387 fi
5388
5389
5390           eval "$wx_cv_use_debug_gdb"
5391           if test "x$cache" = xyes; then
5392             echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
5393           fi
5394
5395           if test x"$enablestring" = xdisable; then
5396             if test $wxUSE_DEBUG_GDB = yes; then
5397               result=no
5398             else
5399               result=yes
5400             fi
5401           else
5402             result=$wxUSE_DEBUG_GDB
5403           fi
5404
5405           { echo "$as_me:$LINENO: result: $result" >&5
5406 echo "${ECHO_T}$result" >&6; }
5407
5408
5409           enablestring=
5410           defaultval=
5411           if test -z "$defaultval"; then
5412               if test x"$enablestring" = xdisable; then
5413                   defaultval=yes
5414               else
5415                   defaultval=no
5416               fi
5417           fi
5418
5419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5420 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5421           # Check whether --enable-debug_cntxt was given.
5422 if test "${enable_debug_cntxt+set}" = set; then
5423   enableval=$enable_debug_cntxt;
5424                           if test "$enableval" = yes; then
5425                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5426                           else
5427                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5428                           fi
5429                           cache=yes
5430
5431 else
5432
5433                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5434                           if test "x$LINE" != x ; then
5435                               eval "DEFAULT_$LINE"
5436                               cache=yes
5437                           else
5438                               cache=no
5439                           fi
5440
5441                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5442
5443 fi
5444
5445
5446           eval "$wx_cv_use_debug_cntxt"
5447           if test "x$cache" = xyes; then
5448             echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
5449           fi
5450
5451           if test x"$enablestring" = xdisable; then
5452             if test $wxUSE_DEBUG_CONTEXT = yes; then
5453               result=no
5454             else
5455               result=yes
5456             fi
5457           else
5458             result=$wxUSE_DEBUG_CONTEXT
5459           fi
5460
5461           { echo "$as_me:$LINENO: result: $result" >&5
5462 echo "${ECHO_T}$result" >&6; }
5463
5464
5465           enablestring=
5466           defaultval=
5467           if test -z "$defaultval"; then
5468               if test x"$enablestring" = xdisable; then
5469                   defaultval=yes
5470               else
5471                   defaultval=no
5472               fi
5473           fi
5474
5475           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5476 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5477           # Check whether --enable-mem_tracing was given.
5478 if test "${enable_mem_tracing+set}" = set; then
5479   enableval=$enable_mem_tracing;
5480                           if test "$enableval" = yes; then
5481                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5482                           else
5483                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5484                           fi
5485                           cache=yes
5486
5487 else
5488
5489                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5490                           if test "x$LINE" != x ; then
5491                               eval "DEFAULT_$LINE"
5492                               cache=yes
5493                           else
5494                               cache=no
5495                           fi
5496
5497                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5498
5499 fi
5500
5501
5502           eval "$wx_cv_use_mem_tracing"
5503           if test "x$cache" = xyes; then
5504             echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
5505           fi
5506
5507           if test x"$enablestring" = xdisable; then
5508             if test $wxUSE_MEM_TRACING = yes; then
5509               result=no
5510             else
5511               result=yes
5512             fi
5513           else
5514             result=$wxUSE_MEM_TRACING
5515           fi
5516
5517           { echo "$as_me:$LINENO: result: $result" >&5
5518 echo "${ECHO_T}$result" >&6; }
5519
5520
5521           enablestring=
5522           defaultval=
5523           if test -z "$defaultval"; then
5524               if test x"$enablestring" = xdisable; then
5525                   defaultval=yes
5526               else
5527                   defaultval=no
5528               fi
5529           fi
5530
5531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5532 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5533           # Check whether --enable-profile was given.
5534 if test "${enable_profile+set}" = set; then
5535   enableval=$enable_profile;
5536                           if test "$enableval" = yes; then
5537                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5538                           else
5539                             wx_cv_use_profile='wxUSE_PROFILE=no'
5540                           fi
5541                           cache=yes
5542
5543 else
5544
5545                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5546                           if test "x$LINE" != x ; then
5547                               eval "DEFAULT_$LINE"
5548                               cache=yes
5549                           else
5550                               cache=no
5551                           fi
5552
5553                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5554
5555 fi
5556
5557
5558           eval "$wx_cv_use_profile"
5559           if test "x$cache" = xyes; then
5560             echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
5561           fi
5562
5563           if test x"$enablestring" = xdisable; then
5564             if test $wxUSE_PROFILE = yes; then
5565               result=no
5566             else
5567               result=yes
5568             fi
5569           else
5570             result=$wxUSE_PROFILE
5571           fi
5572
5573           { echo "$as_me:$LINENO: result: $result" >&5
5574 echo "${ECHO_T}$result" >&6; }
5575
5576
5577           enablestring=
5578           defaultval=
5579           if test -z "$defaultval"; then
5580               if test x"$enablestring" = xdisable; then
5581                   defaultval=yes
5582               else
5583                   defaultval=no
5584               fi
5585           fi
5586
5587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5588 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5589           # Check whether --enable-no_rtti was given.
5590 if test "${enable_no_rtti+set}" = set; then
5591   enableval=$enable_no_rtti;
5592                           if test "$enableval" = yes; then
5593                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5594                           else
5595                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5596                           fi
5597                           cache=yes
5598
5599 else
5600
5601                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5602                           if test "x$LINE" != x ; then
5603                               eval "DEFAULT_$LINE"
5604                               cache=yes
5605                           else
5606                               cache=no
5607                           fi
5608
5609                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5610
5611 fi
5612
5613
5614           eval "$wx_cv_use_no_rtti"
5615           if test "x$cache" = xyes; then
5616             echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
5617           fi
5618
5619           if test x"$enablestring" = xdisable; then
5620             if test $wxUSE_NO_RTTI = yes; then
5621               result=no
5622             else
5623               result=yes
5624             fi
5625           else
5626             result=$wxUSE_NO_RTTI
5627           fi
5628
5629           { echo "$as_me:$LINENO: result: $result" >&5
5630 echo "${ECHO_T}$result" >&6; }
5631
5632
5633           enablestring=
5634           defaultval=
5635           if test -z "$defaultval"; then
5636               if test x"$enablestring" = xdisable; then
5637                   defaultval=yes
5638               else
5639                   defaultval=no
5640               fi
5641           fi
5642
5643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5644 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5645           # Check whether --enable-no_exceptions was given.
5646 if test "${enable_no_exceptions+set}" = set; then
5647   enableval=$enable_no_exceptions;
5648                           if test "$enableval" = yes; then
5649                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5650                           else
5651                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5652                           fi
5653                           cache=yes
5654
5655 else
5656
5657                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5658                           if test "x$LINE" != x ; then
5659                               eval "DEFAULT_$LINE"
5660                               cache=yes
5661                           else
5662                               cache=no
5663                           fi
5664
5665                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5666
5667 fi
5668
5669
5670           eval "$wx_cv_use_no_exceptions"
5671           if test "x$cache" = xyes; then
5672             echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
5673           fi
5674
5675           if test x"$enablestring" = xdisable; then
5676             if test $wxUSE_NO_EXCEPTIONS = yes; then
5677               result=no
5678             else
5679               result=yes
5680             fi
5681           else
5682             result=$wxUSE_NO_EXCEPTIONS
5683           fi
5684
5685           { echo "$as_me:$LINENO: result: $result" >&5
5686 echo "${ECHO_T}$result" >&6; }
5687
5688
5689           enablestring=
5690           defaultval=
5691           if test -z "$defaultval"; then
5692               if test x"$enablestring" = xdisable; then
5693                   defaultval=yes
5694               else
5695                   defaultval=no
5696               fi
5697           fi
5698
5699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5700 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5701           # Check whether --enable-permissive was given.
5702 if test "${enable_permissive+set}" = set; then
5703   enableval=$enable_permissive;
5704                           if test "$enableval" = yes; then
5705                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5706                           else
5707                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5708                           fi
5709                           cache=yes
5710
5711 else
5712
5713                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5714                           if test "x$LINE" != x ; then
5715                               eval "DEFAULT_$LINE"
5716                               cache=yes
5717                           else
5718                               cache=no
5719                           fi
5720
5721                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5722
5723 fi
5724
5725
5726           eval "$wx_cv_use_permissive"
5727           if test "x$cache" = xyes; then
5728             echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
5729           fi
5730
5731           if test x"$enablestring" = xdisable; then
5732             if test $wxUSE_PERMISSIVE = yes; then
5733               result=no
5734             else
5735               result=yes
5736             fi
5737           else
5738             result=$wxUSE_PERMISSIVE
5739           fi
5740
5741           { echo "$as_me:$LINENO: result: $result" >&5
5742 echo "${ECHO_T}$result" >&6; }
5743
5744
5745           enablestring=
5746           defaultval=
5747           if test -z "$defaultval"; then
5748               if test x"$enablestring" = xdisable; then
5749                   defaultval=yes
5750               else
5751                   defaultval=no
5752               fi
5753           fi
5754
5755           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5756 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5757           # Check whether --enable-no_deps was given.
5758 if test "${enable_no_deps+set}" = set; then
5759   enableval=$enable_no_deps;
5760                           if test "$enableval" = yes; then
5761                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5762                           else
5763                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5764                           fi
5765                           cache=yes
5766
5767 else
5768
5769                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5770                           if test "x$LINE" != x ; then
5771                               eval "DEFAULT_$LINE"
5772                               cache=yes
5773                           else
5774                               cache=no
5775                           fi
5776
5777                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5778
5779 fi
5780
5781
5782           eval "$wx_cv_use_no_deps"
5783           if test "x$cache" = xyes; then
5784             echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
5785           fi
5786
5787           if test x"$enablestring" = xdisable; then
5788             if test $wxUSE_NO_DEPS = yes; then
5789               result=no
5790             else
5791               result=yes
5792             fi
5793           else
5794             result=$wxUSE_NO_DEPS
5795           fi
5796
5797           { echo "$as_me:$LINENO: result: $result" >&5
5798 echo "${ECHO_T}$result" >&6; }
5799
5800
5801           enablestring=disable
5802           defaultval=
5803           if test -z "$defaultval"; then
5804               if test x"$enablestring" = xdisable; then
5805                   defaultval=yes
5806               else
5807                   defaultval=no
5808               fi
5809           fi
5810
5811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5812 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5813           # Check whether --enable-vararg_macros was given.
5814 if test "${enable_vararg_macros+set}" = set; then
5815   enableval=$enable_vararg_macros;
5816                           if test "$enableval" = yes; then
5817                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5818                           else
5819                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5820                           fi
5821                           cache=yes
5822
5823 else
5824
5825                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5826                           if test "x$LINE" != x ; then
5827                               eval "DEFAULT_$LINE"
5828                               cache=yes
5829                           else
5830                               cache=no
5831                           fi
5832
5833                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5834
5835 fi
5836
5837
5838           eval "$wx_cv_use_vararg_macros"
5839           if test "x$cache" = xyes; then
5840             echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
5841           fi
5842
5843           if test x"$enablestring" = xdisable; then
5844             if test $wxUSE_VARARG_MACROS = yes; then
5845               result=no
5846             else
5847               result=yes
5848             fi
5849           else
5850             result=$wxUSE_VARARG_MACROS
5851           fi
5852
5853           { echo "$as_me:$LINENO: result: $result" >&5
5854 echo "${ECHO_T}$result" >&6; }
5855
5856
5857           enablestring=
5858           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5859 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5860           # Check whether --enable-universal_binary was given.
5861 if test "${enable_universal_binary+set}" = set; then
5862   enableval=$enable_universal_binary;
5863                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5864                           cache=yes
5865
5866 else
5867
5868                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5869                           if test "x$LINE" != x ; then
5870                             eval "DEFAULT_$LINE"
5871                             cache=yes
5872                           else
5873                             cache=no
5874                           fi
5875
5876                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5877
5878 fi
5879
5880
5881           eval "$wx_cv_use_universal_binary"
5882           if test "x$cache" = xyes; then
5883             echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
5884           fi
5885
5886           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5887 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5888
5889
5890
5891           enablestring=
5892           defaultval=
5893           if test -z "$defaultval"; then
5894               if test x"$enablestring" = xdisable; then
5895                   defaultval=yes
5896               else
5897                   defaultval=no
5898               fi
5899           fi
5900
5901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5902 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5903           # Check whether --enable-compat26 was given.
5904 if test "${enable_compat26+set}" = set; then
5905   enableval=$enable_compat26;
5906                           if test "$enableval" = yes; then
5907                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5908                           else
5909                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5910                           fi
5911                           cache=yes
5912
5913 else
5914
5915                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5916                           if test "x$LINE" != x ; then
5917                               eval "DEFAULT_$LINE"
5918                               cache=yes
5919                           else
5920                               cache=no
5921                           fi
5922
5923                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5924
5925 fi
5926
5927
5928           eval "$wx_cv_use_compat26"
5929           if test "x$cache" = xyes; then
5930             echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
5931           fi
5932
5933           if test x"$enablestring" = xdisable; then
5934             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5935               result=no
5936             else
5937               result=yes
5938             fi
5939           else
5940             result=$WXWIN_COMPATIBILITY_2_6
5941           fi
5942
5943           { echo "$as_me:$LINENO: result: $result" >&5
5944 echo "${ECHO_T}$result" >&6; }
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}-compat28" >&5
5958 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5959           # Check whether --enable-compat28 was given.
5960 if test "${enable_compat28+set}" = set; then
5961   enableval=$enable_compat28;
5962                           if test "$enableval" = yes; then
5963                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5964                           else
5965                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5966                           fi
5967                           cache=yes
5968
5969 else
5970
5971                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5972                           if test "x$LINE" != x ; then
5973                               eval "DEFAULT_$LINE"
5974                               cache=yes
5975                           else
5976                               cache=no
5977                           fi
5978
5979                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5980
5981 fi
5982
5983
5984           eval "$wx_cv_use_compat28"
5985           if test "x$cache" = xyes; then
5986             echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
5987           fi
5988
5989           if test x"$enablestring" = xdisable; then
5990             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5991               result=no
5992             else
5993               result=yes
5994             fi
5995           else
5996             result=$WXWIN_COMPATIBILITY_2_8
5997           fi
5998
5999           { echo "$as_me:$LINENO: result: $result" >&5
6000 echo "${ECHO_T}$result" >&6; }
6001
6002
6003
6004           enablestring=disable
6005           defaultval=
6006           if test -z "$defaultval"; then
6007               if test x"$enablestring" = xdisable; then
6008                   defaultval=yes
6009               else
6010                   defaultval=no
6011               fi
6012           fi
6013
6014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
6015 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
6016           # Check whether --enable-rpath was given.
6017 if test "${enable_rpath+set}" = set; then
6018   enableval=$enable_rpath;
6019                           if test "$enableval" = yes; then
6020                             wx_cv_use_rpath='wxUSE_RPATH=yes'
6021                           else
6022                             wx_cv_use_rpath='wxUSE_RPATH=no'
6023                           fi
6024                           cache=yes
6025
6026 else
6027
6028                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
6029                           if test "x$LINE" != x ; then
6030                               eval "DEFAULT_$LINE"
6031                               cache=yes
6032                           else
6033                               cache=no
6034                           fi
6035
6036                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
6037
6038 fi
6039
6040
6041           eval "$wx_cv_use_rpath"
6042           if test "x$cache" = xyes; then
6043             echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
6044           fi
6045
6046           if test x"$enablestring" = xdisable; then
6047             if test $wxUSE_RPATH = yes; then
6048               result=no
6049             else
6050               result=yes
6051             fi
6052           else
6053             result=$wxUSE_RPATH
6054           fi
6055
6056           { echo "$as_me:$LINENO: result: $result" >&5
6057 echo "${ECHO_T}$result" >&6; }
6058
6059
6060
6061           enablestring=
6062           defaultval=
6063           if test -z "$defaultval"; then
6064               if test x"$enablestring" = xdisable; then
6065                   defaultval=yes
6066               else
6067                   defaultval=no
6068               fi
6069           fi
6070
6071           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
6072 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
6073           # Check whether --enable-objc_uniquifying was given.
6074 if test "${enable_objc_uniquifying+set}" = set; then
6075   enableval=$enable_objc_uniquifying;
6076                           if test "$enableval" = yes; then
6077                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
6078                           else
6079                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
6080                           fi
6081                           cache=yes
6082
6083 else
6084
6085                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
6086                           if test "x$LINE" != x ; then
6087                               eval "DEFAULT_$LINE"
6088                               cache=yes
6089                           else
6090                               cache=no
6091                           fi
6092
6093                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
6094
6095 fi
6096
6097
6098           eval "$wx_cv_use_objc_uniquifying"
6099           if test "x$cache" = xyes; then
6100             echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
6101           fi
6102
6103           if test x"$enablestring" = xdisable; then
6104             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
6105               result=no
6106             else
6107               result=yes
6108             fi
6109           else
6110             result=$wxUSE_OBJC_UNIQUIFYING
6111           fi
6112
6113           { echo "$as_me:$LINENO: result: $result" >&5
6114 echo "${ECHO_T}$result" >&6; }
6115
6116
6117
6118           enablestring=disable
6119           defaultval=
6120           if test -z "$defaultval"; then
6121               if test x"$enablestring" = xdisable; then
6122                   defaultval=yes
6123               else
6124                   defaultval=no
6125               fi
6126           fi
6127
6128           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
6129 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
6130           # Check whether --enable-visibility was given.
6131 if test "${enable_visibility+set}" = set; then
6132   enableval=$enable_visibility;
6133                           if test "$enableval" = yes; then
6134                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
6135                           else
6136                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
6137                           fi
6138                           cache=yes
6139
6140 else
6141
6142                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
6143                           if test "x$LINE" != x ; then
6144                               eval "DEFAULT_$LINE"
6145                               cache=yes
6146                           else
6147                               cache=no
6148                           fi
6149
6150                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
6151
6152 fi
6153
6154
6155           eval "$wx_cv_use_visibility"
6156           if test "x$cache" = xyes; then
6157             echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
6158           fi
6159
6160           if test x"$enablestring" = xdisable; then
6161             if test $wxUSE_VISIBILITY = yes; then
6162               result=no
6163             else
6164               result=yes
6165             fi
6166           else
6167             result=$wxUSE_VISIBILITY
6168           fi
6169
6170           { echo "$as_me:$LINENO: result: $result" >&5
6171 echo "${ECHO_T}$result" >&6; }
6172
6173
6174
6175
6176           enablestring=
6177           defaultval=$wxUSE_ALL_FEATURES
6178           if test -z "$defaultval"; then
6179               if test x"$enablestring" = xdisable; then
6180                   defaultval=yes
6181               else
6182                   defaultval=no
6183               fi
6184           fi
6185
6186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6187 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6188           # Check whether --enable-intl was given.
6189 if test "${enable_intl+set}" = set; then
6190   enableval=$enable_intl;
6191                           if test "$enableval" = yes; then
6192                             wx_cv_use_intl='wxUSE_INTL=yes'
6193                           else
6194                             wx_cv_use_intl='wxUSE_INTL=no'
6195                           fi
6196                           cache=yes
6197
6198 else
6199
6200                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6201                           if test "x$LINE" != x ; then
6202                               eval "DEFAULT_$LINE"
6203                               cache=yes
6204                           else
6205                               cache=no
6206                           fi
6207
6208                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6209
6210 fi
6211
6212
6213           eval "$wx_cv_use_intl"
6214           if test "x$cache" = xyes; then
6215             echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
6216           fi
6217
6218           if test x"$enablestring" = xdisable; then
6219             if test $wxUSE_INTL = yes; then
6220               result=no
6221             else
6222               result=yes
6223             fi
6224           else
6225             result=$wxUSE_INTL
6226           fi
6227
6228           { echo "$as_me:$LINENO: result: $result" >&5
6229 echo "${ECHO_T}$result" >&6; }
6230
6231
6232           enablestring=
6233           defaultval=$wxUSE_ALL_FEATURES
6234           if test -z "$defaultval"; then
6235               if test x"$enablestring" = xdisable; then
6236                   defaultval=yes
6237               else
6238                   defaultval=no
6239               fi
6240           fi
6241
6242           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6243 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6244           # Check whether --enable-config was given.
6245 if test "${enable_config+set}" = set; then
6246   enableval=$enable_config;
6247                           if test "$enableval" = yes; then
6248                             wx_cv_use_config='wxUSE_CONFIG=yes'
6249                           else
6250                             wx_cv_use_config='wxUSE_CONFIG=no'
6251                           fi
6252                           cache=yes
6253
6254 else
6255
6256                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6257                           if test "x$LINE" != x ; then
6258                               eval "DEFAULT_$LINE"
6259                               cache=yes
6260                           else
6261                               cache=no
6262                           fi
6263
6264                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6265
6266 fi
6267
6268
6269           eval "$wx_cv_use_config"
6270           if test "x$cache" = xyes; then
6271             echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
6272           fi
6273
6274           if test x"$enablestring" = xdisable; then
6275             if test $wxUSE_CONFIG = yes; then
6276               result=no
6277             else
6278               result=yes
6279             fi
6280           else
6281             result=$wxUSE_CONFIG
6282           fi
6283
6284           { echo "$as_me:$LINENO: result: $result" >&5
6285 echo "${ECHO_T}$result" >&6; }
6286
6287
6288
6289           enablestring=
6290           defaultval=$wxUSE_ALL_FEATURES
6291           if test -z "$defaultval"; then
6292               if test x"$enablestring" = xdisable; then
6293                   defaultval=yes
6294               else
6295                   defaultval=no
6296               fi
6297           fi
6298
6299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6300 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6301           # Check whether --enable-protocols was given.
6302 if test "${enable_protocols+set}" = set; then
6303   enableval=$enable_protocols;
6304                           if test "$enableval" = yes; then
6305                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6306                           else
6307                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6308                           fi
6309                           cache=yes
6310
6311 else
6312
6313                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6314                           if test "x$LINE" != x ; then
6315                               eval "DEFAULT_$LINE"
6316                               cache=yes
6317                           else
6318                               cache=no
6319                           fi
6320
6321                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6322
6323 fi
6324
6325
6326           eval "$wx_cv_use_protocols"
6327           if test "x$cache" = xyes; then
6328             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
6329           fi
6330
6331           if test x"$enablestring" = xdisable; then
6332             if test $wxUSE_PROTOCOL = yes; then
6333               result=no
6334             else
6335               result=yes
6336             fi
6337           else
6338             result=$wxUSE_PROTOCOL
6339           fi
6340
6341           { echo "$as_me:$LINENO: result: $result" >&5
6342 echo "${ECHO_T}$result" >&6; }
6343
6344
6345           enablestring=
6346           defaultval=$wxUSE_ALL_FEATURES
6347           if test -z "$defaultval"; then
6348               if test x"$enablestring" = xdisable; then
6349                   defaultval=yes
6350               else
6351                   defaultval=no
6352               fi
6353           fi
6354
6355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6356 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6357           # Check whether --enable-ftp was given.
6358 if test "${enable_ftp+set}" = set; then
6359   enableval=$enable_ftp;
6360                           if test "$enableval" = yes; then
6361                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6362                           else
6363                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6364                           fi
6365                           cache=yes
6366
6367 else
6368
6369                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6370                           if test "x$LINE" != x ; then
6371                               eval "DEFAULT_$LINE"
6372                               cache=yes
6373                           else
6374                               cache=no
6375                           fi
6376
6377                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6378
6379 fi
6380
6381
6382           eval "$wx_cv_use_ftp"
6383           if test "x$cache" = xyes; then
6384             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
6385           fi
6386
6387           if test x"$enablestring" = xdisable; then
6388             if test $wxUSE_PROTOCOL_FTP = yes; then
6389               result=no
6390             else
6391               result=yes
6392             fi
6393           else
6394             result=$wxUSE_PROTOCOL_FTP
6395           fi
6396
6397           { echo "$as_me:$LINENO: result: $result" >&5
6398 echo "${ECHO_T}$result" >&6; }
6399
6400
6401           enablestring=
6402           defaultval=$wxUSE_ALL_FEATURES
6403           if test -z "$defaultval"; then
6404               if test x"$enablestring" = xdisable; then
6405                   defaultval=yes
6406               else
6407                   defaultval=no
6408               fi
6409           fi
6410
6411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6412 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6413           # Check whether --enable-http was given.
6414 if test "${enable_http+set}" = set; then
6415   enableval=$enable_http;
6416                           if test "$enableval" = yes; then
6417                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6418                           else
6419                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6420                           fi
6421                           cache=yes
6422
6423 else
6424
6425                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6426                           if test "x$LINE" != x ; then
6427                               eval "DEFAULT_$LINE"
6428                               cache=yes
6429                           else
6430                               cache=no
6431                           fi
6432
6433                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6434
6435 fi
6436
6437
6438           eval "$wx_cv_use_http"
6439           if test "x$cache" = xyes; then
6440             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
6441           fi
6442
6443           if test x"$enablestring" = xdisable; then
6444             if test $wxUSE_PROTOCOL_HTTP = yes; then
6445               result=no
6446             else
6447               result=yes
6448             fi
6449           else
6450             result=$wxUSE_PROTOCOL_HTTP
6451           fi
6452
6453           { echo "$as_me:$LINENO: result: $result" >&5
6454 echo "${ECHO_T}$result" >&6; }
6455
6456
6457           enablestring=
6458           defaultval=$wxUSE_ALL_FEATURES
6459           if test -z "$defaultval"; then
6460               if test x"$enablestring" = xdisable; then
6461                   defaultval=yes
6462               else
6463                   defaultval=no
6464               fi
6465           fi
6466
6467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6468 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6469           # Check whether --enable-fileproto was given.
6470 if test "${enable_fileproto+set}" = set; then
6471   enableval=$enable_fileproto;
6472                           if test "$enableval" = yes; then
6473                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6474                           else
6475                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6476                           fi
6477                           cache=yes
6478
6479 else
6480
6481                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6482                           if test "x$LINE" != x ; then
6483                               eval "DEFAULT_$LINE"
6484                               cache=yes
6485                           else
6486                               cache=no
6487                           fi
6488
6489                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6490
6491 fi
6492
6493
6494           eval "$wx_cv_use_fileproto"
6495           if test "x$cache" = xyes; then
6496             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
6497           fi
6498
6499           if test x"$enablestring" = xdisable; then
6500             if test $wxUSE_PROTOCOL_FILE = yes; then
6501               result=no
6502             else
6503               result=yes
6504             fi
6505           else
6506             result=$wxUSE_PROTOCOL_FILE
6507           fi
6508
6509           { echo "$as_me:$LINENO: result: $result" >&5
6510 echo "${ECHO_T}$result" >&6; }
6511
6512
6513           enablestring=
6514           defaultval=$wxUSE_ALL_FEATURES
6515           if test -z "$defaultval"; then
6516               if test x"$enablestring" = xdisable; then
6517                   defaultval=yes
6518               else
6519                   defaultval=no
6520               fi
6521           fi
6522
6523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6524 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6525           # Check whether --enable-sockets was given.
6526 if test "${enable_sockets+set}" = set; then
6527   enableval=$enable_sockets;
6528                           if test "$enableval" = yes; then
6529                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6530                           else
6531                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6532                           fi
6533                           cache=yes
6534
6535 else
6536
6537                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6538                           if test "x$LINE" != x ; then
6539                               eval "DEFAULT_$LINE"
6540                               cache=yes
6541                           else
6542                               cache=no
6543                           fi
6544
6545                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6546
6547 fi
6548
6549
6550           eval "$wx_cv_use_sockets"
6551           if test "x$cache" = xyes; then
6552             echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
6553           fi
6554
6555           if test x"$enablestring" = xdisable; then
6556             if test $wxUSE_SOCKETS = yes; then
6557               result=no
6558             else
6559               result=yes
6560             fi
6561           else
6562             result=$wxUSE_SOCKETS
6563           fi
6564
6565           { echo "$as_me:$LINENO: result: $result" >&5
6566 echo "${ECHO_T}$result" >&6; }
6567
6568
6569           enablestring=
6570           defaultval=$wxUSE_ALL_FEATURES
6571           if test -z "$defaultval"; then
6572               if test x"$enablestring" = xdisable; then
6573                   defaultval=yes
6574               else
6575                   defaultval=no
6576               fi
6577           fi
6578
6579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6580 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6581           # Check whether --enable-ole was given.
6582 if test "${enable_ole+set}" = set; then
6583   enableval=$enable_ole;
6584                           if test "$enableval" = yes; then
6585                             wx_cv_use_ole='wxUSE_OLE=yes'
6586                           else
6587                             wx_cv_use_ole='wxUSE_OLE=no'
6588                           fi
6589                           cache=yes
6590
6591 else
6592
6593                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6594                           if test "x$LINE" != x ; then
6595                               eval "DEFAULT_$LINE"
6596                               cache=yes
6597                           else
6598                               cache=no
6599                           fi
6600
6601                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6602
6603 fi
6604
6605
6606           eval "$wx_cv_use_ole"
6607           if test "x$cache" = xyes; then
6608             echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
6609           fi
6610
6611           if test x"$enablestring" = xdisable; then
6612             if test $wxUSE_OLE = yes; then
6613               result=no
6614             else
6615               result=yes
6616             fi
6617           else
6618             result=$wxUSE_OLE
6619           fi
6620
6621           { echo "$as_me:$LINENO: result: $result" >&5
6622 echo "${ECHO_T}$result" >&6; }
6623
6624
6625           enablestring=
6626           defaultval=$wxUSE_ALL_FEATURES
6627           if test -z "$defaultval"; then
6628               if test x"$enablestring" = xdisable; then
6629                   defaultval=yes
6630               else
6631                   defaultval=no
6632               fi
6633           fi
6634
6635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6636 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6637           # Check whether --enable-dataobj was given.
6638 if test "${enable_dataobj+set}" = set; then
6639   enableval=$enable_dataobj;
6640                           if test "$enableval" = yes; then
6641                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6642                           else
6643                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6644                           fi
6645                           cache=yes
6646
6647 else
6648
6649                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6650                           if test "x$LINE" != x ; then
6651                               eval "DEFAULT_$LINE"
6652                               cache=yes
6653                           else
6654                               cache=no
6655                           fi
6656
6657                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6658
6659 fi
6660
6661
6662           eval "$wx_cv_use_dataobj"
6663           if test "x$cache" = xyes; then
6664             echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
6665           fi
6666
6667           if test x"$enablestring" = xdisable; then
6668             if test $wxUSE_DATAOBJ = yes; then
6669               result=no
6670             else
6671               result=yes
6672             fi
6673           else
6674             result=$wxUSE_DATAOBJ
6675           fi
6676
6677           { echo "$as_me:$LINENO: result: $result" >&5
6678 echo "${ECHO_T}$result" >&6; }
6679
6680
6681
6682           enablestring=
6683           defaultval=$wxUSE_ALL_FEATURES
6684           if test -z "$defaultval"; then
6685               if test x"$enablestring" = xdisable; then
6686                   defaultval=yes
6687               else
6688                   defaultval=no
6689               fi
6690           fi
6691
6692           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6693 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6694           # Check whether --enable-ipc was given.
6695 if test "${enable_ipc+set}" = set; then
6696   enableval=$enable_ipc;
6697                           if test "$enableval" = yes; then
6698                             wx_cv_use_ipc='wxUSE_IPC=yes'
6699                           else
6700                             wx_cv_use_ipc='wxUSE_IPC=no'
6701                           fi
6702                           cache=yes
6703
6704 else
6705
6706                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6707                           if test "x$LINE" != x ; then
6708                               eval "DEFAULT_$LINE"
6709                               cache=yes
6710                           else
6711                               cache=no
6712                           fi
6713
6714                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6715
6716 fi
6717
6718
6719           eval "$wx_cv_use_ipc"
6720           if test "x$cache" = xyes; then
6721             echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
6722           fi
6723
6724           if test x"$enablestring" = xdisable; then
6725             if test $wxUSE_IPC = yes; then
6726               result=no
6727             else
6728               result=yes
6729             fi
6730           else
6731             result=$wxUSE_IPC
6732           fi
6733
6734           { echo "$as_me:$LINENO: result: $result" >&5
6735 echo "${ECHO_T}$result" >&6; }
6736
6737
6738
6739           enablestring=
6740           defaultval=$wxUSE_ALL_FEATURES
6741           if test -z "$defaultval"; then
6742               if test x"$enablestring" = xdisable; then
6743                   defaultval=yes
6744               else
6745                   defaultval=no
6746               fi
6747           fi
6748
6749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6750 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6751           # Check whether --enable-baseevtloop was given.
6752 if test "${enable_baseevtloop+set}" = set; then
6753   enableval=$enable_baseevtloop;
6754                           if test "$enableval" = yes; then
6755                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6756                           else
6757                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6758                           fi
6759                           cache=yes
6760
6761 else
6762
6763                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6764                           if test "x$LINE" != x ; then
6765                               eval "DEFAULT_$LINE"
6766                               cache=yes
6767                           else
6768                               cache=no
6769                           fi
6770
6771                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6772
6773 fi
6774
6775
6776           eval "$wx_cv_use_baseevtloop"
6777           if test "x$cache" = xyes; then
6778             echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
6779           fi
6780
6781           if test x"$enablestring" = xdisable; then
6782             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6783               result=no
6784             else
6785               result=yes
6786             fi
6787           else
6788             result=$wxUSE_CONSOLE_EVENTLOOP
6789           fi
6790
6791           { echo "$as_me:$LINENO: result: $result" >&5
6792 echo "${ECHO_T}$result" >&6; }
6793
6794
6795           enablestring=
6796           defaultval=$wxUSE_ALL_FEATURES
6797           if test -z "$defaultval"; then
6798               if test x"$enablestring" = xdisable; then
6799                   defaultval=yes
6800               else
6801                   defaultval=no
6802               fi
6803           fi
6804
6805           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6806 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6807           # Check whether --enable-epollloop was given.
6808 if test "${enable_epollloop+set}" = set; then
6809   enableval=$enable_epollloop;
6810                           if test "$enableval" = yes; then
6811                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6812                           else
6813                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6814                           fi
6815                           cache=yes
6816
6817 else
6818
6819                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6820                           if test "x$LINE" != x ; then
6821                               eval "DEFAULT_$LINE"
6822                               cache=yes
6823                           else
6824                               cache=no
6825                           fi
6826
6827                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6828
6829 fi
6830
6831
6832           eval "$wx_cv_use_epollloop"
6833           if test "x$cache" = xyes; then
6834             echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6835           fi
6836
6837           if test x"$enablestring" = xdisable; then
6838             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6839               result=no
6840             else
6841               result=yes
6842             fi
6843           else
6844             result=$wxUSE_EPOLL_DISPATCHER
6845           fi
6846
6847           { echo "$as_me:$LINENO: result: $result" >&5
6848 echo "${ECHO_T}$result" >&6; }
6849
6850
6851           enablestring=
6852           defaultval=$wxUSE_ALL_FEATURES
6853           if test -z "$defaultval"; then
6854               if test x"$enablestring" = xdisable; then
6855                   defaultval=yes
6856               else
6857                   defaultval=no
6858               fi
6859           fi
6860
6861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6862 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6863           # Check whether --enable-selectloop was given.
6864 if test "${enable_selectloop+set}" = set; then
6865   enableval=$enable_selectloop;
6866                           if test "$enableval" = yes; then
6867                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6868                           else
6869                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6870                           fi
6871                           cache=yes
6872
6873 else
6874
6875                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6876                           if test "x$LINE" != x ; then
6877                               eval "DEFAULT_$LINE"
6878                               cache=yes
6879                           else
6880                               cache=no
6881                           fi
6882
6883                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6884
6885 fi
6886
6887
6888           eval "$wx_cv_use_selectloop"
6889           if test "x$cache" = xyes; then
6890             echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6891           fi
6892
6893           if test x"$enablestring" = xdisable; then
6894             if test $wxUSE_SELECT_DISPATCHER = yes; then
6895               result=no
6896             else
6897               result=yes
6898             fi
6899           else
6900             result=$wxUSE_SELECT_DISPATCHER
6901           fi
6902
6903           { echo "$as_me:$LINENO: result: $result" >&5
6904 echo "${ECHO_T}$result" >&6; }
6905
6906
6907
6908           enablestring=
6909           defaultval=$wxUSE_ALL_FEATURES
6910           if test -z "$defaultval"; then
6911               if test x"$enablestring" = xdisable; then
6912                   defaultval=yes
6913               else
6914                   defaultval=no
6915               fi
6916           fi
6917
6918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6919 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6920           # Check whether --enable-apple_ieee was given.
6921 if test "${enable_apple_ieee+set}" = set; then
6922   enableval=$enable_apple_ieee;
6923                           if test "$enableval" = yes; then
6924                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6925                           else
6926                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6927                           fi
6928                           cache=yes
6929
6930 else
6931
6932                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6933                           if test "x$LINE" != x ; then
6934                               eval "DEFAULT_$LINE"
6935                               cache=yes
6936                           else
6937                               cache=no
6938                           fi
6939
6940                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6941
6942 fi
6943
6944
6945           eval "$wx_cv_use_apple_ieee"
6946           if test "x$cache" = xyes; then
6947             echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
6948           fi
6949
6950           if test x"$enablestring" = xdisable; then
6951             if test $wxUSE_APPLE_IEEE = yes; then
6952               result=no
6953             else
6954               result=yes
6955             fi
6956           else
6957             result=$wxUSE_APPLE_IEEE
6958           fi
6959
6960           { echo "$as_me:$LINENO: result: $result" >&5
6961 echo "${ECHO_T}$result" >&6; }
6962
6963
6964           enablestring=
6965           defaultval=$wxUSE_ALL_FEATURES
6966           if test -z "$defaultval"; then
6967               if test x"$enablestring" = xdisable; then
6968                   defaultval=yes
6969               else
6970                   defaultval=no
6971               fi
6972           fi
6973
6974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6975 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6976           # Check whether --enable-arcstream was given.
6977 if test "${enable_arcstream+set}" = set; then
6978   enableval=$enable_arcstream;
6979                           if test "$enableval" = yes; then
6980                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6981                           else
6982                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6983                           fi
6984                           cache=yes
6985
6986 else
6987
6988                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6989                           if test "x$LINE" != x ; then
6990                               eval "DEFAULT_$LINE"
6991                               cache=yes
6992                           else
6993                               cache=no
6994                           fi
6995
6996                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6997
6998 fi
6999
7000
7001           eval "$wx_cv_use_arcstream"
7002           if test "x$cache" = xyes; then
7003             echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
7004           fi
7005
7006           if test x"$enablestring" = xdisable; then
7007             if test $wxUSE_ARCHIVE_STREAMS = yes; then
7008               result=no
7009             else
7010               result=yes
7011             fi
7012           else
7013             result=$wxUSE_ARCHIVE_STREAMS
7014           fi
7015
7016           { echo "$as_me:$LINENO: result: $result" >&5
7017 echo "${ECHO_T}$result" >&6; }
7018
7019
7020           enablestring=
7021           defaultval=$wxUSE_ALL_FEATURES
7022           if test -z "$defaultval"; then
7023               if test x"$enablestring" = xdisable; then
7024                   defaultval=yes
7025               else
7026                   defaultval=no
7027               fi
7028           fi
7029
7030           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
7031 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
7032           # Check whether --enable-base64 was given.
7033 if test "${enable_base64+set}" = set; then
7034   enableval=$enable_base64;
7035                           if test "$enableval" = yes; then
7036                             wx_cv_use_base64='wxUSE_BASE64=yes'
7037                           else
7038                             wx_cv_use_base64='wxUSE_BASE64=no'
7039                           fi
7040                           cache=yes
7041
7042 else
7043
7044                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
7045                           if test "x$LINE" != x ; then
7046                               eval "DEFAULT_$LINE"
7047                               cache=yes
7048                           else
7049                               cache=no
7050                           fi
7051
7052                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
7053
7054 fi
7055
7056
7057           eval "$wx_cv_use_base64"
7058           if test "x$cache" = xyes; then
7059             echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
7060           fi
7061
7062           if test x"$enablestring" = xdisable; then
7063             if test $wxUSE_BASE64 = yes; then
7064               result=no
7065             else
7066               result=yes
7067             fi
7068           else
7069             result=$wxUSE_BASE64
7070           fi
7071
7072           { echo "$as_me:$LINENO: result: $result" >&5
7073 echo "${ECHO_T}$result" >&6; }
7074
7075
7076           enablestring=
7077           defaultval=$wxUSE_ALL_FEATURES
7078           if test -z "$defaultval"; then
7079               if test x"$enablestring" = xdisable; then
7080                   defaultval=yes
7081               else
7082                   defaultval=no
7083               fi
7084           fi
7085
7086           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
7087 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
7088           # Check whether --enable-backtrace was given.
7089 if test "${enable_backtrace+set}" = set; then
7090   enableval=$enable_backtrace;
7091                           if test "$enableval" = yes; then
7092                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
7093                           else
7094                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
7095                           fi
7096                           cache=yes
7097
7098 else
7099
7100                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
7101                           if test "x$LINE" != x ; then
7102                               eval "DEFAULT_$LINE"
7103                               cache=yes
7104                           else
7105                               cache=no
7106                           fi
7107
7108                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
7109
7110 fi
7111
7112
7113           eval "$wx_cv_use_backtrace"
7114           if test "x$cache" = xyes; then
7115             echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
7116           fi
7117
7118           if test x"$enablestring" = xdisable; then
7119             if test $wxUSE_STACKWALKER = yes; then
7120               result=no
7121             else
7122               result=yes
7123             fi
7124           else
7125             result=$wxUSE_STACKWALKER
7126           fi
7127
7128           { echo "$as_me:$LINENO: result: $result" >&5
7129 echo "${ECHO_T}$result" >&6; }
7130
7131
7132           enablestring=
7133           defaultval=$wxUSE_ALL_FEATURES
7134           if test -z "$defaultval"; then
7135               if test x"$enablestring" = xdisable; then
7136                   defaultval=yes
7137               else
7138                   defaultval=no
7139               fi
7140           fi
7141
7142           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
7143 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
7144           # Check whether --enable-catch_segvs was given.
7145 if test "${enable_catch_segvs+set}" = set; then
7146   enableval=$enable_catch_segvs;
7147                           if test "$enableval" = yes; then
7148                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
7149                           else
7150                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
7151                           fi
7152                           cache=yes
7153
7154 else
7155
7156                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
7157                           if test "x$LINE" != x ; then
7158                               eval "DEFAULT_$LINE"
7159                               cache=yes
7160                           else
7161                               cache=no
7162                           fi
7163
7164                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
7165
7166 fi
7167
7168
7169           eval "$wx_cv_use_catch_segvs"
7170           if test "x$cache" = xyes; then
7171             echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
7172           fi
7173
7174           if test x"$enablestring" = xdisable; then
7175             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
7176               result=no
7177             else
7178               result=yes
7179             fi
7180           else
7181             result=$wxUSE_ON_FATAL_EXCEPTION
7182           fi
7183
7184           { echo "$as_me:$LINENO: result: $result" >&5
7185 echo "${ECHO_T}$result" >&6; }
7186
7187
7188           enablestring=
7189           defaultval=$wxUSE_ALL_FEATURES
7190           if test -z "$defaultval"; then
7191               if test x"$enablestring" = xdisable; then
7192                   defaultval=yes
7193               else
7194                   defaultval=no
7195               fi
7196           fi
7197
7198           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
7199 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
7200           # Check whether --enable-cmdline was given.
7201 if test "${enable_cmdline+set}" = set; then
7202   enableval=$enable_cmdline;
7203                           if test "$enableval" = yes; then
7204                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
7205                           else
7206                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
7207                           fi
7208                           cache=yes
7209
7210 else
7211
7212                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7213                           if test "x$LINE" != x ; then
7214                               eval "DEFAULT_$LINE"
7215                               cache=yes
7216                           else
7217                               cache=no
7218                           fi
7219
7220                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7221
7222 fi
7223
7224
7225           eval "$wx_cv_use_cmdline"
7226           if test "x$cache" = xyes; then
7227             echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
7228           fi
7229
7230           if test x"$enablestring" = xdisable; then
7231             if test $wxUSE_CMDLINE_PARSER = yes; then
7232               result=no
7233             else
7234               result=yes
7235             fi
7236           else
7237             result=$wxUSE_CMDLINE_PARSER
7238           fi
7239
7240           { echo "$as_me:$LINENO: result: $result" >&5
7241 echo "${ECHO_T}$result" >&6; }
7242
7243
7244           enablestring=
7245           defaultval=$wxUSE_ALL_FEATURES
7246           if test -z "$defaultval"; then
7247               if test x"$enablestring" = xdisable; then
7248                   defaultval=yes
7249               else
7250                   defaultval=no
7251               fi
7252           fi
7253
7254           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7255 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7256           # Check whether --enable-datetime was given.
7257 if test "${enable_datetime+set}" = set; then
7258   enableval=$enable_datetime;
7259                           if test "$enableval" = yes; then
7260                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7261                           else
7262                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7263                           fi
7264                           cache=yes
7265
7266 else
7267
7268                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7269                           if test "x$LINE" != x ; then
7270                               eval "DEFAULT_$LINE"
7271                               cache=yes
7272                           else
7273                               cache=no
7274                           fi
7275
7276                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7277
7278 fi
7279
7280
7281           eval "$wx_cv_use_datetime"
7282           if test "x$cache" = xyes; then
7283             echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
7284           fi
7285
7286           if test x"$enablestring" = xdisable; then
7287             if test $wxUSE_DATETIME = yes; then
7288               result=no
7289             else
7290               result=yes
7291             fi
7292           else
7293             result=$wxUSE_DATETIME
7294           fi
7295
7296           { echo "$as_me:$LINENO: result: $result" >&5
7297 echo "${ECHO_T}$result" >&6; }
7298
7299
7300           enablestring=
7301           defaultval=$wxUSE_ALL_FEATURES
7302           if test -z "$defaultval"; then
7303               if test x"$enablestring" = xdisable; then
7304                   defaultval=yes
7305               else
7306                   defaultval=no
7307               fi
7308           fi
7309
7310           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7311 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7312           # Check whether --enable-debugreport was given.
7313 if test "${enable_debugreport+set}" = set; then
7314   enableval=$enable_debugreport;
7315                           if test "$enableval" = yes; then
7316                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7317                           else
7318                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7319                           fi
7320                           cache=yes
7321
7322 else
7323
7324                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7325                           if test "x$LINE" != x ; then
7326                               eval "DEFAULT_$LINE"
7327                               cache=yes
7328                           else
7329                               cache=no
7330                           fi
7331
7332                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7333
7334 fi
7335
7336
7337           eval "$wx_cv_use_debugreport"
7338           if test "x$cache" = xyes; then
7339             echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
7340           fi
7341
7342           if test x"$enablestring" = xdisable; then
7343             if test $wxUSE_DEBUGREPORT = yes; then
7344               result=no
7345             else
7346               result=yes
7347             fi
7348           else
7349             result=$wxUSE_DEBUGREPORT
7350           fi
7351
7352           { echo "$as_me:$LINENO: result: $result" >&5
7353 echo "${ECHO_T}$result" >&6; }
7354
7355
7356           enablestring=
7357           defaultval=$wxUSE_ALL_FEATURES
7358           if test -z "$defaultval"; then
7359               if test x"$enablestring" = xdisable; then
7360                   defaultval=yes
7361               else
7362                   defaultval=no
7363               fi
7364           fi
7365
7366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7367 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7368           # Check whether --enable-dialupman was given.
7369 if test "${enable_dialupman+set}" = set; then
7370   enableval=$enable_dialupman;
7371                           if test "$enableval" = yes; then
7372                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7373                           else
7374                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7375                           fi
7376                           cache=yes
7377
7378 else
7379
7380                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7381                           if test "x$LINE" != x ; then
7382                               eval "DEFAULT_$LINE"
7383                               cache=yes
7384                           else
7385                               cache=no
7386                           fi
7387
7388                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7389
7390 fi
7391
7392
7393           eval "$wx_cv_use_dialupman"
7394           if test "x$cache" = xyes; then
7395             echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
7396           fi
7397
7398           if test x"$enablestring" = xdisable; then
7399             if test $wxUSE_DIALUP_MANAGER = yes; then
7400               result=no
7401             else
7402               result=yes
7403             fi
7404           else
7405             result=$wxUSE_DIALUP_MANAGER
7406           fi
7407
7408           { echo "$as_me:$LINENO: result: $result" >&5
7409 echo "${ECHO_T}$result" >&6; }
7410
7411
7412           enablestring=
7413           defaultval=$wxUSE_ALL_FEATURES
7414           if test -z "$defaultval"; then
7415               if test x"$enablestring" = xdisable; then
7416                   defaultval=yes
7417               else
7418                   defaultval=no
7419               fi
7420           fi
7421
7422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7423 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7424           # Check whether --enable-dynlib was given.
7425 if test "${enable_dynlib+set}" = set; then
7426   enableval=$enable_dynlib;
7427                           if test "$enableval" = yes; then
7428                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7429                           else
7430                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7431                           fi
7432                           cache=yes
7433
7434 else
7435
7436                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7437                           if test "x$LINE" != x ; then
7438                               eval "DEFAULT_$LINE"
7439                               cache=yes
7440                           else
7441                               cache=no
7442                           fi
7443
7444                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7445
7446 fi
7447
7448
7449           eval "$wx_cv_use_dynlib"
7450           if test "x$cache" = xyes; then
7451             echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
7452           fi
7453
7454           if test x"$enablestring" = xdisable; then
7455             if test $wxUSE_DYNLIB_CLASS = yes; then
7456               result=no
7457             else
7458               result=yes
7459             fi
7460           else
7461             result=$wxUSE_DYNLIB_CLASS
7462           fi
7463
7464           { echo "$as_me:$LINENO: result: $result" >&5
7465 echo "${ECHO_T}$result" >&6; }
7466
7467
7468           enablestring=
7469           defaultval=$wxUSE_ALL_FEATURES
7470           if test -z "$defaultval"; then
7471               if test x"$enablestring" = xdisable; then
7472                   defaultval=yes
7473               else
7474                   defaultval=no
7475               fi
7476           fi
7477
7478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7479 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7480           # Check whether --enable-dynamicloader was given.
7481 if test "${enable_dynamicloader+set}" = set; then
7482   enableval=$enable_dynamicloader;
7483                           if test "$enableval" = yes; then
7484                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7485                           else
7486                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7487                           fi
7488                           cache=yes
7489
7490 else
7491
7492                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7493                           if test "x$LINE" != x ; then
7494                               eval "DEFAULT_$LINE"
7495                               cache=yes
7496                           else
7497                               cache=no
7498                           fi
7499
7500                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7501
7502 fi
7503
7504
7505           eval "$wx_cv_use_dynamicloader"
7506           if test "x$cache" = xyes; then
7507             echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
7508           fi
7509
7510           if test x"$enablestring" = xdisable; then
7511             if test $wxUSE_DYNAMIC_LOADER = yes; then
7512               result=no
7513             else
7514               result=yes
7515             fi
7516           else
7517             result=$wxUSE_DYNAMIC_LOADER
7518           fi
7519
7520           { echo "$as_me:$LINENO: result: $result" >&5
7521 echo "${ECHO_T}$result" >&6; }
7522
7523
7524           enablestring=
7525           defaultval=$wxUSE_ALL_FEATURES
7526           if test -z "$defaultval"; then
7527               if test x"$enablestring" = xdisable; then
7528                   defaultval=yes
7529               else
7530                   defaultval=no
7531               fi
7532           fi
7533
7534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7535 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7536           # Check whether --enable-exceptions was given.
7537 if test "${enable_exceptions+set}" = set; then
7538   enableval=$enable_exceptions;
7539                           if test "$enableval" = yes; then
7540                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7541                           else
7542                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7543                           fi
7544                           cache=yes
7545
7546 else
7547
7548                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7549                           if test "x$LINE" != x ; then
7550                               eval "DEFAULT_$LINE"
7551                               cache=yes
7552                           else
7553                               cache=no
7554                           fi
7555
7556                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7557
7558 fi
7559
7560
7561           eval "$wx_cv_use_exceptions"
7562           if test "x$cache" = xyes; then
7563             echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
7564           fi
7565
7566           if test x"$enablestring" = xdisable; then
7567             if test $wxUSE_EXCEPTIONS = yes; then
7568               result=no
7569             else
7570               result=yes
7571             fi
7572           else
7573             result=$wxUSE_EXCEPTIONS
7574           fi
7575
7576           { echo "$as_me:$LINENO: result: $result" >&5
7577 echo "${ECHO_T}$result" >&6; }
7578
7579
7580           enablestring=
7581           defaultval=$wxUSE_ALL_FEATURES
7582           if test -z "$defaultval"; then
7583               if test x"$enablestring" = xdisable; then
7584                   defaultval=yes
7585               else
7586                   defaultval=no
7587               fi
7588           fi
7589
7590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7591 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7592           # Check whether --enable-ffile was given.
7593 if test "${enable_ffile+set}" = set; then
7594   enableval=$enable_ffile;
7595                           if test "$enableval" = yes; then
7596                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7597                           else
7598                             wx_cv_use_ffile='wxUSE_FFILE=no'
7599                           fi
7600                           cache=yes
7601
7602 else
7603
7604                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7605                           if test "x$LINE" != x ; then
7606                               eval "DEFAULT_$LINE"
7607                               cache=yes
7608                           else
7609                               cache=no
7610                           fi
7611
7612                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7613
7614 fi
7615
7616
7617           eval "$wx_cv_use_ffile"
7618           if test "x$cache" = xyes; then
7619             echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
7620           fi
7621
7622           if test x"$enablestring" = xdisable; then
7623             if test $wxUSE_FFILE = yes; then
7624               result=no
7625             else
7626               result=yes
7627             fi
7628           else
7629             result=$wxUSE_FFILE
7630           fi
7631
7632           { echo "$as_me:$LINENO: result: $result" >&5
7633 echo "${ECHO_T}$result" >&6; }
7634
7635
7636           enablestring=
7637           defaultval=$wxUSE_ALL_FEATURES
7638           if test -z "$defaultval"; then
7639               if test x"$enablestring" = xdisable; then
7640                   defaultval=yes
7641               else
7642                   defaultval=no
7643               fi
7644           fi
7645
7646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7647 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7648           # Check whether --enable-file was given.
7649 if test "${enable_file+set}" = set; then
7650   enableval=$enable_file;
7651                           if test "$enableval" = yes; then
7652                             wx_cv_use_file='wxUSE_FILE=yes'
7653                           else
7654                             wx_cv_use_file='wxUSE_FILE=no'
7655                           fi
7656                           cache=yes
7657
7658 else
7659
7660                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7661                           if test "x$LINE" != x ; then
7662                               eval "DEFAULT_$LINE"
7663                               cache=yes
7664                           else
7665                               cache=no
7666                           fi
7667
7668                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7669
7670 fi
7671
7672
7673           eval "$wx_cv_use_file"
7674           if test "x$cache" = xyes; then
7675             echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
7676           fi
7677
7678           if test x"$enablestring" = xdisable; then
7679             if test $wxUSE_FILE = yes; then
7680               result=no
7681             else
7682               result=yes
7683             fi
7684           else
7685             result=$wxUSE_FILE
7686           fi
7687
7688           { echo "$as_me:$LINENO: result: $result" >&5
7689 echo "${ECHO_T}$result" >&6; }
7690
7691
7692           enablestring=
7693           defaultval=$wxUSE_ALL_FEATURES
7694           if test -z "$defaultval"; then
7695               if test x"$enablestring" = xdisable; then
7696                   defaultval=yes
7697               else
7698                   defaultval=no
7699               fi
7700           fi
7701
7702           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7703 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7704           # Check whether --enable-filesystem was given.
7705 if test "${enable_filesystem+set}" = set; then
7706   enableval=$enable_filesystem;
7707                           if test "$enableval" = yes; then
7708                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7709                           else
7710                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7711                           fi
7712                           cache=yes
7713
7714 else
7715
7716                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7717                           if test "x$LINE" != x ; then
7718                               eval "DEFAULT_$LINE"
7719                               cache=yes
7720                           else
7721                               cache=no
7722                           fi
7723
7724                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7725
7726 fi
7727
7728
7729           eval "$wx_cv_use_filesystem"
7730           if test "x$cache" = xyes; then
7731             echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
7732           fi
7733
7734           if test x"$enablestring" = xdisable; then
7735             if test $wxUSE_FILESYSTEM = yes; then
7736               result=no
7737             else
7738               result=yes
7739             fi
7740           else
7741             result=$wxUSE_FILESYSTEM
7742           fi
7743
7744           { echo "$as_me:$LINENO: result: $result" >&5
7745 echo "${ECHO_T}$result" >&6; }
7746
7747
7748           enablestring=
7749           defaultval=$wxUSE_ALL_FEATURES
7750           if test -z "$defaultval"; then
7751               if test x"$enablestring" = xdisable; then
7752                   defaultval=yes
7753               else
7754                   defaultval=no
7755               fi
7756           fi
7757
7758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7759 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7760           # Check whether --enable-fontenum was given.
7761 if test "${enable_fontenum+set}" = set; then
7762   enableval=$enable_fontenum;
7763                           if test "$enableval" = yes; then
7764                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7765                           else
7766                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7767                           fi
7768                           cache=yes
7769
7770 else
7771
7772                           LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7773                           if test "x$LINE" != x ; then
7774                               eval "DEFAULT_$LINE"
7775                               cache=yes
7776                           else
7777                               cache=no
7778                           fi
7779
7780                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7781
7782 fi
7783
7784
7785           eval "$wx_cv_use_fontenum"
7786           if test "x$cache" = xyes; then
7787             echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
7788           fi
7789
7790           if test x"$enablestring" = xdisable; then
7791             if test $wxUSE_FONTENUM = yes; then
7792               result=no
7793             else
7794               result=yes
7795             fi
7796           else
7797             result=$wxUSE_FONTENUM
7798           fi
7799
7800           { echo "$as_me:$LINENO: result: $result" >&5
7801 echo "${ECHO_T}$result" >&6; }
7802
7803
7804           enablestring=
7805           defaultval=$wxUSE_ALL_FEATURES
7806           if test -z "$defaultval"; then
7807               if test x"$enablestring" = xdisable; then
7808                   defaultval=yes
7809               else
7810                   defaultval=no
7811               fi
7812           fi
7813
7814           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7815 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7816           # Check whether --enable-fontmap was given.
7817 if test "${enable_fontmap+set}" = set; then
7818   enableval=$enable_fontmap;
7819                           if test "$enableval" = yes; then
7820                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7821                           else
7822                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7823                           fi
7824                           cache=yes
7825
7826 else
7827
7828                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7829                           if test "x$LINE" != x ; then
7830                               eval "DEFAULT_$LINE"
7831                               cache=yes
7832                           else
7833                               cache=no
7834                           fi
7835
7836                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7837
7838 fi
7839
7840
7841           eval "$wx_cv_use_fontmap"
7842           if test "x$cache" = xyes; then
7843             echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
7844           fi
7845
7846           if test x"$enablestring" = xdisable; then
7847             if test $wxUSE_FONTMAP = yes; then
7848               result=no
7849             else
7850               result=yes
7851             fi
7852           else
7853             result=$wxUSE_FONTMAP
7854           fi
7855
7856           { echo "$as_me:$LINENO: result: $result" >&5
7857 echo "${ECHO_T}$result" >&6; }
7858
7859
7860           enablestring=
7861           defaultval=$wxUSE_ALL_FEATURES
7862           if test -z "$defaultval"; then
7863               if test x"$enablestring" = xdisable; then
7864                   defaultval=yes
7865               else
7866                   defaultval=no
7867               fi
7868           fi
7869
7870           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7871 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7872           # Check whether --enable-fs_archive was given.
7873 if test "${enable_fs_archive+set}" = set; then
7874   enableval=$enable_fs_archive;
7875                           if test "$enableval" = yes; then
7876                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7877                           else
7878                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7879                           fi
7880                           cache=yes
7881
7882 else
7883
7884                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7885                           if test "x$LINE" != x ; then
7886                               eval "DEFAULT_$LINE"
7887                               cache=yes
7888                           else
7889                               cache=no
7890                           fi
7891
7892                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7893
7894 fi
7895
7896
7897           eval "$wx_cv_use_fs_archive"
7898           if test "x$cache" = xyes; then
7899             echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
7900           fi
7901
7902           if test x"$enablestring" = xdisable; then
7903             if test $wxUSE_FS_ARCHIVE = yes; then
7904               result=no
7905             else
7906               result=yes
7907             fi
7908           else
7909             result=$wxUSE_FS_ARCHIVE
7910           fi
7911
7912           { echo "$as_me:$LINENO: result: $result" >&5
7913 echo "${ECHO_T}$result" >&6; }
7914
7915
7916           enablestring=
7917           defaultval=$wxUSE_ALL_FEATURES
7918           if test -z "$defaultval"; then
7919               if test x"$enablestring" = xdisable; then
7920                   defaultval=yes
7921               else
7922                   defaultval=no
7923               fi
7924           fi
7925
7926           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7927 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7928           # Check whether --enable-fs_inet was given.
7929 if test "${enable_fs_inet+set}" = set; then
7930   enableval=$enable_fs_inet;
7931                           if test "$enableval" = yes; then
7932                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7933                           else
7934                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7935                           fi
7936                           cache=yes
7937
7938 else
7939
7940                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7941                           if test "x$LINE" != x ; then
7942                               eval "DEFAULT_$LINE"
7943                               cache=yes
7944                           else
7945                               cache=no
7946                           fi
7947
7948                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7949
7950 fi
7951
7952
7953           eval "$wx_cv_use_fs_inet"
7954           if test "x$cache" = xyes; then
7955             echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
7956           fi
7957
7958           if test x"$enablestring" = xdisable; then
7959             if test $wxUSE_FS_INET = yes; then
7960               result=no
7961             else
7962               result=yes
7963             fi
7964           else
7965             result=$wxUSE_FS_INET
7966           fi
7967
7968           { echo "$as_me:$LINENO: result: $result" >&5
7969 echo "${ECHO_T}$result" >&6; }
7970
7971
7972           enablestring=
7973           defaultval=$wxUSE_ALL_FEATURES
7974           if test -z "$defaultval"; then
7975               if test x"$enablestring" = xdisable; then
7976                   defaultval=yes
7977               else
7978                   defaultval=no
7979               fi
7980           fi
7981
7982           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7983 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7984           # Check whether --enable-fs_zip was given.
7985 if test "${enable_fs_zip+set}" = set; then
7986   enableval=$enable_fs_zip;
7987                           if test "$enableval" = yes; then
7988                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7989                           else
7990                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7991                           fi
7992                           cache=yes
7993
7994 else
7995
7996                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7997                           if test "x$LINE" != x ; then
7998                               eval "DEFAULT_$LINE"
7999                               cache=yes
8000                           else
8001                               cache=no
8002                           fi
8003
8004                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
8005
8006 fi
8007
8008
8009           eval "$wx_cv_use_fs_zip"
8010           if test "x$cache" = xyes; then
8011             echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
8012           fi
8013
8014           if test x"$enablestring" = xdisable; then
8015             if test $wxUSE_FS_ZIP = yes; then
8016               result=no
8017             else
8018               result=yes
8019             fi
8020           else
8021             result=$wxUSE_FS_ZIP
8022           fi
8023
8024           { echo "$as_me:$LINENO: result: $result" >&5
8025 echo "${ECHO_T}$result" >&6; }
8026
8027
8028           enablestring=
8029           defaultval=$wxUSE_ALL_FEATURES
8030           if test -z "$defaultval"; then
8031               if test x"$enablestring" = xdisable; then
8032                   defaultval=yes
8033               else
8034                   defaultval=no
8035               fi
8036           fi
8037
8038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
8039 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
8040           # Check whether --enable-geometry was given.
8041 if test "${enable_geometry+set}" = set; then
8042   enableval=$enable_geometry;
8043                           if test "$enableval" = yes; then
8044                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
8045                           else
8046                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
8047                           fi
8048                           cache=yes
8049
8050 else
8051
8052                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
8053                           if test "x$LINE" != x ; then
8054                               eval "DEFAULT_$LINE"
8055                               cache=yes
8056                           else
8057                               cache=no
8058                           fi
8059
8060                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
8061
8062 fi
8063
8064
8065           eval "$wx_cv_use_geometry"
8066           if test "x$cache" = xyes; then
8067             echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
8068           fi
8069
8070           if test x"$enablestring" = xdisable; then
8071             if test $wxUSE_GEOMETRY = yes; then
8072               result=no
8073             else
8074               result=yes
8075             fi
8076           else
8077             result=$wxUSE_GEOMETRY
8078           fi
8079
8080           { echo "$as_me:$LINENO: result: $result" >&5
8081 echo "${ECHO_T}$result" >&6; }
8082
8083
8084           enablestring=
8085           defaultval=$wxUSE_ALL_FEATURES
8086           if test -z "$defaultval"; then
8087               if test x"$enablestring" = xdisable; then
8088                   defaultval=yes
8089               else
8090                   defaultval=no
8091               fi
8092           fi
8093
8094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
8095 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
8096           # Check whether --enable-log was given.
8097 if test "${enable_log+set}" = set; then
8098   enableval=$enable_log;
8099                           if test "$enableval" = yes; then
8100                             wx_cv_use_log='wxUSE_LOG=yes'
8101                           else
8102                             wx_cv_use_log='wxUSE_LOG=no'
8103                           fi
8104                           cache=yes
8105
8106 else
8107
8108                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
8109                           if test "x$LINE" != x ; then
8110                               eval "DEFAULT_$LINE"
8111                               cache=yes
8112                           else
8113                               cache=no
8114                           fi
8115
8116                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
8117
8118 fi
8119
8120
8121           eval "$wx_cv_use_log"
8122           if test "x$cache" = xyes; then
8123             echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
8124           fi
8125
8126           if test x"$enablestring" = xdisable; then
8127             if test $wxUSE_LOG = yes; then
8128               result=no
8129             else
8130               result=yes
8131             fi
8132           else
8133             result=$wxUSE_LOG
8134           fi
8135
8136           { echo "$as_me:$LINENO: result: $result" >&5
8137 echo "${ECHO_T}$result" >&6; }
8138
8139
8140           enablestring=
8141           defaultval=$wxUSE_ALL_FEATURES
8142           if test -z "$defaultval"; then
8143               if test x"$enablestring" = xdisable; then
8144                   defaultval=yes
8145               else
8146                   defaultval=no
8147               fi
8148           fi
8149
8150           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
8151 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
8152           # Check whether --enable-longlong was given.
8153 if test "${enable_longlong+set}" = set; then
8154   enableval=$enable_longlong;
8155                           if test "$enableval" = yes; then
8156                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
8157                           else
8158                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
8159                           fi
8160                           cache=yes
8161
8162 else
8163
8164                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
8165                           if test "x$LINE" != x ; then
8166                               eval "DEFAULT_$LINE"
8167                               cache=yes
8168                           else
8169                               cache=no
8170                           fi
8171
8172                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
8173
8174 fi
8175
8176
8177           eval "$wx_cv_use_longlong"
8178           if test "x$cache" = xyes; then
8179             echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
8180           fi
8181
8182           if test x"$enablestring" = xdisable; then
8183             if test $wxUSE_LONGLONG = yes; then
8184               result=no
8185             else
8186               result=yes
8187             fi
8188           else
8189             result=$wxUSE_LONGLONG
8190           fi
8191
8192           { echo "$as_me:$LINENO: result: $result" >&5
8193 echo "${ECHO_T}$result" >&6; }
8194
8195
8196           enablestring=
8197           defaultval=$wxUSE_ALL_FEATURES
8198           if test -z "$defaultval"; then
8199               if test x"$enablestring" = xdisable; then
8200                   defaultval=yes
8201               else
8202                   defaultval=no
8203               fi
8204           fi
8205
8206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
8207 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
8208           # Check whether --enable-mimetype was given.
8209 if test "${enable_mimetype+set}" = set; then
8210   enableval=$enable_mimetype;
8211                           if test "$enableval" = yes; then
8212                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
8213                           else
8214                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
8215                           fi
8216                           cache=yes
8217
8218 else
8219
8220                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
8221                           if test "x$LINE" != x ; then
8222                               eval "DEFAULT_$LINE"
8223                               cache=yes
8224                           else
8225                               cache=no
8226                           fi
8227
8228                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
8229
8230 fi
8231
8232
8233           eval "$wx_cv_use_mimetype"
8234           if test "x$cache" = xyes; then
8235             echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
8236           fi
8237
8238           if test x"$enablestring" = xdisable; then
8239             if test $wxUSE_MIMETYPE = yes; then
8240               result=no
8241             else
8242               result=yes
8243             fi
8244           else
8245             result=$wxUSE_MIMETYPE
8246           fi
8247
8248           { echo "$as_me:$LINENO: result: $result" >&5
8249 echo "${ECHO_T}$result" >&6; }
8250
8251
8252           enablestring=
8253           defaultval=$wxUSE_ALL_FEATURES
8254           if test -z "$defaultval"; then
8255               if test x"$enablestring" = xdisable; then
8256                   defaultval=yes
8257               else
8258                   defaultval=no
8259               fi
8260           fi
8261
8262           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
8263 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
8264           # Check whether --enable-snglinst was given.
8265 if test "${enable_snglinst+set}" = set; then
8266   enableval=$enable_snglinst;
8267                           if test "$enableval" = yes; then
8268                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
8269                           else
8270                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
8271                           fi
8272                           cache=yes
8273
8274 else
8275
8276                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8277                           if test "x$LINE" != x ; then
8278                               eval "DEFAULT_$LINE"
8279                               cache=yes
8280                           else
8281                               cache=no
8282                           fi
8283
8284                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8285
8286 fi
8287
8288
8289           eval "$wx_cv_use_snglinst"
8290           if test "x$cache" = xyes; then
8291             echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
8292           fi
8293
8294           if test x"$enablestring" = xdisable; then
8295             if test $wxUSE_SNGLINST_CHECKER = yes; then
8296               result=no
8297             else
8298               result=yes
8299             fi
8300           else
8301             result=$wxUSE_SNGLINST_CHECKER
8302           fi
8303
8304           { echo "$as_me:$LINENO: result: $result" >&5
8305 echo "${ECHO_T}$result" >&6; }
8306
8307
8308           enablestring=
8309           defaultval=$wxUSE_ALL_FEATURES
8310           if test -z "$defaultval"; then
8311               if test x"$enablestring" = xdisable; then
8312                   defaultval=yes
8313               else
8314                   defaultval=no
8315               fi
8316           fi
8317
8318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8319 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8320           # Check whether --enable-stdpaths was given.
8321 if test "${enable_stdpaths+set}" = set; then
8322   enableval=$enable_stdpaths;
8323                           if test "$enableval" = yes; then
8324                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8325                           else
8326                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8327                           fi
8328                           cache=yes
8329
8330 else
8331
8332                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8333                           if test "x$LINE" != x ; then
8334                               eval "DEFAULT_$LINE"
8335                               cache=yes
8336                           else
8337                               cache=no
8338                           fi
8339
8340                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8341
8342 fi
8343
8344
8345           eval "$wx_cv_use_stdpaths"
8346           if test "x$cache" = xyes; then
8347             echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
8348           fi
8349
8350           if test x"$enablestring" = xdisable; then
8351             if test $wxUSE_STDPATHS = yes; then
8352               result=no
8353             else
8354               result=yes
8355             fi
8356           else
8357             result=$wxUSE_STDPATHS
8358           fi
8359
8360           { echo "$as_me:$LINENO: result: $result" >&5
8361 echo "${ECHO_T}$result" >&6; }
8362
8363
8364           enablestring=
8365           defaultval=$wxUSE_ALL_FEATURES
8366           if test -z "$defaultval"; then
8367               if test x"$enablestring" = xdisable; then
8368                   defaultval=yes
8369               else
8370                   defaultval=no
8371               fi
8372           fi
8373
8374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8375 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8376           # Check whether --enable-stopwatch was given.
8377 if test "${enable_stopwatch+set}" = set; then
8378   enableval=$enable_stopwatch;
8379                           if test "$enableval" = yes; then
8380                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8381                           else
8382                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8383                           fi
8384                           cache=yes
8385
8386 else
8387
8388                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8389                           if test "x$LINE" != x ; then
8390                               eval "DEFAULT_$LINE"
8391                               cache=yes
8392                           else
8393                               cache=no
8394                           fi
8395
8396                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8397
8398 fi
8399
8400
8401           eval "$wx_cv_use_stopwatch"
8402           if test "x$cache" = xyes; then
8403             echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
8404           fi
8405
8406           if test x"$enablestring" = xdisable; then
8407             if test $wxUSE_STOPWATCH = yes; then
8408               result=no
8409             else
8410               result=yes
8411             fi
8412           else
8413             result=$wxUSE_STOPWATCH
8414           fi
8415
8416           { echo "$as_me:$LINENO: result: $result" >&5
8417 echo "${ECHO_T}$result" >&6; }
8418
8419
8420           enablestring=
8421           defaultval=$wxUSE_ALL_FEATURES
8422           if test -z "$defaultval"; then
8423               if test x"$enablestring" = xdisable; then
8424                   defaultval=yes
8425               else
8426                   defaultval=no
8427               fi
8428           fi
8429
8430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8431 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8432           # Check whether --enable-streams was given.
8433 if test "${enable_streams+set}" = set; then
8434   enableval=$enable_streams;
8435                           if test "$enableval" = yes; then
8436                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8437                           else
8438                             wx_cv_use_streams='wxUSE_STREAMS=no'
8439                           fi
8440                           cache=yes
8441
8442 else
8443
8444                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8445                           if test "x$LINE" != x ; then
8446                               eval "DEFAULT_$LINE"
8447                               cache=yes
8448                           else
8449                               cache=no
8450                           fi
8451
8452                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8453
8454 fi
8455
8456
8457           eval "$wx_cv_use_streams"
8458           if test "x$cache" = xyes; then
8459             echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
8460           fi
8461
8462           if test x"$enablestring" = xdisable; then
8463             if test $wxUSE_STREAMS = yes; then
8464               result=no
8465             else
8466               result=yes
8467             fi
8468           else
8469             result=$wxUSE_STREAMS
8470           fi
8471
8472           { echo "$as_me:$LINENO: result: $result" >&5
8473 echo "${ECHO_T}$result" >&6; }
8474
8475
8476           enablestring=
8477           defaultval=$wxUSE_ALL_FEATURES
8478           if test -z "$defaultval"; then
8479               if test x"$enablestring" = xdisable; then
8480                   defaultval=yes
8481               else
8482                   defaultval=no
8483               fi
8484           fi
8485
8486           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8487 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8488           # Check whether --enable-system_options was given.
8489 if test "${enable_system_options+set}" = set; then
8490   enableval=$enable_system_options;
8491                           if test "$enableval" = yes; then
8492                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8493                           else
8494                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8495                           fi
8496                           cache=yes
8497
8498 else
8499
8500                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8501                           if test "x$LINE" != x ; then
8502                               eval "DEFAULT_$LINE"
8503                               cache=yes
8504                           else
8505                               cache=no
8506                           fi
8507
8508                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8509
8510 fi
8511
8512
8513           eval "$wx_cv_use_system_options"
8514           if test "x$cache" = xyes; then
8515             echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
8516           fi
8517
8518           if test x"$enablestring" = xdisable; then
8519             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8520               result=no
8521             else
8522               result=yes
8523             fi
8524           else
8525             result=$wxUSE_SYSTEM_OPTIONS
8526           fi
8527
8528           { echo "$as_me:$LINENO: result: $result" >&5
8529 echo "${ECHO_T}$result" >&6; }
8530
8531
8532           enablestring=
8533           defaultval=$wxUSE_ALL_FEATURES
8534           if test -z "$defaultval"; then
8535               if test x"$enablestring" = xdisable; then
8536                   defaultval=yes
8537               else
8538                   defaultval=no
8539               fi
8540           fi
8541
8542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8543 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8544           # Check whether --enable-tarstream was given.
8545 if test "${enable_tarstream+set}" = set; then
8546   enableval=$enable_tarstream;
8547                           if test "$enableval" = yes; then
8548                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8549                           else
8550                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8551                           fi
8552                           cache=yes
8553
8554 else
8555
8556                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8557                           if test "x$LINE" != x ; then
8558                               eval "DEFAULT_$LINE"
8559                               cache=yes
8560                           else
8561                               cache=no
8562                           fi
8563
8564                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8565
8566 fi
8567
8568
8569           eval "$wx_cv_use_tarstream"
8570           if test "x$cache" = xyes; then
8571             echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
8572           fi
8573
8574           if test x"$enablestring" = xdisable; then
8575             if test $wxUSE_TARSTREAM = yes; then
8576               result=no
8577             else
8578               result=yes
8579             fi
8580           else
8581             result=$wxUSE_TARSTREAM
8582           fi
8583
8584           { echo "$as_me:$LINENO: result: $result" >&5
8585 echo "${ECHO_T}$result" >&6; }
8586
8587
8588           enablestring=
8589           defaultval=$wxUSE_ALL_FEATURES
8590           if test -z "$defaultval"; then
8591               if test x"$enablestring" = xdisable; then
8592                   defaultval=yes
8593               else
8594                   defaultval=no
8595               fi
8596           fi
8597
8598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8599 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8600           # Check whether --enable-textbuf was given.
8601 if test "${enable_textbuf+set}" = set; then
8602   enableval=$enable_textbuf;
8603                           if test "$enableval" = yes; then
8604                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8605                           else
8606                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8607                           fi
8608                           cache=yes
8609
8610 else
8611
8612                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8613                           if test "x$LINE" != x ; then
8614                               eval "DEFAULT_$LINE"
8615                               cache=yes
8616                           else
8617                               cache=no
8618                           fi
8619
8620                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8621
8622 fi
8623
8624
8625           eval "$wx_cv_use_textbuf"
8626           if test "x$cache" = xyes; then
8627             echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
8628           fi
8629
8630           if test x"$enablestring" = xdisable; then
8631             if test $wxUSE_TEXTBUFFER = yes; then
8632               result=no
8633             else
8634               result=yes
8635             fi
8636           else
8637             result=$wxUSE_TEXTBUFFER
8638           fi
8639
8640           { echo "$as_me:$LINENO: result: $result" >&5
8641 echo "${ECHO_T}$result" >&6; }
8642
8643
8644           enablestring=
8645           defaultval=$wxUSE_ALL_FEATURES
8646           if test -z "$defaultval"; then
8647               if test x"$enablestring" = xdisable; then
8648                   defaultval=yes
8649               else
8650                   defaultval=no
8651               fi
8652           fi
8653
8654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8655 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8656           # Check whether --enable-textfile was given.
8657 if test "${enable_textfile+set}" = set; then
8658   enableval=$enable_textfile;
8659                           if test "$enableval" = yes; then
8660                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8661                           else
8662                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8663                           fi
8664                           cache=yes
8665
8666 else
8667
8668                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8669                           if test "x$LINE" != x ; then
8670                               eval "DEFAULT_$LINE"
8671                               cache=yes
8672                           else
8673                               cache=no
8674                           fi
8675
8676                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8677
8678 fi
8679
8680
8681           eval "$wx_cv_use_textfile"
8682           if test "x$cache" = xyes; then
8683             echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
8684           fi
8685
8686           if test x"$enablestring" = xdisable; then
8687             if test $wxUSE_TEXTFILE = yes; then
8688               result=no
8689             else
8690               result=yes
8691             fi
8692           else
8693             result=$wxUSE_TEXTFILE
8694           fi
8695
8696           { echo "$as_me:$LINENO: result: $result" >&5
8697 echo "${ECHO_T}$result" >&6; }
8698
8699
8700           enablestring=
8701           defaultval=$wxUSE_ALL_FEATURES
8702           if test -z "$defaultval"; then
8703               if test x"$enablestring" = xdisable; then
8704                   defaultval=yes
8705               else
8706                   defaultval=no
8707               fi
8708           fi
8709
8710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8711 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8712           # Check whether --enable-timer was given.
8713 if test "${enable_timer+set}" = set; then
8714   enableval=$enable_timer;
8715                           if test "$enableval" = yes; then
8716                             wx_cv_use_timer='wxUSE_TIMER=yes'
8717                           else
8718                             wx_cv_use_timer='wxUSE_TIMER=no'
8719                           fi
8720                           cache=yes
8721
8722 else
8723
8724                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8725                           if test "x$LINE" != x ; then
8726                               eval "DEFAULT_$LINE"
8727                               cache=yes
8728                           else
8729                               cache=no
8730                           fi
8731
8732                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8733
8734 fi
8735
8736
8737           eval "$wx_cv_use_timer"
8738           if test "x$cache" = xyes; then
8739             echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
8740           fi
8741
8742           if test x"$enablestring" = xdisable; then
8743             if test $wxUSE_TIMER = yes; then
8744               result=no
8745             else
8746               result=yes
8747             fi
8748           else
8749             result=$wxUSE_TIMER
8750           fi
8751
8752           { echo "$as_me:$LINENO: result: $result" >&5
8753 echo "${ECHO_T}$result" >&6; }
8754
8755
8756           enablestring=
8757           defaultval=$wxUSE_ALL_FEATURES
8758           if test -z "$defaultval"; then
8759               if test x"$enablestring" = xdisable; then
8760                   defaultval=yes
8761               else
8762                   defaultval=no
8763               fi
8764           fi
8765
8766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8767 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8768           # Check whether --enable-sound was given.
8769 if test "${enable_sound+set}" = set; then
8770   enableval=$enable_sound;
8771                           if test "$enableval" = yes; then
8772                             wx_cv_use_sound='wxUSE_SOUND=yes'
8773                           else
8774                             wx_cv_use_sound='wxUSE_SOUND=no'
8775                           fi
8776                           cache=yes
8777
8778 else
8779
8780                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8781                           if test "x$LINE" != x ; then
8782                               eval "DEFAULT_$LINE"
8783                               cache=yes
8784                           else
8785                               cache=no
8786                           fi
8787
8788                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8789
8790 fi
8791
8792
8793           eval "$wx_cv_use_sound"
8794           if test "x$cache" = xyes; then
8795             echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
8796           fi
8797
8798           if test x"$enablestring" = xdisable; then
8799             if test $wxUSE_SOUND = yes; then
8800               result=no
8801             else
8802               result=yes
8803             fi
8804           else
8805             result=$wxUSE_SOUND
8806           fi
8807
8808           { echo "$as_me:$LINENO: result: $result" >&5
8809 echo "${ECHO_T}$result" >&6; }
8810
8811
8812           enablestring=
8813           defaultval=$wxUSE_ALL_FEATURES
8814           if test -z "$defaultval"; then
8815               if test x"$enablestring" = xdisable; then
8816                   defaultval=yes
8817               else
8818                   defaultval=no
8819               fi
8820           fi
8821
8822           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8823 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8824           # Check whether --enable-mediactrl was given.
8825 if test "${enable_mediactrl+set}" = set; then
8826   enableval=$enable_mediactrl;
8827                           if test "$enableval" = yes; then
8828                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8829                           else
8830                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8831                           fi
8832                           cache=yes
8833
8834 else
8835
8836                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8837                           if test "x$LINE" != x ; then
8838                               eval "DEFAULT_$LINE"
8839                               cache=yes
8840                           else
8841                               cache=no
8842                           fi
8843
8844                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8845
8846 fi
8847
8848
8849           eval "$wx_cv_use_mediactrl"
8850           if test "x$cache" = xyes; then
8851             echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
8852           fi
8853
8854           if test x"$enablestring" = xdisable; then
8855             if test $wxUSE_MEDIACTRL = yes; then
8856               result=no
8857             else
8858               result=yes
8859             fi
8860           else
8861             result=$wxUSE_MEDIACTRL
8862           fi
8863
8864           { echo "$as_me:$LINENO: result: $result" >&5
8865 echo "${ECHO_T}$result" >&6; }
8866
8867
8868           enablestring=
8869           defaultval=$wxUSE_ALL_FEATURES
8870           if test -z "$defaultval"; then
8871               if test x"$enablestring" = xdisable; then
8872                   defaultval=yes
8873               else
8874                   defaultval=no
8875               fi
8876           fi
8877
8878           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8879 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8880           # Check whether --enable-gstreamer8 was given.
8881 if test "${enable_gstreamer8+set}" = set; then
8882   enableval=$enable_gstreamer8;
8883                           if test "$enableval" = yes; then
8884                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8885                           else
8886                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8887                           fi
8888                           cache=yes
8889
8890 else
8891
8892                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8893                           if test "x$LINE" != x ; then
8894                               eval "DEFAULT_$LINE"
8895                               cache=yes
8896                           else
8897                               cache=no
8898                           fi
8899
8900                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8901
8902 fi
8903
8904
8905           eval "$wx_cv_use_gstreamer8"
8906           if test "x$cache" = xyes; then
8907             echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
8908           fi
8909
8910           if test x"$enablestring" = xdisable; then
8911             if test $wxUSE_GSTREAMER8 = yes; then
8912               result=no
8913             else
8914               result=yes
8915             fi
8916           else
8917             result=$wxUSE_GSTREAMER8
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}-printfposparam" >&5
8935 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8936           # Check whether --enable-printfposparam was given.
8937 if test "${enable_printfposparam+set}" = set; then
8938   enableval=$enable_printfposparam;
8939                           if test "$enableval" = yes; then
8940                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8941                           else
8942                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8943                           fi
8944                           cache=yes
8945
8946 else
8947
8948                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8949                           if test "x$LINE" != x ; then
8950                               eval "DEFAULT_$LINE"
8951                               cache=yes
8952                           else
8953                               cache=no
8954                           fi
8955
8956                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8957
8958 fi
8959
8960
8961           eval "$wx_cv_use_printfposparam"
8962           if test "x$cache" = xyes; then
8963             echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
8964           fi
8965
8966           if test x"$enablestring" = xdisable; then
8967             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8968               result=no
8969             else
8970               result=yes
8971             fi
8972           else
8973             result=$wxUSE_PRINTF_POS_PARAMS
8974           fi
8975
8976           { echo "$as_me:$LINENO: result: $result" >&5
8977 echo "${ECHO_T}$result" >&6; }
8978
8979
8980           enablestring=
8981           defaultval=$wxUSE_ALL_FEATURES
8982           if test -z "$defaultval"; then
8983               if test x"$enablestring" = xdisable; then
8984                   defaultval=yes
8985               else
8986                   defaultval=no
8987               fi
8988           fi
8989
8990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8991 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8992           # Check whether --enable-zipstream was given.
8993 if test "${enable_zipstream+set}" = set; then
8994   enableval=$enable_zipstream;
8995                           if test "$enableval" = yes; then
8996                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8997                           else
8998                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8999                           fi
9000                           cache=yes
9001
9002 else
9003
9004                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
9005                           if test "x$LINE" != x ; then
9006                               eval "DEFAULT_$LINE"
9007                               cache=yes
9008                           else
9009                               cache=no
9010                           fi
9011
9012                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
9013
9014 fi
9015
9016
9017           eval "$wx_cv_use_zipstream"
9018           if test "x$cache" = xyes; then
9019             echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
9020           fi
9021
9022           if test x"$enablestring" = xdisable; then
9023             if test $wxUSE_ZIPSTREAM = yes; then
9024               result=no
9025             else
9026               result=yes
9027             fi
9028           else
9029             result=$wxUSE_ZIPSTREAM
9030           fi
9031
9032           { echo "$as_me:$LINENO: result: $result" >&5
9033 echo "${ECHO_T}$result" >&6; }
9034
9035
9036
9037           enablestring=
9038           defaultval=$wxUSE_ALL_FEATURES
9039           if test -z "$defaultval"; then
9040               if test x"$enablestring" = xdisable; then
9041                   defaultval=yes
9042               else
9043                   defaultval=no
9044               fi
9045           fi
9046
9047           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
9048 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
9049           # Check whether --enable-url was given.
9050 if test "${enable_url+set}" = set; then
9051   enableval=$enable_url;
9052                           if test "$enableval" = yes; then
9053                             wx_cv_use_url='wxUSE_URL=yes'
9054                           else
9055                             wx_cv_use_url='wxUSE_URL=no'
9056                           fi
9057                           cache=yes
9058
9059 else
9060
9061                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
9062                           if test "x$LINE" != x ; then
9063                               eval "DEFAULT_$LINE"
9064                               cache=yes
9065                           else
9066                               cache=no
9067                           fi
9068
9069                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
9070
9071 fi
9072
9073
9074           eval "$wx_cv_use_url"
9075           if test "x$cache" = xyes; then
9076             echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
9077           fi
9078
9079           if test x"$enablestring" = xdisable; then
9080             if test $wxUSE_URL = yes; then
9081               result=no
9082             else
9083               result=yes
9084             fi
9085           else
9086             result=$wxUSE_URL
9087           fi
9088
9089           { echo "$as_me:$LINENO: result: $result" >&5
9090 echo "${ECHO_T}$result" >&6; }
9091
9092
9093           enablestring=
9094           defaultval=$wxUSE_ALL_FEATURES
9095           if test -z "$defaultval"; then
9096               if test x"$enablestring" = xdisable; then
9097                   defaultval=yes
9098               else
9099                   defaultval=no
9100               fi
9101           fi
9102
9103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
9104 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
9105           # Check whether --enable-variant was given.
9106 if test "${enable_variant+set}" = set; then
9107   enableval=$enable_variant;
9108                           if test "$enableval" = yes; then
9109                             wx_cv_use_variant='wxUSE_VARIANT=yes'
9110                           else
9111                             wx_cv_use_variant='wxUSE_VARIANT=no'
9112                           fi
9113                           cache=yes
9114
9115 else
9116
9117                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
9118                           if test "x$LINE" != x ; then
9119                               eval "DEFAULT_$LINE"
9120                               cache=yes
9121                           else
9122                               cache=no
9123                           fi
9124
9125                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
9126
9127 fi
9128
9129
9130           eval "$wx_cv_use_variant"
9131           if test "x$cache" = xyes; then
9132             echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
9133           fi
9134
9135           if test x"$enablestring" = xdisable; then
9136             if test $wxUSE_VARIANT = yes; then
9137               result=no
9138             else
9139               result=yes
9140             fi
9141           else
9142             result=$wxUSE_VARIANT
9143           fi
9144
9145           { echo "$as_me:$LINENO: result: $result" >&5
9146 echo "${ECHO_T}$result" >&6; }
9147
9148
9149           enablestring=
9150           defaultval=$wxUSE_ALL_FEATURES
9151           if test -z "$defaultval"; then
9152               if test x"$enablestring" = xdisable; then
9153                   defaultval=yes
9154               else
9155                   defaultval=no
9156               fi
9157           fi
9158
9159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
9160 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
9161           # Check whether --enable-protocol was given.
9162 if test "${enable_protocol+set}" = set; then
9163   enableval=$enable_protocol;
9164                           if test "$enableval" = yes; then
9165                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
9166                           else
9167                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
9168                           fi
9169                           cache=yes
9170
9171 else
9172
9173                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
9174                           if test "x$LINE" != x ; then
9175                               eval "DEFAULT_$LINE"
9176                               cache=yes
9177                           else
9178                               cache=no
9179                           fi
9180
9181                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
9182
9183 fi
9184
9185
9186           eval "$wx_cv_use_protocol"
9187           if test "x$cache" = xyes; then
9188             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
9189           fi
9190
9191           if test x"$enablestring" = xdisable; then
9192             if test $wxUSE_PROTOCOL = yes; then
9193               result=no
9194             else
9195               result=yes
9196             fi
9197           else
9198             result=$wxUSE_PROTOCOL
9199           fi
9200
9201           { echo "$as_me:$LINENO: result: $result" >&5
9202 echo "${ECHO_T}$result" >&6; }
9203
9204
9205           enablestring=
9206           defaultval=$wxUSE_ALL_FEATURES
9207           if test -z "$defaultval"; then
9208               if test x"$enablestring" = xdisable; then
9209                   defaultval=yes
9210               else
9211                   defaultval=no
9212               fi
9213           fi
9214
9215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
9216 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
9217           # Check whether --enable-protocol_http was given.
9218 if test "${enable_protocol_http+set}" = set; then
9219   enableval=$enable_protocol_http;
9220                           if test "$enableval" = yes; then
9221                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
9222                           else
9223                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
9224                           fi
9225                           cache=yes
9226
9227 else
9228
9229                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
9230                           if test "x$LINE" != x ; then
9231                               eval "DEFAULT_$LINE"
9232                               cache=yes
9233                           else
9234                               cache=no
9235                           fi
9236
9237                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
9238
9239 fi
9240
9241
9242           eval "$wx_cv_use_protocol_http"
9243           if test "x$cache" = xyes; then
9244             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
9245           fi
9246
9247           if test x"$enablestring" = xdisable; then
9248             if test $wxUSE_PROTOCOL_HTTP = yes; then
9249               result=no
9250             else
9251               result=yes
9252             fi
9253           else
9254             result=$wxUSE_PROTOCOL_HTTP
9255           fi
9256
9257           { echo "$as_me:$LINENO: result: $result" >&5
9258 echo "${ECHO_T}$result" >&6; }
9259
9260
9261           enablestring=
9262           defaultval=$wxUSE_ALL_FEATURES
9263           if test -z "$defaultval"; then
9264               if test x"$enablestring" = xdisable; then
9265                   defaultval=yes
9266               else
9267                   defaultval=no
9268               fi
9269           fi
9270
9271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
9272 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
9273           # Check whether --enable-protocol_ftp was given.
9274 if test "${enable_protocol_ftp+set}" = set; then
9275   enableval=$enable_protocol_ftp;
9276                           if test "$enableval" = yes; then
9277                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
9278                           else
9279                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
9280                           fi
9281                           cache=yes
9282
9283 else
9284
9285                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
9286                           if test "x$LINE" != x ; then
9287                               eval "DEFAULT_$LINE"
9288                               cache=yes
9289                           else
9290                               cache=no
9291                           fi
9292
9293                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
9294
9295 fi
9296
9297
9298           eval "$wx_cv_use_protocol_ftp"
9299           if test "x$cache" = xyes; then
9300             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
9301           fi
9302
9303           if test x"$enablestring" = xdisable; then
9304             if test $wxUSE_PROTOCOL_FTP = yes; then
9305               result=no
9306             else
9307               result=yes
9308             fi
9309           else
9310             result=$wxUSE_PROTOCOL_FTP
9311           fi
9312
9313           { echo "$as_me:$LINENO: result: $result" >&5
9314 echo "${ECHO_T}$result" >&6; }
9315
9316
9317           enablestring=
9318           defaultval=$wxUSE_ALL_FEATURES
9319           if test -z "$defaultval"; then
9320               if test x"$enablestring" = xdisable; then
9321                   defaultval=yes
9322               else
9323                   defaultval=no
9324               fi
9325           fi
9326
9327           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9328 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9329           # Check whether --enable-protocol_file was given.
9330 if test "${enable_protocol_file+set}" = set; then
9331   enableval=$enable_protocol_file;
9332                           if test "$enableval" = yes; then
9333                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9334                           else
9335                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9336                           fi
9337                           cache=yes
9338
9339 else
9340
9341                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9342                           if test "x$LINE" != x ; then
9343                               eval "DEFAULT_$LINE"
9344                               cache=yes
9345                           else
9346                               cache=no
9347                           fi
9348
9349                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9350
9351 fi
9352
9353
9354           eval "$wx_cv_use_protocol_file"
9355           if test "x$cache" = xyes; then
9356             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
9357           fi
9358
9359           if test x"$enablestring" = xdisable; then
9360             if test $wxUSE_PROTOCOL_FILE = yes; then
9361               result=no
9362             else
9363               result=yes
9364             fi
9365           else
9366             result=$wxUSE_PROTOCOL_FILE
9367           fi
9368
9369           { echo "$as_me:$LINENO: result: $result" >&5
9370 echo "${ECHO_T}$result" >&6; }
9371
9372
9373
9374           enablestring=
9375           defaultval=$wxUSE_ALL_FEATURES
9376           if test -z "$defaultval"; then
9377               if test x"$enablestring" = xdisable; then
9378                   defaultval=yes
9379               else
9380                   defaultval=no
9381               fi
9382           fi
9383
9384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9385 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9386           # Check whether --enable-threads was given.
9387 if test "${enable_threads+set}" = set; then
9388   enableval=$enable_threads;
9389                           if test "$enableval" = yes; then
9390                             wx_cv_use_threads='wxUSE_THREADS=yes'
9391                           else
9392                             wx_cv_use_threads='wxUSE_THREADS=no'
9393                           fi
9394                           cache=yes
9395
9396 else
9397
9398                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9399                           if test "x$LINE" != x ; then
9400                               eval "DEFAULT_$LINE"
9401                               cache=yes
9402                           else
9403                               cache=no
9404                           fi
9405
9406                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9407
9408 fi
9409
9410
9411           eval "$wx_cv_use_threads"
9412           if test "x$cache" = xyes; then
9413             echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
9414           fi
9415
9416           if test x"$enablestring" = xdisable; then
9417             if test $wxUSE_THREADS = yes; then
9418               result=no
9419             else
9420               result=yes
9421             fi
9422           else
9423             result=$wxUSE_THREADS
9424           fi
9425
9426           { echo "$as_me:$LINENO: result: $result" >&5
9427 echo "${ECHO_T}$result" >&6; }
9428
9429
9430
9431           enablestring=
9432           defaultval=
9433           if test -z "$defaultval"; then
9434               if test x"$enablestring" = xdisable; then
9435                   defaultval=yes
9436               else
9437                   defaultval=no
9438               fi
9439           fi
9440
9441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
9442 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
9443           # Check whether --enable-iniconf was given.
9444 if test "${enable_iniconf+set}" = set; then
9445   enableval=$enable_iniconf;
9446                           if test "$enableval" = yes; then
9447                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
9448                           else
9449                             wx_cv_use_iniconf='wxUSE_INICONF=no'
9450                           fi
9451                           cache=yes
9452
9453 else
9454
9455                           LINE=`grep "^wxUSE_INICONF=" ${wx_arg_cache_file}`
9456                           if test "x$LINE" != x ; then
9457                               eval "DEFAULT_$LINE"
9458                               cache=yes
9459                           else
9460                               cache=no
9461                           fi
9462
9463                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
9464
9465 fi
9466
9467
9468           eval "$wx_cv_use_iniconf"
9469           if test "x$cache" = xyes; then
9470             echo "wxUSE_INICONF=$wxUSE_INICONF" >> ${wx_arg_cache_file}.tmp
9471           fi
9472
9473           if test x"$enablestring" = xdisable; then
9474             if test $wxUSE_INICONF = yes; then
9475               result=no
9476             else
9477               result=yes
9478             fi
9479           else
9480             result=$wxUSE_INICONF
9481           fi
9482
9483           { echo "$as_me:$LINENO: result: $result" >&5
9484 echo "${ECHO_T}$result" >&6; }
9485
9486
9487           enablestring=
9488           defaultval=$wxUSE_ALL_FEATURES
9489           if test -z "$defaultval"; then
9490               if test x"$enablestring" = xdisable; then
9491                   defaultval=yes
9492               else
9493                   defaultval=no
9494               fi
9495           fi
9496
9497           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
9498 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
9499           # Check whether --enable-regkey was given.
9500 if test "${enable_regkey+set}" = set; then
9501   enableval=$enable_regkey;
9502                           if test "$enableval" = yes; then
9503                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
9504                           else
9505                             wx_cv_use_regkey='wxUSE_REGKEY=no'
9506                           fi
9507                           cache=yes
9508
9509 else
9510
9511                           LINE=`grep "^wxUSE_REGKEY=" ${wx_arg_cache_file}`
9512                           if test "x$LINE" != x ; then
9513                               eval "DEFAULT_$LINE"
9514                               cache=yes
9515                           else
9516                               cache=no
9517                           fi
9518
9519                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
9520
9521 fi
9522
9523
9524           eval "$wx_cv_use_regkey"
9525           if test "x$cache" = xyes; then
9526             echo "wxUSE_REGKEY=$wxUSE_REGKEY" >> ${wx_arg_cache_file}.tmp
9527           fi
9528
9529           if test x"$enablestring" = xdisable; then
9530             if test $wxUSE_REGKEY = yes; then
9531               result=no
9532             else
9533               result=yes
9534             fi
9535           else
9536             result=$wxUSE_REGKEY
9537           fi
9538
9539           { echo "$as_me:$LINENO: result: $result" >&5
9540 echo "${ECHO_T}$result" >&6; }
9541
9542
9543 if test "$wxUSE_GUI" = "yes"; then
9544
9545
9546
9547           enablestring=
9548           defaultval=$wxUSE_ALL_FEATURES
9549           if test -z "$defaultval"; then
9550               if test x"$enablestring" = xdisable; then
9551                   defaultval=yes
9552               else
9553                   defaultval=no
9554               fi
9555           fi
9556
9557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9558 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9559           # Check whether --enable-docview was given.
9560 if test "${enable_docview+set}" = set; then
9561   enableval=$enable_docview;
9562                           if test "$enableval" = yes; then
9563                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9564                           else
9565                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9566                           fi
9567                           cache=yes
9568
9569 else
9570
9571                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9572                           if test "x$LINE" != x ; then
9573                               eval "DEFAULT_$LINE"
9574                               cache=yes
9575                           else
9576                               cache=no
9577                           fi
9578
9579                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9580
9581 fi
9582
9583
9584           eval "$wx_cv_use_docview"
9585           if test "x$cache" = xyes; then
9586             echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9587           fi
9588
9589           if test x"$enablestring" = xdisable; then
9590             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9591               result=no
9592             else
9593               result=yes
9594             fi
9595           else
9596             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9597           fi
9598
9599           { echo "$as_me:$LINENO: result: $result" >&5
9600 echo "${ECHO_T}$result" >&6; }
9601
9602
9603           enablestring=
9604           defaultval=$wxUSE_ALL_FEATURES
9605           if test -z "$defaultval"; then
9606               if test x"$enablestring" = xdisable; then
9607                   defaultval=yes
9608               else
9609                   defaultval=no
9610               fi
9611           fi
9612
9613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9614 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9615           # Check whether --enable-help was given.
9616 if test "${enable_help+set}" = set; then
9617   enableval=$enable_help;
9618                           if test "$enableval" = yes; then
9619                             wx_cv_use_help='wxUSE_HELP=yes'
9620                           else
9621                             wx_cv_use_help='wxUSE_HELP=no'
9622                           fi
9623                           cache=yes
9624
9625 else
9626
9627                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9628                           if test "x$LINE" != x ; then
9629                               eval "DEFAULT_$LINE"
9630                               cache=yes
9631                           else
9632                               cache=no
9633                           fi
9634
9635                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9636
9637 fi
9638
9639
9640           eval "$wx_cv_use_help"
9641           if test "x$cache" = xyes; then
9642             echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
9643           fi
9644
9645           if test x"$enablestring" = xdisable; then
9646             if test $wxUSE_HELP = yes; then
9647               result=no
9648             else
9649               result=yes
9650             fi
9651           else
9652             result=$wxUSE_HELP
9653           fi
9654
9655           { echo "$as_me:$LINENO: result: $result" >&5
9656 echo "${ECHO_T}$result" >&6; }
9657
9658
9659           enablestring=
9660           defaultval=$wxUSE_ALL_FEATURES
9661           if test -z "$defaultval"; then
9662               if test x"$enablestring" = xdisable; then
9663                   defaultval=yes
9664               else
9665                   defaultval=no
9666               fi
9667           fi
9668
9669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9670 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9671           # Check whether --enable-mshtmlhelp was given.
9672 if test "${enable_mshtmlhelp+set}" = set; then
9673   enableval=$enable_mshtmlhelp;
9674                           if test "$enableval" = yes; then
9675                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9676                           else
9677                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9678                           fi
9679                           cache=yes
9680
9681 else
9682
9683                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9684                           if test "x$LINE" != x ; then
9685                               eval "DEFAULT_$LINE"
9686                               cache=yes
9687                           else
9688                               cache=no
9689                           fi
9690
9691                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9692
9693 fi
9694
9695
9696           eval "$wx_cv_use_mshtmlhelp"
9697           if test "x$cache" = xyes; then
9698             echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
9699           fi
9700
9701           if test x"$enablestring" = xdisable; then
9702             if test $wxUSE_MS_HTML_HELP = yes; then
9703               result=no
9704             else
9705               result=yes
9706             fi
9707           else
9708             result=$wxUSE_MS_HTML_HELP
9709           fi
9710
9711           { echo "$as_me:$LINENO: result: $result" >&5
9712 echo "${ECHO_T}$result" >&6; }
9713
9714
9715           enablestring=
9716           defaultval=$wxUSE_ALL_FEATURES
9717           if test -z "$defaultval"; then
9718               if test x"$enablestring" = xdisable; then
9719                   defaultval=yes
9720               else
9721                   defaultval=no
9722               fi
9723           fi
9724
9725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9726 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9727           # Check whether --enable-html was given.
9728 if test "${enable_html+set}" = set; then
9729   enableval=$enable_html;
9730                           if test "$enableval" = yes; then
9731                             wx_cv_use_html='wxUSE_HTML=yes'
9732                           else
9733                             wx_cv_use_html='wxUSE_HTML=no'
9734                           fi
9735                           cache=yes
9736
9737 else
9738
9739                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9740                           if test "x$LINE" != x ; then
9741                               eval "DEFAULT_$LINE"
9742                               cache=yes
9743                           else
9744                               cache=no
9745                           fi
9746
9747                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9748
9749 fi
9750
9751
9752           eval "$wx_cv_use_html"
9753           if test "x$cache" = xyes; then
9754             echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
9755           fi
9756
9757           if test x"$enablestring" = xdisable; then
9758             if test $wxUSE_HTML = yes; then
9759               result=no
9760             else
9761               result=yes
9762             fi
9763           else
9764             result=$wxUSE_HTML
9765           fi
9766
9767           { echo "$as_me:$LINENO: result: $result" >&5
9768 echo "${ECHO_T}$result" >&6; }
9769
9770
9771           enablestring=
9772           defaultval=$wxUSE_ALL_FEATURES
9773           if test -z "$defaultval"; then
9774               if test x"$enablestring" = xdisable; then
9775                   defaultval=yes
9776               else
9777                   defaultval=no
9778               fi
9779           fi
9780
9781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9782 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9783           # Check whether --enable-htmlhelp was given.
9784 if test "${enable_htmlhelp+set}" = set; then
9785   enableval=$enable_htmlhelp;
9786                           if test "$enableval" = yes; then
9787                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9788                           else
9789                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9790                           fi
9791                           cache=yes
9792
9793 else
9794
9795                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9796                           if test "x$LINE" != x ; then
9797                               eval "DEFAULT_$LINE"
9798                               cache=yes
9799                           else
9800                               cache=no
9801                           fi
9802
9803                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9804
9805 fi
9806
9807
9808           eval "$wx_cv_use_htmlhelp"
9809           if test "x$cache" = xyes; then
9810             echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
9811           fi
9812
9813           if test x"$enablestring" = xdisable; then
9814             if test $wxUSE_WXHTML_HELP = yes; then
9815               result=no
9816             else
9817               result=yes
9818             fi
9819           else
9820             result=$wxUSE_WXHTML_HELP
9821           fi
9822
9823           { echo "$as_me:$LINENO: result: $result" >&5
9824 echo "${ECHO_T}$result" >&6; }
9825
9826
9827           enablestring=
9828           defaultval=$wxUSE_ALL_FEATURES
9829           if test -z "$defaultval"; then
9830               if test x"$enablestring" = xdisable; then
9831                   defaultval=yes
9832               else
9833                   defaultval=no
9834               fi
9835           fi
9836
9837           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9838 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9839           # Check whether --enable-xrc was given.
9840 if test "${enable_xrc+set}" = set; then
9841   enableval=$enable_xrc;
9842                           if test "$enableval" = yes; then
9843                             wx_cv_use_xrc='wxUSE_XRC=yes'
9844                           else
9845                             wx_cv_use_xrc='wxUSE_XRC=no'
9846                           fi
9847                           cache=yes
9848
9849 else
9850
9851                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9852                           if test "x$LINE" != x ; then
9853                               eval "DEFAULT_$LINE"
9854                               cache=yes
9855                           else
9856                               cache=no
9857                           fi
9858
9859                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9860
9861 fi
9862
9863
9864           eval "$wx_cv_use_xrc"
9865           if test "x$cache" = xyes; then
9866             echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9867           fi
9868
9869           if test x"$enablestring" = xdisable; then
9870             if test $wxUSE_XRC = yes; then
9871               result=no
9872             else
9873               result=yes
9874             fi
9875           else
9876             result=$wxUSE_XRC
9877           fi
9878
9879           { echo "$as_me:$LINENO: result: $result" >&5
9880 echo "${ECHO_T}$result" >&6; }
9881
9882
9883           enablestring=
9884           defaultval=$wxUSE_ALL_FEATURES
9885           if test -z "$defaultval"; then
9886               if test x"$enablestring" = xdisable; then
9887                   defaultval=yes
9888               else
9889                   defaultval=no
9890               fi
9891           fi
9892
9893           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9894 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9895           # Check whether --enable-aui was given.
9896 if test "${enable_aui+set}" = set; then
9897   enableval=$enable_aui;
9898                           if test "$enableval" = yes; then
9899                             wx_cv_use_aui='wxUSE_AUI=yes'
9900                           else
9901                             wx_cv_use_aui='wxUSE_AUI=no'
9902                           fi
9903                           cache=yes
9904
9905 else
9906
9907                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9908                           if test "x$LINE" != x ; then
9909                               eval "DEFAULT_$LINE"
9910                               cache=yes
9911                           else
9912                               cache=no
9913                           fi
9914
9915                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9916
9917 fi
9918
9919
9920           eval "$wx_cv_use_aui"
9921           if test "x$cache" = xyes; then
9922             echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
9923           fi
9924
9925           if test x"$enablestring" = xdisable; then
9926             if test $wxUSE_AUI = yes; then
9927               result=no
9928             else
9929               result=yes
9930             fi
9931           else
9932             result=$wxUSE_AUI
9933           fi
9934
9935           { echo "$as_me:$LINENO: result: $result" >&5
9936 echo "${ECHO_T}$result" >&6; }
9937
9938
9939           enablestring=
9940           defaultval=$wxUSE_ALL_FEATURES
9941           if test -z "$defaultval"; then
9942               if test x"$enablestring" = xdisable; then
9943                   defaultval=yes
9944               else
9945                   defaultval=no
9946               fi
9947           fi
9948
9949           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9950 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9951           # Check whether --enable-stc was given.
9952 if test "${enable_stc+set}" = set; then
9953   enableval=$enable_stc;
9954                           if test "$enableval" = yes; then
9955                             wx_cv_use_stc='wxUSE_STC=yes'
9956                           else
9957                             wx_cv_use_stc='wxUSE_STC=no'
9958                           fi
9959                           cache=yes
9960
9961 else
9962
9963                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9964                           if test "x$LINE" != x ; then
9965                               eval "DEFAULT_$LINE"
9966                               cache=yes
9967                           else
9968                               cache=no
9969                           fi
9970
9971                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9972
9973 fi
9974
9975
9976           eval "$wx_cv_use_stc"
9977           if test "x$cache" = xyes; then
9978             echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
9979           fi
9980
9981           if test x"$enablestring" = xdisable; then
9982             if test $wxUSE_STC = yes; then
9983               result=no
9984             else
9985               result=yes
9986             fi
9987           else
9988             result=$wxUSE_STC
9989           fi
9990
9991           { echo "$as_me:$LINENO: result: $result" >&5
9992 echo "${ECHO_T}$result" >&6; }
9993
9994
9995           enablestring=
9996           defaultval=$wxUSE_ALL_FEATURES
9997           if test -z "$defaultval"; then
9998               if test x"$enablestring" = xdisable; then
9999                   defaultval=yes
10000               else
10001                   defaultval=no
10002               fi
10003           fi
10004
10005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
10006 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
10007           # Check whether --enable-constraints was given.
10008 if test "${enable_constraints+set}" = set; then
10009   enableval=$enable_constraints;
10010                           if test "$enableval" = yes; then
10011                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
10012                           else
10013                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
10014                           fi
10015                           cache=yes
10016
10017 else
10018
10019                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
10020                           if test "x$LINE" != x ; then
10021                               eval "DEFAULT_$LINE"
10022                               cache=yes
10023                           else
10024                               cache=no
10025                           fi
10026
10027                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
10028
10029 fi
10030
10031
10032           eval "$wx_cv_use_constraints"
10033           if test "x$cache" = xyes; then
10034             echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
10035           fi
10036
10037           if test x"$enablestring" = xdisable; then
10038             if test $wxUSE_CONSTRAINTS = yes; then
10039               result=no
10040             else
10041               result=yes
10042             fi
10043           else
10044             result=$wxUSE_CONSTRAINTS
10045           fi
10046
10047           { echo "$as_me:$LINENO: result: $result" >&5
10048 echo "${ECHO_T}$result" >&6; }
10049
10050
10051           enablestring=
10052           defaultval=$wxUSE_ALL_FEATURES
10053           if test -z "$defaultval"; then
10054               if test x"$enablestring" = xdisable; then
10055                   defaultval=yes
10056               else
10057                   defaultval=no
10058               fi
10059           fi
10060
10061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
10062 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
10063           # Check whether --enable-printarch was given.
10064 if test "${enable_printarch+set}" = set; then
10065   enableval=$enable_printarch;
10066                           if test "$enableval" = yes; then
10067                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
10068                           else
10069                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
10070                           fi
10071                           cache=yes
10072
10073 else
10074
10075                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
10076                           if test "x$LINE" != x ; then
10077                               eval "DEFAULT_$LINE"
10078                               cache=yes
10079                           else
10080                               cache=no
10081                           fi
10082
10083                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
10084
10085 fi
10086
10087
10088           eval "$wx_cv_use_printarch"
10089           if test "x$cache" = xyes; then
10090             echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
10091           fi
10092
10093           if test x"$enablestring" = xdisable; then
10094             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
10095               result=no
10096             else
10097               result=yes
10098             fi
10099           else
10100             result=$wxUSE_PRINTING_ARCHITECTURE
10101           fi
10102
10103           { echo "$as_me:$LINENO: result: $result" >&5
10104 echo "${ECHO_T}$result" >&6; }
10105
10106
10107           enablestring=
10108           defaultval=$wxUSE_ALL_FEATURES
10109           if test -z "$defaultval"; then
10110               if test x"$enablestring" = xdisable; then
10111                   defaultval=yes
10112               else
10113                   defaultval=no
10114               fi
10115           fi
10116
10117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
10118 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
10119           # Check whether --enable-mdi was given.
10120 if test "${enable_mdi+set}" = set; then
10121   enableval=$enable_mdi;
10122                           if test "$enableval" = yes; then
10123                             wx_cv_use_mdi='wxUSE_MDI=yes'
10124                           else
10125                             wx_cv_use_mdi='wxUSE_MDI=no'
10126                           fi
10127                           cache=yes
10128
10129 else
10130
10131                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
10132                           if test "x$LINE" != x ; then
10133                               eval "DEFAULT_$LINE"
10134                               cache=yes
10135                           else
10136                               cache=no
10137                           fi
10138
10139                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
10140
10141 fi
10142
10143
10144           eval "$wx_cv_use_mdi"
10145           if test "x$cache" = xyes; then
10146             echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
10147           fi
10148
10149           if test x"$enablestring" = xdisable; then
10150             if test $wxUSE_MDI = yes; then
10151               result=no
10152             else
10153               result=yes
10154             fi
10155           else
10156             result=$wxUSE_MDI
10157           fi
10158
10159           { echo "$as_me:$LINENO: result: $result" >&5
10160 echo "${ECHO_T}$result" >&6; }
10161
10162
10163           enablestring=
10164           defaultval=$wxUSE_ALL_FEATURES
10165           if test -z "$defaultval"; then
10166               if test x"$enablestring" = xdisable; then
10167                   defaultval=yes
10168               else
10169                   defaultval=no
10170               fi
10171           fi
10172
10173           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
10174 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
10175           # Check whether --enable-mdidoc was given.
10176 if test "${enable_mdidoc+set}" = set; then
10177   enableval=$enable_mdidoc;
10178                           if test "$enableval" = yes; then
10179                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
10180                           else
10181                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
10182                           fi
10183                           cache=yes
10184
10185 else
10186
10187                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
10188                           if test "x$LINE" != x ; then
10189                               eval "DEFAULT_$LINE"
10190                               cache=yes
10191                           else
10192                               cache=no
10193                           fi
10194
10195                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
10196
10197 fi
10198
10199
10200           eval "$wx_cv_use_mdidoc"
10201           if test "x$cache" = xyes; then
10202             echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
10203           fi
10204
10205           if test x"$enablestring" = xdisable; then
10206             if test $wxUSE_MDI_ARCHITECTURE = yes; then
10207               result=no
10208             else
10209               result=yes
10210             fi
10211           else
10212             result=$wxUSE_MDI_ARCHITECTURE
10213           fi
10214
10215           { echo "$as_me:$LINENO: result: $result" >&5
10216 echo "${ECHO_T}$result" >&6; }
10217
10218
10219           enablestring=
10220           defaultval=$wxUSE_ALL_FEATURES
10221           if test -z "$defaultval"; then
10222               if test x"$enablestring" = xdisable; then
10223                   defaultval=yes
10224               else
10225                   defaultval=no
10226               fi
10227           fi
10228
10229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
10230 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
10231           # Check whether --enable-loggui was given.
10232 if test "${enable_loggui+set}" = set; then
10233   enableval=$enable_loggui;
10234                           if test "$enableval" = yes; then
10235                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
10236                           else
10237                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
10238                           fi
10239                           cache=yes
10240
10241 else
10242
10243                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
10244                           if test "x$LINE" != x ; then
10245                               eval "DEFAULT_$LINE"
10246                               cache=yes
10247                           else
10248                               cache=no
10249                           fi
10250
10251                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
10252
10253 fi
10254
10255
10256           eval "$wx_cv_use_loggui"
10257           if test "x$cache" = xyes; then
10258             echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
10259           fi
10260
10261           if test x"$enablestring" = xdisable; then
10262             if test $wxUSE_LOGGUI = yes; then
10263               result=no
10264             else
10265               result=yes
10266             fi
10267           else
10268             result=$wxUSE_LOGGUI
10269           fi
10270
10271           { echo "$as_me:$LINENO: result: $result" >&5
10272 echo "${ECHO_T}$result" >&6; }
10273
10274
10275           enablestring=
10276           defaultval=$wxUSE_ALL_FEATURES
10277           if test -z "$defaultval"; then
10278               if test x"$enablestring" = xdisable; then
10279                   defaultval=yes
10280               else
10281                   defaultval=no
10282               fi
10283           fi
10284
10285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
10286 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
10287           # Check whether --enable-logwin was given.
10288 if test "${enable_logwin+set}" = set; then
10289   enableval=$enable_logwin;
10290                           if test "$enableval" = yes; then
10291                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
10292                           else
10293                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
10294                           fi
10295                           cache=yes
10296
10297 else
10298
10299                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
10300                           if test "x$LINE" != x ; then
10301                               eval "DEFAULT_$LINE"
10302                               cache=yes
10303                           else
10304                               cache=no
10305                           fi
10306
10307                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
10308
10309 fi
10310
10311
10312           eval "$wx_cv_use_logwin"
10313           if test "x$cache" = xyes; then
10314             echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
10315           fi
10316
10317           if test x"$enablestring" = xdisable; then
10318             if test $wxUSE_LOGWINDOW = yes; then
10319               result=no
10320             else
10321               result=yes
10322             fi
10323           else
10324             result=$wxUSE_LOGWINDOW
10325           fi
10326
10327           { echo "$as_me:$LINENO: result: $result" >&5
10328 echo "${ECHO_T}$result" >&6; }
10329
10330
10331           enablestring=
10332           defaultval=$wxUSE_ALL_FEATURES
10333           if test -z "$defaultval"; then
10334               if test x"$enablestring" = xdisable; then
10335                   defaultval=yes
10336               else
10337                   defaultval=no
10338               fi
10339           fi
10340
10341           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
10342 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
10343           # Check whether --enable-logdialog was given.
10344 if test "${enable_logdialog+set}" = set; then
10345   enableval=$enable_logdialog;
10346                           if test "$enableval" = yes; then
10347                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
10348                           else
10349                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
10350                           fi
10351                           cache=yes
10352
10353 else
10354
10355                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
10356                           if test "x$LINE" != x ; then
10357                               eval "DEFAULT_$LINE"
10358                               cache=yes
10359                           else
10360                               cache=no
10361                           fi
10362
10363                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
10364
10365 fi
10366
10367
10368           eval "$wx_cv_use_logdialog"
10369           if test "x$cache" = xyes; then
10370             echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
10371           fi
10372
10373           if test x"$enablestring" = xdisable; then
10374             if test $wxUSE_LOGDIALOG = yes; then
10375               result=no
10376             else
10377               result=yes
10378             fi
10379           else
10380             result=$wxUSE_LOGDIALOG
10381           fi
10382
10383           { echo "$as_me:$LINENO: result: $result" >&5
10384 echo "${ECHO_T}$result" >&6; }
10385
10386
10387           enablestring=
10388           defaultval=$wxUSE_ALL_FEATURES
10389           if test -z "$defaultval"; then
10390               if test x"$enablestring" = xdisable; then
10391                   defaultval=yes
10392               else
10393                   defaultval=no
10394               fi
10395           fi
10396
10397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
10398 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
10399           # Check whether --enable-webkit was given.
10400 if test "${enable_webkit+set}" = set; then
10401   enableval=$enable_webkit;
10402                           if test "$enableval" = yes; then
10403                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
10404                           else
10405                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
10406                           fi
10407                           cache=yes
10408
10409 else
10410
10411                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
10412                           if test "x$LINE" != x ; then
10413                               eval "DEFAULT_$LINE"
10414                               cache=yes
10415                           else
10416                               cache=no
10417                           fi
10418
10419                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
10420
10421 fi
10422
10423
10424           eval "$wx_cv_use_webkit"
10425           if test "x$cache" = xyes; then
10426             echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
10427           fi
10428
10429           if test x"$enablestring" = xdisable; then
10430             if test $wxUSE_WEBKIT = yes; then
10431               result=no
10432             else
10433               result=yes
10434             fi
10435           else
10436             result=$wxUSE_WEBKIT
10437           fi
10438
10439           { echo "$as_me:$LINENO: result: $result" >&5
10440 echo "${ECHO_T}$result" >&6; }
10441
10442
10443           enablestring=
10444           defaultval=$wxUSE_ALL_FEATURES
10445           if test -z "$defaultval"; then
10446               if test x"$enablestring" = xdisable; then
10447                   defaultval=yes
10448               else
10449                   defaultval=no
10450               fi
10451           fi
10452
10453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10454 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10455           # Check whether --enable-richtext was given.
10456 if test "${enable_richtext+set}" = set; then
10457   enableval=$enable_richtext;
10458                           if test "$enableval" = yes; then
10459                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10460                           else
10461                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10462                           fi
10463                           cache=yes
10464
10465 else
10466
10467                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10468                           if test "x$LINE" != x ; then
10469                               eval "DEFAULT_$LINE"
10470                               cache=yes
10471                           else
10472                               cache=no
10473                           fi
10474
10475                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10476
10477 fi
10478
10479
10480           eval "$wx_cv_use_richtext"
10481           if test "x$cache" = xyes; then
10482             echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
10483           fi
10484
10485           if test x"$enablestring" = xdisable; then
10486             if test $wxUSE_RICHTEXT = yes; then
10487               result=no
10488             else
10489               result=yes
10490             fi
10491           else
10492             result=$wxUSE_RICHTEXT
10493           fi
10494
10495           { echo "$as_me:$LINENO: result: $result" >&5
10496 echo "${ECHO_T}$result" >&6; }
10497
10498
10499           enablestring=
10500           defaultval=$wxUSE_ALL_FEATURES
10501           if test -z "$defaultval"; then
10502               if test x"$enablestring" = xdisable; then
10503                   defaultval=yes
10504               else
10505                   defaultval=no
10506               fi
10507           fi
10508
10509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10510 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10511           # Check whether --enable-graphics_ctx was given.
10512 if test "${enable_graphics_ctx+set}" = set; then
10513   enableval=$enable_graphics_ctx;
10514                           if test "$enableval" = yes; then
10515                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10516                           else
10517                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10518                           fi
10519                           cache=yes
10520
10521 else
10522
10523                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10524                           if test "x$LINE" != x ; then
10525                               eval "DEFAULT_$LINE"
10526                               cache=yes
10527                           else
10528                               cache=no
10529                           fi
10530
10531                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10532
10533 fi
10534
10535
10536           eval "$wx_cv_use_graphics_ctx"
10537           if test "x$cache" = xyes; then
10538             echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
10539           fi
10540
10541           if test x"$enablestring" = xdisable; then
10542             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10543               result=no
10544             else
10545               result=yes
10546             fi
10547           else
10548             result=$wxUSE_GRAPHICS_CONTEXT
10549           fi
10550
10551           { echo "$as_me:$LINENO: result: $result" >&5
10552 echo "${ECHO_T}$result" >&6; }
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}-postscript" >&5
10566 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10567           # Check whether --enable-postscript was given.
10568 if test "${enable_postscript+set}" = set; then
10569   enableval=$enable_postscript;
10570                           if test "$enableval" = yes; then
10571                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10572                           else
10573                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10574                           fi
10575                           cache=yes
10576
10577 else
10578
10579                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10580                           if test "x$LINE" != x ; then
10581                               eval "DEFAULT_$LINE"
10582                               cache=yes
10583                           else
10584                               cache=no
10585                           fi
10586
10587                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10588
10589 fi
10590
10591
10592           eval "$wx_cv_use_postscript"
10593           if test "x$cache" = xyes; then
10594             echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
10595           fi
10596
10597           if test x"$enablestring" = xdisable; then
10598             if test $wxUSE_POSTSCRIPT = yes; then
10599               result=no
10600             else
10601               result=yes
10602             fi
10603           else
10604             result=$wxUSE_POSTSCRIPT
10605           fi
10606
10607           { echo "$as_me:$LINENO: result: $result" >&5
10608 echo "${ECHO_T}$result" >&6; }
10609
10610
10611           enablestring=
10612           defaultval=$wxUSE_ALL_FEATURES
10613           if test -z "$defaultval"; then
10614               if test x"$enablestring" = xdisable; then
10615                   defaultval=yes
10616               else
10617                   defaultval=no
10618               fi
10619           fi
10620
10621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10622 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10623           # Check whether --enable-svg was given.
10624 if test "${enable_svg+set}" = set; then
10625   enableval=$enable_svg;
10626                           if test "$enableval" = yes; then
10627                             wx_cv_use_svg='wxUSE_SVG=yes'
10628                           else
10629                             wx_cv_use_svg='wxUSE_SVG=no'
10630                           fi
10631                           cache=yes
10632
10633 else
10634
10635                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10636                           if test "x$LINE" != x ; then
10637                               eval "DEFAULT_$LINE"
10638                               cache=yes
10639                           else
10640                               cache=no
10641                           fi
10642
10643                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10644
10645 fi
10646
10647
10648           eval "$wx_cv_use_svg"
10649           if test "x$cache" = xyes; then
10650             echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
10651           fi
10652
10653           if test x"$enablestring" = xdisable; then
10654             if test $wxUSE_SVG = yes; then
10655               result=no
10656             else
10657               result=yes
10658             fi
10659           else
10660             result=$wxUSE_SVG
10661           fi
10662
10663           { echo "$as_me:$LINENO: result: $result" >&5
10664 echo "${ECHO_T}$result" >&6; }
10665
10666
10667
10668
10669           enablestring=
10670           defaultval=$wxUSE_ALL_FEATURES
10671           if test -z "$defaultval"; then
10672               if test x"$enablestring" = xdisable; then
10673                   defaultval=yes
10674               else
10675                   defaultval=no
10676               fi
10677           fi
10678
10679           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10680 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10681           # Check whether --enable-clipboard was given.
10682 if test "${enable_clipboard+set}" = set; then
10683   enableval=$enable_clipboard;
10684                           if test "$enableval" = yes; then
10685                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10686                           else
10687                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10688                           fi
10689                           cache=yes
10690
10691 else
10692
10693                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10694                           if test "x$LINE" != x ; then
10695                               eval "DEFAULT_$LINE"
10696                               cache=yes
10697                           else
10698                               cache=no
10699                           fi
10700
10701                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10702
10703 fi
10704
10705
10706           eval "$wx_cv_use_clipboard"
10707           if test "x$cache" = xyes; then
10708             echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
10709           fi
10710
10711           if test x"$enablestring" = xdisable; then
10712             if test $wxUSE_CLIPBOARD = yes; then
10713               result=no
10714             else
10715               result=yes
10716             fi
10717           else
10718             result=$wxUSE_CLIPBOARD
10719           fi
10720
10721           { echo "$as_me:$LINENO: result: $result" >&5
10722 echo "${ECHO_T}$result" >&6; }
10723
10724
10725           enablestring=
10726           defaultval=$wxUSE_ALL_FEATURES
10727           if test -z "$defaultval"; then
10728               if test x"$enablestring" = xdisable; then
10729                   defaultval=yes
10730               else
10731                   defaultval=no
10732               fi
10733           fi
10734
10735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10736 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10737           # Check whether --enable-dnd was given.
10738 if test "${enable_dnd+set}" = set; then
10739   enableval=$enable_dnd;
10740                           if test "$enableval" = yes; then
10741                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10742                           else
10743                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10744                           fi
10745                           cache=yes
10746
10747 else
10748
10749                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10750                           if test "x$LINE" != x ; then
10751                               eval "DEFAULT_$LINE"
10752                               cache=yes
10753                           else
10754                               cache=no
10755                           fi
10756
10757                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10758
10759 fi
10760
10761
10762           eval "$wx_cv_use_dnd"
10763           if test "x$cache" = xyes; then
10764             echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
10765           fi
10766
10767           if test x"$enablestring" = xdisable; then
10768             if test $wxUSE_DRAG_AND_DROP = yes; then
10769               result=no
10770             else
10771               result=yes
10772             fi
10773           else
10774             result=$wxUSE_DRAG_AND_DROP
10775           fi
10776
10777           { echo "$as_me:$LINENO: result: $result" >&5
10778 echo "${ECHO_T}$result" >&6; }
10779
10780
10781           enablestring=
10782           defaultval=$wxUSE_ALL_FEATURES
10783           if test -z "$defaultval"; then
10784               if test x"$enablestring" = xdisable; then
10785                   defaultval=yes
10786               else
10787                   defaultval=no
10788               fi
10789           fi
10790
10791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10792 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10793           # Check whether --enable-metafile was given.
10794 if test "${enable_metafile+set}" = set; then
10795   enableval=$enable_metafile;
10796                           if test "$enableval" = yes; then
10797                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10798                           else
10799                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10800                           fi
10801                           cache=yes
10802
10803 else
10804
10805                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10806                           if test "x$LINE" != x ; then
10807                               eval "DEFAULT_$LINE"
10808                               cache=yes
10809                           else
10810                               cache=no
10811                           fi
10812
10813                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10814
10815 fi
10816
10817
10818           eval "$wx_cv_use_metafile"
10819           if test "x$cache" = xyes; then
10820             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
10821           fi
10822
10823           if test x"$enablestring" = xdisable; then
10824             if test $wxUSE_METAFILE = yes; then
10825               result=no
10826             else
10827               result=yes
10828             fi
10829           else
10830             result=$wxUSE_METAFILE
10831           fi
10832
10833           { echo "$as_me:$LINENO: result: $result" >&5
10834 echo "${ECHO_T}$result" >&6; }
10835
10836
10837
10838 DEFAULT_wxUSE_CONTROLS=none
10839
10840           enablestring=disable
10841           defaultval=
10842           if test -z "$defaultval"; then
10843               if test x"$enablestring" = xdisable; then
10844                   defaultval=yes
10845               else
10846                   defaultval=no
10847               fi
10848           fi
10849
10850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10851 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10852           # Check whether --enable-controls was given.
10853 if test "${enable_controls+set}" = set; then
10854   enableval=$enable_controls;
10855                           if test "$enableval" = yes; then
10856                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10857                           else
10858                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10859                           fi
10860                           cache=yes
10861
10862 else
10863
10864                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10865                           if test "x$LINE" != x ; then
10866                               eval "DEFAULT_$LINE"
10867                               cache=yes
10868                           else
10869                               cache=no
10870                           fi
10871
10872                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10873
10874 fi
10875
10876
10877           eval "$wx_cv_use_controls"
10878           if test "x$cache" = xyes; then
10879             echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
10880           fi
10881
10882           if test x"$enablestring" = xdisable; then
10883             if test $wxUSE_CONTROLS = yes; then
10884               result=no
10885             else
10886               result=yes
10887             fi
10888           else
10889             result=$wxUSE_CONTROLS
10890           fi
10891
10892           { echo "$as_me:$LINENO: result: $result" >&5
10893 echo "${ECHO_T}$result" >&6; }
10894
10895
10896 if test "$wxUSE_CONTROLS" = "yes"; then
10897   DEFAULT_wxUSE_ACCEL=yes
10898   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10899   DEFAULT_wxUSE_BMPBUTTON=yes
10900   DEFAULT_wxUSE_BUTTON=yes
10901   DEFAULT_wxUSE_CALCTRL=yes
10902   DEFAULT_wxUSE_CARET=yes
10903   DEFAULT_wxUSE_COMBOBOX=yes
10904   DEFAULT_wxUSE_CHECKBOX=yes
10905   DEFAULT_wxUSE_CHECKLISTBOX=yes
10906   DEFAULT_wxUSE_CHOICE=yes
10907   DEFAULT_wxUSE_CHOICEBOOK=yes
10908   DEFAULT_wxUSE_COLLPANE=yes
10909   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10910   DEFAULT_wxUSE_COMBOBOX=yes
10911   DEFAULT_wxUSE_DATEPICKCTRL=yes
10912   DEFAULT_wxUSE_DISPLAY=yes
10913   DEFAULT_wxUSE_DETECT_SM=yes
10914   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10915   DEFAULT_wxUSE_FILECTRL=yes
10916   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10917   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10918   DEFAULT_wxUSE_GAUGE=yes
10919   DEFAULT_wxUSE_GRID=yes
10920   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10921   DEFAULT_wxUSE_DATAVIEWCTRL=no
10922   DEFAULT_wxUSE_IMAGLIST=yes
10923   DEFAULT_wxUSE_LISTBOOK=yes
10924   DEFAULT_wxUSE_LISTBOX=yes
10925   DEFAULT_wxUSE_LISTCTRL=yes
10926   DEFAULT_wxUSE_NOTEBOOK=yes
10927   DEFAULT_wxUSE_RADIOBOX=yes
10928   DEFAULT_wxUSE_RADIOBTN=yes
10929   DEFAULT_wxUSE_SASH=yes
10930   DEFAULT_wxUSE_SCROLLBAR=yes
10931   DEFAULT_wxUSE_SEARCHCTRL=yes
10932   DEFAULT_wxUSE_SLIDER=yes
10933   DEFAULT_wxUSE_SPINBTN=yes
10934   DEFAULT_wxUSE_SPINCTRL=yes
10935   DEFAULT_wxUSE_SPLITTER=yes
10936   DEFAULT_wxUSE_STATBMP=yes
10937   DEFAULT_wxUSE_STATBOX=yes
10938   DEFAULT_wxUSE_STATLINE=yes
10939   DEFAULT_wxUSE_STATUSBAR=yes
10940   DEFAULT_wxUSE_TAB_DIALOG=yes
10941   DEFAULT_wxUSE_TOGGLEBTN=yes
10942   DEFAULT_wxUSE_TOOLBAR=yes
10943   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10944   DEFAULT_wxUSE_TOOLTIPS=yes
10945   DEFAULT_wxUSE_TREEBOOK=yes
10946   DEFAULT_wxUSE_TOOLBOOK=yes
10947   DEFAULT_wxUSE_TREECTRL=yes
10948   DEFAULT_wxUSE_POPUPWIN=yes
10949   DEFAULT_wxUSE_TIPWINDOW=yes
10950 elif test "$wxUSE_CONTROLS" = "no"; then
10951   DEFAULT_wxUSE_ACCEL=no
10952   DEFAULT_wxUSE_ANIMATIONCTRL=no
10953   DEFAULT_wxUSE_BMPBUTTON=no
10954   DEFAULT_wxUSE_BUTTON=no
10955   DEFAULT_wxUSE_CALCTRL=no
10956   DEFAULT_wxUSE_CARET=no
10957   DEFAULT_wxUSE_COLLPANE=no
10958   DEFAULT_wxUSE_COMBOBOX=no
10959   DEFAULT_wxUSE_CHECKBOX=no
10960   DEFAULT_wxUSE_CHECKLISTBOX=no
10961   DEFAULT_wxUSE_CHOICE=no
10962   DEFAULT_wxUSE_CHOICEBOOK=no
10963   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10964   DEFAULT_wxUSE_COMBOBOX=no
10965   DEFAULT_wxUSE_DATEPICKCTRL=no
10966   DEFAULT_wxUSE_DISPLAY=no
10967   DEFAULT_wxUSE_DETECT_SM=no
10968   DEFAULT_wxUSE_DIRPICKERCTRL=no
10969   DEFAULT_wxUSE_FILECTRL=no
10970   DEFAULT_wxUSE_FILEPICKERCTRL=no
10971   DEFAULT_wxUSE_FONTPICKERCTRL=no
10972   DEFAULT_wxUSE_GAUGE=no
10973   DEFAULT_wxUSE_GRID=no
10974   DEFAULT_wxUSE_HYPERLINKCTRL=no
10975   DEFAULT_wxUSE_DATAVIEWCTRL=no
10976   DEFAULT_wxUSE_IMAGLIST=no
10977   DEFAULT_wxUSE_LISTBOOK=no
10978   DEFAULT_wxUSE_LISTBOX=no
10979   DEFAULT_wxUSE_LISTCTRL=no
10980   DEFAULT_wxUSE_NOTEBOOK=no
10981   DEFAULT_wxUSE_RADIOBOX=no
10982   DEFAULT_wxUSE_RADIOBTN=no
10983   DEFAULT_wxUSE_SASH=no
10984   DEFAULT_wxUSE_SCROLLBAR=no
10985   DEFAULT_wxUSE_SEARCHCTRL=no
10986   DEFAULT_wxUSE_SLIDER=no
10987   DEFAULT_wxUSE_SPINBTN=no
10988   DEFAULT_wxUSE_SPINCTRL=no
10989   DEFAULT_wxUSE_SPLITTER=no
10990   DEFAULT_wxUSE_STATBMP=no
10991   DEFAULT_wxUSE_STATBOX=no
10992   DEFAULT_wxUSE_STATLINE=no
10993   DEFAULT_wxUSE_STATUSBAR=no
10994   DEFAULT_wxUSE_TAB_DIALOG=no
10995   DEFAULT_wxUSE_TOGGLEBTN=no
10996   DEFAULT_wxUSE_TOOLBAR=no
10997   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10998   DEFAULT_wxUSE_TOOLTIPS=no
10999   DEFAULT_wxUSE_TREEBOOK=no
11000   DEFAULT_wxUSE_TOOLBOOK=no
11001   DEFAULT_wxUSE_TREECTRL=no
11002   DEFAULT_wxUSE_POPUPWIN=no
11003   DEFAULT_wxUSE_TIPWINDOW=no
11004 fi
11005
11006
11007           enablestring=
11008           defaultval=$wxUSE_ALL_FEATURES
11009           if test -z "$defaultval"; then
11010               if test x"$enablestring" = xdisable; then
11011                   defaultval=yes
11012               else
11013                   defaultval=no
11014               fi
11015           fi
11016
11017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
11018 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
11019           # Check whether --enable-accel was given.
11020 if test "${enable_accel+set}" = set; then
11021   enableval=$enable_accel;
11022                           if test "$enableval" = yes; then
11023                             wx_cv_use_accel='wxUSE_ACCEL=yes'
11024                           else
11025                             wx_cv_use_accel='wxUSE_ACCEL=no'
11026                           fi
11027                           cache=yes
11028
11029 else
11030
11031                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
11032                           if test "x$LINE" != x ; then
11033                               eval "DEFAULT_$LINE"
11034                               cache=yes
11035                           else
11036                               cache=no
11037                           fi
11038
11039                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
11040
11041 fi
11042
11043
11044           eval "$wx_cv_use_accel"
11045           if test "x$cache" = xyes; then
11046             echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
11047           fi
11048
11049           if test x"$enablestring" = xdisable; then
11050             if test $wxUSE_ACCEL = yes; then
11051               result=no
11052             else
11053               result=yes
11054             fi
11055           else
11056             result=$wxUSE_ACCEL
11057           fi
11058
11059           { echo "$as_me:$LINENO: result: $result" >&5
11060 echo "${ECHO_T}$result" >&6; }
11061
11062
11063           enablestring=
11064           defaultval=$wxUSE_ALL_FEATURES
11065           if test -z "$defaultval"; then
11066               if test x"$enablestring" = xdisable; then
11067                   defaultval=yes
11068               else
11069                   defaultval=no
11070               fi
11071           fi
11072
11073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
11074 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
11075           # Check whether --enable-animatectrl was given.
11076 if test "${enable_animatectrl+set}" = set; then
11077   enableval=$enable_animatectrl;
11078                           if test "$enableval" = yes; then
11079                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
11080                           else
11081                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
11082                           fi
11083                           cache=yes
11084
11085 else
11086
11087                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
11088                           if test "x$LINE" != x ; then
11089                               eval "DEFAULT_$LINE"
11090                               cache=yes
11091                           else
11092                               cache=no
11093                           fi
11094
11095                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
11096
11097 fi
11098
11099
11100           eval "$wx_cv_use_animatectrl"
11101           if test "x$cache" = xyes; then
11102             echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
11103           fi
11104
11105           if test x"$enablestring" = xdisable; then
11106             if test $wxUSE_ANIMATIONCTRL = yes; then
11107               result=no
11108             else
11109               result=yes
11110             fi
11111           else
11112             result=$wxUSE_ANIMATIONCTRL
11113           fi
11114
11115           { echo "$as_me:$LINENO: result: $result" >&5
11116 echo "${ECHO_T}$result" >&6; }
11117
11118
11119           enablestring=
11120           defaultval=$wxUSE_ALL_FEATURES
11121           if test -z "$defaultval"; then
11122               if test x"$enablestring" = xdisable; then
11123                   defaultval=yes
11124               else
11125                   defaultval=no
11126               fi
11127           fi
11128
11129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
11130 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
11131           # Check whether --enable-button was given.
11132 if test "${enable_button+set}" = set; then
11133   enableval=$enable_button;
11134                           if test "$enableval" = yes; then
11135                             wx_cv_use_button='wxUSE_BUTTON=yes'
11136                           else
11137                             wx_cv_use_button='wxUSE_BUTTON=no'
11138                           fi
11139                           cache=yes
11140
11141 else
11142
11143                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
11144                           if test "x$LINE" != x ; then
11145                               eval "DEFAULT_$LINE"
11146                               cache=yes
11147                           else
11148                               cache=no
11149                           fi
11150
11151                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
11152
11153 fi
11154
11155
11156           eval "$wx_cv_use_button"
11157           if test "x$cache" = xyes; then
11158             echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
11159           fi
11160
11161           if test x"$enablestring" = xdisable; then
11162             if test $wxUSE_BUTTON = yes; then
11163               result=no
11164             else
11165               result=yes
11166             fi
11167           else
11168             result=$wxUSE_BUTTON
11169           fi
11170
11171           { echo "$as_me:$LINENO: result: $result" >&5
11172 echo "${ECHO_T}$result" >&6; }
11173
11174
11175           enablestring=
11176           defaultval=$wxUSE_ALL_FEATURES
11177           if test -z "$defaultval"; then
11178               if test x"$enablestring" = xdisable; then
11179                   defaultval=yes
11180               else
11181                   defaultval=no
11182               fi
11183           fi
11184
11185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
11186 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
11187           # Check whether --enable-bmpbutton was given.
11188 if test "${enable_bmpbutton+set}" = set; then
11189   enableval=$enable_bmpbutton;
11190                           if test "$enableval" = yes; then
11191                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
11192                           else
11193                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
11194                           fi
11195                           cache=yes
11196
11197 else
11198
11199                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
11200                           if test "x$LINE" != x ; then
11201                               eval "DEFAULT_$LINE"
11202                               cache=yes
11203                           else
11204                               cache=no
11205                           fi
11206
11207                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
11208
11209 fi
11210
11211
11212           eval "$wx_cv_use_bmpbutton"
11213           if test "x$cache" = xyes; then
11214             echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
11215           fi
11216
11217           if test x"$enablestring" = xdisable; then
11218             if test $wxUSE_BMPBUTTON = yes; then
11219               result=no
11220             else
11221               result=yes
11222             fi
11223           else
11224             result=$wxUSE_BMPBUTTON
11225           fi
11226
11227           { echo "$as_me:$LINENO: result: $result" >&5
11228 echo "${ECHO_T}$result" >&6; }
11229
11230
11231           enablestring=
11232           defaultval=$wxUSE_ALL_FEATURES
11233           if test -z "$defaultval"; then
11234               if test x"$enablestring" = xdisable; then
11235                   defaultval=yes
11236               else
11237                   defaultval=no
11238               fi
11239           fi
11240
11241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
11242 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
11243           # Check whether --enable-bmpcombobox was given.
11244 if test "${enable_bmpcombobox+set}" = set; then
11245   enableval=$enable_bmpcombobox;
11246                           if test "$enableval" = yes; then
11247                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
11248                           else
11249                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
11250                           fi
11251                           cache=yes
11252
11253 else
11254
11255                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
11256                           if test "x$LINE" != x ; then
11257                               eval "DEFAULT_$LINE"
11258                               cache=yes
11259                           else
11260                               cache=no
11261                           fi
11262
11263                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
11264
11265 fi
11266
11267
11268           eval "$wx_cv_use_bmpcombobox"
11269           if test "x$cache" = xyes; then
11270             echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
11271           fi
11272
11273           if test x"$enablestring" = xdisable; then
11274             if test $wxUSE_BITMAPCOMBOBOX = yes; then
11275               result=no
11276             else
11277               result=yes
11278             fi
11279           else
11280             result=$wxUSE_BITMAPCOMBOBOX
11281           fi
11282
11283           { echo "$as_me:$LINENO: result: $result" >&5
11284 echo "${ECHO_T}$result" >&6; }
11285
11286
11287           enablestring=
11288           defaultval=$wxUSE_ALL_FEATURES
11289           if test -z "$defaultval"; then
11290               if test x"$enablestring" = xdisable; then
11291                   defaultval=yes
11292               else
11293                   defaultval=no
11294               fi
11295           fi
11296
11297           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
11298 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
11299           # Check whether --enable-calendar was given.
11300 if test "${enable_calendar+set}" = set; then
11301   enableval=$enable_calendar;
11302                           if test "$enableval" = yes; then
11303                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
11304                           else
11305                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
11306                           fi
11307                           cache=yes
11308
11309 else
11310
11311                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
11312                           if test "x$LINE" != x ; then
11313                               eval "DEFAULT_$LINE"
11314                               cache=yes
11315                           else
11316                               cache=no
11317                           fi
11318
11319                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
11320
11321 fi
11322
11323
11324           eval "$wx_cv_use_calendar"
11325           if test "x$cache" = xyes; then
11326             echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
11327           fi
11328
11329           if test x"$enablestring" = xdisable; then
11330             if test $wxUSE_CALCTRL = yes; then
11331               result=no
11332             else
11333               result=yes
11334             fi
11335           else
11336             result=$wxUSE_CALCTRL
11337           fi
11338
11339           { echo "$as_me:$LINENO: result: $result" >&5
11340 echo "${ECHO_T}$result" >&6; }
11341
11342
11343           enablestring=
11344           defaultval=$wxUSE_ALL_FEATURES
11345           if test -z "$defaultval"; then
11346               if test x"$enablestring" = xdisable; then
11347                   defaultval=yes
11348               else
11349                   defaultval=no
11350               fi
11351           fi
11352
11353           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
11354 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
11355           # Check whether --enable-caret was given.
11356 if test "${enable_caret+set}" = set; then
11357   enableval=$enable_caret;
11358                           if test "$enableval" = yes; then
11359                             wx_cv_use_caret='wxUSE_CARET=yes'
11360                           else
11361                             wx_cv_use_caret='wxUSE_CARET=no'
11362                           fi
11363                           cache=yes
11364
11365 else
11366
11367                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
11368                           if test "x$LINE" != x ; then
11369                               eval "DEFAULT_$LINE"
11370                               cache=yes
11371                           else
11372                               cache=no
11373                           fi
11374
11375                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
11376
11377 fi
11378
11379
11380           eval "$wx_cv_use_caret"
11381           if test "x$cache" = xyes; then
11382             echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
11383           fi
11384
11385           if test x"$enablestring" = xdisable; then
11386             if test $wxUSE_CARET = yes; then
11387               result=no
11388             else
11389               result=yes
11390             fi
11391           else
11392             result=$wxUSE_CARET
11393           fi
11394
11395           { echo "$as_me:$LINENO: result: $result" >&5
11396 echo "${ECHO_T}$result" >&6; }
11397
11398
11399           enablestring=
11400           defaultval=$wxUSE_ALL_FEATURES
11401           if test -z "$defaultval"; then
11402               if test x"$enablestring" = xdisable; then
11403                   defaultval=yes
11404               else
11405                   defaultval=no
11406               fi
11407           fi
11408
11409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
11410 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
11411           # Check whether --enable-checkbox was given.
11412 if test "${enable_checkbox+set}" = set; then
11413   enableval=$enable_checkbox;
11414                           if test "$enableval" = yes; then
11415                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
11416                           else
11417                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
11418                           fi
11419                           cache=yes
11420
11421 else
11422
11423                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
11424                           if test "x$LINE" != x ; then
11425                               eval "DEFAULT_$LINE"
11426                               cache=yes
11427                           else
11428                               cache=no
11429                           fi
11430
11431                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
11432
11433 fi
11434
11435
11436           eval "$wx_cv_use_checkbox"
11437           if test "x$cache" = xyes; then
11438             echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
11439           fi
11440
11441           if test x"$enablestring" = xdisable; then
11442             if test $wxUSE_CHECKBOX = yes; then
11443               result=no
11444             else
11445               result=yes
11446             fi
11447           else
11448             result=$wxUSE_CHECKBOX
11449           fi
11450
11451           { echo "$as_me:$LINENO: result: $result" >&5
11452 echo "${ECHO_T}$result" >&6; }
11453
11454
11455           enablestring=
11456           defaultval=$wxUSE_ALL_FEATURES
11457           if test -z "$defaultval"; then
11458               if test x"$enablestring" = xdisable; then
11459                   defaultval=yes
11460               else
11461                   defaultval=no
11462               fi
11463           fi
11464
11465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
11466 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
11467           # Check whether --enable-checklst was given.
11468 if test "${enable_checklst+set}" = set; then
11469   enableval=$enable_checklst;
11470                           if test "$enableval" = yes; then
11471                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11472                           else
11473                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11474                           fi
11475                           cache=yes
11476
11477 else
11478
11479                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11480                           if test "x$LINE" != x ; then
11481                               eval "DEFAULT_$LINE"
11482                               cache=yes
11483                           else
11484                               cache=no
11485                           fi
11486
11487                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11488
11489 fi
11490
11491
11492           eval "$wx_cv_use_checklst"
11493           if test "x$cache" = xyes; then
11494             echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
11495           fi
11496
11497           if test x"$enablestring" = xdisable; then
11498             if test $wxUSE_CHECKLST = yes; then
11499               result=no
11500             else
11501               result=yes
11502             fi
11503           else
11504             result=$wxUSE_CHECKLST
11505           fi
11506
11507           { echo "$as_me:$LINENO: result: $result" >&5
11508 echo "${ECHO_T}$result" >&6; }
11509
11510
11511           enablestring=
11512           defaultval=$wxUSE_ALL_FEATURES
11513           if test -z "$defaultval"; then
11514               if test x"$enablestring" = xdisable; then
11515                   defaultval=yes
11516               else
11517                   defaultval=no
11518               fi
11519           fi
11520
11521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11522 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11523           # Check whether --enable-choice was given.
11524 if test "${enable_choice+set}" = set; then
11525   enableval=$enable_choice;
11526                           if test "$enableval" = yes; then
11527                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11528                           else
11529                             wx_cv_use_choice='wxUSE_CHOICE=no'
11530                           fi
11531                           cache=yes
11532
11533 else
11534
11535                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11536                           if test "x$LINE" != x ; then
11537                               eval "DEFAULT_$LINE"
11538                               cache=yes
11539                           else
11540                               cache=no
11541                           fi
11542
11543                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11544
11545 fi
11546
11547
11548           eval "$wx_cv_use_choice"
11549           if test "x$cache" = xyes; then
11550             echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
11551           fi
11552
11553           if test x"$enablestring" = xdisable; then
11554             if test $wxUSE_CHOICE = yes; then
11555               result=no
11556             else
11557               result=yes
11558             fi
11559           else
11560             result=$wxUSE_CHOICE
11561           fi
11562
11563           { echo "$as_me:$LINENO: result: $result" >&5
11564 echo "${ECHO_T}$result" >&6; }
11565
11566
11567           enablestring=
11568           defaultval=$wxUSE_ALL_FEATURES
11569           if test -z "$defaultval"; then
11570               if test x"$enablestring" = xdisable; then
11571                   defaultval=yes
11572               else
11573                   defaultval=no
11574               fi
11575           fi
11576
11577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11578 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11579           # Check whether --enable-choicebook was given.
11580 if test "${enable_choicebook+set}" = set; then
11581   enableval=$enable_choicebook;
11582                           if test "$enableval" = yes; then
11583                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11584                           else
11585                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11586                           fi
11587                           cache=yes
11588
11589 else
11590
11591                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11592                           if test "x$LINE" != x ; then
11593                               eval "DEFAULT_$LINE"
11594                               cache=yes
11595                           else
11596                               cache=no
11597                           fi
11598
11599                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11600
11601 fi
11602
11603
11604           eval "$wx_cv_use_choicebook"
11605           if test "x$cache" = xyes; then
11606             echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
11607           fi
11608
11609           if test x"$enablestring" = xdisable; then
11610             if test $wxUSE_CHOICEBOOK = yes; then
11611               result=no
11612             else
11613               result=yes
11614             fi
11615           else
11616             result=$wxUSE_CHOICEBOOK
11617           fi
11618
11619           { echo "$as_me:$LINENO: result: $result" >&5
11620 echo "${ECHO_T}$result" >&6; }
11621
11622
11623           enablestring=
11624           defaultval=$wxUSE_ALL_FEATURES
11625           if test -z "$defaultval"; then
11626               if test x"$enablestring" = xdisable; then
11627                   defaultval=yes
11628               else
11629                   defaultval=no
11630               fi
11631           fi
11632
11633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11634 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11635           # Check whether --enable-collpane was given.
11636 if test "${enable_collpane+set}" = set; then
11637   enableval=$enable_collpane;
11638                           if test "$enableval" = yes; then
11639                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11640                           else
11641                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11642                           fi
11643                           cache=yes
11644
11645 else
11646
11647                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11648                           if test "x$LINE" != x ; then
11649                               eval "DEFAULT_$LINE"
11650                               cache=yes
11651                           else
11652                               cache=no
11653                           fi
11654
11655                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11656
11657 fi
11658
11659
11660           eval "$wx_cv_use_collpane"
11661           if test "x$cache" = xyes; then
11662             echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
11663           fi
11664
11665           if test x"$enablestring" = xdisable; then
11666             if test $wxUSE_COLLPANE = yes; then
11667               result=no
11668             else
11669               result=yes
11670             fi
11671           else
11672             result=$wxUSE_COLLPANE
11673           fi
11674
11675           { echo "$as_me:$LINENO: result: $result" >&5
11676 echo "${ECHO_T}$result" >&6; }
11677
11678
11679           enablestring=
11680           defaultval=$wxUSE_ALL_FEATURES
11681           if test -z "$defaultval"; then
11682               if test x"$enablestring" = xdisable; then
11683                   defaultval=yes
11684               else
11685                   defaultval=no
11686               fi
11687           fi
11688
11689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11690 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11691           # Check whether --enable-colourpicker was given.
11692 if test "${enable_colourpicker+set}" = set; then
11693   enableval=$enable_colourpicker;
11694                           if test "$enableval" = yes; then
11695                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11696                           else
11697                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11698                           fi
11699                           cache=yes
11700
11701 else
11702
11703                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11704                           if test "x$LINE" != x ; then
11705                               eval "DEFAULT_$LINE"
11706                               cache=yes
11707                           else
11708                               cache=no
11709                           fi
11710
11711                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11712
11713 fi
11714
11715
11716           eval "$wx_cv_use_colourpicker"
11717           if test "x$cache" = xyes; then
11718             echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11719           fi
11720
11721           if test x"$enablestring" = xdisable; then
11722             if test $wxUSE_COLOURPICKERCTRL = yes; then
11723               result=no
11724             else
11725               result=yes
11726             fi
11727           else
11728             result=$wxUSE_COLOURPICKERCTRL
11729           fi
11730
11731           { echo "$as_me:$LINENO: result: $result" >&5
11732 echo "${ECHO_T}$result" >&6; }
11733
11734
11735           enablestring=
11736           defaultval=$wxUSE_ALL_FEATURES
11737           if test -z "$defaultval"; then
11738               if test x"$enablestring" = xdisable; then
11739                   defaultval=yes
11740               else
11741                   defaultval=no
11742               fi
11743           fi
11744
11745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11746 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11747           # Check whether --enable-combobox was given.
11748 if test "${enable_combobox+set}" = set; then
11749   enableval=$enable_combobox;
11750                           if test "$enableval" = yes; then
11751                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11752                           else
11753                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11754                           fi
11755                           cache=yes
11756
11757 else
11758
11759                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11760                           if test "x$LINE" != x ; then
11761                               eval "DEFAULT_$LINE"
11762                               cache=yes
11763                           else
11764                               cache=no
11765                           fi
11766
11767                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11768
11769 fi
11770
11771
11772           eval "$wx_cv_use_combobox"
11773           if test "x$cache" = xyes; then
11774             echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
11775           fi
11776
11777           if test x"$enablestring" = xdisable; then
11778             if test $wxUSE_COMBOBOX = yes; then
11779               result=no
11780             else
11781               result=yes
11782             fi
11783           else
11784             result=$wxUSE_COMBOBOX
11785           fi
11786
11787           { echo "$as_me:$LINENO: result: $result" >&5
11788 echo "${ECHO_T}$result" >&6; }
11789
11790
11791           enablestring=
11792           defaultval=$wxUSE_ALL_FEATURES
11793           if test -z "$defaultval"; then
11794               if test x"$enablestring" = xdisable; then
11795                   defaultval=yes
11796               else
11797                   defaultval=no
11798               fi
11799           fi
11800
11801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11802 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11803           # Check whether --enable-comboctrl was given.
11804 if test "${enable_comboctrl+set}" = set; then
11805   enableval=$enable_comboctrl;
11806                           if test "$enableval" = yes; then
11807                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11808                           else
11809                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11810                           fi
11811                           cache=yes
11812
11813 else
11814
11815                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11816                           if test "x$LINE" != x ; then
11817                               eval "DEFAULT_$LINE"
11818                               cache=yes
11819                           else
11820                               cache=no
11821                           fi
11822
11823                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11824
11825 fi
11826
11827
11828           eval "$wx_cv_use_comboctrl"
11829           if test "x$cache" = xyes; then
11830             echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
11831           fi
11832
11833           if test x"$enablestring" = xdisable; then
11834             if test $wxUSE_COMBOCTRL = yes; then
11835               result=no
11836             else
11837               result=yes
11838             fi
11839           else
11840             result=$wxUSE_COMBOCTRL
11841           fi
11842
11843           { echo "$as_me:$LINENO: result: $result" >&5
11844 echo "${ECHO_T}$result" >&6; }
11845
11846
11847           enablestring=
11848           defaultval=$wxUSE_ALL_FEATURES
11849           if test -z "$defaultval"; then
11850               if test x"$enablestring" = xdisable; then
11851                   defaultval=yes
11852               else
11853                   defaultval=no
11854               fi
11855           fi
11856
11857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11858 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11859           # Check whether --enable-datepick was given.
11860 if test "${enable_datepick+set}" = set; then
11861   enableval=$enable_datepick;
11862                           if test "$enableval" = yes; then
11863                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11864                           else
11865                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11866                           fi
11867                           cache=yes
11868
11869 else
11870
11871                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11872                           if test "x$LINE" != x ; then
11873                               eval "DEFAULT_$LINE"
11874                               cache=yes
11875                           else
11876                               cache=no
11877                           fi
11878
11879                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11880
11881 fi
11882
11883
11884           eval "$wx_cv_use_datepick"
11885           if test "x$cache" = xyes; then
11886             echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
11887           fi
11888
11889           if test x"$enablestring" = xdisable; then
11890             if test $wxUSE_DATEPICKCTRL = yes; then
11891               result=no
11892             else
11893               result=yes
11894             fi
11895           else
11896             result=$wxUSE_DATEPICKCTRL
11897           fi
11898
11899           { echo "$as_me:$LINENO: result: $result" >&5
11900 echo "${ECHO_T}$result" >&6; }
11901
11902
11903           enablestring=
11904           defaultval=$wxUSE_ALL_FEATURES
11905           if test -z "$defaultval"; then
11906               if test x"$enablestring" = xdisable; then
11907                   defaultval=yes
11908               else
11909                   defaultval=no
11910               fi
11911           fi
11912
11913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11914 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11915           # Check whether --enable-dirpicker was given.
11916 if test "${enable_dirpicker+set}" = set; then
11917   enableval=$enable_dirpicker;
11918                           if test "$enableval" = yes; then
11919                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11920                           else
11921                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11922                           fi
11923                           cache=yes
11924
11925 else
11926
11927                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11928                           if test "x$LINE" != x ; then
11929                               eval "DEFAULT_$LINE"
11930                               cache=yes
11931                           else
11932                               cache=no
11933                           fi
11934
11935                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11936
11937 fi
11938
11939
11940           eval "$wx_cv_use_dirpicker"
11941           if test "x$cache" = xyes; then
11942             echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11943           fi
11944
11945           if test x"$enablestring" = xdisable; then
11946             if test $wxUSE_DIRPICKERCTRL = yes; then
11947               result=no
11948             else
11949               result=yes
11950             fi
11951           else
11952             result=$wxUSE_DIRPICKERCTRL
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}-display" >&5
11970 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11971           # Check whether --enable-display was given.
11972 if test "${enable_display+set}" = set; then
11973   enableval=$enable_display;
11974                           if test "$enableval" = yes; then
11975                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11976                           else
11977                             wx_cv_use_display='wxUSE_DISPLAY=no'
11978                           fi
11979                           cache=yes
11980
11981 else
11982
11983                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11984                           if test "x$LINE" != x ; then
11985                               eval "DEFAULT_$LINE"
11986                               cache=yes
11987                           else
11988                               cache=no
11989                           fi
11990
11991                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11992
11993 fi
11994
11995
11996           eval "$wx_cv_use_display"
11997           if test "x$cache" = xyes; then
11998             echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
11999           fi
12000
12001           if test x"$enablestring" = xdisable; then
12002             if test $wxUSE_DISPLAY = yes; then
12003               result=no
12004             else
12005               result=yes
12006             fi
12007           else
12008             result=$wxUSE_DISPLAY
12009           fi
12010
12011           { echo "$as_me:$LINENO: result: $result" >&5
12012 echo "${ECHO_T}$result" >&6; }
12013
12014
12015           enablestring=
12016           defaultval=$wxUSE_ALL_FEATURES
12017           if test -z "$defaultval"; then
12018               if test x"$enablestring" = xdisable; then
12019                   defaultval=yes
12020               else
12021                   defaultval=no
12022               fi
12023           fi
12024
12025           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
12026 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
12027           # Check whether --enable-detect_sm was given.
12028 if test "${enable_detect_sm+set}" = set; then
12029   enableval=$enable_detect_sm;
12030                           if test "$enableval" = yes; then
12031                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
12032                           else
12033                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
12034                           fi
12035                           cache=yes
12036
12037 else
12038
12039                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
12040                           if test "x$LINE" != x ; then
12041                               eval "DEFAULT_$LINE"
12042                               cache=yes
12043                           else
12044                               cache=no
12045                           fi
12046
12047                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
12048
12049 fi
12050
12051
12052           eval "$wx_cv_use_detect_sm"
12053           if test "x$cache" = xyes; then
12054             echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
12055           fi
12056
12057           if test x"$enablestring" = xdisable; then
12058             if test $wxUSE_DETECT_SM = yes; then
12059               result=no
12060             else
12061               result=yes
12062             fi
12063           else
12064             result=$wxUSE_DETECT_SM
12065           fi
12066
12067           { echo "$as_me:$LINENO: result: $result" >&5
12068 echo "${ECHO_T}$result" >&6; }
12069
12070
12071           enablestring=
12072           defaultval=$wxUSE_ALL_FEATURES
12073           if test -z "$defaultval"; then
12074               if test x"$enablestring" = xdisable; then
12075                   defaultval=yes
12076               else
12077                   defaultval=no
12078               fi
12079           fi
12080
12081           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
12082 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
12083           # Check whether --enable-editablebox was given.
12084 if test "${enable_editablebox+set}" = set; then
12085   enableval=$enable_editablebox;
12086                           if test "$enableval" = yes; then
12087                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
12088                           else
12089                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
12090                           fi
12091                           cache=yes
12092
12093 else
12094
12095                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
12096                           if test "x$LINE" != x ; then
12097                               eval "DEFAULT_$LINE"
12098                               cache=yes
12099                           else
12100                               cache=no
12101                           fi
12102
12103                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
12104
12105 fi
12106
12107
12108           eval "$wx_cv_use_editablebox"
12109           if test "x$cache" = xyes; then
12110             echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
12111           fi
12112
12113           if test x"$enablestring" = xdisable; then
12114             if test $wxUSE_EDITABLELISTBOX = yes; then
12115               result=no
12116             else
12117               result=yes
12118             fi
12119           else
12120             result=$wxUSE_EDITABLELISTBOX
12121           fi
12122
12123           { echo "$as_me:$LINENO: result: $result" >&5
12124 echo "${ECHO_T}$result" >&6; }
12125
12126
12127           enablestring=
12128           defaultval=$wxUSE_ALL_FEATURES
12129           if test -z "$defaultval"; then
12130               if test x"$enablestring" = xdisable; then
12131                   defaultval=yes
12132               else
12133                   defaultval=no
12134               fi
12135           fi
12136
12137           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
12138 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
12139           # Check whether --enable-filepicker was given.
12140 if test "${enable_filepicker+set}" = set; then
12141   enableval=$enable_filepicker;
12142                           if test "$enableval" = yes; then
12143                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
12144                           else
12145                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
12146                           fi
12147                           cache=yes
12148
12149 else
12150
12151                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
12152                           if test "x$LINE" != x ; then
12153                               eval "DEFAULT_$LINE"
12154                               cache=yes
12155                           else
12156                               cache=no
12157                           fi
12158
12159                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
12160
12161 fi
12162
12163
12164           eval "$wx_cv_use_filepicker"
12165           if test "x$cache" = xyes; then
12166             echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
12167           fi
12168
12169           if test x"$enablestring" = xdisable; then
12170             if test $wxUSE_FILEPICKERCTRL = yes; then
12171               result=no
12172             else
12173               result=yes
12174             fi
12175           else
12176             result=$wxUSE_FILEPICKERCTRL
12177           fi
12178
12179           { echo "$as_me:$LINENO: result: $result" >&5
12180 echo "${ECHO_T}$result" >&6; }
12181
12182
12183           enablestring=
12184           defaultval=$wxUSE_ALL_FEATURES
12185           if test -z "$defaultval"; then
12186               if test x"$enablestring" = xdisable; then
12187                   defaultval=yes
12188               else
12189                   defaultval=no
12190               fi
12191           fi
12192
12193           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
12194 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
12195           # Check whether --enable-filectrl was given.
12196 if test "${enable_filectrl+set}" = set; then
12197   enableval=$enable_filectrl;
12198                           if test "$enableval" = yes; then
12199                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
12200                           else
12201                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
12202                           fi
12203                           cache=yes
12204
12205 else
12206
12207                           LINE=`grep "^wxUSE_FILECTRL=" ${wx_arg_cache_file}`
12208                           if test "x$LINE" != x ; then
12209                               eval "DEFAULT_$LINE"
12210                               cache=yes
12211                           else
12212                               cache=no
12213                           fi
12214
12215                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
12216
12217 fi
12218
12219
12220           eval "$wx_cv_use_filectrl"
12221           if test "x$cache" = xyes; then
12222             echo "wxUSE_FILECTRL=$wxUSE_FILECTRL" >> ${wx_arg_cache_file}.tmp
12223           fi
12224
12225           if test x"$enablestring" = xdisable; then
12226             if test $wxUSE_FILECTRL = yes; then
12227               result=no
12228             else
12229               result=yes
12230             fi
12231           else
12232             result=$wxUSE_FILECTRL
12233           fi
12234
12235           { echo "$as_me:$LINENO: result: $result" >&5
12236 echo "${ECHO_T}$result" >&6; }
12237
12238
12239           enablestring=
12240           defaultval=$wxUSE_ALL_FEATURES
12241           if test -z "$defaultval"; then
12242               if test x"$enablestring" = xdisable; then
12243                   defaultval=yes
12244               else
12245                   defaultval=no
12246               fi
12247           fi
12248
12249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
12250 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
12251           # Check whether --enable-fontpicker was given.
12252 if test "${enable_fontpicker+set}" = set; then
12253   enableval=$enable_fontpicker;
12254                           if test "$enableval" = yes; then
12255                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
12256                           else
12257                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
12258                           fi
12259                           cache=yes
12260
12261 else
12262
12263                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
12264                           if test "x$LINE" != x ; then
12265                               eval "DEFAULT_$LINE"
12266                               cache=yes
12267                           else
12268                               cache=no
12269                           fi
12270
12271                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
12272
12273 fi
12274
12275
12276           eval "$wx_cv_use_fontpicker"
12277           if test "x$cache" = xyes; then
12278             echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
12279           fi
12280
12281           if test x"$enablestring" = xdisable; then
12282             if test $wxUSE_FONTPICKERCTRL = yes; then
12283               result=no
12284             else
12285               result=yes
12286             fi
12287           else
12288             result=$wxUSE_FONTPICKERCTRL
12289           fi
12290
12291           { echo "$as_me:$LINENO: result: $result" >&5
12292 echo "${ECHO_T}$result" >&6; }
12293
12294
12295           enablestring=
12296           defaultval=$wxUSE_ALL_FEATURES
12297           if test -z "$defaultval"; then
12298               if test x"$enablestring" = xdisable; then
12299                   defaultval=yes
12300               else
12301                   defaultval=no
12302               fi
12303           fi
12304
12305           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
12306 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
12307           # Check whether --enable-gauge was given.
12308 if test "${enable_gauge+set}" = set; then
12309   enableval=$enable_gauge;
12310                           if test "$enableval" = yes; then
12311                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
12312                           else
12313                             wx_cv_use_gauge='wxUSE_GAUGE=no'
12314                           fi
12315                           cache=yes
12316
12317 else
12318
12319                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
12320                           if test "x$LINE" != x ; then
12321                               eval "DEFAULT_$LINE"
12322                               cache=yes
12323                           else
12324                               cache=no
12325                           fi
12326
12327                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
12328
12329 fi
12330
12331
12332           eval "$wx_cv_use_gauge"
12333           if test "x$cache" = xyes; then
12334             echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
12335           fi
12336
12337           if test x"$enablestring" = xdisable; then
12338             if test $wxUSE_GAUGE = yes; then
12339               result=no
12340             else
12341               result=yes
12342             fi
12343           else
12344             result=$wxUSE_GAUGE
12345           fi
12346
12347           { echo "$as_me:$LINENO: result: $result" >&5
12348 echo "${ECHO_T}$result" >&6; }
12349
12350
12351           enablestring=
12352           defaultval=$wxUSE_ALL_FEATURES
12353           if test -z "$defaultval"; then
12354               if test x"$enablestring" = xdisable; then
12355                   defaultval=yes
12356               else
12357                   defaultval=no
12358               fi
12359           fi
12360
12361           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
12362 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
12363           # Check whether --enable-grid was given.
12364 if test "${enable_grid+set}" = set; then
12365   enableval=$enable_grid;
12366                           if test "$enableval" = yes; then
12367                             wx_cv_use_grid='wxUSE_GRID=yes'
12368                           else
12369                             wx_cv_use_grid='wxUSE_GRID=no'
12370                           fi
12371                           cache=yes
12372
12373 else
12374
12375                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
12376                           if test "x$LINE" != x ; then
12377                               eval "DEFAULT_$LINE"
12378                               cache=yes
12379                           else
12380                               cache=no
12381                           fi
12382
12383                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
12384
12385 fi
12386
12387
12388           eval "$wx_cv_use_grid"
12389           if test "x$cache" = xyes; then
12390             echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
12391           fi
12392
12393           if test x"$enablestring" = xdisable; then
12394             if test $wxUSE_GRID = yes; then
12395               result=no
12396             else
12397               result=yes
12398             fi
12399           else
12400             result=$wxUSE_GRID
12401           fi
12402
12403           { echo "$as_me:$LINENO: result: $result" >&5
12404 echo "${ECHO_T}$result" >&6; }
12405
12406
12407           enablestring=
12408           defaultval=$wxUSE_ALL_FEATURES
12409           if test -z "$defaultval"; then
12410               if test x"$enablestring" = xdisable; then
12411                   defaultval=yes
12412               else
12413                   defaultval=no
12414               fi
12415           fi
12416
12417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
12418 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
12419           # Check whether --enable-dataviewctrl was given.
12420 if test "${enable_dataviewctrl+set}" = set; then
12421   enableval=$enable_dataviewctrl;
12422                           if test "$enableval" = yes; then
12423                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
12424                           else
12425                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
12426                           fi
12427                           cache=yes
12428
12429 else
12430
12431                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
12432                           if test "x$LINE" != x ; then
12433                               eval "DEFAULT_$LINE"
12434                               cache=yes
12435                           else
12436                               cache=no
12437                           fi
12438
12439                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
12440
12441 fi
12442
12443
12444           eval "$wx_cv_use_dataviewctrl"
12445           if test "x$cache" = xyes; then
12446             echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
12447           fi
12448
12449           if test x"$enablestring" = xdisable; then
12450             if test $wxUSE_DATAVIEWCTRL = yes; then
12451               result=no
12452             else
12453               result=yes
12454             fi
12455           else
12456             result=$wxUSE_DATAVIEWCTRL
12457           fi
12458
12459           { echo "$as_me:$LINENO: result: $result" >&5
12460 echo "${ECHO_T}$result" >&6; }
12461
12462
12463           enablestring=
12464           defaultval=$wxUSE_ALL_FEATURES
12465           if test -z "$defaultval"; then
12466               if test x"$enablestring" = xdisable; then
12467                   defaultval=yes
12468               else
12469                   defaultval=no
12470               fi
12471           fi
12472
12473           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
12474 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
12475           # Check whether --enable-hyperlink was given.
12476 if test "${enable_hyperlink+set}" = set; then
12477   enableval=$enable_hyperlink;
12478                           if test "$enableval" = yes; then
12479                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
12480                           else
12481                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
12482                           fi
12483                           cache=yes
12484
12485 else
12486
12487                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
12488                           if test "x$LINE" != x ; then
12489                               eval "DEFAULT_$LINE"
12490                               cache=yes
12491                           else
12492                               cache=no
12493                           fi
12494
12495                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
12496
12497 fi
12498
12499
12500           eval "$wx_cv_use_hyperlink"
12501           if test "x$cache" = xyes; then
12502             echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
12503           fi
12504
12505           if test x"$enablestring" = xdisable; then
12506             if test $wxUSE_HYPERLINKCTRL = yes; then
12507               result=no
12508             else
12509               result=yes
12510             fi
12511           else
12512             result=$wxUSE_HYPERLINKCTRL
12513           fi
12514
12515           { echo "$as_me:$LINENO: result: $result" >&5
12516 echo "${ECHO_T}$result" >&6; }
12517
12518
12519           enablestring=
12520           defaultval=$wxUSE_ALL_FEATURES
12521           if test -z "$defaultval"; then
12522               if test x"$enablestring" = xdisable; then
12523                   defaultval=yes
12524               else
12525                   defaultval=no
12526               fi
12527           fi
12528
12529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
12530 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
12531           # Check whether --enable-imaglist was given.
12532 if test "${enable_imaglist+set}" = set; then
12533   enableval=$enable_imaglist;
12534                           if test "$enableval" = yes; then
12535                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
12536                           else
12537                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
12538                           fi
12539                           cache=yes
12540
12541 else
12542
12543                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
12544                           if test "x$LINE" != x ; then
12545                               eval "DEFAULT_$LINE"
12546                               cache=yes
12547                           else
12548                               cache=no
12549                           fi
12550
12551                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
12552
12553 fi
12554
12555
12556           eval "$wx_cv_use_imaglist"
12557           if test "x$cache" = xyes; then
12558             echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
12559           fi
12560
12561           if test x"$enablestring" = xdisable; then
12562             if test $wxUSE_IMAGLIST = yes; then
12563               result=no
12564             else
12565               result=yes
12566             fi
12567           else
12568             result=$wxUSE_IMAGLIST
12569           fi
12570
12571           { echo "$as_me:$LINENO: result: $result" >&5
12572 echo "${ECHO_T}$result" >&6; }
12573
12574
12575           enablestring=
12576           defaultval=$wxUSE_ALL_FEATURES
12577           if test -z "$defaultval"; then
12578               if test x"$enablestring" = xdisable; then
12579                   defaultval=yes
12580               else
12581                   defaultval=no
12582               fi
12583           fi
12584
12585           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12586 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12587           # Check whether --enable-listbook was given.
12588 if test "${enable_listbook+set}" = set; then
12589   enableval=$enable_listbook;
12590                           if test "$enableval" = yes; then
12591                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12592                           else
12593                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12594                           fi
12595                           cache=yes
12596
12597 else
12598
12599                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12600                           if test "x$LINE" != x ; then
12601                               eval "DEFAULT_$LINE"
12602                               cache=yes
12603                           else
12604                               cache=no
12605                           fi
12606
12607                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12608
12609 fi
12610
12611
12612           eval "$wx_cv_use_listbook"
12613           if test "x$cache" = xyes; then
12614             echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
12615           fi
12616
12617           if test x"$enablestring" = xdisable; then
12618             if test $wxUSE_LISTBOOK = yes; then
12619               result=no
12620             else
12621               result=yes
12622             fi
12623           else
12624             result=$wxUSE_LISTBOOK
12625           fi
12626
12627           { echo "$as_me:$LINENO: result: $result" >&5
12628 echo "${ECHO_T}$result" >&6; }
12629
12630
12631           enablestring=
12632           defaultval=$wxUSE_ALL_FEATURES
12633           if test -z "$defaultval"; then
12634               if test x"$enablestring" = xdisable; then
12635                   defaultval=yes
12636               else
12637                   defaultval=no
12638               fi
12639           fi
12640
12641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12642 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12643           # Check whether --enable-listbox was given.
12644 if test "${enable_listbox+set}" = set; then
12645   enableval=$enable_listbox;
12646                           if test "$enableval" = yes; then
12647                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12648                           else
12649                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12650                           fi
12651                           cache=yes
12652
12653 else
12654
12655                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12656                           if test "x$LINE" != x ; then
12657                               eval "DEFAULT_$LINE"
12658                               cache=yes
12659                           else
12660                               cache=no
12661                           fi
12662
12663                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12664
12665 fi
12666
12667
12668           eval "$wx_cv_use_listbox"
12669           if test "x$cache" = xyes; then
12670             echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
12671           fi
12672
12673           if test x"$enablestring" = xdisable; then
12674             if test $wxUSE_LISTBOX = yes; then
12675               result=no
12676             else
12677               result=yes
12678             fi
12679           else
12680             result=$wxUSE_LISTBOX
12681           fi
12682
12683           { echo "$as_me:$LINENO: result: $result" >&5
12684 echo "${ECHO_T}$result" >&6; }
12685
12686
12687           enablestring=
12688           defaultval=$wxUSE_ALL_FEATURES
12689           if test -z "$defaultval"; then
12690               if test x"$enablestring" = xdisable; then
12691                   defaultval=yes
12692               else
12693                   defaultval=no
12694               fi
12695           fi
12696
12697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12698 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12699           # Check whether --enable-listctrl was given.
12700 if test "${enable_listctrl+set}" = set; then
12701   enableval=$enable_listctrl;
12702                           if test "$enableval" = yes; then
12703                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12704                           else
12705                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12706                           fi
12707                           cache=yes
12708
12709 else
12710
12711                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12712                           if test "x$LINE" != x ; then
12713                               eval "DEFAULT_$LINE"
12714                               cache=yes
12715                           else
12716                               cache=no
12717                           fi
12718
12719                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12720
12721 fi
12722
12723
12724           eval "$wx_cv_use_listctrl"
12725           if test "x$cache" = xyes; then
12726             echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
12727           fi
12728
12729           if test x"$enablestring" = xdisable; then
12730             if test $wxUSE_LISTCTRL = yes; then
12731               result=no
12732             else
12733               result=yes
12734             fi
12735           else
12736             result=$wxUSE_LISTCTRL
12737           fi
12738
12739           { echo "$as_me:$LINENO: result: $result" >&5
12740 echo "${ECHO_T}$result" >&6; }
12741
12742
12743           enablestring=
12744           defaultval=$wxUSE_ALL_FEATURES
12745           if test -z "$defaultval"; then
12746               if test x"$enablestring" = xdisable; then
12747                   defaultval=yes
12748               else
12749                   defaultval=no
12750               fi
12751           fi
12752
12753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12754 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12755           # Check whether --enable-notebook was given.
12756 if test "${enable_notebook+set}" = set; then
12757   enableval=$enable_notebook;
12758                           if test "$enableval" = yes; then
12759                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12760                           else
12761                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12762                           fi
12763                           cache=yes
12764
12765 else
12766
12767                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12768                           if test "x$LINE" != x ; then
12769                               eval "DEFAULT_$LINE"
12770                               cache=yes
12771                           else
12772                               cache=no
12773                           fi
12774
12775                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12776
12777 fi
12778
12779
12780           eval "$wx_cv_use_notebook"
12781           if test "x$cache" = xyes; then
12782             echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
12783           fi
12784
12785           if test x"$enablestring" = xdisable; then
12786             if test $wxUSE_NOTEBOOK = yes; then
12787               result=no
12788             else
12789               result=yes
12790             fi
12791           else
12792             result=$wxUSE_NOTEBOOK
12793           fi
12794
12795           { echo "$as_me:$LINENO: result: $result" >&5
12796 echo "${ECHO_T}$result" >&6; }
12797
12798
12799           enablestring=
12800           defaultval=$wxUSE_ALL_FEATURES
12801           if test -z "$defaultval"; then
12802               if test x"$enablestring" = xdisable; then
12803                   defaultval=yes
12804               else
12805                   defaultval=no
12806               fi
12807           fi
12808
12809           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12810 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12811           # Check whether --enable-odcombobox was given.
12812 if test "${enable_odcombobox+set}" = set; then
12813   enableval=$enable_odcombobox;
12814                           if test "$enableval" = yes; then
12815                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12816                           else
12817                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12818                           fi
12819                           cache=yes
12820
12821 else
12822
12823                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12824                           if test "x$LINE" != x ; then
12825                               eval "DEFAULT_$LINE"
12826                               cache=yes
12827                           else
12828                               cache=no
12829                           fi
12830
12831                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12832
12833 fi
12834
12835
12836           eval "$wx_cv_use_odcombobox"
12837           if test "x$cache" = xyes; then
12838             echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
12839           fi
12840
12841           if test x"$enablestring" = xdisable; then
12842             if test $wxUSE_ODCOMBOBOX = yes; then
12843               result=no
12844             else
12845               result=yes
12846             fi
12847           else
12848             result=$wxUSE_ODCOMBOBOX
12849           fi
12850
12851           { echo "$as_me:$LINENO: result: $result" >&5
12852 echo "${ECHO_T}$result" >&6; }
12853
12854
12855           enablestring=
12856           defaultval=$wxUSE_ALL_FEATURES
12857           if test -z "$defaultval"; then
12858               if test x"$enablestring" = xdisable; then
12859                   defaultval=yes
12860               else
12861                   defaultval=no
12862               fi
12863           fi
12864
12865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12866 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12867           # Check whether --enable-radiobox was given.
12868 if test "${enable_radiobox+set}" = set; then
12869   enableval=$enable_radiobox;
12870                           if test "$enableval" = yes; then
12871                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12872                           else
12873                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12874                           fi
12875                           cache=yes
12876
12877 else
12878
12879                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12880                           if test "x$LINE" != x ; then
12881                               eval "DEFAULT_$LINE"
12882                               cache=yes
12883                           else
12884                               cache=no
12885                           fi
12886
12887                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12888
12889 fi
12890
12891
12892           eval "$wx_cv_use_radiobox"
12893           if test "x$cache" = xyes; then
12894             echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
12895           fi
12896
12897           if test x"$enablestring" = xdisable; then
12898             if test $wxUSE_RADIOBOX = yes; then
12899               result=no
12900             else
12901               result=yes
12902             fi
12903           else
12904             result=$wxUSE_RADIOBOX
12905           fi
12906
12907           { echo "$as_me:$LINENO: result: $result" >&5
12908 echo "${ECHO_T}$result" >&6; }
12909
12910
12911           enablestring=
12912           defaultval=$wxUSE_ALL_FEATURES
12913           if test -z "$defaultval"; then
12914               if test x"$enablestring" = xdisable; then
12915                   defaultval=yes
12916               else
12917                   defaultval=no
12918               fi
12919           fi
12920
12921           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12922 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12923           # Check whether --enable-radiobtn was given.
12924 if test "${enable_radiobtn+set}" = set; then
12925   enableval=$enable_radiobtn;
12926                           if test "$enableval" = yes; then
12927                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12928                           else
12929                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12930                           fi
12931                           cache=yes
12932
12933 else
12934
12935                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12936                           if test "x$LINE" != x ; then
12937                               eval "DEFAULT_$LINE"
12938                               cache=yes
12939                           else
12940                               cache=no
12941                           fi
12942
12943                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12944
12945 fi
12946
12947
12948           eval "$wx_cv_use_radiobtn"
12949           if test "x$cache" = xyes; then
12950             echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
12951           fi
12952
12953           if test x"$enablestring" = xdisable; then
12954             if test $wxUSE_RADIOBTN = yes; then
12955               result=no
12956             else
12957               result=yes
12958             fi
12959           else
12960             result=$wxUSE_RADIOBTN
12961           fi
12962
12963           { echo "$as_me:$LINENO: result: $result" >&5
12964 echo "${ECHO_T}$result" >&6; }
12965
12966
12967           enablestring=
12968           defaultval=$wxUSE_ALL_FEATURES
12969           if test -z "$defaultval"; then
12970               if test x"$enablestring" = xdisable; then
12971                   defaultval=yes
12972               else
12973                   defaultval=no
12974               fi
12975           fi
12976
12977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12978 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12979           # Check whether --enable-sash was given.
12980 if test "${enable_sash+set}" = set; then
12981   enableval=$enable_sash;
12982                           if test "$enableval" = yes; then
12983                             wx_cv_use_sash='wxUSE_SASH=yes'
12984                           else
12985                             wx_cv_use_sash='wxUSE_SASH=no'
12986                           fi
12987                           cache=yes
12988
12989 else
12990
12991                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12992                           if test "x$LINE" != x ; then
12993                               eval "DEFAULT_$LINE"
12994                               cache=yes
12995                           else
12996                               cache=no
12997                           fi
12998
12999                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
13000
13001 fi
13002
13003
13004           eval "$wx_cv_use_sash"
13005           if test "x$cache" = xyes; then
13006             echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
13007           fi
13008
13009           if test x"$enablestring" = xdisable; then
13010             if test $wxUSE_SASH = yes; then
13011               result=no
13012             else
13013               result=yes
13014             fi
13015           else
13016             result=$wxUSE_SASH
13017           fi
13018
13019           { echo "$as_me:$LINENO: result: $result" >&5
13020 echo "${ECHO_T}$result" >&6; }
13021
13022
13023           enablestring=
13024           defaultval=$wxUSE_ALL_FEATURES
13025           if test -z "$defaultval"; then
13026               if test x"$enablestring" = xdisable; then
13027                   defaultval=yes
13028               else
13029                   defaultval=no
13030               fi
13031           fi
13032
13033           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
13034 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
13035           # Check whether --enable-scrollbar was given.
13036 if test "${enable_scrollbar+set}" = set; then
13037   enableval=$enable_scrollbar;
13038                           if test "$enableval" = yes; then
13039                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
13040                           else
13041                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
13042                           fi
13043                           cache=yes
13044
13045 else
13046
13047                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
13048                           if test "x$LINE" != x ; then
13049                               eval "DEFAULT_$LINE"
13050                               cache=yes
13051                           else
13052                               cache=no
13053                           fi
13054
13055                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
13056
13057 fi
13058
13059
13060           eval "$wx_cv_use_scrollbar"
13061           if test "x$cache" = xyes; then
13062             echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
13063           fi
13064
13065           if test x"$enablestring" = xdisable; then
13066             if test $wxUSE_SCROLLBAR = yes; then
13067               result=no
13068             else
13069               result=yes
13070             fi
13071           else
13072             result=$wxUSE_SCROLLBAR
13073           fi
13074
13075           { echo "$as_me:$LINENO: result: $result" >&5
13076 echo "${ECHO_T}$result" >&6; }
13077
13078
13079           enablestring=
13080           defaultval=$wxUSE_ALL_FEATURES
13081           if test -z "$defaultval"; then
13082               if test x"$enablestring" = xdisable; then
13083                   defaultval=yes
13084               else
13085                   defaultval=no
13086               fi
13087           fi
13088
13089           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
13090 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
13091           # Check whether --enable-searchctrl was given.
13092 if test "${enable_searchctrl+set}" = set; then
13093   enableval=$enable_searchctrl;
13094                           if test "$enableval" = yes; then
13095                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
13096                           else
13097                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
13098                           fi
13099                           cache=yes
13100
13101 else
13102
13103                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
13104                           if test "x$LINE" != x ; then
13105                               eval "DEFAULT_$LINE"
13106                               cache=yes
13107                           else
13108                               cache=no
13109                           fi
13110
13111                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
13112
13113 fi
13114
13115
13116           eval "$wx_cv_use_searchctrl"
13117           if test "x$cache" = xyes; then
13118             echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
13119           fi
13120
13121           if test x"$enablestring" = xdisable; then
13122             if test $wxUSE_SEARCHCTRL = yes; then
13123               result=no
13124             else
13125               result=yes
13126             fi
13127           else
13128             result=$wxUSE_SEARCHCTRL
13129           fi
13130
13131           { echo "$as_me:$LINENO: result: $result" >&5
13132 echo "${ECHO_T}$result" >&6; }
13133
13134
13135           enablestring=
13136           defaultval=$wxUSE_ALL_FEATURES
13137           if test -z "$defaultval"; then
13138               if test x"$enablestring" = xdisable; then
13139                   defaultval=yes
13140               else
13141                   defaultval=no
13142               fi
13143           fi
13144
13145           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
13146 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
13147           # Check whether --enable-slider was given.
13148 if test "${enable_slider+set}" = set; then
13149   enableval=$enable_slider;
13150                           if test "$enableval" = yes; then
13151                             wx_cv_use_slider='wxUSE_SLIDER=yes'
13152                           else
13153                             wx_cv_use_slider='wxUSE_SLIDER=no'
13154                           fi
13155                           cache=yes
13156
13157 else
13158
13159                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
13160                           if test "x$LINE" != x ; then
13161                               eval "DEFAULT_$LINE"
13162                               cache=yes
13163                           else
13164                               cache=no
13165                           fi
13166
13167                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
13168
13169 fi
13170
13171
13172           eval "$wx_cv_use_slider"
13173           if test "x$cache" = xyes; then
13174             echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
13175           fi
13176
13177           if test x"$enablestring" = xdisable; then
13178             if test $wxUSE_SLIDER = yes; then
13179               result=no
13180             else
13181               result=yes
13182             fi
13183           else
13184             result=$wxUSE_SLIDER
13185           fi
13186
13187           { echo "$as_me:$LINENO: result: $result" >&5
13188 echo "${ECHO_T}$result" >&6; }
13189
13190
13191           enablestring=
13192           defaultval=$wxUSE_ALL_FEATURES
13193           if test -z "$defaultval"; then
13194               if test x"$enablestring" = xdisable; then
13195                   defaultval=yes
13196               else
13197                   defaultval=no
13198               fi
13199           fi
13200
13201           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
13202 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
13203           # Check whether --enable-spinbtn was given.
13204 if test "${enable_spinbtn+set}" = set; then
13205   enableval=$enable_spinbtn;
13206                           if test "$enableval" = yes; then
13207                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
13208                           else
13209                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
13210                           fi
13211                           cache=yes
13212
13213 else
13214
13215                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
13216                           if test "x$LINE" != x ; then
13217                               eval "DEFAULT_$LINE"
13218                               cache=yes
13219                           else
13220                               cache=no
13221                           fi
13222
13223                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
13224
13225 fi
13226
13227
13228           eval "$wx_cv_use_spinbtn"
13229           if test "x$cache" = xyes; then
13230             echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
13231           fi
13232
13233           if test x"$enablestring" = xdisable; then
13234             if test $wxUSE_SPINBTN = yes; then
13235               result=no
13236             else
13237               result=yes
13238             fi
13239           else
13240             result=$wxUSE_SPINBTN
13241           fi
13242
13243           { echo "$as_me:$LINENO: result: $result" >&5
13244 echo "${ECHO_T}$result" >&6; }
13245
13246
13247           enablestring=
13248           defaultval=$wxUSE_ALL_FEATURES
13249           if test -z "$defaultval"; then
13250               if test x"$enablestring" = xdisable; then
13251                   defaultval=yes
13252               else
13253                   defaultval=no
13254               fi
13255           fi
13256
13257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
13258 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
13259           # Check whether --enable-spinctrl was given.
13260 if test "${enable_spinctrl+set}" = set; then
13261   enableval=$enable_spinctrl;
13262                           if test "$enableval" = yes; then
13263                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
13264                           else
13265                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
13266                           fi
13267                           cache=yes
13268
13269 else
13270
13271                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
13272                           if test "x$LINE" != x ; then
13273                               eval "DEFAULT_$LINE"
13274                               cache=yes
13275                           else
13276                               cache=no
13277                           fi
13278
13279                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
13280
13281 fi
13282
13283
13284           eval "$wx_cv_use_spinctrl"
13285           if test "x$cache" = xyes; then
13286             echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
13287           fi
13288
13289           if test x"$enablestring" = xdisable; then
13290             if test $wxUSE_SPINCTRL = yes; then
13291               result=no
13292             else
13293               result=yes
13294             fi
13295           else
13296             result=$wxUSE_SPINCTRL
13297           fi
13298
13299           { echo "$as_me:$LINENO: result: $result" >&5
13300 echo "${ECHO_T}$result" >&6; }
13301
13302
13303           enablestring=
13304           defaultval=$wxUSE_ALL_FEATURES
13305           if test -z "$defaultval"; then
13306               if test x"$enablestring" = xdisable; then
13307                   defaultval=yes
13308               else
13309                   defaultval=no
13310               fi
13311           fi
13312
13313           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
13314 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
13315           # Check whether --enable-splitter was given.
13316 if test "${enable_splitter+set}" = set; then
13317   enableval=$enable_splitter;
13318                           if test "$enableval" = yes; then
13319                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
13320                           else
13321                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
13322                           fi
13323                           cache=yes
13324
13325 else
13326
13327                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
13328                           if test "x$LINE" != x ; then
13329                               eval "DEFAULT_$LINE"
13330                               cache=yes
13331                           else
13332                               cache=no
13333                           fi
13334
13335                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
13336
13337 fi
13338
13339
13340           eval "$wx_cv_use_splitter"
13341           if test "x$cache" = xyes; then
13342             echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
13343           fi
13344
13345           if test x"$enablestring" = xdisable; then
13346             if test $wxUSE_SPLITTER = yes; then
13347               result=no
13348             else
13349               result=yes
13350             fi
13351           else
13352             result=$wxUSE_SPLITTER
13353           fi
13354
13355           { echo "$as_me:$LINENO: result: $result" >&5
13356 echo "${ECHO_T}$result" >&6; }
13357
13358
13359           enablestring=
13360           defaultval=$wxUSE_ALL_FEATURES
13361           if test -z "$defaultval"; then
13362               if test x"$enablestring" = xdisable; then
13363                   defaultval=yes
13364               else
13365                   defaultval=no
13366               fi
13367           fi
13368
13369           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
13370 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
13371           # Check whether --enable-statbmp was given.
13372 if test "${enable_statbmp+set}" = set; then
13373   enableval=$enable_statbmp;
13374                           if test "$enableval" = yes; then
13375                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
13376                           else
13377                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
13378                           fi
13379                           cache=yes
13380
13381 else
13382
13383                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
13384                           if test "x$LINE" != x ; then
13385                               eval "DEFAULT_$LINE"
13386                               cache=yes
13387                           else
13388                               cache=no
13389                           fi
13390
13391                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
13392
13393 fi
13394
13395
13396           eval "$wx_cv_use_statbmp"
13397           if test "x$cache" = xyes; then
13398             echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
13399           fi
13400
13401           if test x"$enablestring" = xdisable; then
13402             if test $wxUSE_STATBMP = yes; then
13403               result=no
13404             else
13405               result=yes
13406             fi
13407           else
13408             result=$wxUSE_STATBMP
13409           fi
13410
13411           { echo "$as_me:$LINENO: result: $result" >&5
13412 echo "${ECHO_T}$result" >&6; }
13413
13414
13415           enablestring=
13416           defaultval=$wxUSE_ALL_FEATURES
13417           if test -z "$defaultval"; then
13418               if test x"$enablestring" = xdisable; then
13419                   defaultval=yes
13420               else
13421                   defaultval=no
13422               fi
13423           fi
13424
13425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
13426 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
13427           # Check whether --enable-statbox was given.
13428 if test "${enable_statbox+set}" = set; then
13429   enableval=$enable_statbox;
13430                           if test "$enableval" = yes; then
13431                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
13432                           else
13433                             wx_cv_use_statbox='wxUSE_STATBOX=no'
13434                           fi
13435                           cache=yes
13436
13437 else
13438
13439                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
13440                           if test "x$LINE" != x ; then
13441                               eval "DEFAULT_$LINE"
13442                               cache=yes
13443                           else
13444                               cache=no
13445                           fi
13446
13447                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
13448
13449 fi
13450
13451
13452           eval "$wx_cv_use_statbox"
13453           if test "x$cache" = xyes; then
13454             echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
13455           fi
13456
13457           if test x"$enablestring" = xdisable; then
13458             if test $wxUSE_STATBOX = yes; then
13459               result=no
13460             else
13461               result=yes
13462             fi
13463           else
13464             result=$wxUSE_STATBOX
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}-statline" >&5
13482 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
13483           # Check whether --enable-statline was given.
13484 if test "${enable_statline+set}" = set; then
13485   enableval=$enable_statline;
13486                           if test "$enableval" = yes; then
13487                             wx_cv_use_statline='wxUSE_STATLINE=yes'
13488                           else
13489                             wx_cv_use_statline='wxUSE_STATLINE=no'
13490                           fi
13491                           cache=yes
13492
13493 else
13494
13495                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
13496                           if test "x$LINE" != x ; then
13497                               eval "DEFAULT_$LINE"
13498                               cache=yes
13499                           else
13500                               cache=no
13501                           fi
13502
13503                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
13504
13505 fi
13506
13507
13508           eval "$wx_cv_use_statline"
13509           if test "x$cache" = xyes; then
13510             echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
13511           fi
13512
13513           if test x"$enablestring" = xdisable; then
13514             if test $wxUSE_STATLINE = yes; then
13515               result=no
13516             else
13517               result=yes
13518             fi
13519           else
13520             result=$wxUSE_STATLINE
13521           fi
13522
13523           { echo "$as_me:$LINENO: result: $result" >&5
13524 echo "${ECHO_T}$result" >&6; }
13525
13526
13527           enablestring=
13528           defaultval=$wxUSE_ALL_FEATURES
13529           if test -z "$defaultval"; then
13530               if test x"$enablestring" = xdisable; then
13531                   defaultval=yes
13532               else
13533                   defaultval=no
13534               fi
13535           fi
13536
13537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
13538 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
13539           # Check whether --enable-stattext was given.
13540 if test "${enable_stattext+set}" = set; then
13541   enableval=$enable_stattext;
13542                           if test "$enableval" = yes; then
13543                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
13544                           else
13545                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
13546                           fi
13547                           cache=yes
13548
13549 else
13550
13551                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
13552                           if test "x$LINE" != x ; then
13553                               eval "DEFAULT_$LINE"
13554                               cache=yes
13555                           else
13556                               cache=no
13557                           fi
13558
13559                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
13560
13561 fi
13562
13563
13564           eval "$wx_cv_use_stattext"
13565           if test "x$cache" = xyes; then
13566             echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
13567           fi
13568
13569           if test x"$enablestring" = xdisable; then
13570             if test $wxUSE_STATTEXT = yes; then
13571               result=no
13572             else
13573               result=yes
13574             fi
13575           else
13576             result=$wxUSE_STATTEXT
13577           fi
13578
13579           { echo "$as_me:$LINENO: result: $result" >&5
13580 echo "${ECHO_T}$result" >&6; }
13581
13582
13583           enablestring=
13584           defaultval=$wxUSE_ALL_FEATURES
13585           if test -z "$defaultval"; then
13586               if test x"$enablestring" = xdisable; then
13587                   defaultval=yes
13588               else
13589                   defaultval=no
13590               fi
13591           fi
13592
13593           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
13594 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
13595           # Check whether --enable-statusbar was given.
13596 if test "${enable_statusbar+set}" = set; then
13597   enableval=$enable_statusbar;
13598                           if test "$enableval" = yes; then
13599                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13600                           else
13601                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13602                           fi
13603                           cache=yes
13604
13605 else
13606
13607                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13608                           if test "x$LINE" != x ; then
13609                               eval "DEFAULT_$LINE"
13610                               cache=yes
13611                           else
13612                               cache=no
13613                           fi
13614
13615                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13616
13617 fi
13618
13619
13620           eval "$wx_cv_use_statusbar"
13621           if test "x$cache" = xyes; then
13622             echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
13623           fi
13624
13625           if test x"$enablestring" = xdisable; then
13626             if test $wxUSE_STATUSBAR = yes; then
13627               result=no
13628             else
13629               result=yes
13630             fi
13631           else
13632             result=$wxUSE_STATUSBAR
13633           fi
13634
13635           { echo "$as_me:$LINENO: result: $result" >&5
13636 echo "${ECHO_T}$result" >&6; }
13637
13638
13639           enablestring=
13640           defaultval=$wxUSE_ALL_FEATURES
13641           if test -z "$defaultval"; then
13642               if test x"$enablestring" = xdisable; then
13643                   defaultval=yes
13644               else
13645                   defaultval=no
13646               fi
13647           fi
13648
13649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13650 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13651           # Check whether --enable-tabdialog was given.
13652 if test "${enable_tabdialog+set}" = set; then
13653   enableval=$enable_tabdialog;
13654                           if test "$enableval" = yes; then
13655                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13656                           else
13657                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13658                           fi
13659                           cache=yes
13660
13661 else
13662
13663                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13664                           if test "x$LINE" != x ; then
13665                               eval "DEFAULT_$LINE"
13666                               cache=yes
13667                           else
13668                               cache=no
13669                           fi
13670
13671                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13672
13673 fi
13674
13675
13676           eval "$wx_cv_use_tabdialog"
13677           if test "x$cache" = xyes; then
13678             echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
13679           fi
13680
13681           if test x"$enablestring" = xdisable; then
13682             if test $wxUSE_TAB_DIALOG = yes; then
13683               result=no
13684             else
13685               result=yes
13686             fi
13687           else
13688             result=$wxUSE_TAB_DIALOG
13689           fi
13690
13691           { echo "$as_me:$LINENO: result: $result" >&5
13692 echo "${ECHO_T}$result" >&6; }
13693
13694
13695           enablestring=
13696           defaultval=$wxUSE_ALL_FEATURES
13697           if test -z "$defaultval"; then
13698               if test x"$enablestring" = xdisable; then
13699                   defaultval=yes
13700               else
13701                   defaultval=no
13702               fi
13703           fi
13704
13705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13706 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13707           # Check whether --enable-taskbaricon was given.
13708 if test "${enable_taskbaricon+set}" = set; then
13709   enableval=$enable_taskbaricon;
13710                           if test "$enableval" = yes; then
13711                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13712                           else
13713                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13714                           fi
13715                           cache=yes
13716
13717 else
13718
13719                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13720                           if test "x$LINE" != x ; then
13721                               eval "DEFAULT_$LINE"
13722                               cache=yes
13723                           else
13724                               cache=no
13725                           fi
13726
13727                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13728
13729 fi
13730
13731
13732           eval "$wx_cv_use_taskbaricon"
13733           if test "x$cache" = xyes; then
13734             echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
13735           fi
13736
13737           if test x"$enablestring" = xdisable; then
13738             if test $wxUSE_TASKBARICON = yes; then
13739               result=no
13740             else
13741               result=yes
13742             fi
13743           else
13744             result=$wxUSE_TASKBARICON
13745           fi
13746
13747           { echo "$as_me:$LINENO: result: $result" >&5
13748 echo "${ECHO_T}$result" >&6; }
13749
13750
13751           enablestring=
13752           defaultval=$wxUSE_ALL_FEATURES
13753           if test -z "$defaultval"; then
13754               if test x"$enablestring" = xdisable; then
13755                   defaultval=yes
13756               else
13757                   defaultval=no
13758               fi
13759           fi
13760
13761           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13762 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13763           # Check whether --enable-textctrl was given.
13764 if test "${enable_textctrl+set}" = set; then
13765   enableval=$enable_textctrl;
13766                           if test "$enableval" = yes; then
13767                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13768                           else
13769                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13770                           fi
13771                           cache=yes
13772
13773 else
13774
13775                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13776                           if test "x$LINE" != x ; then
13777                               eval "DEFAULT_$LINE"
13778                               cache=yes
13779                           else
13780                               cache=no
13781                           fi
13782
13783                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13784
13785 fi
13786
13787
13788           eval "$wx_cv_use_textctrl"
13789           if test "x$cache" = xyes; then
13790             echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
13791           fi
13792
13793           if test x"$enablestring" = xdisable; then
13794             if test $wxUSE_TEXTCTRL = yes; then
13795               result=no
13796             else
13797               result=yes
13798             fi
13799           else
13800             result=$wxUSE_TEXTCTRL
13801           fi
13802
13803           { echo "$as_me:$LINENO: result: $result" >&5
13804 echo "${ECHO_T}$result" >&6; }
13805
13806
13807           enablestring=
13808           defaultval=$wxUSE_ALL_FEATURES
13809           if test -z "$defaultval"; then
13810               if test x"$enablestring" = xdisable; then
13811                   defaultval=yes
13812               else
13813                   defaultval=no
13814               fi
13815           fi
13816
13817           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13818 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13819           # Check whether --enable-togglebtn was given.
13820 if test "${enable_togglebtn+set}" = set; then
13821   enableval=$enable_togglebtn;
13822                           if test "$enableval" = yes; then
13823                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13824                           else
13825                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13826                           fi
13827                           cache=yes
13828
13829 else
13830
13831                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13832                           if test "x$LINE" != x ; then
13833                               eval "DEFAULT_$LINE"
13834                               cache=yes
13835                           else
13836                               cache=no
13837                           fi
13838
13839                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13840
13841 fi
13842
13843
13844           eval "$wx_cv_use_togglebtn"
13845           if test "x$cache" = xyes; then
13846             echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
13847           fi
13848
13849           if test x"$enablestring" = xdisable; then
13850             if test $wxUSE_TOGGLEBTN = yes; then
13851               result=no
13852             else
13853               result=yes
13854             fi
13855           else
13856             result=$wxUSE_TOGGLEBTN
13857           fi
13858
13859           { echo "$as_me:$LINENO: result: $result" >&5
13860 echo "${ECHO_T}$result" >&6; }
13861
13862
13863           enablestring=
13864           defaultval=$wxUSE_ALL_FEATURES
13865           if test -z "$defaultval"; then
13866               if test x"$enablestring" = xdisable; then
13867                   defaultval=yes
13868               else
13869                   defaultval=no
13870               fi
13871           fi
13872
13873           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13874 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13875           # Check whether --enable-toolbar was given.
13876 if test "${enable_toolbar+set}" = set; then
13877   enableval=$enable_toolbar;
13878                           if test "$enableval" = yes; then
13879                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13880                           else
13881                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13882                           fi
13883                           cache=yes
13884
13885 else
13886
13887                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13888                           if test "x$LINE" != x ; then
13889                               eval "DEFAULT_$LINE"
13890                               cache=yes
13891                           else
13892                               cache=no
13893                           fi
13894
13895                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13896
13897 fi
13898
13899
13900           eval "$wx_cv_use_toolbar"
13901           if test "x$cache" = xyes; then
13902             echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
13903           fi
13904
13905           if test x"$enablestring" = xdisable; then
13906             if test $wxUSE_TOOLBAR = yes; then
13907               result=no
13908             else
13909               result=yes
13910             fi
13911           else
13912             result=$wxUSE_TOOLBAR
13913           fi
13914
13915           { echo "$as_me:$LINENO: result: $result" >&5
13916 echo "${ECHO_T}$result" >&6; }
13917
13918
13919           enablestring=
13920           defaultval=$wxUSE_ALL_FEATURES
13921           if test -z "$defaultval"; then
13922               if test x"$enablestring" = xdisable; then
13923                   defaultval=yes
13924               else
13925                   defaultval=no
13926               fi
13927           fi
13928
13929           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13930 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13931           # Check whether --enable-tbarnative was given.
13932 if test "${enable_tbarnative+set}" = set; then
13933   enableval=$enable_tbarnative;
13934                           if test "$enableval" = yes; then
13935                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13936                           else
13937                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13938                           fi
13939                           cache=yes
13940
13941 else
13942
13943                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13944                           if test "x$LINE" != x ; then
13945                               eval "DEFAULT_$LINE"
13946                               cache=yes
13947                           else
13948                               cache=no
13949                           fi
13950
13951                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13952
13953 fi
13954
13955
13956           eval "$wx_cv_use_tbarnative"
13957           if test "x$cache" = xyes; then
13958             echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
13959           fi
13960
13961           if test x"$enablestring" = xdisable; then
13962             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13963               result=no
13964             else
13965               result=yes
13966             fi
13967           else
13968             result=$wxUSE_TOOLBAR_NATIVE
13969           fi
13970
13971           { echo "$as_me:$LINENO: result: $result" >&5
13972 echo "${ECHO_T}$result" >&6; }
13973
13974
13975           enablestring=
13976           defaultval=$wxUSE_ALL_FEATURES
13977           if test -z "$defaultval"; then
13978               if test x"$enablestring" = xdisable; then
13979                   defaultval=yes
13980               else
13981                   defaultval=no
13982               fi
13983           fi
13984
13985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13986 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13987           # Check whether --enable-treebook was given.
13988 if test "${enable_treebook+set}" = set; then
13989   enableval=$enable_treebook;
13990                           if test "$enableval" = yes; then
13991                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13992                           else
13993                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13994                           fi
13995                           cache=yes
13996
13997 else
13998
13999                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
14000                           if test "x$LINE" != x ; then
14001                               eval "DEFAULT_$LINE"
14002                               cache=yes
14003                           else
14004                               cache=no
14005                           fi
14006
14007                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
14008
14009 fi
14010
14011
14012           eval "$wx_cv_use_treebook"
14013           if test "x$cache" = xyes; then
14014             echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
14015           fi
14016
14017           if test x"$enablestring" = xdisable; then
14018             if test $wxUSE_TREEBOOK = yes; then
14019               result=no
14020             else
14021               result=yes
14022             fi
14023           else
14024             result=$wxUSE_TREEBOOK
14025           fi
14026
14027           { echo "$as_me:$LINENO: result: $result" >&5
14028 echo "${ECHO_T}$result" >&6; }
14029
14030
14031           enablestring=
14032           defaultval=$wxUSE_ALL_FEATURES
14033           if test -z "$defaultval"; then
14034               if test x"$enablestring" = xdisable; then
14035                   defaultval=yes
14036               else
14037                   defaultval=no
14038               fi
14039           fi
14040
14041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
14042 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
14043           # Check whether --enable-toolbook was given.
14044 if test "${enable_toolbook+set}" = set; then
14045   enableval=$enable_toolbook;
14046                           if test "$enableval" = yes; then
14047                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
14048                           else
14049                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
14050                           fi
14051                           cache=yes
14052
14053 else
14054
14055                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
14056                           if test "x$LINE" != x ; then
14057                               eval "DEFAULT_$LINE"
14058                               cache=yes
14059                           else
14060                               cache=no
14061                           fi
14062
14063                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
14064
14065 fi
14066
14067
14068           eval "$wx_cv_use_toolbook"
14069           if test "x$cache" = xyes; then
14070             echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
14071           fi
14072
14073           if test x"$enablestring" = xdisable; then
14074             if test $wxUSE_TOOLBOOK = yes; then
14075               result=no
14076             else
14077               result=yes
14078             fi
14079           else
14080             result=$wxUSE_TOOLBOOK
14081           fi
14082
14083           { echo "$as_me:$LINENO: result: $result" >&5
14084 echo "${ECHO_T}$result" >&6; }
14085
14086
14087           enablestring=
14088           defaultval=$wxUSE_ALL_FEATURES
14089           if test -z "$defaultval"; then
14090               if test x"$enablestring" = xdisable; then
14091                   defaultval=yes
14092               else
14093                   defaultval=no
14094               fi
14095           fi
14096
14097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
14098 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
14099           # Check whether --enable-treectrl was given.
14100 if test "${enable_treectrl+set}" = set; then
14101   enableval=$enable_treectrl;
14102                           if test "$enableval" = yes; then
14103                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
14104                           else
14105                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
14106                           fi
14107                           cache=yes
14108
14109 else
14110
14111                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
14112                           if test "x$LINE" != x ; then
14113                               eval "DEFAULT_$LINE"
14114                               cache=yes
14115                           else
14116                               cache=no
14117                           fi
14118
14119                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
14120
14121 fi
14122
14123
14124           eval "$wx_cv_use_treectrl"
14125           if test "x$cache" = xyes; then
14126             echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
14127           fi
14128
14129           if test x"$enablestring" = xdisable; then
14130             if test $wxUSE_TREECTRL = yes; then
14131               result=no
14132             else
14133               result=yes
14134             fi
14135           else
14136             result=$wxUSE_TREECTRL
14137           fi
14138
14139           { echo "$as_me:$LINENO: result: $result" >&5
14140 echo "${ECHO_T}$result" >&6; }
14141
14142
14143           enablestring=
14144           defaultval=$wxUSE_ALL_FEATURES
14145           if test -z "$defaultval"; then
14146               if test x"$enablestring" = xdisable; then
14147                   defaultval=yes
14148               else
14149                   defaultval=no
14150               fi
14151           fi
14152
14153           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
14154 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
14155           # Check whether --enable-tipwindow was given.
14156 if test "${enable_tipwindow+set}" = set; then
14157   enableval=$enable_tipwindow;
14158                           if test "$enableval" = yes; then
14159                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
14160                           else
14161                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
14162                           fi
14163                           cache=yes
14164
14165 else
14166
14167                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
14168                           if test "x$LINE" != x ; then
14169                               eval "DEFAULT_$LINE"
14170                               cache=yes
14171                           else
14172                               cache=no
14173                           fi
14174
14175                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
14176
14177 fi
14178
14179
14180           eval "$wx_cv_use_tipwindow"
14181           if test "x$cache" = xyes; then
14182             echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
14183           fi
14184
14185           if test x"$enablestring" = xdisable; then
14186             if test $wxUSE_TIPWINDOW = yes; then
14187               result=no
14188             else
14189               result=yes
14190             fi
14191           else
14192             result=$wxUSE_TIPWINDOW
14193           fi
14194
14195           { echo "$as_me:$LINENO: result: $result" >&5
14196 echo "${ECHO_T}$result" >&6; }
14197
14198
14199           enablestring=
14200           defaultval=$wxUSE_ALL_FEATURES
14201           if test -z "$defaultval"; then
14202               if test x"$enablestring" = xdisable; then
14203                   defaultval=yes
14204               else
14205                   defaultval=no
14206               fi
14207           fi
14208
14209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
14210 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
14211           # Check whether --enable-popupwin was given.
14212 if test "${enable_popupwin+set}" = set; then
14213   enableval=$enable_popupwin;
14214                           if test "$enableval" = yes; then
14215                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
14216                           else
14217                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
14218                           fi
14219                           cache=yes
14220
14221 else
14222
14223                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
14224                           if test "x$LINE" != x ; then
14225                               eval "DEFAULT_$LINE"
14226                               cache=yes
14227                           else
14228                               cache=no
14229                           fi
14230
14231                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
14232
14233 fi
14234
14235
14236           eval "$wx_cv_use_popupwin"
14237           if test "x$cache" = xyes; then
14238             echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
14239           fi
14240
14241           if test x"$enablestring" = xdisable; then
14242             if test $wxUSE_POPUPWIN = yes; then
14243               result=no
14244             else
14245               result=yes
14246             fi
14247           else
14248             result=$wxUSE_POPUPWIN
14249           fi
14250
14251           { echo "$as_me:$LINENO: result: $result" >&5
14252 echo "${ECHO_T}$result" >&6; }
14253
14254
14255
14256
14257           enablestring=
14258           defaultval=$wxUSE_ALL_FEATURES
14259           if test -z "$defaultval"; then
14260               if test x"$enablestring" = xdisable; then
14261                   defaultval=yes
14262               else
14263                   defaultval=no
14264               fi
14265           fi
14266
14267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
14268 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
14269           # Check whether --enable-commondlg was given.
14270 if test "${enable_commondlg+set}" = set; then
14271   enableval=$enable_commondlg;
14272                           if test "$enableval" = yes; then
14273                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
14274                           else
14275                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
14276                           fi
14277                           cache=yes
14278
14279 else
14280
14281                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
14282                           if test "x$LINE" != x ; then
14283                               eval "DEFAULT_$LINE"
14284                               cache=yes
14285                           else
14286                               cache=no
14287                           fi
14288
14289                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
14290
14291 fi
14292
14293
14294           eval "$wx_cv_use_commondlg"
14295           if test "x$cache" = xyes; then
14296             echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
14297           fi
14298
14299           if test x"$enablestring" = xdisable; then
14300             if test $wxUSE_COMMONDLGS = yes; then
14301               result=no
14302             else
14303               result=yes
14304             fi
14305           else
14306             result=$wxUSE_COMMONDLGS
14307           fi
14308
14309           { echo "$as_me:$LINENO: result: $result" >&5
14310 echo "${ECHO_T}$result" >&6; }
14311
14312
14313           enablestring=
14314           defaultval=$wxUSE_ALL_FEATURES
14315           if test -z "$defaultval"; then
14316               if test x"$enablestring" = xdisable; then
14317                   defaultval=yes
14318               else
14319                   defaultval=no
14320               fi
14321           fi
14322
14323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
14324 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
14325           # Check whether --enable-aboutdlg was given.
14326 if test "${enable_aboutdlg+set}" = set; then
14327   enableval=$enable_aboutdlg;
14328                           if test "$enableval" = yes; then
14329                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
14330                           else
14331                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
14332                           fi
14333                           cache=yes
14334
14335 else
14336
14337                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
14338                           if test "x$LINE" != x ; then
14339                               eval "DEFAULT_$LINE"
14340                               cache=yes
14341                           else
14342                               cache=no
14343                           fi
14344
14345                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
14346
14347 fi
14348
14349
14350           eval "$wx_cv_use_aboutdlg"
14351           if test "x$cache" = xyes; then
14352             echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
14353           fi
14354
14355           if test x"$enablestring" = xdisable; then
14356             if test $wxUSE_ABOUTDLG = yes; then
14357               result=no
14358             else
14359               result=yes
14360             fi
14361           else
14362             result=$wxUSE_ABOUTDLG
14363           fi
14364
14365           { echo "$as_me:$LINENO: result: $result" >&5
14366 echo "${ECHO_T}$result" >&6; }
14367
14368
14369           enablestring=
14370           defaultval=$wxUSE_ALL_FEATURES
14371           if test -z "$defaultval"; then
14372               if test x"$enablestring" = xdisable; then
14373                   defaultval=yes
14374               else
14375                   defaultval=no
14376               fi
14377           fi
14378
14379           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
14380 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
14381           # Check whether --enable-choicedlg was given.
14382 if test "${enable_choicedlg+set}" = set; then
14383   enableval=$enable_choicedlg;
14384                           if test "$enableval" = yes; then
14385                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
14386                           else
14387                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
14388                           fi
14389                           cache=yes
14390
14391 else
14392
14393                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
14394                           if test "x$LINE" != x ; then
14395                               eval "DEFAULT_$LINE"
14396                               cache=yes
14397                           else
14398                               cache=no
14399                           fi
14400
14401                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
14402
14403 fi
14404
14405
14406           eval "$wx_cv_use_choicedlg"
14407           if test "x$cache" = xyes; then
14408             echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
14409           fi
14410
14411           if test x"$enablestring" = xdisable; then
14412             if test $wxUSE_CHOICEDLG = yes; then
14413               result=no
14414             else
14415               result=yes
14416             fi
14417           else
14418             result=$wxUSE_CHOICEDLG
14419           fi
14420
14421           { echo "$as_me:$LINENO: result: $result" >&5
14422 echo "${ECHO_T}$result" >&6; }
14423
14424
14425           enablestring=
14426           defaultval=$wxUSE_ALL_FEATURES
14427           if test -z "$defaultval"; then
14428               if test x"$enablestring" = xdisable; then
14429                   defaultval=yes
14430               else
14431                   defaultval=no
14432               fi
14433           fi
14434
14435           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
14436 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
14437           # Check whether --enable-coldlg was given.
14438 if test "${enable_coldlg+set}" = set; then
14439   enableval=$enable_coldlg;
14440                           if test "$enableval" = yes; then
14441                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
14442                           else
14443                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
14444                           fi
14445                           cache=yes
14446
14447 else
14448
14449                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
14450                           if test "x$LINE" != x ; then
14451                               eval "DEFAULT_$LINE"
14452                               cache=yes
14453                           else
14454                               cache=no
14455                           fi
14456
14457                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
14458
14459 fi
14460
14461
14462           eval "$wx_cv_use_coldlg"
14463           if test "x$cache" = xyes; then
14464             echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
14465           fi
14466
14467           if test x"$enablestring" = xdisable; then
14468             if test $wxUSE_COLOURDLG = yes; then
14469               result=no
14470             else
14471               result=yes
14472             fi
14473           else
14474             result=$wxUSE_COLOURDLG
14475           fi
14476
14477           { echo "$as_me:$LINENO: result: $result" >&5
14478 echo "${ECHO_T}$result" >&6; }
14479
14480
14481           enablestring=
14482           defaultval=$wxUSE_ALL_FEATURES
14483           if test -z "$defaultval"; then
14484               if test x"$enablestring" = xdisable; then
14485                   defaultval=yes
14486               else
14487                   defaultval=no
14488               fi
14489           fi
14490
14491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
14492 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
14493           # Check whether --enable-filedlg was given.
14494 if test "${enable_filedlg+set}" = set; then
14495   enableval=$enable_filedlg;
14496                           if test "$enableval" = yes; then
14497                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
14498                           else
14499                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
14500                           fi
14501                           cache=yes
14502
14503 else
14504
14505                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
14506                           if test "x$LINE" != x ; then
14507                               eval "DEFAULT_$LINE"
14508                               cache=yes
14509                           else
14510                               cache=no
14511                           fi
14512
14513                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
14514
14515 fi
14516
14517
14518           eval "$wx_cv_use_filedlg"
14519           if test "x$cache" = xyes; then
14520             echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
14521           fi
14522
14523           if test x"$enablestring" = xdisable; then
14524             if test $wxUSE_FILEDLG = yes; then
14525               result=no
14526             else
14527               result=yes
14528             fi
14529           else
14530             result=$wxUSE_FILEDLG
14531           fi
14532
14533           { echo "$as_me:$LINENO: result: $result" >&5
14534 echo "${ECHO_T}$result" >&6; }
14535
14536
14537           enablestring=
14538           defaultval=$wxUSE_ALL_FEATURES
14539           if test -z "$defaultval"; then
14540               if test x"$enablestring" = xdisable; then
14541                   defaultval=yes
14542               else
14543                   defaultval=no
14544               fi
14545           fi
14546
14547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
14548 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
14549           # Check whether --enable-finddlg was given.
14550 if test "${enable_finddlg+set}" = set; then
14551   enableval=$enable_finddlg;
14552                           if test "$enableval" = yes; then
14553                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
14554                           else
14555                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
14556                           fi
14557                           cache=yes
14558
14559 else
14560
14561                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
14562                           if test "x$LINE" != x ; then
14563                               eval "DEFAULT_$LINE"
14564                               cache=yes
14565                           else
14566                               cache=no
14567                           fi
14568
14569                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
14570
14571 fi
14572
14573
14574           eval "$wx_cv_use_finddlg"
14575           if test "x$cache" = xyes; then
14576             echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
14577           fi
14578
14579           if test x"$enablestring" = xdisable; then
14580             if test $wxUSE_FINDREPLDLG = yes; then
14581               result=no
14582             else
14583               result=yes
14584             fi
14585           else
14586             result=$wxUSE_FINDREPLDLG
14587           fi
14588
14589           { echo "$as_me:$LINENO: result: $result" >&5
14590 echo "${ECHO_T}$result" >&6; }
14591
14592
14593           enablestring=
14594           defaultval=$wxUSE_ALL_FEATURES
14595           if test -z "$defaultval"; then
14596               if test x"$enablestring" = xdisable; then
14597                   defaultval=yes
14598               else
14599                   defaultval=no
14600               fi
14601           fi
14602
14603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
14604 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
14605           # Check whether --enable-fontdlg was given.
14606 if test "${enable_fontdlg+set}" = set; then
14607   enableval=$enable_fontdlg;
14608                           if test "$enableval" = yes; then
14609                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
14610                           else
14611                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
14612                           fi
14613                           cache=yes
14614
14615 else
14616
14617                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
14618                           if test "x$LINE" != x ; then
14619                               eval "DEFAULT_$LINE"
14620                               cache=yes
14621                           else
14622                               cache=no
14623                           fi
14624
14625                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
14626
14627 fi
14628
14629
14630           eval "$wx_cv_use_fontdlg"
14631           if test "x$cache" = xyes; then
14632             echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
14633           fi
14634
14635           if test x"$enablestring" = xdisable; then
14636             if test $wxUSE_FONTDLG = yes; then
14637               result=no
14638             else
14639               result=yes
14640             fi
14641           else
14642             result=$wxUSE_FONTDLG
14643           fi
14644
14645           { echo "$as_me:$LINENO: result: $result" >&5
14646 echo "${ECHO_T}$result" >&6; }
14647
14648
14649           enablestring=
14650           defaultval=$wxUSE_ALL_FEATURES
14651           if test -z "$defaultval"; then
14652               if test x"$enablestring" = xdisable; then
14653                   defaultval=yes
14654               else
14655                   defaultval=no
14656               fi
14657           fi
14658
14659           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14660 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14661           # Check whether --enable-dirdlg was given.
14662 if test "${enable_dirdlg+set}" = set; then
14663   enableval=$enable_dirdlg;
14664                           if test "$enableval" = yes; then
14665                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14666                           else
14667                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14668                           fi
14669                           cache=yes
14670
14671 else
14672
14673                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14674                           if test "x$LINE" != x ; then
14675                               eval "DEFAULT_$LINE"
14676                               cache=yes
14677                           else
14678                               cache=no
14679                           fi
14680
14681                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14682
14683 fi
14684
14685
14686           eval "$wx_cv_use_dirdlg"
14687           if test "x$cache" = xyes; then
14688             echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
14689           fi
14690
14691           if test x"$enablestring" = xdisable; then
14692             if test $wxUSE_DIRDLG = yes; then
14693               result=no
14694             else
14695               result=yes
14696             fi
14697           else
14698             result=$wxUSE_DIRDLG
14699           fi
14700
14701           { echo "$as_me:$LINENO: result: $result" >&5
14702 echo "${ECHO_T}$result" >&6; }
14703
14704
14705           enablestring=
14706           defaultval=$wxUSE_ALL_FEATURES
14707           if test -z "$defaultval"; then
14708               if test x"$enablestring" = xdisable; then
14709                   defaultval=yes
14710               else
14711                   defaultval=no
14712               fi
14713           fi
14714
14715           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14716 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14717           # Check whether --enable-msgdlg was given.
14718 if test "${enable_msgdlg+set}" = set; then
14719   enableval=$enable_msgdlg;
14720                           if test "$enableval" = yes; then
14721                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14722                           else
14723                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14724                           fi
14725                           cache=yes
14726
14727 else
14728
14729                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14730                           if test "x$LINE" != x ; then
14731                               eval "DEFAULT_$LINE"
14732                               cache=yes
14733                           else
14734                               cache=no
14735                           fi
14736
14737                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14738
14739 fi
14740
14741
14742           eval "$wx_cv_use_msgdlg"
14743           if test "x$cache" = xyes; then
14744             echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
14745           fi
14746
14747           if test x"$enablestring" = xdisable; then
14748             if test $wxUSE_MSGDLG = yes; then
14749               result=no
14750             else
14751               result=yes
14752             fi
14753           else
14754             result=$wxUSE_MSGDLG
14755           fi
14756
14757           { echo "$as_me:$LINENO: result: $result" >&5
14758 echo "${ECHO_T}$result" >&6; }
14759
14760
14761           enablestring=
14762           defaultval=$wxUSE_ALL_FEATURES
14763           if test -z "$defaultval"; then
14764               if test x"$enablestring" = xdisable; then
14765                   defaultval=yes
14766               else
14767                   defaultval=no
14768               fi
14769           fi
14770
14771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14772 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14773           # Check whether --enable-numberdlg was given.
14774 if test "${enable_numberdlg+set}" = set; then
14775   enableval=$enable_numberdlg;
14776                           if test "$enableval" = yes; then
14777                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14778                           else
14779                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14780                           fi
14781                           cache=yes
14782
14783 else
14784
14785                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14786                           if test "x$LINE" != x ; then
14787                               eval "DEFAULT_$LINE"
14788                               cache=yes
14789                           else
14790                               cache=no
14791                           fi
14792
14793                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14794
14795 fi
14796
14797
14798           eval "$wx_cv_use_numberdlg"
14799           if test "x$cache" = xyes; then
14800             echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
14801           fi
14802
14803           if test x"$enablestring" = xdisable; then
14804             if test $wxUSE_NUMBERDLG = yes; then
14805               result=no
14806             else
14807               result=yes
14808             fi
14809           else
14810             result=$wxUSE_NUMBERDLG
14811           fi
14812
14813           { echo "$as_me:$LINENO: result: $result" >&5
14814 echo "${ECHO_T}$result" >&6; }
14815
14816
14817           enablestring=
14818           defaultval=$wxUSE_ALL_FEATURES
14819           if test -z "$defaultval"; then
14820               if test x"$enablestring" = xdisable; then
14821                   defaultval=yes
14822               else
14823                   defaultval=no
14824               fi
14825           fi
14826
14827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14828 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14829           # Check whether --enable-splash was given.
14830 if test "${enable_splash+set}" = set; then
14831   enableval=$enable_splash;
14832                           if test "$enableval" = yes; then
14833                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14834                           else
14835                             wx_cv_use_splash='wxUSE_SPLASH=no'
14836                           fi
14837                           cache=yes
14838
14839 else
14840
14841                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14842                           if test "x$LINE" != x ; then
14843                               eval "DEFAULT_$LINE"
14844                               cache=yes
14845                           else
14846                               cache=no
14847                           fi
14848
14849                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14850
14851 fi
14852
14853
14854           eval "$wx_cv_use_splash"
14855           if test "x$cache" = xyes; then
14856             echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
14857           fi
14858
14859           if test x"$enablestring" = xdisable; then
14860             if test $wxUSE_SPLASH = yes; then
14861               result=no
14862             else
14863               result=yes
14864             fi
14865           else
14866             result=$wxUSE_SPLASH
14867           fi
14868
14869           { echo "$as_me:$LINENO: result: $result" >&5
14870 echo "${ECHO_T}$result" >&6; }
14871
14872
14873           enablestring=
14874           defaultval=$wxUSE_ALL_FEATURES
14875           if test -z "$defaultval"; then
14876               if test x"$enablestring" = xdisable; then
14877                   defaultval=yes
14878               else
14879                   defaultval=no
14880               fi
14881           fi
14882
14883           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14884 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14885           # Check whether --enable-textdlg was given.
14886 if test "${enable_textdlg+set}" = set; then
14887   enableval=$enable_textdlg;
14888                           if test "$enableval" = yes; then
14889                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14890                           else
14891                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14892                           fi
14893                           cache=yes
14894
14895 else
14896
14897                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14898                           if test "x$LINE" != x ; then
14899                               eval "DEFAULT_$LINE"
14900                               cache=yes
14901                           else
14902                               cache=no
14903                           fi
14904
14905                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14906
14907 fi
14908
14909
14910           eval "$wx_cv_use_textdlg"
14911           if test "x$cache" = xyes; then
14912             echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
14913           fi
14914
14915           if test x"$enablestring" = xdisable; then
14916             if test $wxUSE_TEXTDLG = yes; then
14917               result=no
14918             else
14919               result=yes
14920             fi
14921           else
14922             result=$wxUSE_TEXTDLG
14923           fi
14924
14925           { echo "$as_me:$LINENO: result: $result" >&5
14926 echo "${ECHO_T}$result" >&6; }
14927
14928
14929           enablestring=
14930           defaultval=$wxUSE_ALL_FEATURES
14931           if test -z "$defaultval"; then
14932               if test x"$enablestring" = xdisable; then
14933                   defaultval=yes
14934               else
14935                   defaultval=no
14936               fi
14937           fi
14938
14939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14940 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14941           # Check whether --enable-tipdlg was given.
14942 if test "${enable_tipdlg+set}" = set; then
14943   enableval=$enable_tipdlg;
14944                           if test "$enableval" = yes; then
14945                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14946                           else
14947                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14948                           fi
14949                           cache=yes
14950
14951 else
14952
14953                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14954                           if test "x$LINE" != x ; then
14955                               eval "DEFAULT_$LINE"
14956                               cache=yes
14957                           else
14958                               cache=no
14959                           fi
14960
14961                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14962
14963 fi
14964
14965
14966           eval "$wx_cv_use_tipdlg"
14967           if test "x$cache" = xyes; then
14968             echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
14969           fi
14970
14971           if test x"$enablestring" = xdisable; then
14972             if test $wxUSE_STARTUP_TIPS = yes; then
14973               result=no
14974             else
14975               result=yes
14976             fi
14977           else
14978             result=$wxUSE_STARTUP_TIPS
14979           fi
14980
14981           { echo "$as_me:$LINENO: result: $result" >&5
14982 echo "${ECHO_T}$result" >&6; }
14983
14984
14985           enablestring=
14986           defaultval=$wxUSE_ALL_FEATURES
14987           if test -z "$defaultval"; then
14988               if test x"$enablestring" = xdisable; then
14989                   defaultval=yes
14990               else
14991                   defaultval=no
14992               fi
14993           fi
14994
14995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14996 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14997           # Check whether --enable-progressdlg was given.
14998 if test "${enable_progressdlg+set}" = set; then
14999   enableval=$enable_progressdlg;
15000                           if test "$enableval" = yes; then
15001                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
15002                           else
15003                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
15004                           fi
15005                           cache=yes
15006
15007 else
15008
15009                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
15010                           if test "x$LINE" != x ; then
15011                               eval "DEFAULT_$LINE"
15012                               cache=yes
15013                           else
15014                               cache=no
15015                           fi
15016
15017                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
15018
15019 fi
15020
15021
15022           eval "$wx_cv_use_progressdlg"
15023           if test "x$cache" = xyes; then
15024             echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
15025           fi
15026
15027           if test x"$enablestring" = xdisable; then
15028             if test $wxUSE_PROGRESSDLG = yes; then
15029               result=no
15030             else
15031               result=yes
15032             fi
15033           else
15034             result=$wxUSE_PROGRESSDLG
15035           fi
15036
15037           { echo "$as_me:$LINENO: result: $result" >&5
15038 echo "${ECHO_T}$result" >&6; }
15039
15040
15041           enablestring=
15042           defaultval=$wxUSE_ALL_FEATURES
15043           if test -z "$defaultval"; then
15044               if test x"$enablestring" = xdisable; then
15045                   defaultval=yes
15046               else
15047                   defaultval=no
15048               fi
15049           fi
15050
15051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
15052 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
15053           # Check whether --enable-wizarddlg was given.
15054 if test "${enable_wizarddlg+set}" = set; then
15055   enableval=$enable_wizarddlg;
15056                           if test "$enableval" = yes; then
15057                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
15058                           else
15059                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
15060                           fi
15061                           cache=yes
15062
15063 else
15064
15065                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
15066                           if test "x$LINE" != x ; then
15067                               eval "DEFAULT_$LINE"
15068                               cache=yes
15069                           else
15070                               cache=no
15071                           fi
15072
15073                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
15074
15075 fi
15076
15077
15078           eval "$wx_cv_use_wizarddlg"
15079           if test "x$cache" = xyes; then
15080             echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
15081           fi
15082
15083           if test x"$enablestring" = xdisable; then
15084             if test $wxUSE_WIZARDDLG = yes; then
15085               result=no
15086             else
15087               result=yes
15088             fi
15089           else
15090             result=$wxUSE_WIZARDDLG
15091           fi
15092
15093           { echo "$as_me:$LINENO: result: $result" >&5
15094 echo "${ECHO_T}$result" >&6; }
15095
15096
15097
15098
15099           enablestring=
15100           defaultval=$wxUSE_ALL_FEATURES
15101           if test -z "$defaultval"; then
15102               if test x"$enablestring" = xdisable; then
15103                   defaultval=yes
15104               else
15105                   defaultval=no
15106               fi
15107           fi
15108
15109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
15110 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
15111           # Check whether --enable-menus was given.
15112 if test "${enable_menus+set}" = set; then
15113   enableval=$enable_menus;
15114                           if test "$enableval" = yes; then
15115                             wx_cv_use_menus='wxUSE_MENUS=yes'
15116                           else
15117                             wx_cv_use_menus='wxUSE_MENUS=no'
15118                           fi
15119                           cache=yes
15120
15121 else
15122
15123                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
15124                           if test "x$LINE" != x ; then
15125                               eval "DEFAULT_$LINE"
15126                               cache=yes
15127                           else
15128                               cache=no
15129                           fi
15130
15131                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
15132
15133 fi
15134
15135
15136           eval "$wx_cv_use_menus"
15137           if test "x$cache" = xyes; then
15138             echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
15139           fi
15140
15141           if test x"$enablestring" = xdisable; then
15142             if test $wxUSE_MENUS = yes; then
15143               result=no
15144             else
15145               result=yes
15146             fi
15147           else
15148             result=$wxUSE_MENUS
15149           fi
15150
15151           { echo "$as_me:$LINENO: result: $result" >&5
15152 echo "${ECHO_T}$result" >&6; }
15153
15154
15155           enablestring=
15156           defaultval=$wxUSE_ALL_FEATURES
15157           if test -z "$defaultval"; then
15158               if test x"$enablestring" = xdisable; then
15159                   defaultval=yes
15160               else
15161                   defaultval=no
15162               fi
15163           fi
15164
15165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
15166 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
15167           # Check whether --enable-miniframe was given.
15168 if test "${enable_miniframe+set}" = set; then
15169   enableval=$enable_miniframe;
15170                           if test "$enableval" = yes; then
15171                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
15172                           else
15173                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
15174                           fi
15175                           cache=yes
15176
15177 else
15178
15179                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
15180                           if test "x$LINE" != x ; then
15181                               eval "DEFAULT_$LINE"
15182                               cache=yes
15183                           else
15184                               cache=no
15185                           fi
15186
15187                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
15188
15189 fi
15190
15191
15192           eval "$wx_cv_use_miniframe"
15193           if test "x$cache" = xyes; then
15194             echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
15195           fi
15196
15197           if test x"$enablestring" = xdisable; then
15198             if test $wxUSE_MINIFRAME = yes; then
15199               result=no
15200             else
15201               result=yes
15202             fi
15203           else
15204             result=$wxUSE_MINIFRAME
15205           fi
15206
15207           { echo "$as_me:$LINENO: result: $result" >&5
15208 echo "${ECHO_T}$result" >&6; }
15209
15210
15211           enablestring=
15212           defaultval=$wxUSE_ALL_FEATURES
15213           if test -z "$defaultval"; then
15214               if test x"$enablestring" = xdisable; then
15215                   defaultval=yes
15216               else
15217                   defaultval=no
15218               fi
15219           fi
15220
15221           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
15222 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
15223           # Check whether --enable-tooltips was given.
15224 if test "${enable_tooltips+set}" = set; then
15225   enableval=$enable_tooltips;
15226                           if test "$enableval" = yes; then
15227                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
15228                           else
15229                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
15230                           fi
15231                           cache=yes
15232
15233 else
15234
15235                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
15236                           if test "x$LINE" != x ; then
15237                               eval "DEFAULT_$LINE"
15238                               cache=yes
15239                           else
15240                               cache=no
15241                           fi
15242
15243                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
15244
15245 fi
15246
15247
15248           eval "$wx_cv_use_tooltips"
15249           if test "x$cache" = xyes; then
15250             echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
15251           fi
15252
15253           if test x"$enablestring" = xdisable; then
15254             if test $wxUSE_TOOLTIPS = yes; then
15255               result=no
15256             else
15257               result=yes
15258             fi
15259           else
15260             result=$wxUSE_TOOLTIPS
15261           fi
15262
15263           { echo "$as_me:$LINENO: result: $result" >&5
15264 echo "${ECHO_T}$result" >&6; }
15265
15266
15267           enablestring=
15268           defaultval=$wxUSE_ALL_FEATURES
15269           if test -z "$defaultval"; then
15270               if test x"$enablestring" = xdisable; then
15271                   defaultval=yes
15272               else
15273                   defaultval=no
15274               fi
15275           fi
15276
15277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
15278 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
15279           # Check whether --enable-splines was given.
15280 if test "${enable_splines+set}" = set; then
15281   enableval=$enable_splines;
15282                           if test "$enableval" = yes; then
15283                             wx_cv_use_splines='wxUSE_SPLINES=yes'
15284                           else
15285                             wx_cv_use_splines='wxUSE_SPLINES=no'
15286                           fi
15287                           cache=yes
15288
15289 else
15290
15291                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
15292                           if test "x$LINE" != x ; then
15293                               eval "DEFAULT_$LINE"
15294                               cache=yes
15295                           else
15296                               cache=no
15297                           fi
15298
15299                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
15300
15301 fi
15302
15303
15304           eval "$wx_cv_use_splines"
15305           if test "x$cache" = xyes; then
15306             echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
15307           fi
15308
15309           if test x"$enablestring" = xdisable; then
15310             if test $wxUSE_SPLINES = yes; then
15311               result=no
15312             else
15313               result=yes
15314             fi
15315           else
15316             result=$wxUSE_SPLINES
15317           fi
15318
15319           { echo "$as_me:$LINENO: result: $result" >&5
15320 echo "${ECHO_T}$result" >&6; }
15321
15322
15323           enablestring=
15324           defaultval=$wxUSE_ALL_FEATURES
15325           if test -z "$defaultval"; then
15326               if test x"$enablestring" = xdisable; then
15327                   defaultval=yes
15328               else
15329                   defaultval=no
15330               fi
15331           fi
15332
15333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
15334 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
15335           # Check whether --enable-mousewheel was given.
15336 if test "${enable_mousewheel+set}" = set; then
15337   enableval=$enable_mousewheel;
15338                           if test "$enableval" = yes; then
15339                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
15340                           else
15341                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
15342                           fi
15343                           cache=yes
15344
15345 else
15346
15347                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
15348                           if test "x$LINE" != x ; then
15349                               eval "DEFAULT_$LINE"
15350                               cache=yes
15351                           else
15352                               cache=no
15353                           fi
15354
15355                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
15356
15357 fi
15358
15359
15360           eval "$wx_cv_use_mousewheel"
15361           if test "x$cache" = xyes; then
15362             echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
15363           fi
15364
15365           if test x"$enablestring" = xdisable; then
15366             if test $wxUSE_MOUSEWHEEL = yes; then
15367               result=no
15368             else
15369               result=yes
15370             fi
15371           else
15372             result=$wxUSE_MOUSEWHEEL
15373           fi
15374
15375           { echo "$as_me:$LINENO: result: $result" >&5
15376 echo "${ECHO_T}$result" >&6; }
15377
15378
15379           enablestring=
15380           defaultval=$wxUSE_ALL_FEATURES
15381           if test -z "$defaultval"; then
15382               if test x"$enablestring" = xdisable; then
15383                   defaultval=yes
15384               else
15385                   defaultval=no
15386               fi
15387           fi
15388
15389           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
15390 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
15391           # Check whether --enable-validators was given.
15392 if test "${enable_validators+set}" = set; then
15393   enableval=$enable_validators;
15394                           if test "$enableval" = yes; then
15395                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
15396                           else
15397                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
15398                           fi
15399                           cache=yes
15400
15401 else
15402
15403                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
15404                           if test "x$LINE" != x ; then
15405                               eval "DEFAULT_$LINE"
15406                               cache=yes
15407                           else
15408                               cache=no
15409                           fi
15410
15411                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
15412
15413 fi
15414
15415
15416           eval "$wx_cv_use_validators"
15417           if test "x$cache" = xyes; then
15418             echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
15419           fi
15420
15421           if test x"$enablestring" = xdisable; then
15422             if test $wxUSE_VALIDATORS = yes; then
15423               result=no
15424             else
15425               result=yes
15426             fi
15427           else
15428             result=$wxUSE_VALIDATORS
15429           fi
15430
15431           { echo "$as_me:$LINENO: result: $result" >&5
15432 echo "${ECHO_T}$result" >&6; }
15433
15434
15435           enablestring=
15436           defaultval=$wxUSE_ALL_FEATURES
15437           if test -z "$defaultval"; then
15438               if test x"$enablestring" = xdisable; then
15439                   defaultval=yes
15440               else
15441                   defaultval=no
15442               fi
15443           fi
15444
15445           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
15446 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
15447           # Check whether --enable-busyinfo was given.
15448 if test "${enable_busyinfo+set}" = set; then
15449   enableval=$enable_busyinfo;
15450                           if test "$enableval" = yes; then
15451                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
15452                           else
15453                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
15454                           fi
15455                           cache=yes
15456
15457 else
15458
15459                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
15460                           if test "x$LINE" != x ; then
15461                               eval "DEFAULT_$LINE"
15462                               cache=yes
15463                           else
15464                               cache=no
15465                           fi
15466
15467                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
15468
15469 fi
15470
15471
15472           eval "$wx_cv_use_busyinfo"
15473           if test "x$cache" = xyes; then
15474             echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
15475           fi
15476
15477           if test x"$enablestring" = xdisable; then
15478             if test $wxUSE_BUSYINFO = yes; then
15479               result=no
15480             else
15481               result=yes
15482             fi
15483           else
15484             result=$wxUSE_BUSYINFO
15485           fi
15486
15487           { echo "$as_me:$LINENO: result: $result" >&5
15488 echo "${ECHO_T}$result" >&6; }
15489
15490
15491           enablestring=
15492           defaultval=$wxUSE_ALL_FEATURES
15493           if test -z "$defaultval"; then
15494               if test x"$enablestring" = xdisable; then
15495                   defaultval=yes
15496               else
15497                   defaultval=no
15498               fi
15499           fi
15500
15501           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
15502 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
15503           # Check whether --enable-joystick was given.
15504 if test "${enable_joystick+set}" = set; then
15505   enableval=$enable_joystick;
15506                           if test "$enableval" = yes; then
15507                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
15508                           else
15509                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
15510                           fi
15511                           cache=yes
15512
15513 else
15514
15515                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
15516                           if test "x$LINE" != x ; then
15517                               eval "DEFAULT_$LINE"
15518                               cache=yes
15519                           else
15520                               cache=no
15521                           fi
15522
15523                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
15524
15525 fi
15526
15527
15528           eval "$wx_cv_use_joystick"
15529           if test "x$cache" = xyes; then
15530             echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
15531           fi
15532
15533           if test x"$enablestring" = xdisable; then
15534             if test $wxUSE_JOYSTICK = yes; then
15535               result=no
15536             else
15537               result=yes
15538             fi
15539           else
15540             result=$wxUSE_JOYSTICK
15541           fi
15542
15543           { echo "$as_me:$LINENO: result: $result" >&5
15544 echo "${ECHO_T}$result" >&6; }
15545
15546
15547           enablestring=
15548           defaultval=$wxUSE_ALL_FEATURES
15549           if test -z "$defaultval"; then
15550               if test x"$enablestring" = xdisable; then
15551                   defaultval=yes
15552               else
15553                   defaultval=no
15554               fi
15555           fi
15556
15557           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
15558 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
15559           # Check whether --enable-metafile was given.
15560 if test "${enable_metafile+set}" = set; then
15561   enableval=$enable_metafile;
15562                           if test "$enableval" = yes; then
15563                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
15564                           else
15565                             wx_cv_use_metafile='wxUSE_METAFILE=no'
15566                           fi
15567                           cache=yes
15568
15569 else
15570
15571                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
15572                           if test "x$LINE" != x ; then
15573                               eval "DEFAULT_$LINE"
15574                               cache=yes
15575                           else
15576                               cache=no
15577                           fi
15578
15579                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
15580
15581 fi
15582
15583
15584           eval "$wx_cv_use_metafile"
15585           if test "x$cache" = xyes; then
15586             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
15587           fi
15588
15589           if test x"$enablestring" = xdisable; then
15590             if test $wxUSE_METAFILE = yes; then
15591               result=no
15592             else
15593               result=yes
15594             fi
15595           else
15596             result=$wxUSE_METAFILE
15597           fi
15598
15599           { echo "$as_me:$LINENO: result: $result" >&5
15600 echo "${ECHO_T}$result" >&6; }
15601
15602
15603           enablestring=
15604           defaultval=$wxUSE_ALL_FEATURES
15605           if test -z "$defaultval"; then
15606               if test x"$enablestring" = xdisable; then
15607                   defaultval=yes
15608               else
15609                   defaultval=no
15610               fi
15611           fi
15612
15613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
15614 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
15615           # Check whether --enable-dragimage was given.
15616 if test "${enable_dragimage+set}" = set; then
15617   enableval=$enable_dragimage;
15618                           if test "$enableval" = yes; then
15619                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
15620                           else
15621                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
15622                           fi
15623                           cache=yes
15624
15625 else
15626
15627                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
15628                           if test "x$LINE" != x ; then
15629                               eval "DEFAULT_$LINE"
15630                               cache=yes
15631                           else
15632                               cache=no
15633                           fi
15634
15635                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
15636
15637 fi
15638
15639
15640           eval "$wx_cv_use_dragimage"
15641           if test "x$cache" = xyes; then
15642             echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
15643           fi
15644
15645           if test x"$enablestring" = xdisable; then
15646             if test $wxUSE_DRAGIMAGE = yes; then
15647               result=no
15648             else
15649               result=yes
15650             fi
15651           else
15652             result=$wxUSE_DRAGIMAGE
15653           fi
15654
15655           { echo "$as_me:$LINENO: result: $result" >&5
15656 echo "${ECHO_T}$result" >&6; }
15657
15658
15659           enablestring=
15660           defaultval=$wxUSE_ALL_FEATURES
15661           if test -z "$defaultval"; then
15662               if test x"$enablestring" = xdisable; then
15663                   defaultval=yes
15664               else
15665                   defaultval=no
15666               fi
15667           fi
15668
15669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
15670 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
15671           # Check whether --enable-accessibility was given.
15672 if test "${enable_accessibility+set}" = set; then
15673   enableval=$enable_accessibility;
15674                           if test "$enableval" = yes; then
15675                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15676                           else
15677                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15678                           fi
15679                           cache=yes
15680
15681 else
15682
15683                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15684                           if test "x$LINE" != x ; then
15685                               eval "DEFAULT_$LINE"
15686                               cache=yes
15687                           else
15688                               cache=no
15689                           fi
15690
15691                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15692
15693 fi
15694
15695
15696           eval "$wx_cv_use_accessibility"
15697           if test "x$cache" = xyes; then
15698             echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
15699           fi
15700
15701           if test x"$enablestring" = xdisable; then
15702             if test $wxUSE_ACCESSIBILITY = yes; then
15703               result=no
15704             else
15705               result=yes
15706             fi
15707           else
15708             result=$wxUSE_ACCESSIBILITY
15709           fi
15710
15711           { echo "$as_me:$LINENO: result: $result" >&5
15712 echo "${ECHO_T}$result" >&6; }
15713
15714
15715
15716
15717           enablestring=
15718           defaultval=$wxUSE_ALL_FEATURES
15719           if test -z "$defaultval"; then
15720               if test x"$enablestring" = xdisable; then
15721                   defaultval=yes
15722               else
15723                   defaultval=no
15724               fi
15725           fi
15726
15727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15728 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15729           # Check whether --enable-palette was given.
15730 if test "${enable_palette+set}" = set; then
15731   enableval=$enable_palette;
15732                           if test "$enableval" = yes; then
15733                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15734                           else
15735                             wx_cv_use_palette='wxUSE_PALETTE=no'
15736                           fi
15737                           cache=yes
15738
15739 else
15740
15741                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15742                           if test "x$LINE" != x ; then
15743                               eval "DEFAULT_$LINE"
15744                               cache=yes
15745                           else
15746                               cache=no
15747                           fi
15748
15749                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15750
15751 fi
15752
15753
15754           eval "$wx_cv_use_palette"
15755           if test "x$cache" = xyes; then
15756             echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
15757           fi
15758
15759           if test x"$enablestring" = xdisable; then
15760             if test $wxUSE_PALETTE = yes; then
15761               result=no
15762             else
15763               result=yes
15764             fi
15765           else
15766             result=$wxUSE_PALETTE
15767           fi
15768
15769           { echo "$as_me:$LINENO: result: $result" >&5
15770 echo "${ECHO_T}$result" >&6; }
15771
15772
15773           enablestring=
15774           defaultval=$wxUSE_ALL_FEATURES
15775           if test -z "$defaultval"; then
15776               if test x"$enablestring" = xdisable; then
15777                   defaultval=yes
15778               else
15779                   defaultval=no
15780               fi
15781           fi
15782
15783           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15784 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15785           # Check whether --enable-image was given.
15786 if test "${enable_image+set}" = set; then
15787   enableval=$enable_image;
15788                           if test "$enableval" = yes; then
15789                             wx_cv_use_image='wxUSE_IMAGE=yes'
15790                           else
15791                             wx_cv_use_image='wxUSE_IMAGE=no'
15792                           fi
15793                           cache=yes
15794
15795 else
15796
15797                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15798                           if test "x$LINE" != x ; then
15799                               eval "DEFAULT_$LINE"
15800                               cache=yes
15801                           else
15802                               cache=no
15803                           fi
15804
15805                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15806
15807 fi
15808
15809
15810           eval "$wx_cv_use_image"
15811           if test "x$cache" = xyes; then
15812             echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
15813           fi
15814
15815           if test x"$enablestring" = xdisable; then
15816             if test $wxUSE_IMAGE = yes; then
15817               result=no
15818             else
15819               result=yes
15820             fi
15821           else
15822             result=$wxUSE_IMAGE
15823           fi
15824
15825           { echo "$as_me:$LINENO: result: $result" >&5
15826 echo "${ECHO_T}$result" >&6; }
15827
15828
15829           enablestring=
15830           defaultval=$wxUSE_ALL_FEATURES
15831           if test -z "$defaultval"; then
15832               if test x"$enablestring" = xdisable; then
15833                   defaultval=yes
15834               else
15835                   defaultval=no
15836               fi
15837           fi
15838
15839           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15840 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15841           # Check whether --enable-gif was given.
15842 if test "${enable_gif+set}" = set; then
15843   enableval=$enable_gif;
15844                           if test "$enableval" = yes; then
15845                             wx_cv_use_gif='wxUSE_GIF=yes'
15846                           else
15847                             wx_cv_use_gif='wxUSE_GIF=no'
15848                           fi
15849                           cache=yes
15850
15851 else
15852
15853                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15854                           if test "x$LINE" != x ; then
15855                               eval "DEFAULT_$LINE"
15856                               cache=yes
15857                           else
15858                               cache=no
15859                           fi
15860
15861                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15862
15863 fi
15864
15865
15866           eval "$wx_cv_use_gif"
15867           if test "x$cache" = xyes; then
15868             echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
15869           fi
15870
15871           if test x"$enablestring" = xdisable; then
15872             if test $wxUSE_GIF = yes; then
15873               result=no
15874             else
15875               result=yes
15876             fi
15877           else
15878             result=$wxUSE_GIF
15879           fi
15880
15881           { echo "$as_me:$LINENO: result: $result" >&5
15882 echo "${ECHO_T}$result" >&6; }
15883
15884
15885           enablestring=
15886           defaultval=$wxUSE_ALL_FEATURES
15887           if test -z "$defaultval"; then
15888               if test x"$enablestring" = xdisable; then
15889                   defaultval=yes
15890               else
15891                   defaultval=no
15892               fi
15893           fi
15894
15895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15896 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15897           # Check whether --enable-pcx was given.
15898 if test "${enable_pcx+set}" = set; then
15899   enableval=$enable_pcx;
15900                           if test "$enableval" = yes; then
15901                             wx_cv_use_pcx='wxUSE_PCX=yes'
15902                           else
15903                             wx_cv_use_pcx='wxUSE_PCX=no'
15904                           fi
15905                           cache=yes
15906
15907 else
15908
15909                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15910                           if test "x$LINE" != x ; then
15911                               eval "DEFAULT_$LINE"
15912                               cache=yes
15913                           else
15914                               cache=no
15915                           fi
15916
15917                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15918
15919 fi
15920
15921
15922           eval "$wx_cv_use_pcx"
15923           if test "x$cache" = xyes; then
15924             echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
15925           fi
15926
15927           if test x"$enablestring" = xdisable; then
15928             if test $wxUSE_PCX = yes; then
15929               result=no
15930             else
15931               result=yes
15932             fi
15933           else
15934             result=$wxUSE_PCX
15935           fi
15936
15937           { echo "$as_me:$LINENO: result: $result" >&5
15938 echo "${ECHO_T}$result" >&6; }
15939
15940
15941           enablestring=
15942           defaultval=$wxUSE_ALL_FEATURES
15943           if test -z "$defaultval"; then
15944               if test x"$enablestring" = xdisable; then
15945                   defaultval=yes
15946               else
15947                   defaultval=no
15948               fi
15949           fi
15950
15951           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15952 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15953           # Check whether --enable-tga was given.
15954 if test "${enable_tga+set}" = set; then
15955   enableval=$enable_tga;
15956                           if test "$enableval" = yes; then
15957                             wx_cv_use_tga='wxUSE_TGA=yes'
15958                           else
15959                             wx_cv_use_tga='wxUSE_TGA=no'
15960                           fi
15961                           cache=yes
15962
15963 else
15964
15965                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15966                           if test "x$LINE" != x ; then
15967                               eval "DEFAULT_$LINE"
15968                               cache=yes
15969                           else
15970                               cache=no
15971                           fi
15972
15973                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15974
15975 fi
15976
15977
15978           eval "$wx_cv_use_tga"
15979           if test "x$cache" = xyes; then
15980             echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
15981           fi
15982
15983           if test x"$enablestring" = xdisable; then
15984             if test $wxUSE_TGA = yes; then
15985               result=no
15986             else
15987               result=yes
15988             fi
15989           else
15990             result=$wxUSE_TGA
15991           fi
15992
15993           { echo "$as_me:$LINENO: result: $result" >&5
15994 echo "${ECHO_T}$result" >&6; }
15995
15996
15997           enablestring=
15998           defaultval=$wxUSE_ALL_FEATURES
15999           if test -z "$defaultval"; then
16000               if test x"$enablestring" = xdisable; then
16001                   defaultval=yes
16002               else
16003                   defaultval=no
16004               fi
16005           fi
16006
16007           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
16008 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
16009           # Check whether --enable-iff was given.
16010 if test "${enable_iff+set}" = set; then
16011   enableval=$enable_iff;
16012                           if test "$enableval" = yes; then
16013                             wx_cv_use_iff='wxUSE_IFF=yes'
16014                           else
16015                             wx_cv_use_iff='wxUSE_IFF=no'
16016                           fi
16017                           cache=yes
16018
16019 else
16020
16021                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
16022                           if test "x$LINE" != x ; then
16023                               eval "DEFAULT_$LINE"
16024                               cache=yes
16025                           else
16026                               cache=no
16027                           fi
16028
16029                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
16030
16031 fi
16032
16033
16034           eval "$wx_cv_use_iff"
16035           if test "x$cache" = xyes; then
16036             echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
16037           fi
16038
16039           if test x"$enablestring" = xdisable; then
16040             if test $wxUSE_IFF = yes; then
16041               result=no
16042             else
16043               result=yes
16044             fi
16045           else
16046             result=$wxUSE_IFF
16047           fi
16048
16049           { echo "$as_me:$LINENO: result: $result" >&5
16050 echo "${ECHO_T}$result" >&6; }
16051
16052
16053           enablestring=
16054           defaultval=$wxUSE_ALL_FEATURES
16055           if test -z "$defaultval"; then
16056               if test x"$enablestring" = xdisable; then
16057                   defaultval=yes
16058               else
16059                   defaultval=no
16060               fi
16061           fi
16062
16063           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
16064 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
16065           # Check whether --enable-pnm was given.
16066 if test "${enable_pnm+set}" = set; then
16067   enableval=$enable_pnm;
16068                           if test "$enableval" = yes; then
16069                             wx_cv_use_pnm='wxUSE_PNM=yes'
16070                           else
16071                             wx_cv_use_pnm='wxUSE_PNM=no'
16072                           fi
16073                           cache=yes
16074
16075 else
16076
16077                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
16078                           if test "x$LINE" != x ; then
16079                               eval "DEFAULT_$LINE"
16080                               cache=yes
16081                           else
16082                               cache=no
16083                           fi
16084
16085                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
16086
16087 fi
16088
16089
16090           eval "$wx_cv_use_pnm"
16091           if test "x$cache" = xyes; then
16092             echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
16093           fi
16094
16095           if test x"$enablestring" = xdisable; then
16096             if test $wxUSE_PNM = yes; then
16097               result=no
16098             else
16099               result=yes
16100             fi
16101           else
16102             result=$wxUSE_PNM
16103           fi
16104
16105           { echo "$as_me:$LINENO: result: $result" >&5
16106 echo "${ECHO_T}$result" >&6; }
16107
16108
16109           enablestring=
16110           defaultval=$wxUSE_ALL_FEATURES
16111           if test -z "$defaultval"; then
16112               if test x"$enablestring" = xdisable; then
16113                   defaultval=yes
16114               else
16115                   defaultval=no
16116               fi
16117           fi
16118
16119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
16120 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
16121           # Check whether --enable-xpm was given.
16122 if test "${enable_xpm+set}" = set; then
16123   enableval=$enable_xpm;
16124                           if test "$enableval" = yes; then
16125                             wx_cv_use_xpm='wxUSE_XPM=yes'
16126                           else
16127                             wx_cv_use_xpm='wxUSE_XPM=no'
16128                           fi
16129                           cache=yes
16130
16131 else
16132
16133                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
16134                           if test "x$LINE" != x ; then
16135                               eval "DEFAULT_$LINE"
16136                               cache=yes
16137                           else
16138                               cache=no
16139                           fi
16140
16141                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
16142
16143 fi
16144
16145
16146           eval "$wx_cv_use_xpm"
16147           if test "x$cache" = xyes; then
16148             echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
16149           fi
16150
16151           if test x"$enablestring" = xdisable; then
16152             if test $wxUSE_XPM = yes; then
16153               result=no
16154             else
16155               result=yes
16156             fi
16157           else
16158             result=$wxUSE_XPM
16159           fi
16160
16161           { echo "$as_me:$LINENO: result: $result" >&5
16162 echo "${ECHO_T}$result" >&6; }
16163
16164
16165           enablestring=
16166           defaultval=$wxUSE_ALL_FEATURES
16167           if test -z "$defaultval"; then
16168               if test x"$enablestring" = xdisable; then
16169                   defaultval=yes
16170               else
16171                   defaultval=no
16172               fi
16173           fi
16174
16175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
16176 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
16177           # Check whether --enable-ico_cur was given.
16178 if test "${enable_ico_cur+set}" = set; then
16179   enableval=$enable_ico_cur;
16180                           if test "$enableval" = yes; then
16181                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
16182                           else
16183                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
16184                           fi
16185                           cache=yes
16186
16187 else
16188
16189                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
16190                           if test "x$LINE" != x ; then
16191                               eval "DEFAULT_$LINE"
16192                               cache=yes
16193                           else
16194                               cache=no
16195                           fi
16196
16197                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
16198
16199 fi
16200
16201
16202           eval "$wx_cv_use_ico_cur"
16203           if test "x$cache" = xyes; then
16204             echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
16205           fi
16206
16207           if test x"$enablestring" = xdisable; then
16208             if test $wxUSE_ICO_CUR = yes; then
16209               result=no
16210             else
16211               result=yes
16212             fi
16213           else
16214             result=$wxUSE_ICO_CUR
16215           fi
16216
16217           { echo "$as_me:$LINENO: result: $result" >&5
16218 echo "${ECHO_T}$result" >&6; }
16219
16220
16221
16222
16223           enablestring=
16224           defaultval=$wxUSE_ALL_FEATURES
16225           if test -z "$defaultval"; then
16226               if test x"$enablestring" = xdisable; then
16227                   defaultval=yes
16228               else
16229                   defaultval=no
16230               fi
16231           fi
16232
16233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
16234 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
16235           # Check whether --enable-dccache was given.
16236 if test "${enable_dccache+set}" = set; then
16237   enableval=$enable_dccache;
16238                           if test "$enableval" = yes; then
16239                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
16240                           else
16241                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
16242                           fi
16243                           cache=yes
16244
16245 else
16246
16247                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
16248                           if test "x$LINE" != x ; then
16249                               eval "DEFAULT_$LINE"
16250                               cache=yes
16251                           else
16252                               cache=no
16253                           fi
16254
16255                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
16256
16257 fi
16258
16259
16260           eval "$wx_cv_use_dccache"
16261           if test "x$cache" = xyes; then
16262             echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
16263           fi
16264
16265           if test x"$enablestring" = xdisable; then
16266             if test $wxUSE_DC_CACHEING = yes; then
16267               result=no
16268             else
16269               result=yes
16270             fi
16271           else
16272             result=$wxUSE_DC_CACHEING
16273           fi
16274
16275           { echo "$as_me:$LINENO: result: $result" >&5
16276 echo "${ECHO_T}$result" >&6; }
16277
16278
16279           enablestring=
16280           defaultval=$wxUSE_ALL_FEATURES
16281           if test -z "$defaultval"; then
16282               if test x"$enablestring" = xdisable; then
16283                   defaultval=yes
16284               else
16285                   defaultval=no
16286               fi
16287           fi
16288
16289           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
16290 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
16291           # Check whether --enable-ps-in-msw was given.
16292 if test "${enable_ps_in_msw+set}" = set; then
16293   enableval=$enable_ps_in_msw;
16294                           if test "$enableval" = yes; then
16295                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
16296                           else
16297                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
16298                           fi
16299                           cache=yes
16300
16301 else
16302
16303                           LINE=`grep "^wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=" ${wx_arg_cache_file}`
16304                           if test "x$LINE" != x ; then
16305                               eval "DEFAULT_$LINE"
16306                               cache=yes
16307                           else
16308                               cache=no
16309                           fi
16310
16311                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
16312
16313 fi
16314
16315
16316           eval "$wx_cv_use_ps_in_msw"
16317           if test "x$cache" = xyes; then
16318             echo "wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" >> ${wx_arg_cache_file}.tmp
16319           fi
16320
16321           if test x"$enablestring" = xdisable; then
16322             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
16323               result=no
16324             else
16325               result=yes
16326             fi
16327           else
16328             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
16329           fi
16330
16331           { echo "$as_me:$LINENO: result: $result" >&5
16332 echo "${ECHO_T}$result" >&6; }
16333
16334
16335           enablestring=
16336           defaultval=$wxUSE_ALL_FEATURES
16337           if test -z "$defaultval"; then
16338               if test x"$enablestring" = xdisable; then
16339                   defaultval=yes
16340               else
16341                   defaultval=no
16342               fi
16343           fi
16344
16345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
16346 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
16347           # Check whether --enable-ownerdrawn was given.
16348 if test "${enable_ownerdrawn+set}" = set; then
16349   enableval=$enable_ownerdrawn;
16350                           if test "$enableval" = yes; then
16351                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
16352                           else
16353                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
16354                           fi
16355                           cache=yes
16356
16357 else
16358
16359                           LINE=`grep "^wxUSE_OWNER_DRAWN=" ${wx_arg_cache_file}`
16360                           if test "x$LINE" != x ; then
16361                               eval "DEFAULT_$LINE"
16362                               cache=yes
16363                           else
16364                               cache=no
16365                           fi
16366
16367                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
16368
16369 fi
16370
16371
16372           eval "$wx_cv_use_ownerdrawn"
16373           if test "x$cache" = xyes; then
16374             echo "wxUSE_OWNER_DRAWN=$wxUSE_OWNER_DRAWN" >> ${wx_arg_cache_file}.tmp
16375           fi
16376
16377           if test x"$enablestring" = xdisable; then
16378             if test $wxUSE_OWNER_DRAWN = yes; then
16379               result=no
16380             else
16381               result=yes
16382             fi
16383           else
16384             result=$wxUSE_OWNER_DRAWN
16385           fi
16386
16387           { echo "$as_me:$LINENO: result: $result" >&5
16388 echo "${ECHO_T}$result" >&6; }
16389
16390
16391           enablestring=
16392           defaultval=$wxUSE_ALL_FEATURES
16393           if test -z "$defaultval"; then
16394               if test x"$enablestring" = xdisable; then
16395                   defaultval=yes
16396               else
16397                   defaultval=no
16398               fi
16399           fi
16400
16401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
16402 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
16403           # Check whether --enable-uxtheme was given.
16404 if test "${enable_uxtheme+set}" = set; then
16405   enableval=$enable_uxtheme;
16406                           if test "$enableval" = yes; then
16407                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
16408                           else
16409                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
16410                           fi
16411                           cache=yes
16412
16413 else
16414
16415                           LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
16416                           if test "x$LINE" != x ; then
16417                               eval "DEFAULT_$LINE"
16418                               cache=yes
16419                           else
16420                               cache=no
16421                           fi
16422
16423                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
16424
16425 fi
16426
16427
16428           eval "$wx_cv_use_uxtheme"
16429           if test "x$cache" = xyes; then
16430             echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
16431           fi
16432
16433           if test x"$enablestring" = xdisable; then
16434             if test $wxUSE_UXTHEME = yes; then
16435               result=no
16436             else
16437               result=yes
16438             fi
16439           else
16440             result=$wxUSE_UXTHEME
16441           fi
16442
16443           { echo "$as_me:$LINENO: result: $result" >&5
16444 echo "${ECHO_T}$result" >&6; }
16445
16446
16447           enablestring=
16448           defaultval=$wxUSE_ALL_FEATURES
16449           if test -z "$defaultval"; then
16450               if test x"$enablestring" = xdisable; then
16451                   defaultval=yes
16452               else
16453                   defaultval=no
16454               fi
16455           fi
16456
16457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
16458 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
16459           # Check whether --enable-wxdib was given.
16460 if test "${enable_wxdib+set}" = set; then
16461   enableval=$enable_wxdib;
16462                           if test "$enableval" = yes; then
16463                             wx_cv_use_wxdib='wxUSE_DIB=yes'
16464                           else
16465                             wx_cv_use_wxdib='wxUSE_DIB=no'
16466                           fi
16467                           cache=yes
16468
16469 else
16470
16471                           LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
16472                           if test "x$LINE" != x ; then
16473                               eval "DEFAULT_$LINE"
16474                               cache=yes
16475                           else
16476                               cache=no
16477                           fi
16478
16479                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
16480
16481 fi
16482
16483
16484           eval "$wx_cv_use_wxdib"
16485           if test "x$cache" = xyes; then
16486             echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
16487           fi
16488
16489           if test x"$enablestring" = xdisable; then
16490             if test $wxUSE_DIB = yes; then
16491               result=no
16492             else
16493               result=yes
16494             fi
16495           else
16496             result=$wxUSE_DIB
16497           fi
16498
16499           { echo "$as_me:$LINENO: result: $result" >&5
16500 echo "${ECHO_T}$result" >&6; }
16501
16502
16503 fi
16504
16505
16506           echo "saving argument cache $wx_arg_cache_file"
16507           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
16508
16509
16510
16511 { echo "$as_me:$LINENO: checking for toolkit" >&5
16512 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
16513
16514 # In Wine, we need to default to MSW, not GTK or MOTIF
16515 if test "$wxUSE_WINE" = "yes"; then
16516     DEFAULT_DEFAULT_wxUSE_GTK=0
16517     DEFAULT_DEFAULT_wxUSE_MOTIF=0
16518     DEFAULT_DEFAULT_wxUSE_MSW=1
16519     wxUSE_SHARED=no
16520     CC=${CC:-winegcc}
16521     CXX=${CXX:-wineg++}
16522 fi
16523
16524
16525 if test "$wxUSE_GUI" = "yes"; then
16526
16527     if test "$USE_BEOS" = 1; then
16528         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
16529 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
16530    { (exit 1); exit 1; }; }
16531     fi
16532
16533     if test "$TOOLKIT_GIVEN" = 1; then
16534             for toolkit in `echo $ALL_TOOLKITS`; do
16535         var=wxUSE_$toolkit
16536         eval "value=\$${var}"
16537         if test "x$value" = "xno"; then
16538           eval "$var=0"
16539         elif test "x$value" != "x"; then
16540           eval "$var=1"
16541         fi
16542
16543         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
16544           eval "wx${toolkit}_VERSION=$value"
16545         fi
16546       done
16547     else
16548             for toolkit in `echo $ALL_TOOLKITS`; do
16549         if test "$has_toolkit_in_cache" != 1; then
16550           var=DEFAULT_DEFAULT_wxUSE_$toolkit
16551         else
16552           var=DEFAULT_wxUSE_$toolkit
16553
16554           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
16555           if test "x$version" != "x"; then
16556             eval "wx${toolkit}_VERSION=$version"
16557           fi
16558         fi
16559         eval "wxUSE_$toolkit=\$${var}"
16560       done
16561     fi
16562
16563             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
16564                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
16565                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
16566
16567         case "${host}" in
16568       *-pc-os2_emx | *-pc-os2-emx )
16569         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
16570     esac
16571
16572     case "$NUM_TOOLKITS" in
16573       1)
16574       ;;
16575       0)
16576         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
16577 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
16578    { (exit 1); exit 1; }; }
16579       ;;
16580       *)
16581         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
16582 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
16583    { (exit 1); exit 1; }; }
16584     esac
16585
16586     # to be removed when --disable-gtk2 isn't needed
16587     if test "x$wxUSE_GTK2" = "xyes"; then
16588         wxGTK_VERSION=2
16589     elif test "x$wxUSE_GTK2" = "xno"; then
16590         wxGTK_VERSION=1
16591     fi
16592
16593         for toolkit in `echo $ALL_TOOLKITS`; do
16594       var=wxUSE_$toolkit
16595       eval "value=\$${var}"
16596       if test "x$value" != x; then
16597         cache_var=CACHE_$toolkit
16598         eval "cache=\$${cache_var}"
16599         if test "$cache" = 1; then
16600           echo "$var=$value" >> ${wx_arg_cache_file}
16601           eval "version=\$wx${toolkit}_VERSION"
16602           if test "x$version" != "x"; then
16603             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
16604           fi
16605         fi
16606         if test "$value" = 1; then
16607           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
16608           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
16609 echo "${ECHO_T}$toolkit_echo" >&6; }
16610         fi
16611       fi
16612     done
16613 else
16614     if test "x$host_alias" != "x"; then
16615         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
16616 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
16617     else
16618         { echo "$as_me:$LINENO: result: base only" >&5
16619 echo "${ECHO_T}base only" >&6; }
16620     fi
16621 fi
16622
16623
16624 cat >confcache <<\_ACEOF
16625 # This file is a shell script that caches the results of configure
16626 # tests run on this system so they can be shared between configure
16627 # scripts and configure runs, see configure's option --config-cache.
16628 # It is not useful on other systems.  If it contains results you don't
16629 # want to keep, you may remove or edit it.
16630 #
16631 # config.status only pays attention to the cache file if you give it
16632 # the --recheck option to rerun configure.
16633 #
16634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16636 # following values.
16637
16638 _ACEOF
16639
16640 # The following way of writing the cache mishandles newlines in values,
16641 # but we know of no workaround that is simple, portable, and efficient.
16642 # So, we kill variables containing newlines.
16643 # Ultrix sh set writes to stderr and can't be redirected directly,
16644 # and sets the high bit in the cache file unless we assign to the vars.
16645 (
16646   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16647     eval ac_val=\$$ac_var
16648     case $ac_val in #(
16649     *${as_nl}*)
16650       case $ac_var in #(
16651       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16652 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16653       esac
16654       case $ac_var in #(
16655       _ | IFS | as_nl) ;; #(
16656       *) $as_unset $ac_var ;;
16657       esac ;;
16658     esac
16659   done
16660
16661   (set) 2>&1 |
16662     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16663     *${as_nl}ac_space=\ *)
16664       # `set' does not quote correctly, so add quotes (double-quote
16665       # substitution turns \\\\ into \\, and sed turns \\ into \).
16666       sed -n \
16667         "s/'/'\\\\''/g;
16668           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16669       ;; #(
16670     *)
16671       # `set' quotes correctly as required by POSIX, so do not add quotes.
16672       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16673       ;;
16674     esac |
16675     sort
16676 ) |
16677   sed '
16678      /^ac_cv_env_/b end
16679      t clear
16680      :clear
16681      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16682      t end
16683      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16684      :end' >>confcache
16685 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16686   if test -w "$cache_file"; then
16687     test "x$cache_file" != "x/dev/null" &&
16688       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16689 echo "$as_me: updating cache $cache_file" >&6;}
16690     cat confcache >$cache_file
16691   else
16692     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16693 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16694   fi
16695 fi
16696 rm -f confcache
16697
16698 CFLAGS=${CFLAGS:=}
16699
16700
16701
16702     ac_ext=c
16703 ac_cpp='$CPP $CPPFLAGS'
16704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16707 if test -n "$ac_tool_prefix"; then
16708   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16712 if test "${ac_cv_prog_CC+set}" = set; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715   if test -n "$CC"; then
16716   ac_cv_prog_CC="$CC" # Let the user override the test.
16717 else
16718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16719 for as_dir in $PATH
16720 do
16721   IFS=$as_save_IFS
16722   test -z "$as_dir" && as_dir=.
16723   for ac_exec_ext in '' $ac_executable_extensions; do
16724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16725     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16727     break 2
16728   fi
16729 done
16730 done
16731 IFS=$as_save_IFS
16732
16733 fi
16734 fi
16735 CC=$ac_cv_prog_CC
16736 if test -n "$CC"; then
16737   { echo "$as_me:$LINENO: result: $CC" >&5
16738 echo "${ECHO_T}$CC" >&6; }
16739 else
16740   { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16742 fi
16743
16744
16745 fi
16746 if test -z "$ac_cv_prog_CC"; then
16747   ac_ct_CC=$CC
16748   # Extract the first word of "gcc", so it can be a program name with args.
16749 set dummy gcc; ac_word=$2
16750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16753   echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755   if test -n "$ac_ct_CC"; then
16756   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16757 else
16758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16759 for as_dir in $PATH
16760 do
16761   IFS=$as_save_IFS
16762   test -z "$as_dir" && as_dir=.
16763   for ac_exec_ext in '' $ac_executable_extensions; do
16764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16765     ac_cv_prog_ac_ct_CC="gcc"
16766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16767     break 2
16768   fi
16769 done
16770 done
16771 IFS=$as_save_IFS
16772
16773 fi
16774 fi
16775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16776 if test -n "$ac_ct_CC"; then
16777   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16778 echo "${ECHO_T}$ac_ct_CC" >&6; }
16779 else
16780   { echo "$as_me:$LINENO: result: no" >&5
16781 echo "${ECHO_T}no" >&6; }
16782 fi
16783
16784   if test "x$ac_ct_CC" = x; then
16785     CC=""
16786   else
16787     case $cross_compiling:$ac_tool_warned in
16788 yes:)
16789 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16790 whose name does not start with the host triplet.  If you think this
16791 configuration is useful to you, please write to autoconf@gnu.org." >&5
16792 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16793 whose name does not start with the host triplet.  If you think this
16794 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16795 ac_tool_warned=yes ;;
16796 esac
16797     CC=$ac_ct_CC
16798   fi
16799 else
16800   CC="$ac_cv_prog_CC"
16801 fi
16802
16803 if test -z "$CC"; then
16804           if test -n "$ac_tool_prefix"; then
16805     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16806 set dummy ${ac_tool_prefix}cc; ac_word=$2
16807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16809 if test "${ac_cv_prog_CC+set}" = set; then
16810   echo $ECHO_N "(cached) $ECHO_C" >&6
16811 else
16812   if test -n "$CC"; then
16813   ac_cv_prog_CC="$CC" # Let the user override the test.
16814 else
16815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16816 for as_dir in $PATH
16817 do
16818   IFS=$as_save_IFS
16819   test -z "$as_dir" && as_dir=.
16820   for ac_exec_ext in '' $ac_executable_extensions; do
16821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16822     ac_cv_prog_CC="${ac_tool_prefix}cc"
16823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16824     break 2
16825   fi
16826 done
16827 done
16828 IFS=$as_save_IFS
16829
16830 fi
16831 fi
16832 CC=$ac_cv_prog_CC
16833 if test -n "$CC"; then
16834   { echo "$as_me:$LINENO: result: $CC" >&5
16835 echo "${ECHO_T}$CC" >&6; }
16836 else
16837   { echo "$as_me:$LINENO: result: no" >&5
16838 echo "${ECHO_T}no" >&6; }
16839 fi
16840
16841
16842   fi
16843 fi
16844 if test -z "$CC"; then
16845   # Extract the first word of "cc", so it can be a program name with args.
16846 set dummy cc; ac_word=$2
16847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16849 if test "${ac_cv_prog_CC+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   if test -n "$CC"; then
16853   ac_cv_prog_CC="$CC" # Let the user override the test.
16854 else
16855   ac_prog_rejected=no
16856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16857 for as_dir in $PATH
16858 do
16859   IFS=$as_save_IFS
16860   test -z "$as_dir" && as_dir=.
16861   for ac_exec_ext in '' $ac_executable_extensions; do
16862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16863     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16864        ac_prog_rejected=yes
16865        continue
16866      fi
16867     ac_cv_prog_CC="cc"
16868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16869     break 2
16870   fi
16871 done
16872 done
16873 IFS=$as_save_IFS
16874
16875 if test $ac_prog_rejected = yes; then
16876   # We found a bogon in the path, so make sure we never use it.
16877   set dummy $ac_cv_prog_CC
16878   shift
16879   if test $# != 0; then
16880     # We chose a different compiler from the bogus one.
16881     # However, it has the same basename, so the bogon will be chosen
16882     # first if we set CC to just the basename; use the full file name.
16883     shift
16884     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16885   fi
16886 fi
16887 fi
16888 fi
16889 CC=$ac_cv_prog_CC
16890 if test -n "$CC"; then
16891   { echo "$as_me:$LINENO: result: $CC" >&5
16892 echo "${ECHO_T}$CC" >&6; }
16893 else
16894   { echo "$as_me:$LINENO: result: no" >&5
16895 echo "${ECHO_T}no" >&6; }
16896 fi
16897
16898
16899 fi
16900 if test -z "$CC"; then
16901   if test -n "$ac_tool_prefix"; then
16902   for ac_prog in cl.exe
16903   do
16904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16908 if test "${ac_cv_prog_CC+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   if test -n "$CC"; then
16912   ac_cv_prog_CC="$CC" # Let the user override the test.
16913 else
16914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16915 for as_dir in $PATH
16916 do
16917   IFS=$as_save_IFS
16918   test -z "$as_dir" && as_dir=.
16919   for ac_exec_ext in '' $ac_executable_extensions; do
16920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16921     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16923     break 2
16924   fi
16925 done
16926 done
16927 IFS=$as_save_IFS
16928
16929 fi
16930 fi
16931 CC=$ac_cv_prog_CC
16932 if test -n "$CC"; then
16933   { echo "$as_me:$LINENO: result: $CC" >&5
16934 echo "${ECHO_T}$CC" >&6; }
16935 else
16936   { echo "$as_me:$LINENO: result: no" >&5
16937 echo "${ECHO_T}no" >&6; }
16938 fi
16939
16940
16941     test -n "$CC" && break
16942   done
16943 fi
16944 if test -z "$CC"; then
16945   ac_ct_CC=$CC
16946   for ac_prog in cl.exe
16947 do
16948   # Extract the first word of "$ac_prog", so it can be a program name with args.
16949 set dummy $ac_prog; ac_word=$2
16950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955   if test -n "$ac_ct_CC"; then
16956   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16957 else
16958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16959 for as_dir in $PATH
16960 do
16961   IFS=$as_save_IFS
16962   test -z "$as_dir" && as_dir=.
16963   for ac_exec_ext in '' $ac_executable_extensions; do
16964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16965     ac_cv_prog_ac_ct_CC="$ac_prog"
16966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16967     break 2
16968   fi
16969 done
16970 done
16971 IFS=$as_save_IFS
16972
16973 fi
16974 fi
16975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16976 if test -n "$ac_ct_CC"; then
16977   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16978 echo "${ECHO_T}$ac_ct_CC" >&6; }
16979 else
16980   { echo "$as_me:$LINENO: result: no" >&5
16981 echo "${ECHO_T}no" >&6; }
16982 fi
16983
16984
16985   test -n "$ac_ct_CC" && break
16986 done
16987
16988   if test "x$ac_ct_CC" = x; then
16989     CC=""
16990   else
16991     case $cross_compiling:$ac_tool_warned in
16992 yes:)
16993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16994 whose name does not start with the host triplet.  If you think this
16995 configuration is useful to you, please write to autoconf@gnu.org." >&5
16996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16997 whose name does not start with the host triplet.  If you think this
16998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16999 ac_tool_warned=yes ;;
17000 esac
17001     CC=$ac_ct_CC
17002   fi
17003 fi
17004
17005 fi
17006
17007
17008 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
17009 See \`config.log' for more details." >&5
17010 echo "$as_me: error: no acceptable C compiler found in \$PATH
17011 See \`config.log' for more details." >&2;}
17012    { (exit 1); exit 1; }; }
17013
17014 # Provide some information about the compiler.
17015 echo "$as_me:$LINENO: checking for C compiler version" >&5
17016 ac_compiler=`set X $ac_compile; echo $2`
17017 { (ac_try="$ac_compiler --version >&5"
17018 case "(($ac_try" in
17019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17020   *) ac_try_echo=$ac_try;;
17021 esac
17022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17023   (eval "$ac_compiler --version >&5") 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }
17027 { (ac_try="$ac_compiler -v >&5"
17028 case "(($ac_try" in
17029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030   *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033   (eval "$ac_compiler -v >&5") 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }
17037 { (ac_try="$ac_compiler -V >&5"
17038 case "(($ac_try" in
17039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040   *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043   (eval "$ac_compiler -V >&5") 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }
17047
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h.  */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h.  */
17054
17055 int
17056 main ()
17057 {
17058
17059   ;
17060   return 0;
17061 }
17062 _ACEOF
17063 ac_clean_files_save=$ac_clean_files
17064 ac_clean_files="$ac_clean_files a.out a.exe b.out"
17065 # Try to create an executable without -o first, disregard a.out.
17066 # It will help us diagnose broken compilers, and finding out an intuition
17067 # of exeext.
17068 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
17069 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
17070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
17071 #
17072 # List of possible output files, starting from the most likely.
17073 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
17074 # only as a last resort.  b.out is created by i960 compilers.
17075 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
17076 #
17077 # The IRIX 6 linker writes into existing files which may not be
17078 # executable, retaining their permissions.  Remove them first so a
17079 # subsequent execution test works.
17080 ac_rmfiles=
17081 for ac_file in $ac_files
17082 do
17083   case $ac_file in
17084     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
17085     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
17086   esac
17087 done
17088 rm -f $ac_rmfiles
17089
17090 if { (ac_try="$ac_link_default"
17091 case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_link_default") 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; then
17100   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
17101 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
17102 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
17103 # so that the user can short-circuit this test for compilers unknown to
17104 # Autoconf.
17105 for ac_file in $ac_files ''
17106 do
17107   test -f "$ac_file" || continue
17108   case $ac_file in
17109     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
17110         ;;
17111     [ab].out )
17112         # We found the default executable, but exeext='' is most
17113         # certainly right.
17114         break;;
17115     *.* )
17116         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
17117         then :; else
17118            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17119         fi
17120         # We set ac_cv_exeext here because the later test for it is not
17121         # safe: cross compilers may not add the suffix if given an `-o'
17122         # argument, so we may need to know it at that point already.
17123         # Even if this section looks crufty: it has the advantage of
17124         # actually working.
17125         break;;
17126     * )
17127         break;;
17128   esac
17129 done
17130 test "$ac_cv_exeext" = no && ac_cv_exeext=
17131
17132 else
17133   ac_file=''
17134 fi
17135
17136 { echo "$as_me:$LINENO: result: $ac_file" >&5
17137 echo "${ECHO_T}$ac_file" >&6; }
17138 if test -z "$ac_file"; then
17139   echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17141
17142 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
17143 See \`config.log' for more details." >&5
17144 echo "$as_me: error: C compiler cannot create executables
17145 See \`config.log' for more details." >&2;}
17146    { (exit 77); exit 77; }; }
17147 fi
17148
17149 ac_exeext=$ac_cv_exeext
17150
17151 # Check that the compiler produces executables we can run.  If not, either
17152 # the compiler is broken, or we cross compile.
17153 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
17154 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
17155 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
17156 # If not cross compiling, check that we can run a simple program.
17157 if test "$cross_compiling" != yes; then
17158   if { ac_try='./$ac_file'
17159   { (case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164   (eval "$ac_try") 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; }; then
17168     cross_compiling=no
17169   else
17170     if test "$cross_compiling" = maybe; then
17171         cross_compiling=yes
17172     else
17173         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
17174 If you meant to cross compile, use \`--host'.
17175 See \`config.log' for more details." >&5
17176 echo "$as_me: error: cannot run C compiled programs.
17177 If you meant to cross compile, use \`--host'.
17178 See \`config.log' for more details." >&2;}
17179    { (exit 1); exit 1; }; }
17180     fi
17181   fi
17182 fi
17183 { echo "$as_me:$LINENO: result: yes" >&5
17184 echo "${ECHO_T}yes" >&6; }
17185
17186 rm -f a.out a.exe conftest$ac_cv_exeext b.out
17187 ac_clean_files=$ac_clean_files_save
17188 # Check that the compiler produces executables we can run.  If not, either
17189 # the compiler is broken, or we cross compile.
17190 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
17191 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
17192 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
17193 echo "${ECHO_T}$cross_compiling" >&6; }
17194
17195 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
17196 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200   *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203   (eval "$ac_link") 2>&5
17204   ac_status=$?
17205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); }; then
17207   # If both `conftest.exe' and `conftest' are `present' (well, observable)
17208 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
17209 # work properly (i.e., refer to `conftest.exe'), while it won't with
17210 # `rm'.
17211 for ac_file in conftest.exe conftest conftest.*; do
17212   test -f "$ac_file" || continue
17213   case $ac_file in
17214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
17215     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17216           break;;
17217     * ) break;;
17218   esac
17219 done
17220 else
17221   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
17222 See \`config.log' for more details." >&5
17223 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
17224 See \`config.log' for more details." >&2;}
17225    { (exit 1); exit 1; }; }
17226 fi
17227
17228 rm -f conftest$ac_cv_exeext
17229 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
17230 echo "${ECHO_T}$ac_cv_exeext" >&6; }
17231
17232 rm -f conftest.$ac_ext
17233 EXEEXT=$ac_cv_exeext
17234 ac_exeext=$EXEEXT
17235 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
17236 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
17237 if test "${ac_cv_objext+set}" = set; then
17238   echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240   cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17246
17247 int
17248 main ()
17249 {
17250
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.o conftest.obj
17256 if { (ac_try="$ac_compile"
17257 case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_compile") 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); }; then
17266   for ac_file in conftest.o conftest.obj conftest.*; do
17267   test -f "$ac_file" || continue;
17268   case $ac_file in
17269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
17270     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
17271        break;;
17272   esac
17273 done
17274 else
17275   echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
17279 See \`config.log' for more details." >&5
17280 echo "$as_me: error: cannot compute suffix of object files: cannot compile
17281 See \`config.log' for more details." >&2;}
17282    { (exit 1); exit 1; }; }
17283 fi
17284
17285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
17286 fi
17287 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
17288 echo "${ECHO_T}$ac_cv_objext" >&6; }
17289 OBJEXT=$ac_cv_objext
17290 ac_objext=$OBJEXT
17291 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
17292 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
17293 if test "${ac_cv_c_compiler_gnu+set}" = set; then
17294   echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296   cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h.  */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h.  */
17302
17303 int
17304 main ()
17305 {
17306 #ifndef __GNUC__
17307        choke me
17308 #endif
17309
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_compile") 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } && {
17328          test -z "$ac_c_werror_flag" ||
17329          test ! -s conftest.err
17330        } && test -s conftest.$ac_objext; then
17331   ac_compiler_gnu=yes
17332 else
17333   echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17335
17336         ac_compiler_gnu=no
17337 fi
17338
17339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
17341
17342 fi
17343 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
17344 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
17345 GCC=`test $ac_compiler_gnu = yes && echo yes`
17346 ac_test_CFLAGS=${CFLAGS+set}
17347 ac_save_CFLAGS=$CFLAGS
17348 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17349 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17350 if test "${ac_cv_prog_cc_g+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353   ac_save_c_werror_flag=$ac_c_werror_flag
17354    ac_c_werror_flag=yes
17355    ac_cv_prog_cc_g=no
17356    CFLAGS="-g"
17357    cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h.  */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h.  */
17363
17364 int
17365 main ()
17366 {
17367
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext
17373 if { (ac_try="$ac_compile"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_compile") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } && {
17386          test -z "$ac_c_werror_flag" ||
17387          test ! -s conftest.err
17388        } && test -s conftest.$ac_objext; then
17389   ac_cv_prog_cc_g=yes
17390 else
17391   echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394         CFLAGS=""
17395       cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h.  */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h.  */
17401
17402 int
17403 main ()
17404 {
17405
17406   ;
17407   return 0;
17408 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_compile") 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } && {
17424          test -z "$ac_c_werror_flag" ||
17425          test ! -s conftest.err
17426        } && test -s conftest.$ac_objext; then
17427   :
17428 else
17429   echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432         ac_c_werror_flag=$ac_save_c_werror_flag
17433          CFLAGS="-g"
17434          cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h.  */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h.  */
17440
17441 int
17442 main ()
17443 {
17444
17445   ;
17446   return 0;
17447 }
17448 _ACEOF
17449 rm -f conftest.$ac_objext
17450 if { (ac_try="$ac_compile"
17451 case "(($ac_try" in
17452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453   *) ac_try_echo=$ac_try;;
17454 esac
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456   (eval "$ac_compile") 2>conftest.er1
17457   ac_status=$?
17458   grep -v '^ *+' conftest.er1 >conftest.err
17459   rm -f conftest.er1
17460   cat conftest.err >&5
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); } && {
17463          test -z "$ac_c_werror_flag" ||
17464          test ! -s conftest.err
17465        } && test -s conftest.$ac_objext; then
17466   ac_cv_prog_cc_g=yes
17467 else
17468   echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471
17472 fi
17473
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 fi
17476
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478 fi
17479
17480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17481    ac_c_werror_flag=$ac_save_c_werror_flag
17482 fi
17483 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17485 if test "$ac_test_CFLAGS" = set; then
17486   CFLAGS=$ac_save_CFLAGS
17487 elif test $ac_cv_prog_cc_g = yes; then
17488   if test "$GCC" = yes; then
17489     CFLAGS="-g -O2"
17490   else
17491     CFLAGS="-g"
17492   fi
17493 else
17494   if test "$GCC" = yes; then
17495     CFLAGS="-O2"
17496   else
17497     CFLAGS=
17498   fi
17499 fi
17500 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
17501 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
17502 if test "${ac_cv_prog_cc_c89+set}" = set; then
17503   echo $ECHO_N "(cached) $ECHO_C" >&6
17504 else
17505   ac_cv_prog_cc_c89=no
17506 ac_save_CC=$CC
17507 cat >conftest.$ac_ext <<_ACEOF
17508 /* confdefs.h.  */
17509 _ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h.  */
17513 #include <stdarg.h>
17514 #include <stdio.h>
17515 #include <sys/types.h>
17516 #include <sys/stat.h>
17517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
17518 struct buf { int x; };
17519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
17520 static char *e (p, i)
17521      char **p;
17522      int i;
17523 {
17524   return p[i];
17525 }
17526 static char *f (char * (*g) (char **, int), char **p, ...)
17527 {
17528   char *s;
17529   va_list v;
17530   va_start (v,p);
17531   s = g (p, va_arg (v,int));
17532   va_end (v);
17533   return s;
17534 }
17535
17536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17537    function prototypes and stuff, but not '\xHH' hex character constants.
17538    These don't provoke an error unfortunately, instead are silently treated
17539    as 'x'.  The following induces an error, until -std is added to get
17540    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17541    array size at least.  It's necessary to write '\x00'==0 to get something
17542    that's true only with -std.  */
17543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17544
17545 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17546    inside strings and character constants.  */
17547 #define FOO(x) 'x'
17548 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17549
17550 int test (int i, double x);
17551 struct s1 {int (*f) (int a);};
17552 struct s2 {int (*f) (double a);};
17553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17554 int argc;
17555 char **argv;
17556 int
17557 main ()
17558 {
17559 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
17560   ;
17561   return 0;
17562 }
17563 _ACEOF
17564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17565         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17566 do
17567   CC="$ac_save_CC $ac_arg"
17568   rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572   *) ac_try_echo=$ac_try;;
17573 esac
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575   (eval "$ac_compile") 2>conftest.er1
17576   ac_status=$?
17577   grep -v '^ *+' conftest.er1 >conftest.err
17578   rm -f conftest.er1
17579   cat conftest.err >&5
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); } && {
17582          test -z "$ac_c_werror_flag" ||
17583          test ! -s conftest.err
17584        } && test -s conftest.$ac_objext; then
17585   ac_cv_prog_cc_c89=$ac_arg
17586 else
17587   echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17589
17590
17591 fi
17592
17593 rm -f core conftest.err conftest.$ac_objext
17594   test "x$ac_cv_prog_cc_c89" != "xno" && break
17595 done
17596 rm -f conftest.$ac_ext
17597 CC=$ac_save_CC
17598
17599 fi
17600 # AC_CACHE_VAL
17601 case "x$ac_cv_prog_cc_c89" in
17602   x)
17603     { echo "$as_me:$LINENO: result: none needed" >&5
17604 echo "${ECHO_T}none needed" >&6; } ;;
17605   xno)
17606     { echo "$as_me:$LINENO: result: unsupported" >&5
17607 echo "${ECHO_T}unsupported" >&6; } ;;
17608   *)
17609     CC="$CC $ac_cv_prog_cc_c89"
17610     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
17611 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
17612 esac
17613
17614
17615 ac_ext=c
17616 ac_cpp='$CPP $CPPFLAGS'
17617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17620
17621
17622
17623
17624     ac_ext=c
17625 ac_cpp='$CPP $CPPFLAGS'
17626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17629
17630     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
17631 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
17632 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
17633   echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635   cat >conftest.$ac_ext <<_ACEOF
17636 /* confdefs.h.  */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h.  */
17641
17642 int
17643 main ()
17644 {
17645
17646              #ifndef __INTEL_COMPILER
17647                 choke me
17648              #endif
17649
17650   ;
17651   return 0;
17652 }
17653 _ACEOF
17654 rm -f conftest.$ac_objext
17655 if { (ac_try="$ac_compile"
17656 case "(($ac_try" in
17657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658   *) ac_try_echo=$ac_try;;
17659 esac
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661   (eval "$ac_compile") 2>conftest.er1
17662   ac_status=$?
17663   grep -v '^ *+' conftest.er1 >conftest.err
17664   rm -f conftest.er1
17665   cat conftest.err >&5
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); } && {
17668          test -z "$ac_c_werror_flag" ||
17669          test ! -s conftest.err
17670        } && test -s conftest.$ac_objext; then
17671   bakefile_cv_c_compiler___INTEL_COMPILER=yes
17672 else
17673   echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676         bakefile_cv_c_compiler___INTEL_COMPILER=no
17677
17678 fi
17679
17680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17681
17682
17683 fi
17684 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
17685 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
17686     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
17687         :; INTELCC=yes
17688     else
17689         :;
17690     fi
17691     ac_ext=c
17692 ac_cpp='$CPP $CPPFLAGS'
17693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17696
17697
17698
17699
17700         if test "x$GCC" != "xyes"; then
17701         if test "xCC" = "xC"; then
17702             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17703 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17704 if test "${bakefile_cv_c_exto+set}" = set; then
17705   echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707   cat >conftest.$ac_ext <<_ACEOF
17708 /* confdefs.h.  */
17709 _ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h.  */
17713
17714 int
17715 main ()
17716 {
17717
17718   ;
17719   return 0;
17720 }
17721 _ACEOF
17722 rm -f conftest.$ac_objext conftest.$ac_ext.o
17723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17724   (eval $ac_compile) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; then
17728   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17729     case $ac_file in
17730         conftest.$ac_ext.o)
17731             bakefile_cv_c_exto="-ext o"
17732             ;;
17733         *)
17734             ;;
17735     esac
17736 done
17737 else
17738   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17739 See \`config.log' for more details." >&5
17740 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17741 See \`config.log' for more details." >&2;}
17742    { (exit 1); exit 1; }; }
17743
17744 fi
17745
17746 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17747
17748 fi
17749 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17750 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17751 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17752     if test "c" = "c"; then
17753         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17754     fi
17755     if test "c" = "cxx"; then
17756         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17757     fi
17758 fi
17759
17760             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17761                 unset ac_cv_prog_cc_g
17762                 ac_test_CFLAGS=${CFLAGS+set}
17763 ac_save_CFLAGS=$CFLAGS
17764 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17765 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17766 if test "${ac_cv_prog_cc_g+set}" = set; then
17767   echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769   ac_save_c_werror_flag=$ac_c_werror_flag
17770    ac_c_werror_flag=yes
17771    ac_cv_prog_cc_g=no
17772    CFLAGS="-g"
17773    cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h.  */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h.  */
17779
17780 int
17781 main ()
17782 {
17783
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext
17789 if { (ac_try="$ac_compile"
17790 case "(($ac_try" in
17791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792   *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795   (eval "$ac_compile") 2>conftest.er1
17796   ac_status=$?
17797   grep -v '^ *+' conftest.er1 >conftest.err
17798   rm -f conftest.er1
17799   cat conftest.err >&5
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); } && {
17802          test -z "$ac_c_werror_flag" ||
17803          test ! -s conftest.err
17804        } && test -s conftest.$ac_objext; then
17805   ac_cv_prog_cc_g=yes
17806 else
17807   echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17809
17810         CFLAGS=""
17811       cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h.  */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h.  */
17817
17818 int
17819 main ()
17820 {
17821
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext
17827 if { (ac_try="$ac_compile"
17828 case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833   (eval "$ac_compile") 2>conftest.er1
17834   ac_status=$?
17835   grep -v '^ *+' conftest.er1 >conftest.err
17836   rm -f conftest.er1
17837   cat conftest.err >&5
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } && {
17840          test -z "$ac_c_werror_flag" ||
17841          test ! -s conftest.err
17842        } && test -s conftest.$ac_objext; then
17843   :
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848         ac_c_werror_flag=$ac_save_c_werror_flag
17849          CFLAGS="-g"
17850          cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856
17857 int
17858 main ()
17859 {
17860
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869   *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872   (eval "$ac_compile") 2>conftest.er1
17873   ac_status=$?
17874   grep -v '^ *+' conftest.er1 >conftest.err
17875   rm -f conftest.er1
17876   cat conftest.err >&5
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } && {
17879          test -z "$ac_c_werror_flag" ||
17880          test ! -s conftest.err
17881        } && test -s conftest.$ac_objext; then
17882   ac_cv_prog_cc_g=yes
17883 else
17884   echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887
17888 fi
17889
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891 fi
17892
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894 fi
17895
17896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17897    ac_c_werror_flag=$ac_save_c_werror_flag
17898 fi
17899 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17900 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17901 if test "$ac_test_CFLAGS" = set; then
17902   CFLAGS=$ac_save_CFLAGS
17903 elif test $ac_cv_prog_cc_g = yes; then
17904   if test "$GCC" = yes; then
17905     CFLAGS="-g -O2"
17906   else
17907     CFLAGS="-g"
17908   fi
17909 else
17910   if test "$GCC" = yes; then
17911     CFLAGS="-O2"
17912   else
17913     CFLAGS=
17914   fi
17915 fi
17916             fi
17917         fi
17918
17919                         case `uname -s` in
17920             AIX*)
17921
17922
17923     ac_ext=c
17924 ac_cpp='$CPP $CPPFLAGS'
17925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17928
17929     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17930 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17931 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934   cat >conftest.$ac_ext <<_ACEOF
17935 /* confdefs.h.  */
17936 _ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h.  */
17940
17941 int
17942 main ()
17943 {
17944
17945              #ifndef __xlC__
17946                 choke me
17947              #endif
17948
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (ac_try="$ac_compile"
17955 case "(($ac_try" in
17956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957   *) ac_try_echo=$ac_try;;
17958 esac
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960   (eval "$ac_compile") 2>conftest.er1
17961   ac_status=$?
17962   grep -v '^ *+' conftest.er1 >conftest.err
17963   rm -f conftest.er1
17964   cat conftest.err >&5
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } && {
17967          test -z "$ac_c_werror_flag" ||
17968          test ! -s conftest.err
17969        } && test -s conftest.$ac_objext; then
17970   bakefile_cv_c_compiler___xlC__=yes
17971 else
17972   echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975         bakefile_cv_c_compiler___xlC__=no
17976
17977 fi
17978
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980
17981
17982 fi
17983 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17984 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17985     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17986         :; XLCC=yes
17987     else
17988         :;
17989     fi
17990     ac_ext=c
17991 ac_cpp='$CPP $CPPFLAGS'
17992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17995
17996
17997
17998                 ;;
17999
18000             Darwin)
18001
18002
18003     ac_ext=c
18004 ac_cpp='$CPP $CPPFLAGS'
18005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18008
18009     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
18010 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
18011 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h.  */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h.  */
18020
18021 int
18022 main ()
18023 {
18024
18025              #ifndef __MWERKS__
18026                 choke me
18027              #endif
18028
18029   ;
18030   return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext
18034 if { (ac_try="$ac_compile"
18035 case "(($ac_try" in
18036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037   *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040   (eval "$ac_compile") 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } && {
18047          test -z "$ac_c_werror_flag" ||
18048          test ! -s conftest.err
18049        } && test -s conftest.$ac_objext; then
18050   bakefile_cv_c_compiler___MWERKS__=yes
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055         bakefile_cv_c_compiler___MWERKS__=no
18056
18057 fi
18058
18059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060
18061
18062 fi
18063 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
18064 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
18065     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
18066         :; MWCC=yes
18067     else
18068         :;
18069     fi
18070     ac_ext=c
18071 ac_cpp='$CPP $CPPFLAGS'
18072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18075
18076
18077
18078
18079
18080     ac_ext=c
18081 ac_cpp='$CPP $CPPFLAGS'
18082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18085
18086     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
18087 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
18088 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
18089   echo $ECHO_N "(cached) $ECHO_C" >&6
18090 else
18091   cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h.  */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h.  */
18097
18098 int
18099 main ()
18100 {
18101
18102              #ifndef __xlC__
18103                 choke me
18104              #endif
18105
18106   ;
18107   return 0;
18108 }
18109 _ACEOF
18110 rm -f conftest.$ac_objext
18111 if { (ac_try="$ac_compile"
18112 case "(($ac_try" in
18113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114   *) ac_try_echo=$ac_try;;
18115 esac
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117   (eval "$ac_compile") 2>conftest.er1
18118   ac_status=$?
18119   grep -v '^ *+' conftest.er1 >conftest.err
18120   rm -f conftest.er1
18121   cat conftest.err >&5
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); } && {
18124          test -z "$ac_c_werror_flag" ||
18125          test ! -s conftest.err
18126        } && test -s conftest.$ac_objext; then
18127   bakefile_cv_c_compiler___xlC__=yes
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132         bakefile_cv_c_compiler___xlC__=no
18133
18134 fi
18135
18136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18137
18138
18139 fi
18140 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
18141 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
18142     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
18143         :; XLCC=yes
18144     else
18145         :;
18146     fi
18147     ac_ext=c
18148 ac_cpp='$CPP $CPPFLAGS'
18149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18152
18153
18154
18155                 ;;
18156
18157             IRIX*)
18158
18159
18160     ac_ext=c
18161 ac_cpp='$CPP $CPPFLAGS'
18162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18165
18166     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
18167 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
18168 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
18169   echo $ECHO_N "(cached) $ECHO_C" >&6
18170 else
18171   cat >conftest.$ac_ext <<_ACEOF
18172 /* confdefs.h.  */
18173 _ACEOF
18174 cat confdefs.h >>conftest.$ac_ext
18175 cat >>conftest.$ac_ext <<_ACEOF
18176 /* end confdefs.h.  */
18177
18178 int
18179 main ()
18180 {
18181
18182              #ifndef _SGI_COMPILER_VERSION
18183                 choke me
18184              #endif
18185
18186   ;
18187   return 0;
18188 }
18189 _ACEOF
18190 rm -f conftest.$ac_objext
18191 if { (ac_try="$ac_compile"
18192 case "(($ac_try" in
18193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194   *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197   (eval "$ac_compile") 2>conftest.er1
18198   ac_status=$?
18199   grep -v '^ *+' conftest.er1 >conftest.err
18200   rm -f conftest.er1
18201   cat conftest.err >&5
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); } && {
18204          test -z "$ac_c_werror_flag" ||
18205          test ! -s conftest.err
18206        } && test -s conftest.$ac_objext; then
18207   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
18208 else
18209   echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
18213
18214 fi
18215
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217
18218
18219 fi
18220 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
18221 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
18222     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18223         :; SGICC=yes
18224     else
18225         :;
18226     fi
18227     ac_ext=c
18228 ac_cpp='$CPP $CPPFLAGS'
18229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18232
18233
18234
18235                 ;;
18236
18237             Linux*)
18238
18239
18240     ac_ext=c
18241 ac_cpp='$CPP $CPPFLAGS'
18242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18245
18246     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18247 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
18248 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251   cat >conftest.$ac_ext <<_ACEOF
18252 /* confdefs.h.  */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h.  */
18257
18258 int
18259 main ()
18260 {
18261
18262              #ifndef __SUNPRO_C
18263                 choke me
18264              #endif
18265
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_compile") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } && {
18284          test -z "$ac_c_werror_flag" ||
18285          test ! -s conftest.err
18286        } && test -s conftest.$ac_objext; then
18287   bakefile_cv_c_compiler___SUNPRO_C=yes
18288 else
18289   echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292         bakefile_cv_c_compiler___SUNPRO_C=no
18293
18294 fi
18295
18296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297
18298
18299 fi
18300 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18301 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
18302     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18303         :; SUNCC=yes
18304     else
18305         :;
18306     fi
18307     ac_ext=c
18308 ac_cpp='$CPP $CPPFLAGS'
18309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18312
18313
18314
18315                 ;;
18316
18317             HP-UX*)
18318
18319
18320     ac_ext=c
18321 ac_cpp='$CPP $CPPFLAGS'
18322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18325
18326     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
18327 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
18328 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331   cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337
18338 int
18339 main ()
18340 {
18341
18342              #ifndef __HP_cc
18343                 choke me
18344              #endif
18345
18346   ;
18347   return 0;
18348 }
18349 _ACEOF
18350 rm -f conftest.$ac_objext
18351 if { (ac_try="$ac_compile"
18352 case "(($ac_try" in
18353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354   *) ac_try_echo=$ac_try;;
18355 esac
18356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357   (eval "$ac_compile") 2>conftest.er1
18358   ac_status=$?
18359   grep -v '^ *+' conftest.er1 >conftest.err
18360   rm -f conftest.er1
18361   cat conftest.err >&5
18362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); } && {
18364          test -z "$ac_c_werror_flag" ||
18365          test ! -s conftest.err
18366        } && test -s conftest.$ac_objext; then
18367   bakefile_cv_c_compiler___HP_cc=yes
18368 else
18369   echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371
18372         bakefile_cv_c_compiler___HP_cc=no
18373
18374 fi
18375
18376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18377
18378
18379 fi
18380 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
18381 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
18382     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
18383         :; HPCC=yes
18384     else
18385         :;
18386     fi
18387     ac_ext=c
18388 ac_cpp='$CPP $CPPFLAGS'
18389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18392
18393
18394
18395                 ;;
18396
18397             OSF1)
18398
18399
18400     ac_ext=c
18401 ac_cpp='$CPP $CPPFLAGS'
18402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18405
18406     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
18407 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
18408 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
18409   echo $ECHO_N "(cached) $ECHO_C" >&6
18410 else
18411   cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h.  */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h.  */
18417
18418 int
18419 main ()
18420 {
18421
18422              #ifndef __DECC
18423                 choke me
18424              #endif
18425
18426   ;
18427   return 0;
18428 }
18429 _ACEOF
18430 rm -f conftest.$ac_objext
18431 if { (ac_try="$ac_compile"
18432 case "(($ac_try" in
18433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434   *) ac_try_echo=$ac_try;;
18435 esac
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437   (eval "$ac_compile") 2>conftest.er1
18438   ac_status=$?
18439   grep -v '^ *+' conftest.er1 >conftest.err
18440   rm -f conftest.er1
18441   cat conftest.err >&5
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); } && {
18444          test -z "$ac_c_werror_flag" ||
18445          test ! -s conftest.err
18446        } && test -s conftest.$ac_objext; then
18447   bakefile_cv_c_compiler___DECC=yes
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452         bakefile_cv_c_compiler___DECC=no
18453
18454 fi
18455
18456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18457
18458
18459 fi
18460 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
18461 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
18462     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
18463         :; COMPAQCC=yes
18464     else
18465         :;
18466     fi
18467     ac_ext=c
18468 ac_cpp='$CPP $CPPFLAGS'
18469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18472
18473
18474
18475                 ;;
18476
18477             SunOS)
18478
18479
18480     ac_ext=c
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485
18486     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18487 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
18488 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18489   echo $ECHO_N "(cached) $ECHO_C" >&6
18490 else
18491   cat >conftest.$ac_ext <<_ACEOF
18492 /* confdefs.h.  */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h.  */
18497
18498 int
18499 main ()
18500 {
18501
18502              #ifndef __SUNPRO_C
18503                 choke me
18504              #endif
18505
18506   ;
18507   return 0;
18508 }
18509 _ACEOF
18510 rm -f conftest.$ac_objext
18511 if { (ac_try="$ac_compile"
18512 case "(($ac_try" in
18513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514   *) ac_try_echo=$ac_try;;
18515 esac
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517   (eval "$ac_compile") 2>conftest.er1
18518   ac_status=$?
18519   grep -v '^ *+' conftest.er1 >conftest.err
18520   rm -f conftest.er1
18521   cat conftest.err >&5
18522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523   (exit $ac_status); } && {
18524          test -z "$ac_c_werror_flag" ||
18525          test ! -s conftest.err
18526        } && test -s conftest.$ac_objext; then
18527   bakefile_cv_c_compiler___SUNPRO_C=yes
18528 else
18529   echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532         bakefile_cv_c_compiler___SUNPRO_C=no
18533
18534 fi
18535
18536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537
18538
18539 fi
18540 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18541 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
18542     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18543         :; SUNCC=yes
18544     else
18545         :;
18546     fi
18547     ac_ext=c
18548 ac_cpp='$CPP $CPPFLAGS'
18549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18552
18553
18554
18555                 ;;
18556         esac
18557     fi
18558
18559
18560
18561 ac_ext=c
18562 ac_cpp='$CPP $CPPFLAGS'
18563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18566 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
18567 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
18568 # On Suns, sometimes $CPP names a directory.
18569 if test -n "$CPP" && test -d "$CPP"; then
18570   CPP=
18571 fi
18572 if test -z "$CPP"; then
18573   if test "${ac_cv_prog_CPP+set}" = set; then
18574   echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576       # Double quotes because CPP needs to be expanded
18577     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
18578     do
18579       ac_preproc_ok=false
18580 for ac_c_preproc_warn_flag in '' yes
18581 do
18582   # Use a header file that comes with gcc, so configuring glibc
18583   # with a fresh cross-compiler works.
18584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18585   # <limits.h> exists even on freestanding compilers.
18586   # On the NeXT, cc -E runs the code through the compiler's parser,
18587   # not just through cpp. "Syntax error" is here to catch this case.
18588   cat >conftest.$ac_ext <<_ACEOF
18589 /* confdefs.h.  */
18590 _ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h.  */
18594 #ifdef __STDC__
18595 # include <limits.h>
18596 #else
18597 # include <assert.h>
18598 #endif
18599                      Syntax error
18600 _ACEOF
18601 if { (ac_try="$ac_cpp conftest.$ac_ext"
18602 case "(($ac_try" in
18603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604   *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18608   ac_status=$?
18609   grep -v '^ *+' conftest.er1 >conftest.err
18610   rm -f conftest.er1
18611   cat conftest.err >&5
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); } >/dev/null && {
18614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18615          test ! -s conftest.err
18616        }; then
18617   :
18618 else
18619   echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622   # Broken: fails on valid input.
18623 continue
18624 fi
18625
18626 rm -f conftest.err conftest.$ac_ext
18627
18628   # OK, works on sane cases.  Now check whether nonexistent headers
18629   # can be detected and how.
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 #include <ac_nonexistent.h>
18637 _ACEOF
18638 if { (ac_try="$ac_cpp conftest.$ac_ext"
18639 case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18645   ac_status=$?
18646   grep -v '^ *+' conftest.er1 >conftest.err
18647   rm -f conftest.er1
18648   cat conftest.err >&5
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); } >/dev/null && {
18651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18652          test ! -s conftest.err
18653        }; then
18654   # Broken: success on invalid input.
18655 continue
18656 else
18657   echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660   # Passes both tests.
18661 ac_preproc_ok=:
18662 break
18663 fi
18664
18665 rm -f conftest.err conftest.$ac_ext
18666
18667 done
18668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18669 rm -f conftest.err conftest.$ac_ext
18670 if $ac_preproc_ok; then
18671   break
18672 fi
18673
18674     done
18675     ac_cv_prog_CPP=$CPP
18676
18677 fi
18678   CPP=$ac_cv_prog_CPP
18679 else
18680   ac_cv_prog_CPP=$CPP
18681 fi
18682 { echo "$as_me:$LINENO: result: $CPP" >&5
18683 echo "${ECHO_T}$CPP" >&6; }
18684 ac_preproc_ok=false
18685 for ac_c_preproc_warn_flag in '' yes
18686 do
18687   # Use a header file that comes with gcc, so configuring glibc
18688   # with a fresh cross-compiler works.
18689   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690   # <limits.h> exists even on freestanding compilers.
18691   # On the NeXT, cc -E runs the code through the compiler's parser,
18692   # not just through cpp. "Syntax error" is here to catch this case.
18693   cat >conftest.$ac_ext <<_ACEOF
18694 /* confdefs.h.  */
18695 _ACEOF
18696 cat confdefs.h >>conftest.$ac_ext
18697 cat >>conftest.$ac_ext <<_ACEOF
18698 /* end confdefs.h.  */
18699 #ifdef __STDC__
18700 # include <limits.h>
18701 #else
18702 # include <assert.h>
18703 #endif
18704                      Syntax error
18705 _ACEOF
18706 if { (ac_try="$ac_cpp conftest.$ac_ext"
18707 case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18713   ac_status=$?
18714   grep -v '^ *+' conftest.er1 >conftest.err
18715   rm -f conftest.er1
18716   cat conftest.err >&5
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } >/dev/null && {
18719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18720          test ! -s conftest.err
18721        }; then
18722   :
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727   # Broken: fails on valid input.
18728 continue
18729 fi
18730
18731 rm -f conftest.err conftest.$ac_ext
18732
18733   # OK, works on sane cases.  Now check whether nonexistent headers
18734   # can be detected and how.
18735   cat >conftest.$ac_ext <<_ACEOF
18736 /* confdefs.h.  */
18737 _ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h.  */
18741 #include <ac_nonexistent.h>
18742 _ACEOF
18743 if { (ac_try="$ac_cpp conftest.$ac_ext"
18744 case "(($ac_try" in
18745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746   *) ac_try_echo=$ac_try;;
18747 esac
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18750   ac_status=$?
18751   grep -v '^ *+' conftest.er1 >conftest.err
18752   rm -f conftest.er1
18753   cat conftest.err >&5
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); } >/dev/null && {
18756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18757          test ! -s conftest.err
18758        }; then
18759   # Broken: success on invalid input.
18760 continue
18761 else
18762   echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18764
18765   # Passes both tests.
18766 ac_preproc_ok=:
18767 break
18768 fi
18769
18770 rm -f conftest.err conftest.$ac_ext
18771
18772 done
18773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18774 rm -f conftest.err conftest.$ac_ext
18775 if $ac_preproc_ok; then
18776   :
18777 else
18778   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18779 See \`config.log' for more details." >&5
18780 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18781 See \`config.log' for more details." >&2;}
18782    { (exit 1); exit 1; }; }
18783 fi
18784
18785 ac_ext=c
18786 ac_cpp='$CPP $CPPFLAGS'
18787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18790
18791
18792 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
18793 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
18794 if test "${ac_cv_path_GREP+set}" = set; then
18795   echo $ECHO_N "(cached) $ECHO_C" >&6
18796 else
18797   # Extract the first word of "grep ggrep" to use in msg output
18798 if test -z "$GREP"; then
18799 set dummy grep ggrep; ac_prog_name=$2
18800 if test "${ac_cv_path_GREP+set}" = set; then
18801   echo $ECHO_N "(cached) $ECHO_C" >&6
18802 else
18803   ac_path_GREP_found=false
18804 # Loop through the user's path and test for each of PROGNAME-LIST
18805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18807 do
18808   IFS=$as_save_IFS
18809   test -z "$as_dir" && as_dir=.
18810   for ac_prog in grep ggrep; do
18811   for ac_exec_ext in '' $ac_executable_extensions; do
18812     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18813     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18814     # Check for GNU ac_path_GREP and select it if it is found.
18815   # Check for GNU $ac_path_GREP
18816 case `"$ac_path_GREP" --version 2>&1` in
18817 *GNU*)
18818   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18819 *)
18820   ac_count=0
18821   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18822   while :
18823   do
18824     cat "conftest.in" "conftest.in" >"conftest.tmp"
18825     mv "conftest.tmp" "conftest.in"
18826     cp "conftest.in" "conftest.nl"
18827     echo 'GREP' >> "conftest.nl"
18828     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18829     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18830     ac_count=`expr $ac_count + 1`
18831     if test $ac_count -gt ${ac_path_GREP_max-0}; then
18832       # Best one so far, save it but keep looking for a better one
18833       ac_cv_path_GREP="$ac_path_GREP"
18834       ac_path_GREP_max=$ac_count
18835     fi
18836     # 10*(2^10) chars as input seems more than enough
18837     test $ac_count -gt 10 && break
18838   done
18839   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18840 esac
18841
18842
18843     $ac_path_GREP_found && break 3
18844   done
18845 done
18846
18847 done
18848 IFS=$as_save_IFS
18849
18850
18851 fi
18852
18853 GREP="$ac_cv_path_GREP"
18854 if test -z "$GREP"; then
18855   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18856 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18857    { (exit 1); exit 1; }; }
18858 fi
18859
18860 else
18861   ac_cv_path_GREP=$GREP
18862 fi
18863
18864
18865 fi
18866 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18867 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18868  GREP="$ac_cv_path_GREP"
18869
18870
18871 { echo "$as_me:$LINENO: checking for egrep" >&5
18872 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18873 if test "${ac_cv_path_EGREP+set}" = set; then
18874   echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18877    then ac_cv_path_EGREP="$GREP -E"
18878    else
18879      # Extract the first word of "egrep" to use in msg output
18880 if test -z "$EGREP"; then
18881 set dummy egrep; ac_prog_name=$2
18882 if test "${ac_cv_path_EGREP+set}" = set; then
18883   echo $ECHO_N "(cached) $ECHO_C" >&6
18884 else
18885   ac_path_EGREP_found=false
18886 # Loop through the user's path and test for each of PROGNAME-LIST
18887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18889 do
18890   IFS=$as_save_IFS
18891   test -z "$as_dir" && as_dir=.
18892   for ac_prog in egrep; do
18893   for ac_exec_ext in '' $ac_executable_extensions; do
18894     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18895     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18896     # Check for GNU ac_path_EGREP and select it if it is found.
18897   # Check for GNU $ac_path_EGREP
18898 case `"$ac_path_EGREP" --version 2>&1` in
18899 *GNU*)
18900   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18901 *)
18902   ac_count=0
18903   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18904   while :
18905   do
18906     cat "conftest.in" "conftest.in" >"conftest.tmp"
18907     mv "conftest.tmp" "conftest.in"
18908     cp "conftest.in" "conftest.nl"
18909     echo 'EGREP' >> "conftest.nl"
18910     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18911     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18912     ac_count=`expr $ac_count + 1`
18913     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18914       # Best one so far, save it but keep looking for a better one
18915       ac_cv_path_EGREP="$ac_path_EGREP"
18916       ac_path_EGREP_max=$ac_count
18917     fi
18918     # 10*(2^10) chars as input seems more than enough
18919     test $ac_count -gt 10 && break
18920   done
18921   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18922 esac
18923
18924
18925     $ac_path_EGREP_found && break 3
18926   done
18927 done
18928
18929 done
18930 IFS=$as_save_IFS
18931
18932
18933 fi
18934
18935 EGREP="$ac_cv_path_EGREP"
18936 if test -z "$EGREP"; then
18937   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18938 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18939    { (exit 1); exit 1; }; }
18940 fi
18941
18942 else
18943   ac_cv_path_EGREP=$EGREP
18944 fi
18945
18946
18947    fi
18948 fi
18949 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18950 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18951  EGREP="$ac_cv_path_EGREP"
18952
18953
18954 if test $ac_cv_c_compiler_gnu = yes; then
18955     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18956 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18957 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18958   echo $ECHO_N "(cached) $ECHO_C" >&6
18959 else
18960     ac_pattern="Autoconf.*'x'"
18961   cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967 #include <sgtty.h>
18968 Autoconf TIOCGETP
18969 _ACEOF
18970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18971   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18972   ac_cv_prog_gcc_traditional=yes
18973 else
18974   ac_cv_prog_gcc_traditional=no
18975 fi
18976 rm -f conftest*
18977
18978
18979   if test $ac_cv_prog_gcc_traditional = no; then
18980     cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h.  */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h.  */
18986 #include <termio.h>
18987 Autoconf TCGETA
18988 _ACEOF
18989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18990   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18991   ac_cv_prog_gcc_traditional=yes
18992 fi
18993 rm -f conftest*
18994
18995   fi
18996 fi
18997 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18998 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18999   if test $ac_cv_prog_gcc_traditional = yes; then
19000     CC="$CC -traditional"
19001   fi
19002 fi
19003
19004
19005 CXXFLAGS=${CXXFLAGS:=}
19006
19007
19008
19009     ac_ext=cpp
19010 ac_cpp='$CXXCPP $CPPFLAGS'
19011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19014 if test -z "$CXX"; then
19015   if test -n "$CCC"; then
19016     CXX=$CCC
19017   else
19018     if test -n "$ac_tool_prefix"; then
19019   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19020   do
19021     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19025 if test "${ac_cv_prog_CXX+set}" = set; then
19026   echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
19028   if test -n "$CXX"; then
19029   ac_cv_prog_CXX="$CXX" # Let the user override the test.
19030 else
19031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19032 for as_dir in $PATH
19033 do
19034   IFS=$as_save_IFS
19035   test -z "$as_dir" && as_dir=.
19036   for ac_exec_ext in '' $ac_executable_extensions; do
19037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19038     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
19039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19040     break 2
19041   fi
19042 done
19043 done
19044 IFS=$as_save_IFS
19045
19046 fi
19047 fi
19048 CXX=$ac_cv_prog_CXX
19049 if test -n "$CXX"; then
19050   { echo "$as_me:$LINENO: result: $CXX" >&5
19051 echo "${ECHO_T}$CXX" >&6; }
19052 else
19053   { echo "$as_me:$LINENO: result: no" >&5
19054 echo "${ECHO_T}no" >&6; }
19055 fi
19056
19057
19058     test -n "$CXX" && break
19059   done
19060 fi
19061 if test -z "$CXX"; then
19062   ac_ct_CXX=$CXX
19063   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
19064 do
19065   # Extract the first word of "$ac_prog", so it can be a program name with args.
19066 set dummy $ac_prog; ac_word=$2
19067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19069 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   if test -n "$ac_ct_CXX"; then
19073   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
19074 else
19075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19076 for as_dir in $PATH
19077 do
19078   IFS=$as_save_IFS
19079   test -z "$as_dir" && as_dir=.
19080   for ac_exec_ext in '' $ac_executable_extensions; do
19081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19082     ac_cv_prog_ac_ct_CXX="$ac_prog"
19083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19084     break 2
19085   fi
19086 done
19087 done
19088 IFS=$as_save_IFS
19089
19090 fi
19091 fi
19092 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19093 if test -n "$ac_ct_CXX"; then
19094   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19095 echo "${ECHO_T}$ac_ct_CXX" >&6; }
19096 else
19097   { echo "$as_me:$LINENO: result: no" >&5
19098 echo "${ECHO_T}no" >&6; }
19099 fi
19100
19101
19102   test -n "$ac_ct_CXX" && break
19103 done
19104
19105   if test "x$ac_ct_CXX" = x; then
19106     CXX="g++"
19107   else
19108     case $cross_compiling:$ac_tool_warned in
19109 yes:)
19110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19111 whose name does not start with the host triplet.  If you think this
19112 configuration is useful to you, please write to autoconf@gnu.org." >&5
19113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19114 whose name does not start with the host triplet.  If you think this
19115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19116 ac_tool_warned=yes ;;
19117 esac
19118     CXX=$ac_ct_CXX
19119   fi
19120 fi
19121
19122   fi
19123 fi
19124 # Provide some information about the compiler.
19125 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19126 ac_compiler=`set X $ac_compile; echo $2`
19127 { (ac_try="$ac_compiler --version >&5"
19128 case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_compiler --version >&5") 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }
19137 { (ac_try="$ac_compiler -v >&5"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_compiler -v >&5") 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }
19147 { (ac_try="$ac_compiler -V >&5"
19148 case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153   (eval "$ac_compiler -V >&5") 2>&5
19154   ac_status=$?
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); }
19157
19158 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19159 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
19160 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19161   echo $ECHO_N "(cached) $ECHO_C" >&6
19162 else
19163   cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h.  */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h.  */
19169
19170 int
19171 main ()
19172 {
19173 #ifndef __GNUC__
19174        choke me
19175 #endif
19176
19177   ;
19178   return 0;
19179 }
19180 _ACEOF
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185   *) ac_try_echo=$ac_try;;
19186 esac
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188   (eval "$ac_compile") 2>conftest.er1
19189   ac_status=$?
19190   grep -v '^ *+' conftest.er1 >conftest.err
19191   rm -f conftest.er1
19192   cat conftest.err >&5
19193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194   (exit $ac_status); } && {
19195          test -z "$ac_cxx_werror_flag" ||
19196          test ! -s conftest.err
19197        } && test -s conftest.$ac_objext; then
19198   ac_compiler_gnu=yes
19199 else
19200   echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19202
19203         ac_compiler_gnu=no
19204 fi
19205
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19208
19209 fi
19210 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19211 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
19212 GXX=`test $ac_compiler_gnu = yes && echo yes`
19213 ac_test_CXXFLAGS=${CXXFLAGS+set}
19214 ac_save_CXXFLAGS=$CXXFLAGS
19215 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19216 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
19217 if test "${ac_cv_prog_cxx_g+set}" = set; then
19218   echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19221    ac_cxx_werror_flag=yes
19222    ac_cv_prog_cxx_g=no
19223    CXXFLAGS="-g"
19224    cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230
19231 int
19232 main ()
19233 {
19234
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (ac_try="$ac_compile"
19241 case "(($ac_try" in
19242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243   *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246   (eval "$ac_compile") 2>conftest.er1
19247   ac_status=$?
19248   grep -v '^ *+' conftest.er1 >conftest.err
19249   rm -f conftest.er1
19250   cat conftest.err >&5
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); } && {
19253          test -z "$ac_cxx_werror_flag" ||
19254          test ! -s conftest.err
19255        } && test -s conftest.$ac_objext; then
19256   ac_cv_prog_cxx_g=yes
19257 else
19258   echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19260
19261         CXXFLAGS=""
19262       cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h.  */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h.  */
19268
19269 int
19270 main ()
19271 {
19272
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext
19278 if { (ac_try="$ac_compile"
19279 case "(($ac_try" in
19280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281   *) ac_try_echo=$ac_try;;
19282 esac
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284   (eval "$ac_compile") 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } && {
19291          test -z "$ac_cxx_werror_flag" ||
19292          test ! -s conftest.err
19293        } && test -s conftest.$ac_objext; then
19294   :
19295 else
19296   echo "$as_me: failed program was:" >&5
19297 sed 's/^/| /' conftest.$ac_ext >&5
19298
19299         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19300          CXXFLAGS="-g"
19301          cat >conftest.$ac_ext <<_ACEOF
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307
19308 int
19309 main ()
19310 {
19311
19312   ;
19313   return 0;
19314 }
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320   *) ac_try_echo=$ac_try;;
19321 esac
19322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19323   (eval "$ac_compile") 2>conftest.er1
19324   ac_status=$?
19325   grep -v '^ *+' conftest.er1 >conftest.err
19326   rm -f conftest.er1
19327   cat conftest.err >&5
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); } && {
19330          test -z "$ac_cxx_werror_flag" ||
19331          test ! -s conftest.err
19332        } && test -s conftest.$ac_objext; then
19333   ac_cv_prog_cxx_g=yes
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338
19339 fi
19340
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342 fi
19343
19344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 fi
19346
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19348    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19349 fi
19350 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19351 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
19352 if test "$ac_test_CXXFLAGS" = set; then
19353   CXXFLAGS=$ac_save_CXXFLAGS
19354 elif test $ac_cv_prog_cxx_g = yes; then
19355   if test "$GXX" = yes; then
19356     CXXFLAGS="-g -O2"
19357   else
19358     CXXFLAGS="-g"
19359   fi
19360 else
19361   if test "$GXX" = yes; then
19362     CXXFLAGS="-O2"
19363   else
19364     CXXFLAGS=
19365   fi
19366 fi
19367 ac_ext=c
19368 ac_cpp='$CPP $CPPFLAGS'
19369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19372
19373
19374
19375
19376     ac_ext=cpp
19377 ac_cpp='$CXXCPP $CPPFLAGS'
19378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19381
19382     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
19383 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
19384 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
19385   echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387   cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h.  */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h.  */
19393
19394 int
19395 main ()
19396 {
19397
19398              #ifndef __INTEL_COMPILER
19399                 choke me
19400              #endif
19401
19402   ;
19403   return 0;
19404 }
19405 _ACEOF
19406 rm -f conftest.$ac_objext
19407 if { (ac_try="$ac_compile"
19408 case "(($ac_try" in
19409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410   *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413   (eval "$ac_compile") 2>conftest.er1
19414   ac_status=$?
19415   grep -v '^ *+' conftest.er1 >conftest.err
19416   rm -f conftest.er1
19417   cat conftest.err >&5
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } && {
19420          test -z "$ac_cxx_werror_flag" ||
19421          test ! -s conftest.err
19422        } && test -s conftest.$ac_objext; then
19423   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
19429
19430 fi
19431
19432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19433
19434
19435 fi
19436 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
19437 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
19438     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
19439         :; INTELCXX=yes
19440     else
19441         :;
19442     fi
19443     ac_ext=c
19444 ac_cpp='$CPP $CPPFLAGS'
19445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19448
19449
19450
19451
19452         if test "x$GCXX" != "xyes"; then
19453         if test "xCXX" = "xC"; then
19454             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
19455 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
19456 if test "${bakefile_cv_c_exto+set}" = set; then
19457   echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459   cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465
19466 int
19467 main ()
19468 {
19469
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext conftest.$ac_ext.o
19475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476   (eval $ac_compile) 2>&5
19477   ac_status=$?
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); }; then
19480   for ac_file in `(ls conftest.* 2>/dev/null)`; do
19481     case $ac_file in
19482         conftest.$ac_ext.o)
19483             bakefile_cv_c_exto="-ext o"
19484             ;;
19485         *)
19486             ;;
19487     esac
19488 done
19489 else
19490   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
19491 See \`config.log' for more details." >&5
19492 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
19493 See \`config.log' for more details." >&2;}
19494    { (exit 1); exit 1; }; }
19495
19496 fi
19497
19498 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
19499
19500 fi
19501 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
19502 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
19503 if test "x$bakefile_cv_c_exto" '!=' "x"; then
19504     if test "c" = "c"; then
19505         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
19506     fi
19507     if test "c" = "cxx"; then
19508         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
19509     fi
19510 fi
19511
19512             if test "x$bakefile_cv_c_exto" '!=' "x"; then
19513                 unset ac_cv_prog_cc_g
19514                 ac_test_CFLAGS=${CFLAGS+set}
19515 ac_save_CFLAGS=$CFLAGS
19516 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19517 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19518 if test "${ac_cv_prog_cc_g+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   ac_save_c_werror_flag=$ac_c_werror_flag
19522    ac_c_werror_flag=yes
19523    ac_cv_prog_cc_g=no
19524    CFLAGS="-g"
19525    cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h.  */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h.  */
19531
19532 int
19533 main ()
19534 {
19535
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext
19541 if { (ac_try="$ac_compile"
19542 case "(($ac_try" in
19543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544   *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547   (eval "$ac_compile") 2>conftest.er1
19548   ac_status=$?
19549   grep -v '^ *+' conftest.er1 >conftest.err
19550   rm -f conftest.er1
19551   cat conftest.err >&5
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); } && {
19554          test -z "$ac_c_werror_flag" ||
19555          test ! -s conftest.err
19556        } && test -s conftest.$ac_objext; then
19557   ac_cv_prog_cc_g=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562         CFLAGS=""
19563       cat >conftest.$ac_ext <<_ACEOF
19564 /* confdefs.h.  */
19565 _ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h.  */
19569
19570 int
19571 main ()
19572 {
19573
19574   ;
19575   return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext
19579 if { (ac_try="$ac_compile"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_compile") 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } && {
19592          test -z "$ac_c_werror_flag" ||
19593          test ! -s conftest.err
19594        } && test -s conftest.$ac_objext; then
19595   :
19596 else
19597   echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600         ac_c_werror_flag=$ac_save_c_werror_flag
19601          CFLAGS="-g"
19602          cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h.  */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h.  */
19608
19609 int
19610 main ()
19611 {
19612
19613   ;
19614   return 0;
19615 }
19616 _ACEOF
19617 rm -f conftest.$ac_objext
19618 if { (ac_try="$ac_compile"
19619 case "(($ac_try" in
19620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19621   *) ac_try_echo=$ac_try;;
19622 esac
19623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19624   (eval "$ac_compile") 2>conftest.er1
19625   ac_status=$?
19626   grep -v '^ *+' conftest.er1 >conftest.err
19627   rm -f conftest.er1
19628   cat conftest.err >&5
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); } && {
19631          test -z "$ac_c_werror_flag" ||
19632          test ! -s conftest.err
19633        } && test -s conftest.$ac_objext; then
19634   ac_cv_prog_cc_g=yes
19635 else
19636   echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19638
19639
19640 fi
19641
19642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 fi
19644
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19646 fi
19647
19648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649    ac_c_werror_flag=$ac_save_c_werror_flag
19650 fi
19651 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19652 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19653 if test "$ac_test_CFLAGS" = set; then
19654   CFLAGS=$ac_save_CFLAGS
19655 elif test $ac_cv_prog_cc_g = yes; then
19656   if test "$GCC" = yes; then
19657     CFLAGS="-g -O2"
19658   else
19659     CFLAGS="-g"
19660   fi
19661 else
19662   if test "$GCC" = yes; then
19663     CFLAGS="-O2"
19664   else
19665     CFLAGS=
19666   fi
19667 fi
19668             fi
19669         fi
19670
19671                         case `uname -s` in
19672             AIX*)
19673
19674
19675     ac_ext=cpp
19676 ac_cpp='$CXXCPP $CPPFLAGS'
19677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19680
19681     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19682 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19683 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19684   echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686   cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h.  */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h.  */
19692
19693 int
19694 main ()
19695 {
19696
19697              #ifndef __xlC__
19698                 choke me
19699              #endif
19700
19701   ;
19702   return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext
19706 if { (ac_try="$ac_compile"
19707 case "(($ac_try" in
19708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19709   *) ac_try_echo=$ac_try;;
19710 esac
19711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19712   (eval "$ac_compile") 2>conftest.er1
19713   ac_status=$?
19714   grep -v '^ *+' conftest.er1 >conftest.err
19715   rm -f conftest.er1
19716   cat conftest.err >&5
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); } && {
19719          test -z "$ac_cxx_werror_flag" ||
19720          test ! -s conftest.err
19721        } && test -s conftest.$ac_objext; then
19722   bakefile_cv_cxx_compiler___xlC__=yes
19723 else
19724   echo "$as_me: failed program was:" >&5
19725 sed 's/^/| /' conftest.$ac_ext >&5
19726
19727         bakefile_cv_cxx_compiler___xlC__=no
19728
19729 fi
19730
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19732
19733
19734 fi
19735 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19736 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19737     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19738         :; XLCXX=yes
19739     else
19740         :;
19741     fi
19742     ac_ext=c
19743 ac_cpp='$CPP $CPPFLAGS'
19744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19747
19748
19749
19750                 ;;
19751
19752             Darwin)
19753
19754
19755     ac_ext=cpp
19756 ac_cpp='$CXXCPP $CPPFLAGS'
19757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19760
19761     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
19762 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
19763 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
19764   echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766   cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772
19773 int
19774 main ()
19775 {
19776
19777              #ifndef __MWERKS__
19778                 choke me
19779              #endif
19780
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (ac_try="$ac_compile"
19787 case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_compile") 2>conftest.er1
19793   ac_status=$?
19794   grep -v '^ *+' conftest.er1 >conftest.err
19795   rm -f conftest.er1
19796   cat conftest.err >&5
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } && {
19799          test -z "$ac_cxx_werror_flag" ||
19800          test ! -s conftest.err
19801        } && test -s conftest.$ac_objext; then
19802   bakefile_cv_cxx_compiler___MWERKS__=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807         bakefile_cv_cxx_compiler___MWERKS__=no
19808
19809 fi
19810
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812
19813
19814 fi
19815 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19816 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
19817     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19818         :; MWCXX=yes
19819     else
19820         :;
19821     fi
19822     ac_ext=c
19823 ac_cpp='$CPP $CPPFLAGS'
19824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19827
19828
19829
19830
19831
19832     ac_ext=cpp
19833 ac_cpp='$CXXCPP $CPPFLAGS'
19834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19837
19838     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19839 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19840 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849
19850 int
19851 main ()
19852 {
19853
19854              #ifndef __xlC__
19855                 choke me
19856              #endif
19857
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext
19863 if { (ac_try="$ac_compile"
19864 case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869   (eval "$ac_compile") 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } && {
19876          test -z "$ac_cxx_werror_flag" ||
19877          test ! -s conftest.err
19878        } && test -s conftest.$ac_objext; then
19879   bakefile_cv_cxx_compiler___xlC__=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884         bakefile_cv_cxx_compiler___xlC__=no
19885
19886 fi
19887
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889
19890
19891 fi
19892 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19893 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19894     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19895         :; XLCXX=yes
19896     else
19897         :;
19898     fi
19899     ac_ext=c
19900 ac_cpp='$CPP $CPPFLAGS'
19901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19904
19905
19906
19907                 ;;
19908
19909             IRIX*)
19910
19911
19912     ac_ext=cpp
19913 ac_cpp='$CXXCPP $CPPFLAGS'
19914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19917
19918     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19919 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19920 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19921   echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923   cat >conftest.$ac_ext <<_ACEOF
19924 /* confdefs.h.  */
19925 _ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h.  */
19929
19930 int
19931 main ()
19932 {
19933
19934              #ifndef _SGI_COMPILER_VERSION
19935                 choke me
19936              #endif
19937
19938   ;
19939   return 0;
19940 }
19941 _ACEOF
19942 rm -f conftest.$ac_objext
19943 if { (ac_try="$ac_compile"
19944 case "(($ac_try" in
19945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946   *) ac_try_echo=$ac_try;;
19947 esac
19948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949   (eval "$ac_compile") 2>conftest.er1
19950   ac_status=$?
19951   grep -v '^ *+' conftest.er1 >conftest.err
19952   rm -f conftest.er1
19953   cat conftest.err >&5
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); } && {
19956          test -z "$ac_cxx_werror_flag" ||
19957          test ! -s conftest.err
19958        } && test -s conftest.$ac_objext; then
19959   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19960 else
19961   echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19963
19964         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19965
19966 fi
19967
19968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19969
19970
19971 fi
19972 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19973 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19974     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19975         :; SGICXX=yes
19976     else
19977         :;
19978     fi
19979     ac_ext=c
19980 ac_cpp='$CPP $CPPFLAGS'
19981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19984
19985
19986
19987                 ;;
19988
19989             Linux*)
19990
19991
19992     ac_ext=cpp
19993 ac_cpp='$CXXCPP $CPPFLAGS'
19994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19997
19998     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19999 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
20000 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 else
20003   cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009
20010 int
20011 main ()
20012 {
20013
20014              #ifndef __SUNPRO_CC
20015                 choke me
20016              #endif
20017
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext
20023 if { (ac_try="$ac_compile"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_compile") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } && {
20036          test -z "$ac_cxx_werror_flag" ||
20037          test ! -s conftest.err
20038        } && test -s conftest.$ac_objext; then
20039   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
20040 else
20041   echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20043
20044         bakefile_cv_cxx_compiler___SUNPRO_CC=no
20045
20046 fi
20047
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049
20050
20051 fi
20052 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
20053 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
20054     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
20055         :; SUNCXX=yes
20056     else
20057         :;
20058     fi
20059     ac_ext=c
20060 ac_cpp='$CPP $CPPFLAGS'
20061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20064
20065
20066
20067                 ;;
20068
20069             HP-UX*)
20070
20071
20072     ac_ext=cpp
20073 ac_cpp='$CXXCPP $CPPFLAGS'
20074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20077
20078     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
20079 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
20080 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
20081   echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083   cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089
20090 int
20091 main ()
20092 {
20093
20094              #ifndef __HP_aCC
20095                 choke me
20096              #endif
20097
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext
20103 if { (ac_try="$ac_compile"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20109   (eval "$ac_compile") 2>conftest.er1
20110   ac_status=$?
20111   grep -v '^ *+' conftest.er1 >conftest.err
20112   rm -f conftest.er1
20113   cat conftest.err >&5
20114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115   (exit $ac_status); } && {
20116          test -z "$ac_cxx_werror_flag" ||
20117          test ! -s conftest.err
20118        } && test -s conftest.$ac_objext; then
20119   bakefile_cv_cxx_compiler___HP_aCC=yes
20120 else
20121   echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20123
20124         bakefile_cv_cxx_compiler___HP_aCC=no
20125
20126 fi
20127
20128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129
20130
20131 fi
20132 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
20133 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
20134     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
20135         :; HPCXX=yes
20136     else
20137         :;
20138     fi
20139     ac_ext=c
20140 ac_cpp='$CPP $CPPFLAGS'
20141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20144
20145
20146
20147                 ;;
20148
20149             OSF1)
20150
20151
20152     ac_ext=cpp
20153 ac_cpp='$CXXCPP $CPPFLAGS'
20154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20157
20158     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
20159 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
20160 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
20161   echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163   cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169
20170 int
20171 main ()
20172 {
20173
20174              #ifndef __DECCXX
20175                 choke me
20176              #endif
20177
20178   ;
20179   return 0;
20180 }
20181 _ACEOF
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186   *) ac_try_echo=$ac_try;;
20187 esac
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189   (eval "$ac_compile") 2>conftest.er1
20190   ac_status=$?
20191   grep -v '^ *+' conftest.er1 >conftest.err
20192   rm -f conftest.er1
20193   cat conftest.err >&5
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); } && {
20196          test -z "$ac_cxx_werror_flag" ||
20197          test ! -s conftest.err
20198        } && test -s conftest.$ac_objext; then
20199   bakefile_cv_cxx_compiler___DECCXX=yes
20200 else
20201   echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204         bakefile_cv_cxx_compiler___DECCXX=no
20205
20206 fi
20207
20208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20209
20210
20211 fi
20212 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
20213 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
20214     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
20215         :; COMPAQCXX=yes
20216     else
20217         :;
20218     fi
20219     ac_ext=c
20220 ac_cpp='$CPP $CPPFLAGS'
20221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20224
20225
20226
20227                 ;;
20228
20229             SunOS)
20230
20231
20232     ac_ext=cpp
20233 ac_cpp='$CXXCPP $CPPFLAGS'
20234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20237
20238     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
20239 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
20240 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
20241   echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243   cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h.  */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h.  */
20249
20250 int
20251 main ()
20252 {
20253
20254              #ifndef __SUNPRO_CC
20255                 choke me
20256              #endif
20257
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (ac_try="$ac_compile"
20264 case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269   (eval "$ac_compile") 2>conftest.er1
20270   ac_status=$?
20271   grep -v '^ *+' conftest.er1 >conftest.err
20272   rm -f conftest.er1
20273   cat conftest.err >&5
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } && {
20276          test -z "$ac_cxx_werror_flag" ||
20277          test ! -s conftest.err
20278        } && test -s conftest.$ac_objext; then
20279   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
20280 else
20281   echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20283
20284         bakefile_cv_cxx_compiler___SUNPRO_CC=no
20285
20286 fi
20287
20288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20289
20290
20291 fi
20292 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
20293 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
20294     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
20295         :; SUNCXX=yes
20296     else
20297         :;
20298     fi
20299     ac_ext=c
20300 ac_cpp='$CPP $CPPFLAGS'
20301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20304
20305
20306
20307                 ;;
20308         esac
20309     fi
20310
20311
20312
20313 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
20314     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
20315 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
20316    { (exit 1); exit 1; }; }
20317 fi
20318
20319 if test "x$SUNCXX" != xyes; then
20320     if test -n "$ac_tool_prefix"; then
20321   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20322 set dummy ${ac_tool_prefix}ar; ac_word=$2
20323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20325 if test "${ac_cv_prog_AR+set}" = set; then
20326   echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328   if test -n "$AR"; then
20329   ac_cv_prog_AR="$AR" # Let the user override the test.
20330 else
20331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20332 for as_dir in $PATH
20333 do
20334   IFS=$as_save_IFS
20335   test -z "$as_dir" && as_dir=.
20336   for ac_exec_ext in '' $ac_executable_extensions; do
20337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20338     ac_cv_prog_AR="${ac_tool_prefix}ar"
20339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20340     break 2
20341   fi
20342 done
20343 done
20344 IFS=$as_save_IFS
20345
20346 fi
20347 fi
20348 AR=$ac_cv_prog_AR
20349 if test -n "$AR"; then
20350   { echo "$as_me:$LINENO: result: $AR" >&5
20351 echo "${ECHO_T}$AR" >&6; }
20352 else
20353   { echo "$as_me:$LINENO: result: no" >&5
20354 echo "${ECHO_T}no" >&6; }
20355 fi
20356
20357
20358 fi
20359 if test -z "$ac_cv_prog_AR"; then
20360   ac_ct_AR=$AR
20361   # Extract the first word of "ar", so it can be a program name with args.
20362 set dummy ar; ac_word=$2
20363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20365 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20366   echo $ECHO_N "(cached) $ECHO_C" >&6
20367 else
20368   if test -n "$ac_ct_AR"; then
20369   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20370 else
20371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20372 for as_dir in $PATH
20373 do
20374   IFS=$as_save_IFS
20375   test -z "$as_dir" && as_dir=.
20376   for ac_exec_ext in '' $ac_executable_extensions; do
20377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20378     ac_cv_prog_ac_ct_AR="ar"
20379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20380     break 2
20381   fi
20382 done
20383 done
20384 IFS=$as_save_IFS
20385
20386 fi
20387 fi
20388 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20389 if test -n "$ac_ct_AR"; then
20390   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20391 echo "${ECHO_T}$ac_ct_AR" >&6; }
20392 else
20393   { echo "$as_me:$LINENO: result: no" >&5
20394 echo "${ECHO_T}no" >&6; }
20395 fi
20396
20397   if test "x$ac_ct_AR" = x; then
20398     AR=""
20399   else
20400     case $cross_compiling:$ac_tool_warned in
20401 yes:)
20402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20403 whose name does not start with the host triplet.  If you think this
20404 configuration is useful to you, please write to autoconf@gnu.org." >&5
20405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20406 whose name does not start with the host triplet.  If you think this
20407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20408 ac_tool_warned=yes ;;
20409 esac
20410     AR=$ac_ct_AR
20411   fi
20412 else
20413   AR="$ac_cv_prog_AR"
20414 fi
20415
20416     if test "x$AR" = "x" ; then
20417         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
20418 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
20419    { (exit 1); exit 1; }; }
20420     fi
20421 fi
20422
20423 retest_macosx_linking=no
20424
20425 #if test "$wxUSE_MAC" = 1; then
20426     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
20427                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
20428             # Implicitly turn on the new --with-macosx-sdk using the default
20429             # SDK which provides the behavior this option has always had.
20430             if test "x$wxUSE_MACOSX_SDK" = "x"; then
20431                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
20432 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
20433                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
20434 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
20435                 wxUSE_MACOSX_SDK=yes
20436             fi
20437         else
20438             # Complain to user if he specified an argument to --enable-universal_binary
20439             # and also 1) specified --with-macosx-sdk using the default (yes) or
20440             # 2) specified --with-macosx-sdk using a path or 3) specified
20441             # --without-macosx-sdk (no).
20442             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
20443                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20444 See \`config.log' for more details." >&5
20445 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20446 See \`config.log' for more details." >&2;}
20447    { (exit 1); exit 1; }; }
20448             else
20449                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
20450                 # special-case the empty string because the below test simply
20451                 # converts "no" to the empty string anyway.
20452                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
20453                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
20454 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
20455             fi
20456         fi
20457                 OSX_UNIV_OPTS="-arch ppc -arch i386"
20458         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
20459         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
20460         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
20461                                                                                                                 retest_macosx_linking=yes
20462
20463                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
20464 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
20465         bk_use_pch=no
20466     fi
20467 #fi
20468
20469 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
20470     wxUSE_MACOSX_SDK=
20471 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
20472     # TODO: Search for most recent SDK and use it.
20473     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
20474 fi
20475
20476
20477 if test "x$wxUSE_MACOSX_SDK" != "x"; then
20478     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
20479 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
20480     if ! test -d "$wxUSE_MACOSX_SDK"; then
20481         { { echo "$as_me:$LINENO: error: not found
20482 See \`config.log' for more details." >&5
20483 echo "$as_me: error: not found
20484 See \`config.log' for more details." >&2;}
20485    { (exit 1); exit 1; }; }
20486     else
20487         { echo "$as_me:$LINENO: result: exists" >&5
20488 echo "${ECHO_T}exists" >&6; }
20489     fi
20490     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
20491     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
20492     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
20493     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
20494     retest_macosx_linking=yes
20495             fi
20496
20497 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
20498     wxUSE_MACOSX_VERSION_MIN=
20499 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
20500     if test "x$wxUSE_MACOSX_SDK" != "x"; then
20501         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
20502 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
20503
20504         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/'`
20505
20506         # If that failed, try again with the new key
20507         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
20508
20509             MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
20510
20511         fi
20512
20513         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
20514             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
20515             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
20516 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
20517         else
20518             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
20519 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
20520             wxUSE_MACOSX_VERSION_MIN=
20521         fi
20522     else
20523         wxUSE_MACOSX_VERSION_MIN=
20524     fi
20525 fi
20526
20527 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
20528     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
20529     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
20530     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
20531     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
20532     retest_macosx_linking=yes
20533 fi
20534
20535 if test "x$retest_macosx_linking" = "xyes"; then
20536     ac_ext=c
20537 ac_cpp='$CPP $CPPFLAGS'
20538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20541
20542     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
20543 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
20544     cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550
20551 int
20552 main ()
20553 {
20554
20555   ;
20556   return 0;
20557 }
20558 _ACEOF
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563   *) ac_try_echo=$ac_try;;
20564 esac
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566   (eval "$ac_link") 2>conftest.er1
20567   ac_status=$?
20568   grep -v '^ *+' conftest.er1 >conftest.err
20569   rm -f conftest.er1
20570   cat conftest.err >&5
20571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572   (exit $ac_status); } && {
20573          test -z "$ac_c_werror_flag" ||
20574          test ! -s conftest.err
20575        } && test -s conftest$ac_exeext &&
20576        $as_test_x conftest$ac_exeext; then
20577   { echo "$as_me:$LINENO: result: yes" >&5
20578 echo "${ECHO_T}yes" >&6; }
20579 else
20580   echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20584 See \`config.log' for more details." >&5
20585 echo "$as_me: error: no.  Try a different SDK
20586 See \`config.log' for more details." >&2;}
20587    { (exit 1); exit 1; }; }; exit 1
20588 fi
20589
20590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20591       conftest$ac_exeext conftest.$ac_ext
20592     ac_ext=c
20593 ac_cpp='$CPP $CPPFLAGS'
20594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20597
20598
20599     ac_ext=cpp
20600 ac_cpp='$CXXCPP $CPPFLAGS'
20601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20604
20605     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
20606 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
20607     cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h.  */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h.  */
20613
20614 int
20615 main ()
20616 {
20617
20618   ;
20619   return 0;
20620 }
20621 _ACEOF
20622 rm -f conftest.$ac_objext conftest$ac_exeext
20623 if { (ac_try="$ac_link"
20624 case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629   (eval "$ac_link") 2>conftest.er1
20630   ac_status=$?
20631   grep -v '^ *+' conftest.er1 >conftest.err
20632   rm -f conftest.er1
20633   cat conftest.err >&5
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); } && {
20636          test -z "$ac_cxx_werror_flag" ||
20637          test ! -s conftest.err
20638        } && test -s conftest$ac_exeext &&
20639        $as_test_x conftest$ac_exeext; then
20640   { echo "$as_me:$LINENO: result: yes" >&5
20641 echo "${ECHO_T}yes" >&6; }
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20647 See \`config.log' for more details." >&5
20648 echo "$as_me: error: no.  Try a different SDK
20649 See \`config.log' for more details." >&2;}
20650    { (exit 1); exit 1; }; }; exit 1
20651 fi
20652
20653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20654       conftest$ac_exeext conftest.$ac_ext
20655     ac_ext=c
20656 ac_cpp='$CPP $CPPFLAGS'
20657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20660
20661 fi
20662
20663
20664 case "${host}" in
20665
20666                 *-*-darwin* )
20667         INSTALL_PROGRAM="cp -fp"
20668         INSTALL_DATA="cp -fp"
20669         ;;
20670     *)
20671         ;;
20672 esac
20673
20674
20675 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20676     CXXFLAGS="-qunique $CXXFLAGS"
20677 fi
20678
20679 case "${host}" in
20680   powerpc-*-darwin* )
20681     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20682 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
20683     cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h.  */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h.  */
20689
20690 int
20691 main ()
20692 {
20693 #ifndef __POWERPC__
20694         choke me for lack of PowerPC
20695 #endif
20696
20697   ;
20698   return 0;
20699 }
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_compile") 2>conftest.er1
20709   ac_status=$?
20710   grep -v '^ *+' conftest.er1 >conftest.err
20711   rm -f conftest.er1
20712   cat conftest.err >&5
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); } && {
20715          test -z "$ac_c_werror_flag" ||
20716          test ! -s conftest.err
20717        } && test -s conftest.$ac_objext; then
20718   { echo "$as_me:$LINENO: result: yes" >&5
20719 echo "${ECHO_T}yes" >&6; }
20720 else
20721   echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724         { echo "$as_me:$LINENO: result: no" >&5
20725 echo "${ECHO_T}no" >&6; }
20726         cat >>confdefs.h <<\_ACEOF
20727 #define __POWERPC__ 1
20728 _ACEOF
20729
20730
20731 fi
20732
20733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20734   ;;
20735 esac
20736
20737 case "${host}" in
20738   *-*-darwin* )
20739     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20740 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20741     cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20747 #include <CoreFoundation/CFBase.h>
20748
20749 int
20750 main ()
20751 {
20752
20753   ;
20754   return 0;
20755 }
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (ac_try="$ac_compile"
20759 case "(($ac_try" in
20760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761   *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764   (eval "$ac_compile") 2>conftest.er1
20765   ac_status=$?
20766   grep -v '^ *+' conftest.er1 >conftest.err
20767   rm -f conftest.er1
20768   cat conftest.err >&5
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } && {
20771          test -z "$ac_c_werror_flag" ||
20772          test ! -s conftest.err
20773        } && test -s conftest.$ac_objext; then
20774   { echo "$as_me:$LINENO: result: yes" >&5
20775 echo "${ECHO_T}yes" >&6; }
20776 else
20777   echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20779
20780         { echo "$as_me:$LINENO: result: no" >&5
20781 echo "${ECHO_T}no" >&6; }
20782         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20783 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20784         cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h.  */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h.  */
20790 #define __CF_USE_FRAMEWORK_INCLUDES__
20791 #include <CoreFoundation/CFBase.h>
20792
20793 int
20794 main ()
20795 {
20796
20797   ;
20798   return 0;
20799 }
20800 _ACEOF
20801 rm -f conftest.$ac_objext
20802 if { (ac_try="$ac_compile"
20803 case "(($ac_try" in
20804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805   *) ac_try_echo=$ac_try;;
20806 esac
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808   (eval "$ac_compile") 2>conftest.er1
20809   ac_status=$?
20810   grep -v '^ *+' conftest.er1 >conftest.err
20811   rm -f conftest.er1
20812   cat conftest.err >&5
20813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); } && {
20815          test -z "$ac_c_werror_flag" ||
20816          test ! -s conftest.err
20817        } && test -s conftest.$ac_objext; then
20818   { echo "$as_me:$LINENO: result: yes" >&5
20819 echo "${ECHO_T}yes" >&6; }
20820                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20826 See \`config.log' for more details." >&5
20827 echo "$as_me: error: no.  CoreFoundation not available.
20828 See \`config.log' for more details." >&2;}
20829    { (exit 1); exit 1; }; }
20830
20831 fi
20832
20833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20834
20835
20836 fi
20837
20838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839   ;;
20840 esac
20841
20842 wants_win32=0
20843 doesnt_want_win32=0
20844 case "${host}" in
20845   *-*-cygwin*)
20846       if test "$wxUSE_MSW" = 1 ; then
20847         wants_win32=1
20848       else
20849                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20850 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20851 if test "${wx_cv_nocygwin+set}" = set; then
20852   echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854
20855                 cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861
20862 int
20863 main ()
20864 {
20865
20866                         #ifdef __MINGW32__
20867                             choke me
20868                         #endif
20869
20870   ;
20871   return 0;
20872 }
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (ac_try="$ac_compile"
20876 case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_compile") 2>conftest.er1
20882   ac_status=$?
20883   grep -v '^ *+' conftest.er1 >conftest.err
20884   rm -f conftest.er1
20885   cat conftest.err >&5
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); } && {
20888          test -z "$ac_c_werror_flag" ||
20889          test ! -s conftest.err
20890        } && test -s conftest.$ac_objext; then
20891   wx_cv_nocygwin=no
20892 else
20893   echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896         wx_cv_nocygwin=yes
20897
20898 fi
20899
20900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901
20902
20903 fi
20904 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20905 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20906
20907         if test "$wx_cv_nocygwin" = "yes"; then
20908             wants_win32=1
20909         else
20910             doesnt_want_win32=1
20911         fi
20912       fi
20913       if test "$wants_win32" = 1 ; then
20914         BAKEFILE_FORCE_PLATFORM=win32
20915       fi
20916   ;;
20917   *-*-mingw*)
20918       wants_win32=1
20919   ;;
20920 esac
20921
20922 if test "$wxUSE_WINE" = "yes"; then
20923     wants_win32=1
20924     LDFLAGS_GUI="-mwindows"
20925 fi
20926
20927 if test "$wants_win32" = 1 ; then
20928     USE_UNIX=0
20929     USE_WIN32=1
20930     cat >>confdefs.h <<\_ACEOF
20931 #define __WIN32__ 1
20932 _ACEOF
20933
20934     cat >>confdefs.h <<\_ACEOF
20935 #define __WIN95__ 1
20936 _ACEOF
20937
20938     cat >>confdefs.h <<\_ACEOF
20939 #define __WINDOWS__ 1
20940 _ACEOF
20941
20942     cat >>confdefs.h <<\_ACEOF
20943 #define __GNUWIN32__ 1
20944 _ACEOF
20945
20946     cat >>confdefs.h <<\_ACEOF
20947 #define STRICT 1
20948 _ACEOF
20949
20950 fi
20951 if test "$doesnt_want_win32" = 1 ; then
20952     USE_UNIX=1
20953     USE_WIN32=0
20954 fi
20955
20956 if test "$USE_UNIX" = 1 ; then
20957     wxUSE_UNIX=yes
20958     cat >>confdefs.h <<\_ACEOF
20959 #define __UNIX__ 1
20960 _ACEOF
20961
20962 fi
20963
20964 case "${host}" in
20965   *-pc-os2_emx | *-pc-os2-emx )
20966                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
20967                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
20968 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
20969 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
20970   echo $ECHO_N "(cached) $ECHO_C" >&6
20971 else
20972   ac_check_lib_save_LIBS=$LIBS
20973 LIBS="-lcExt  $LIBS"
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h.  */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h.  */
20980
20981 /* Override any GCC internal prototype to avoid an error.
20982    Use char because int might match the return type of a GCC
20983    builtin and then its argument prototype would still apply.  */
20984 #ifdef __cplusplus
20985 extern "C"
20986 #endif
20987 char drand48 ();
20988 int
20989 main ()
20990 {
20991 return drand48 ();
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 rm -f conftest.$ac_objext conftest$ac_exeext
20997 if { (ac_try="$ac_link"
20998 case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_link") 2>conftest.er1
21004   ac_status=$?
21005   grep -v '^ *+' conftest.er1 >conftest.err
21006   rm -f conftest.er1
21007   cat conftest.err >&5
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); } && {
21010          test -z "$ac_c_werror_flag" ||
21011          test ! -s conftest.err
21012        } && test -s conftest$ac_exeext &&
21013        $as_test_x conftest$ac_exeext; then
21014   ac_cv_lib_cExt_drand48=yes
21015 else
21016   echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21018
21019         ac_cv_lib_cExt_drand48=no
21020 fi
21021
21022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21023       conftest$ac_exeext conftest.$ac_ext
21024 LIBS=$ac_check_lib_save_LIBS
21025 fi
21026 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
21027 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
21028 if test $ac_cv_lib_cExt_drand48 = yes; then
21029   LIBS="$LIBS -lcExt"
21030 fi
21031
21032       else
21033                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
21034       fi
21035                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
21036 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
21037 if test "${wx_cv_gccversion+set}" = set; then
21038   echo $ECHO_N "(cached) $ECHO_C" >&6
21039 else
21040
21041           if test "$cross_compiling" = yes; then
21042                 wx_cv_gccversion="EMX2"
21043
21044 else
21045   cat >conftest.$ac_ext <<_ACEOF
21046 /* confdefs.h.  */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h.  */
21051
21052                   #include <stdio.h>
21053
21054                   int main()
21055                   {
21056                       FILE *f=fopen("conftestval", "w");
21057                       if (!f) exit(1);
21058                       fprintf(f,
21059                   #if (__GNUC__ < 3)
21060                               "EMX2"
21061                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
21062                               "EMX3"
21063                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
21064                               "Innotek5"
21065                   #else
21066                               "Innotek6"
21067                   #endif
21068                       );
21069                       exit(0);
21070                   }
21071
21072 _ACEOF
21073 rm -f conftest$ac_exeext
21074 if { (ac_try="$ac_link"
21075 case "(($ac_try" in
21076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077   *) ac_try_echo=$ac_try;;
21078 esac
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080   (eval "$ac_link") 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21084   { (case "(($ac_try" in
21085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086   *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089   (eval "$ac_try") 2>&5
21090   ac_status=$?
21091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092   (exit $ac_status); }; }; then
21093   wx_cv_gccversion=`cat conftestval`
21094 else
21095   echo "$as_me: program exited with status $ac_status" >&5
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21098
21099 ( exit $ac_status )
21100 wx_cv_gccversion="EMX2"
21101 fi
21102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21103 fi
21104
21105
21106
21107 fi
21108 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
21109 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
21110       if test "$wx_cv_gccversion" = "EMX2"; then
21111           LIBS="$LIBS -lstdcpp"
21112           LDFLAGS="$LDFLAGS -Zsysv-signals"
21113       else
21114           if test "$wx_cv_gccversion" = "EMX3"; then
21115               LIBS="$LIBS -lstdcxx -lgcc"
21116               LDFLAGS="$LDFLAGS -Zsysv-signals"
21117           else
21118               LIBS="$LIBS -lstdc++"
21119           fi
21120       fi
21121       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
21122         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
21123 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
21124         wxUSE_OMF=yes
21125         enable_omf=yes
21126       fi
21127         ;;
21128   *)
21129
21130       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
21131 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
21132 if test "${ac_cv_string_strcasecmp+set}" = set; then
21133   echo $ECHO_N "(cached) $ECHO_C" >&6
21134 else
21135
21136           cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h.  */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h.  */
21142
21143               #include <string.h>
21144
21145 int
21146 main ()
21147 {
21148
21149                   strcasecmp("foo", "bar");
21150
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (ac_try="$ac_link"
21157 case "(($ac_try" in
21158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159   *) ac_try_echo=$ac_try;;
21160 esac
21161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162   (eval "$ac_link") 2>conftest.er1
21163   ac_status=$?
21164   grep -v '^ *+' conftest.er1 >conftest.err
21165   rm -f conftest.er1
21166   cat conftest.err >&5
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); } && {
21169          test -z "$ac_c_werror_flag" ||
21170          test ! -s conftest.err
21171        } && test -s conftest$ac_exeext &&
21172        $as_test_x conftest$ac_exeext; then
21173   ac_cv_string_strcasecmp=yes
21174 else
21175   echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21177
21178         ac_cv_string_strcasecmp=no
21179
21180 fi
21181
21182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21183       conftest$ac_exeext conftest.$ac_ext
21184
21185 fi
21186 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
21187 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
21188
21189       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
21190           cat >>confdefs.h <<\_ACEOF
21191 #define HAVE_STRCASECMP_IN_STRING_H 1
21192 _ACEOF
21193
21194       else
21195           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
21196 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
21197 if test "${ac_cv_strings_strcasecmp+set}" = set; then
21198   echo $ECHO_N "(cached) $ECHO_C" >&6
21199 else
21200
21201               cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h.  */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h.  */
21207
21208                   #include <strings.h>
21209
21210 int
21211 main ()
21212 {
21213
21214                       strcasecmp("foo", "bar");
21215
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224   *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227   (eval "$ac_link") 2>conftest.er1
21228   ac_status=$?
21229   grep -v '^ *+' conftest.er1 >conftest.err
21230   rm -f conftest.er1
21231   cat conftest.err >&5
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); } && {
21234          test -z "$ac_c_werror_flag" ||
21235          test ! -s conftest.err
21236        } && test -s conftest$ac_exeext &&
21237        $as_test_x conftest$ac_exeext; then
21238   ac_cv_strings_strcasecmp=yes
21239 else
21240   echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243         ac_cv_strings_strcasecmp=no
21244
21245 fi
21246
21247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21248       conftest$ac_exeext conftest.$ac_ext
21249
21250 fi
21251 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
21252 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
21253
21254           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
21255               cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_STRCASECMP_IN_STRINGS_H 1
21257 _ACEOF
21258
21259           else
21260               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
21261 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
21262    { (exit 1); exit 1; }; }
21263           fi
21264       fi
21265
21266         ;;
21267 esac
21268
21269
21270 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21271 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21272 if test "${ac_cv_header_stdc+set}" = set; then
21273   echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275   cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 #include <stdlib.h>
21282 #include <stdarg.h>
21283 #include <string.h>
21284 #include <float.h>
21285
21286 int
21287 main ()
21288 {
21289
21290   ;
21291   return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298   *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301   (eval "$ac_compile") 2>conftest.er1
21302   ac_status=$?
21303   grep -v '^ *+' conftest.er1 >conftest.err
21304   rm -f conftest.er1
21305   cat conftest.err >&5
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } && {
21308          test -z "$ac_c_werror_flag" ||
21309          test ! -s conftest.err
21310        } && test -s conftest.$ac_objext; then
21311   ac_cv_header_stdc=yes
21312 else
21313   echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21315
21316         ac_cv_header_stdc=no
21317 fi
21318
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320
21321 if test $ac_cv_header_stdc = yes; then
21322   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21323   cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329 #include <string.h>
21330
21331 _ACEOF
21332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21333   $EGREP "memchr" >/dev/null 2>&1; then
21334   :
21335 else
21336   ac_cv_header_stdc=no
21337 fi
21338 rm -f conftest*
21339
21340 fi
21341
21342 if test $ac_cv_header_stdc = yes; then
21343   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21344   cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h.  */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h.  */
21350 #include <stdlib.h>
21351
21352 _ACEOF
21353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21354   $EGREP "free" >/dev/null 2>&1; then
21355   :
21356 else
21357   ac_cv_header_stdc=no
21358 fi
21359 rm -f conftest*
21360
21361 fi
21362
21363 if test $ac_cv_header_stdc = yes; then
21364   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21365   if test "$cross_compiling" = yes; then
21366   :
21367 else
21368   cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374 #include <ctype.h>
21375 #include <stdlib.h>
21376 #if ((' ' & 0x0FF) == 0x020)
21377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21379 #else
21380 # define ISLOWER(c) \
21381                    (('a' <= (c) && (c) <= 'i') \
21382                      || ('j' <= (c) && (c) <= 'r') \
21383                      || ('s' <= (c) && (c) <= 'z'))
21384 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21385 #endif
21386
21387 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21388 int
21389 main ()
21390 {
21391   int i;
21392   for (i = 0; i < 256; i++)
21393     if (XOR (islower (i), ISLOWER (i))
21394         || toupper (i) != TOUPPER (i))
21395       return 2;
21396   return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest$ac_exeext
21400 if { (ac_try="$ac_link"
21401 case "(($ac_try" in
21402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403   *) ac_try_echo=$ac_try;;
21404 esac
21405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21406   (eval "$ac_link") 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21410   { (case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_try") 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); }; }; then
21419   :
21420 else
21421   echo "$as_me: program exited with status $ac_status" >&5
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425 ( exit $ac_status )
21426 ac_cv_header_stdc=no
21427 fi
21428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21429 fi
21430
21431
21432 fi
21433 fi
21434 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21435 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21436 if test $ac_cv_header_stdc = yes; then
21437
21438 cat >>confdefs.h <<\_ACEOF
21439 #define STDC_HEADERS 1
21440 _ACEOF
21441
21442 fi
21443
21444 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21455                   inttypes.h stdint.h unistd.h
21456 do
21457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21461   echo $ECHO_N "(cached) $ECHO_C" >&6
21462 else
21463   cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469 $ac_includes_default
21470
21471 #include <$ac_header>
21472 _ACEOF
21473 rm -f conftest.$ac_objext
21474 if { (ac_try="$ac_compile"
21475 case "(($ac_try" in
21476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477   *) ac_try_echo=$ac_try;;
21478 esac
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480   (eval "$ac_compile") 2>conftest.er1
21481   ac_status=$?
21482   grep -v '^ *+' conftest.er1 >conftest.err
21483   rm -f conftest.er1
21484   cat conftest.err >&5
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); } && {
21487          test -z "$ac_c_werror_flag" ||
21488          test ! -s conftest.err
21489        } && test -s conftest.$ac_objext; then
21490   eval "$as_ac_Header=yes"
21491 else
21492   echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21494
21495         eval "$as_ac_Header=no"
21496 fi
21497
21498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21499 fi
21500 ac_res=`eval echo '${'$as_ac_Header'}'`
21501                { echo "$as_me:$LINENO: result: $ac_res" >&5
21502 echo "${ECHO_T}$ac_res" >&6; }
21503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21504   cat >>confdefs.h <<_ACEOF
21505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21506 _ACEOF
21507
21508 fi
21509
21510 done
21511
21512
21513
21514
21515 for ac_header in langinfo.h wchar.h
21516 do
21517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21521   echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523   cat >conftest.$ac_ext <<_ACEOF
21524 /* confdefs.h.  */
21525 _ACEOF
21526 cat confdefs.h >>conftest.$ac_ext
21527 cat >>conftest.$ac_ext <<_ACEOF
21528 /* end confdefs.h.  */
21529 $ac_includes_default
21530
21531 #include <$ac_header>
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537   *) ac_try_echo=$ac_try;;
21538 esac
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540   (eval "$ac_compile") 2>conftest.er1
21541   ac_status=$?
21542   grep -v '^ *+' conftest.er1 >conftest.err
21543   rm -f conftest.er1
21544   cat conftest.err >&5
21545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546   (exit $ac_status); } && {
21547          test -z "$ac_c_werror_flag" ||
21548          test ! -s conftest.err
21549        } && test -s conftest.$ac_objext; then
21550   eval "$as_ac_Header=yes"
21551 else
21552   echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555         eval "$as_ac_Header=no"
21556 fi
21557
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21559 fi
21560 ac_res=`eval echo '${'$as_ac_Header'}'`
21561                { echo "$as_me:$LINENO: result: $ac_res" >&5
21562 echo "${ECHO_T}$ac_res" >&6; }
21563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21564   cat >>confdefs.h <<_ACEOF
21565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21566 _ACEOF
21567
21568 fi
21569
21570 done
21571
21572
21573 if test "$ac_cv_header_wchar_h" != "yes"; then
21574
21575 for ac_header in wcstr.h
21576 do
21577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583   cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589 $ac_includes_default
21590
21591 #include <$ac_header>
21592 _ACEOF
21593 rm -f conftest.$ac_objext
21594 if { (ac_try="$ac_compile"
21595 case "(($ac_try" in
21596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597   *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600   (eval "$ac_compile") 2>conftest.er1
21601   ac_status=$?
21602   grep -v '^ *+' conftest.er1 >conftest.err
21603   rm -f conftest.er1
21604   cat conftest.err >&5
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); } && {
21607          test -z "$ac_c_werror_flag" ||
21608          test ! -s conftest.err
21609        } && test -s conftest.$ac_objext; then
21610   eval "$as_ac_Header=yes"
21611 else
21612   echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21614
21615         eval "$as_ac_Header=no"
21616 fi
21617
21618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21619 fi
21620 ac_res=`eval echo '${'$as_ac_Header'}'`
21621                { echo "$as_me:$LINENO: result: $ac_res" >&5
21622 echo "${ECHO_T}$ac_res" >&6; }
21623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21624   cat >>confdefs.h <<_ACEOF
21625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21626 _ACEOF
21627
21628 fi
21629
21630 done
21631
21632 fi
21633
21634 case "${host}" in
21635   *-pc-os2_emx | *-pc-os2-emx )
21636                   if test $ac_cv_header_langinfo_h = "yes" \
21637                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21638                      -o "$wx_cv_gccversion" = "EMX3" \
21639                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21640           LIBS="$LIBS -lintl"
21641       fi
21642   ;;
21643 esac
21644
21645 if test "$USE_UNIX" = 1 ; then
21646
21647 for ac_header in sys/select.h
21648 do
21649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21653   echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655   cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661 $ac_includes_default
21662
21663 #include <$ac_header>
21664 _ACEOF
21665 rm -f conftest.$ac_objext
21666 if { (ac_try="$ac_compile"
21667 case "(($ac_try" in
21668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669   *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672   (eval "$ac_compile") 2>conftest.er1
21673   ac_status=$?
21674   grep -v '^ *+' conftest.er1 >conftest.err
21675   rm -f conftest.er1
21676   cat conftest.err >&5
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); } && {
21679          test -z "$ac_c_werror_flag" ||
21680          test ! -s conftest.err
21681        } && test -s conftest.$ac_objext; then
21682   eval "$as_ac_Header=yes"
21683 else
21684   echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687         eval "$as_ac_Header=no"
21688 fi
21689
21690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21691 fi
21692 ac_res=`eval echo '${'$as_ac_Header'}'`
21693                { echo "$as_me:$LINENO: result: $ac_res" >&5
21694 echo "${ECHO_T}$ac_res" >&6; }
21695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21696   cat >>confdefs.h <<_ACEOF
21697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21698 _ACEOF
21699
21700 fi
21701
21702 done
21703
21704 fi
21705
21706
21707 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21708 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21709 if test "${ac_cv_c_const+set}" = set; then
21710   echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712   cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h.  */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h.  */
21718
21719 int
21720 main ()
21721 {
21722 /* FIXME: Include the comments suggested by Paul. */
21723 #ifndef __cplusplus
21724   /* Ultrix mips cc rejects this.  */
21725   typedef int charset[2];
21726   const charset cs;
21727   /* SunOS 4.1.1 cc rejects this.  */
21728   char const *const *pcpcc;
21729   char **ppc;
21730   /* NEC SVR4.0.2 mips cc rejects this.  */
21731   struct point {int x, y;};
21732   static struct point const zero = {0,0};
21733   /* AIX XL C 1.02.0.0 rejects this.
21734      It does not let you subtract one const X* pointer from another in
21735      an arm of an if-expression whose if-part is not a constant
21736      expression */
21737   const char *g = "string";
21738   pcpcc = &g + (g ? g-g : 0);
21739   /* HPUX 7.0 cc rejects these. */
21740   ++pcpcc;
21741   ppc = (char**) pcpcc;
21742   pcpcc = (char const *const *) ppc;
21743   { /* SCO 3.2v4 cc rejects this.  */
21744     char *t;
21745     char const *s = 0 ? (char *) 0 : (char const *) 0;
21746
21747     *t++ = 0;
21748     if (s) return 0;
21749   }
21750   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21751     int x[] = {25, 17};
21752     const int *foo = &x[0];
21753     ++foo;
21754   }
21755   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21756     typedef const int *iptr;
21757     iptr p = 0;
21758     ++p;
21759   }
21760   { /* AIX XL C 1.02.0.0 rejects this saying
21761        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21762     struct s { int j; const int *ap[3]; };
21763     struct s *b; b->j = 5;
21764   }
21765   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21766     const int foo = 10;
21767     if (!foo) return 0;
21768   }
21769   return !cs[0] && !zero.x;
21770 #endif
21771
21772   ;
21773   return 0;
21774 }
21775 _ACEOF
21776 rm -f conftest.$ac_objext
21777 if { (ac_try="$ac_compile"
21778 case "(($ac_try" in
21779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780   *) ac_try_echo=$ac_try;;
21781 esac
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783   (eval "$ac_compile") 2>conftest.er1
21784   ac_status=$?
21785   grep -v '^ *+' conftest.er1 >conftest.err
21786   rm -f conftest.er1
21787   cat conftest.err >&5
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); } && {
21790          test -z "$ac_c_werror_flag" ||
21791          test ! -s conftest.err
21792        } && test -s conftest.$ac_objext; then
21793   ac_cv_c_const=yes
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798         ac_cv_c_const=no
21799 fi
21800
21801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21802 fi
21803 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21804 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21805 if test $ac_cv_c_const = no; then
21806
21807 cat >>confdefs.h <<\_ACEOF
21808 #define const
21809 _ACEOF
21810
21811 fi
21812
21813 { echo "$as_me:$LINENO: checking for inline" >&5
21814 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21815 if test "${ac_cv_c_inline+set}" = set; then
21816   echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818   ac_cv_c_inline=no
21819 for ac_kw in inline __inline__ __inline; do
21820   cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h.  */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h.  */
21826 #ifndef __cplusplus
21827 typedef int foo_t;
21828 static $ac_kw foo_t static_foo () {return 0; }
21829 $ac_kw foo_t foo () {return 0; }
21830 #endif
21831
21832 _ACEOF
21833 rm -f conftest.$ac_objext
21834 if { (ac_try="$ac_compile"
21835 case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_compile") 2>conftest.er1
21841   ac_status=$?
21842   grep -v '^ *+' conftest.er1 >conftest.err
21843   rm -f conftest.er1
21844   cat conftest.err >&5
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } && {
21847          test -z "$ac_c_werror_flag" ||
21848          test ! -s conftest.err
21849        } && test -s conftest.$ac_objext; then
21850   ac_cv_c_inline=$ac_kw
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859   test "$ac_cv_c_inline" != no && break
21860 done
21861
21862 fi
21863 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21864 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21865
21866
21867 case $ac_cv_c_inline in
21868   inline | yes) ;;
21869   *)
21870     case $ac_cv_c_inline in
21871       no) ac_val=;;
21872       *) ac_val=$ac_cv_c_inline;;
21873     esac
21874     cat >>confdefs.h <<_ACEOF
21875 #ifndef __cplusplus
21876 #define inline $ac_val
21877 #endif
21878 _ACEOF
21879     ;;
21880 esac
21881
21882
21883 { echo "$as_me:$LINENO: checking for short" >&5
21884 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21885 if test "${ac_cv_type_short+set}" = set; then
21886   echo $ECHO_N "(cached) $ECHO_C" >&6
21887 else
21888   cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 $ac_includes_default
21895 typedef short ac__type_new_;
21896 int
21897 main ()
21898 {
21899 if ((ac__type_new_ *) 0)
21900   return 0;
21901 if (sizeof (ac__type_new_))
21902   return 0;
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 rm -f conftest.$ac_objext
21908 if { (ac_try="$ac_compile"
21909 case "(($ac_try" in
21910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911   *) ac_try_echo=$ac_try;;
21912 esac
21913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914   (eval "$ac_compile") 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } && {
21921          test -z "$ac_c_werror_flag" ||
21922          test ! -s conftest.err
21923        } && test -s conftest.$ac_objext; then
21924   ac_cv_type_short=yes
21925 else
21926   echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929         ac_cv_type_short=no
21930 fi
21931
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 fi
21934 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21935 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21936
21937 # The cast to long int works around a bug in the HP C Compiler
21938 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21939 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21940 # This bug is HP SR number 8606223364.
21941 { echo "$as_me:$LINENO: checking size of short" >&5
21942 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21943 if test "${ac_cv_sizeof_short+set}" = set; then
21944   echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946   if test "$cross_compiling" = yes; then
21947   # Depending upon the size, compute the lo and hi bounds.
21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954 $ac_includes_default
21955    typedef short ac__type_sizeof_;
21956 int
21957 main ()
21958 {
21959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21960 test_array [0] = 0
21961
21962   ;
21963   return 0;
21964 }
21965 _ACEOF
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970   *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973   (eval "$ac_compile") 2>conftest.er1
21974   ac_status=$?
21975   grep -v '^ *+' conftest.er1 >conftest.err
21976   rm -f conftest.er1
21977   cat conftest.err >&5
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } && {
21980          test -z "$ac_c_werror_flag" ||
21981          test ! -s conftest.err
21982        } && test -s conftest.$ac_objext; then
21983   ac_lo=0 ac_mid=0
21984   while :; do
21985     cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h.  */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h.  */
21991 $ac_includes_default
21992    typedef short ac__type_sizeof_;
21993 int
21994 main ()
21995 {
21996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21997 test_array [0] = 0
21998
21999   ;
22000   return 0;
22001 }
22002 _ACEOF
22003 rm -f conftest.$ac_objext
22004 if { (ac_try="$ac_compile"
22005 case "(($ac_try" in
22006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007   *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010   (eval "$ac_compile") 2>conftest.er1
22011   ac_status=$?
22012   grep -v '^ *+' conftest.er1 >conftest.err
22013   rm -f conftest.er1
22014   cat conftest.err >&5
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } && {
22017          test -z "$ac_c_werror_flag" ||
22018          test ! -s conftest.err
22019        } && test -s conftest.$ac_objext; then
22020   ac_hi=$ac_mid; break
22021 else
22022   echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025         ac_lo=`expr $ac_mid + 1`
22026                         if test $ac_lo -le $ac_mid; then
22027                           ac_lo= ac_hi=
22028                           break
22029                         fi
22030                         ac_mid=`expr 2 '*' $ac_mid + 1`
22031 fi
22032
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22034   done
22035 else
22036   echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039         cat >conftest.$ac_ext <<_ACEOF
22040 /* confdefs.h.  */
22041 _ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h.  */
22045 $ac_includes_default
22046    typedef short ac__type_sizeof_;
22047 int
22048 main ()
22049 {
22050 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22051 test_array [0] = 0
22052
22053   ;
22054   return 0;
22055 }
22056 _ACEOF
22057 rm -f conftest.$ac_objext
22058 if { (ac_try="$ac_compile"
22059 case "(($ac_try" in
22060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061   *) ac_try_echo=$ac_try;;
22062 esac
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064   (eval "$ac_compile") 2>conftest.er1
22065   ac_status=$?
22066   grep -v '^ *+' conftest.er1 >conftest.err
22067   rm -f conftest.er1
22068   cat conftest.err >&5
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); } && {
22071          test -z "$ac_c_werror_flag" ||
22072          test ! -s conftest.err
22073        } && test -s conftest.$ac_objext; then
22074   ac_hi=-1 ac_mid=-1
22075   while :; do
22076     cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h.  */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h.  */
22082 $ac_includes_default
22083    typedef short ac__type_sizeof_;
22084 int
22085 main ()
22086 {
22087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22088 test_array [0] = 0
22089
22090   ;
22091   return 0;
22092 }
22093 _ACEOF
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098   *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101   (eval "$ac_compile") 2>conftest.er1
22102   ac_status=$?
22103   grep -v '^ *+' conftest.er1 >conftest.err
22104   rm -f conftest.er1
22105   cat conftest.err >&5
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); } && {
22108          test -z "$ac_c_werror_flag" ||
22109          test ! -s conftest.err
22110        } && test -s conftest.$ac_objext; then
22111   ac_lo=$ac_mid; break
22112 else
22113   echo "$as_me: failed program was:" >&5
22114 sed 's/^/| /' conftest.$ac_ext >&5
22115
22116         ac_hi=`expr '(' $ac_mid ')' - 1`
22117                         if test $ac_mid -le $ac_hi; then
22118                           ac_lo= ac_hi=
22119                           break
22120                         fi
22121                         ac_mid=`expr 2 '*' $ac_mid`
22122 fi
22123
22124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125   done
22126 else
22127   echo "$as_me: failed program was:" >&5
22128 sed 's/^/| /' conftest.$ac_ext >&5
22129
22130         ac_lo= ac_hi=
22131 fi
22132
22133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22134 fi
22135
22136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 # Binary search between lo and hi bounds.
22138 while test "x$ac_lo" != "x$ac_hi"; do
22139   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22140   cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h.  */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h.  */
22146 $ac_includes_default
22147    typedef short ac__type_sizeof_;
22148 int
22149 main ()
22150 {
22151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22152 test_array [0] = 0
22153
22154   ;
22155   return 0;
22156 }
22157 _ACEOF
22158 rm -f conftest.$ac_objext
22159 if { (ac_try="$ac_compile"
22160 case "(($ac_try" in
22161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162   *) ac_try_echo=$ac_try;;
22163 esac
22164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22165   (eval "$ac_compile") 2>conftest.er1
22166   ac_status=$?
22167   grep -v '^ *+' conftest.er1 >conftest.err
22168   rm -f conftest.er1
22169   cat conftest.err >&5
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); } && {
22172          test -z "$ac_c_werror_flag" ||
22173          test ! -s conftest.err
22174        } && test -s conftest.$ac_objext; then
22175   ac_hi=$ac_mid
22176 else
22177   echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180         ac_lo=`expr '(' $ac_mid ')' + 1`
22181 fi
22182
22183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 done
22185 case $ac_lo in
22186 ?*) ac_cv_sizeof_short=$ac_lo;;
22187 '') if test "$ac_cv_type_short" = yes; then
22188      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22189 See \`config.log' for more details." >&5
22190 echo "$as_me: error: cannot compute sizeof (short)
22191 See \`config.log' for more details." >&2;}
22192    { (exit 77); exit 77; }; }
22193    else
22194      ac_cv_sizeof_short=0
22195    fi ;;
22196 esac
22197 else
22198   cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h.  */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h.  */
22204 $ac_includes_default
22205    typedef short ac__type_sizeof_;
22206 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22207 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22208 #include <stdio.h>
22209 #include <stdlib.h>
22210 int
22211 main ()
22212 {
22213
22214   FILE *f = fopen ("conftest.val", "w");
22215   if (! f)
22216     return 1;
22217   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22218     {
22219       long int i = longval ();
22220       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22221         return 1;
22222       fprintf (f, "%ld\n", i);
22223     }
22224   else
22225     {
22226       unsigned long int i = ulongval ();
22227       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22228         return 1;
22229       fprintf (f, "%lu\n", i);
22230     }
22231   return ferror (f) || fclose (f) != 0;
22232
22233   ;
22234   return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest$ac_exeext
22238 if { (ac_try="$ac_link"
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_link") 2>&5
22245   ac_status=$?
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22248   { (case "(($ac_try" in
22249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250   *) ac_try_echo=$ac_try;;
22251 esac
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253   (eval "$ac_try") 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); }; }; then
22257   ac_cv_sizeof_short=`cat conftest.val`
22258 else
22259   echo "$as_me: program exited with status $ac_status" >&5
22260 echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263 ( exit $ac_status )
22264 if test "$ac_cv_type_short" = yes; then
22265      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22266 See \`config.log' for more details." >&5
22267 echo "$as_me: error: cannot compute sizeof (short)
22268 See \`config.log' for more details." >&2;}
22269    { (exit 77); exit 77; }; }
22270    else
22271      ac_cv_sizeof_short=0
22272    fi
22273 fi
22274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22275 fi
22276 rm -f conftest.val
22277 fi
22278 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22279 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22280
22281
22282
22283 cat >>confdefs.h <<_ACEOF
22284 #define SIZEOF_SHORT $ac_cv_sizeof_short
22285 _ACEOF
22286
22287
22288 { echo "$as_me:$LINENO: checking for void *" >&5
22289 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22290 if test "${ac_cv_type_void_p+set}" = set; then
22291   echo $ECHO_N "(cached) $ECHO_C" >&6
22292 else
22293   cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h.  */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h.  */
22299 $ac_includes_default
22300 typedef void * ac__type_new_;
22301 int
22302 main ()
22303 {
22304 if ((ac__type_new_ *) 0)
22305   return 0;
22306 if (sizeof (ac__type_new_))
22307   return 0;
22308   ;
22309   return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316   *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319   (eval "$ac_compile") 2>conftest.er1
22320   ac_status=$?
22321   grep -v '^ *+' conftest.er1 >conftest.err
22322   rm -f conftest.er1
22323   cat conftest.err >&5
22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); } && {
22326          test -z "$ac_c_werror_flag" ||
22327          test ! -s conftest.err
22328        } && test -s conftest.$ac_objext; then
22329   ac_cv_type_void_p=yes
22330 else
22331   echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22333
22334         ac_cv_type_void_p=no
22335 fi
22336
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 fi
22339 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22340 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22341
22342 # The cast to long int works around a bug in the HP C Compiler
22343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22345 # This bug is HP SR number 8606223364.
22346 { echo "$as_me:$LINENO: checking size of void *" >&5
22347 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22348 if test "${ac_cv_sizeof_void_p+set}" = set; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   if test "$cross_compiling" = yes; then
22352   # Depending upon the size, compute the lo and hi bounds.
22353 cat >conftest.$ac_ext <<_ACEOF
22354 /* confdefs.h.  */
22355 _ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h.  */
22359 $ac_includes_default
22360    typedef void * ac__type_sizeof_;
22361 int
22362 main ()
22363 {
22364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22365 test_array [0] = 0
22366
22367   ;
22368   return 0;
22369 }
22370 _ACEOF
22371 rm -f conftest.$ac_objext
22372 if { (ac_try="$ac_compile"
22373 case "(($ac_try" in
22374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375   *) ac_try_echo=$ac_try;;
22376 esac
22377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22378   (eval "$ac_compile") 2>conftest.er1
22379   ac_status=$?
22380   grep -v '^ *+' conftest.er1 >conftest.err
22381   rm -f conftest.er1
22382   cat conftest.err >&5
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); } && {
22385          test -z "$ac_c_werror_flag" ||
22386          test ! -s conftest.err
22387        } && test -s conftest.$ac_objext; then
22388   ac_lo=0 ac_mid=0
22389   while :; do
22390     cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h.  */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h.  */
22396 $ac_includes_default
22397    typedef void * ac__type_sizeof_;
22398 int
22399 main ()
22400 {
22401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22402 test_array [0] = 0
22403
22404   ;
22405   return 0;
22406 }
22407 _ACEOF
22408 rm -f conftest.$ac_objext
22409 if { (ac_try="$ac_compile"
22410 case "(($ac_try" in
22411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412   *) ac_try_echo=$ac_try;;
22413 esac
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415   (eval "$ac_compile") 2>conftest.er1
22416   ac_status=$?
22417   grep -v '^ *+' conftest.er1 >conftest.err
22418   rm -f conftest.er1
22419   cat conftest.err >&5
22420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421   (exit $ac_status); } && {
22422          test -z "$ac_c_werror_flag" ||
22423          test ! -s conftest.err
22424        } && test -s conftest.$ac_objext; then
22425   ac_hi=$ac_mid; break
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430         ac_lo=`expr $ac_mid + 1`
22431                         if test $ac_lo -le $ac_mid; then
22432                           ac_lo= ac_hi=
22433                           break
22434                         fi
22435                         ac_mid=`expr 2 '*' $ac_mid + 1`
22436 fi
22437
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439   done
22440 else
22441   echo "$as_me: failed program was:" >&5
22442 sed 's/^/| /' conftest.$ac_ext >&5
22443
22444         cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 $ac_includes_default
22451    typedef void * ac__type_sizeof_;
22452 int
22453 main ()
22454 {
22455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22456 test_array [0] = 0
22457
22458   ;
22459   return 0;
22460 }
22461 _ACEOF
22462 rm -f conftest.$ac_objext
22463 if { (ac_try="$ac_compile"
22464 case "(($ac_try" in
22465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466   *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469   (eval "$ac_compile") 2>conftest.er1
22470   ac_status=$?
22471   grep -v '^ *+' conftest.er1 >conftest.err
22472   rm -f conftest.er1
22473   cat conftest.err >&5
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); } && {
22476          test -z "$ac_c_werror_flag" ||
22477          test ! -s conftest.err
22478        } && test -s conftest.$ac_objext; then
22479   ac_hi=-1 ac_mid=-1
22480   while :; do
22481     cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487 $ac_includes_default
22488    typedef void * ac__type_sizeof_;
22489 int
22490 main ()
22491 {
22492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22493 test_array [0] = 0
22494
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 rm -f conftest.$ac_objext
22500 if { (ac_try="$ac_compile"
22501 case "(($ac_try" in
22502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503   *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506   (eval "$ac_compile") 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } && {
22513          test -z "$ac_c_werror_flag" ||
22514          test ! -s conftest.err
22515        } && test -s conftest.$ac_objext; then
22516   ac_lo=$ac_mid; break
22517 else
22518   echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521         ac_hi=`expr '(' $ac_mid ')' - 1`
22522                         if test $ac_mid -le $ac_hi; then
22523                           ac_lo= ac_hi=
22524                           break
22525                         fi
22526                         ac_mid=`expr 2 '*' $ac_mid`
22527 fi
22528
22529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22530   done
22531 else
22532   echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535         ac_lo= ac_hi=
22536 fi
22537
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 fi
22540
22541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22542 # Binary search between lo and hi bounds.
22543 while test "x$ac_lo" != "x$ac_hi"; do
22544   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22545   cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551 $ac_includes_default
22552    typedef void * ac__type_sizeof_;
22553 int
22554 main ()
22555 {
22556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22557 test_array [0] = 0
22558
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext
22564 if { (ac_try="$ac_compile"
22565 case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570   (eval "$ac_compile") 2>conftest.er1
22571   ac_status=$?
22572   grep -v '^ *+' conftest.er1 >conftest.err
22573   rm -f conftest.er1
22574   cat conftest.err >&5
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); } && {
22577          test -z "$ac_c_werror_flag" ||
22578          test ! -s conftest.err
22579        } && test -s conftest.$ac_objext; then
22580   ac_hi=$ac_mid
22581 else
22582   echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585         ac_lo=`expr '(' $ac_mid ')' + 1`
22586 fi
22587
22588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22589 done
22590 case $ac_lo in
22591 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22592 '') if test "$ac_cv_type_void_p" = yes; then
22593      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22594 See \`config.log' for more details." >&5
22595 echo "$as_me: error: cannot compute sizeof (void *)
22596 See \`config.log' for more details." >&2;}
22597    { (exit 77); exit 77; }; }
22598    else
22599      ac_cv_sizeof_void_p=0
22600    fi ;;
22601 esac
22602 else
22603   cat >conftest.$ac_ext <<_ACEOF
22604 /* confdefs.h.  */
22605 _ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h.  */
22609 $ac_includes_default
22610    typedef void * ac__type_sizeof_;
22611 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22612 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22613 #include <stdio.h>
22614 #include <stdlib.h>
22615 int
22616 main ()
22617 {
22618
22619   FILE *f = fopen ("conftest.val", "w");
22620   if (! f)
22621     return 1;
22622   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22623     {
22624       long int i = longval ();
22625       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22626         return 1;
22627       fprintf (f, "%ld\n", i);
22628     }
22629   else
22630     {
22631       unsigned long int i = ulongval ();
22632       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22633         return 1;
22634       fprintf (f, "%lu\n", i);
22635     }
22636   return ferror (f) || fclose (f) != 0;
22637
22638   ;
22639   return 0;
22640 }
22641 _ACEOF
22642 rm -f conftest$ac_exeext
22643 if { (ac_try="$ac_link"
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_link") 2>&5
22650   ac_status=$?
22651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22653   { (case "(($ac_try" in
22654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22655   *) ac_try_echo=$ac_try;;
22656 esac
22657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22658   (eval "$ac_try") 2>&5
22659   ac_status=$?
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); }; }; then
22662   ac_cv_sizeof_void_p=`cat conftest.val`
22663 else
22664   echo "$as_me: program exited with status $ac_status" >&5
22665 echo "$as_me: failed program was:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22667
22668 ( exit $ac_status )
22669 if test "$ac_cv_type_void_p" = yes; then
22670      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22671 See \`config.log' for more details." >&5
22672 echo "$as_me: error: cannot compute sizeof (void *)
22673 See \`config.log' for more details." >&2;}
22674    { (exit 77); exit 77; }; }
22675    else
22676      ac_cv_sizeof_void_p=0
22677    fi
22678 fi
22679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22680 fi
22681 rm -f conftest.val
22682 fi
22683 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22684 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22685
22686
22687
22688 cat >>confdefs.h <<_ACEOF
22689 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22690 _ACEOF
22691
22692
22693 { echo "$as_me:$LINENO: checking for int" >&5
22694 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22695 if test "${ac_cv_type_int+set}" = set; then
22696   echo $ECHO_N "(cached) $ECHO_C" >&6
22697 else
22698   cat >conftest.$ac_ext <<_ACEOF
22699 /* confdefs.h.  */
22700 _ACEOF
22701 cat confdefs.h >>conftest.$ac_ext
22702 cat >>conftest.$ac_ext <<_ACEOF
22703 /* end confdefs.h.  */
22704 $ac_includes_default
22705 typedef int ac__type_new_;
22706 int
22707 main ()
22708 {
22709 if ((ac__type_new_ *) 0)
22710   return 0;
22711 if (sizeof (ac__type_new_))
22712   return 0;
22713   ;
22714   return 0;
22715 }
22716 _ACEOF
22717 rm -f conftest.$ac_objext
22718 if { (ac_try="$ac_compile"
22719 case "(($ac_try" in
22720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721   *) ac_try_echo=$ac_try;;
22722 esac
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724   (eval "$ac_compile") 2>conftest.er1
22725   ac_status=$?
22726   grep -v '^ *+' conftest.er1 >conftest.err
22727   rm -f conftest.er1
22728   cat conftest.err >&5
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); } && {
22731          test -z "$ac_c_werror_flag" ||
22732          test ! -s conftest.err
22733        } && test -s conftest.$ac_objext; then
22734   ac_cv_type_int=yes
22735 else
22736   echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22738
22739         ac_cv_type_int=no
22740 fi
22741
22742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743 fi
22744 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22745 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22746
22747 # The cast to long int works around a bug in the HP C Compiler
22748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22750 # This bug is HP SR number 8606223364.
22751 { echo "$as_me:$LINENO: checking size of int" >&5
22752 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22753 if test "${ac_cv_sizeof_int+set}" = set; then
22754   echo $ECHO_N "(cached) $ECHO_C" >&6
22755 else
22756   if test "$cross_compiling" = yes; then
22757   # Depending upon the size, compute the lo and hi bounds.
22758 cat >conftest.$ac_ext <<_ACEOF
22759 /* confdefs.h.  */
22760 _ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h.  */
22764 $ac_includes_default
22765    typedef int ac__type_sizeof_;
22766 int
22767 main ()
22768 {
22769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22770 test_array [0] = 0
22771
22772   ;
22773   return 0;
22774 }
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780   *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783   (eval "$ac_compile") 2>conftest.er1
22784   ac_status=$?
22785   grep -v '^ *+' conftest.er1 >conftest.err
22786   rm -f conftest.er1
22787   cat conftest.err >&5
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } && {
22790          test -z "$ac_c_werror_flag" ||
22791          test ! -s conftest.err
22792        } && test -s conftest.$ac_objext; then
22793   ac_lo=0 ac_mid=0
22794   while :; do
22795     cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 $ac_includes_default
22802    typedef int ac__type_sizeof_;
22803 int
22804 main ()
22805 {
22806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22807 test_array [0] = 0
22808
22809   ;
22810   return 0;
22811 }
22812 _ACEOF
22813 rm -f conftest.$ac_objext
22814 if { (ac_try="$ac_compile"
22815 case "(($ac_try" in
22816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817   *) ac_try_echo=$ac_try;;
22818 esac
22819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820   (eval "$ac_compile") 2>conftest.er1
22821   ac_status=$?
22822   grep -v '^ *+' conftest.er1 >conftest.err
22823   rm -f conftest.er1
22824   cat conftest.err >&5
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); } && {
22827          test -z "$ac_c_werror_flag" ||
22828          test ! -s conftest.err
22829        } && test -s conftest.$ac_objext; then
22830   ac_hi=$ac_mid; break
22831 else
22832   echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835         ac_lo=`expr $ac_mid + 1`
22836                         if test $ac_lo -le $ac_mid; then
22837                           ac_lo= ac_hi=
22838                           break
22839                         fi
22840                         ac_mid=`expr 2 '*' $ac_mid + 1`
22841 fi
22842
22843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844   done
22845 else
22846   echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22848
22849         cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h.  */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h.  */
22855 $ac_includes_default
22856    typedef int ac__type_sizeof_;
22857 int
22858 main ()
22859 {
22860 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22861 test_array [0] = 0
22862
22863   ;
22864   return 0;
22865 }
22866 _ACEOF
22867 rm -f conftest.$ac_objext
22868 if { (ac_try="$ac_compile"
22869 case "(($ac_try" in
22870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871   *) ac_try_echo=$ac_try;;
22872 esac
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874   (eval "$ac_compile") 2>conftest.er1
22875   ac_status=$?
22876   grep -v '^ *+' conftest.er1 >conftest.err
22877   rm -f conftest.er1
22878   cat conftest.err >&5
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); } && {
22881          test -z "$ac_c_werror_flag" ||
22882          test ! -s conftest.err
22883        } && test -s conftest.$ac_objext; then
22884   ac_hi=-1 ac_mid=-1
22885   while :; do
22886     cat >conftest.$ac_ext <<_ACEOF
22887 /* confdefs.h.  */
22888 _ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h.  */
22892 $ac_includes_default
22893    typedef int ac__type_sizeof_;
22894 int
22895 main ()
22896 {
22897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22898 test_array [0] = 0
22899
22900   ;
22901   return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest.$ac_objext
22905 if { (ac_try="$ac_compile"
22906 case "(($ac_try" in
22907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908   *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911   (eval "$ac_compile") 2>conftest.er1
22912   ac_status=$?
22913   grep -v '^ *+' conftest.er1 >conftest.err
22914   rm -f conftest.er1
22915   cat conftest.err >&5
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); } && {
22918          test -z "$ac_c_werror_flag" ||
22919          test ! -s conftest.err
22920        } && test -s conftest.$ac_objext; then
22921   ac_lo=$ac_mid; break
22922 else
22923   echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926         ac_hi=`expr '(' $ac_mid ')' - 1`
22927                         if test $ac_mid -le $ac_hi; then
22928                           ac_lo= ac_hi=
22929                           break
22930                         fi
22931                         ac_mid=`expr 2 '*' $ac_mid`
22932 fi
22933
22934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22935   done
22936 else
22937   echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22939
22940         ac_lo= ac_hi=
22941 fi
22942
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944 fi
22945
22946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22947 # Binary search between lo and hi bounds.
22948 while test "x$ac_lo" != "x$ac_hi"; do
22949   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22950   cat >conftest.$ac_ext <<_ACEOF
22951 /* confdefs.h.  */
22952 _ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h.  */
22956 $ac_includes_default
22957    typedef int ac__type_sizeof_;
22958 int
22959 main ()
22960 {
22961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22962 test_array [0] = 0
22963
22964   ;
22965   return 0;
22966 }
22967 _ACEOF
22968 rm -f conftest.$ac_objext
22969 if { (ac_try="$ac_compile"
22970 case "(($ac_try" in
22971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972   *) ac_try_echo=$ac_try;;
22973 esac
22974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975   (eval "$ac_compile") 2>conftest.er1
22976   ac_status=$?
22977   grep -v '^ *+' conftest.er1 >conftest.err
22978   rm -f conftest.er1
22979   cat conftest.err >&5
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); } && {
22982          test -z "$ac_c_werror_flag" ||
22983          test ! -s conftest.err
22984        } && test -s conftest.$ac_objext; then
22985   ac_hi=$ac_mid
22986 else
22987   echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22989
22990         ac_lo=`expr '(' $ac_mid ')' + 1`
22991 fi
22992
22993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22994 done
22995 case $ac_lo in
22996 ?*) ac_cv_sizeof_int=$ac_lo;;
22997 '') if test "$ac_cv_type_int" = yes; then
22998      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22999 See \`config.log' for more details." >&5
23000 echo "$as_me: error: cannot compute sizeof (int)
23001 See \`config.log' for more details." >&2;}
23002    { (exit 77); exit 77; }; }
23003    else
23004      ac_cv_sizeof_int=0
23005    fi ;;
23006 esac
23007 else
23008   cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014 $ac_includes_default
23015    typedef int ac__type_sizeof_;
23016 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23017 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23018 #include <stdio.h>
23019 #include <stdlib.h>
23020 int
23021 main ()
23022 {
23023
23024   FILE *f = fopen ("conftest.val", "w");
23025   if (! f)
23026     return 1;
23027   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23028     {
23029       long int i = longval ();
23030       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23031         return 1;
23032       fprintf (f, "%ld\n", i);
23033     }
23034   else
23035     {
23036       unsigned long int i = ulongval ();
23037       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23038         return 1;
23039       fprintf (f, "%lu\n", i);
23040     }
23041   return ferror (f) || fclose (f) != 0;
23042
23043   ;
23044   return 0;
23045 }
23046 _ACEOF
23047 rm -f conftest$ac_exeext
23048 if { (ac_try="$ac_link"
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_link") 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23058   { (case "(($ac_try" in
23059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23060   *) ac_try_echo=$ac_try;;
23061 esac
23062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23063   (eval "$ac_try") 2>&5
23064   ac_status=$?
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); }; }; then
23067   ac_cv_sizeof_int=`cat conftest.val`
23068 else
23069   echo "$as_me: program exited with status $ac_status" >&5
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23072
23073 ( exit $ac_status )
23074 if test "$ac_cv_type_int" = yes; then
23075      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23076 See \`config.log' for more details." >&5
23077 echo "$as_me: error: cannot compute sizeof (int)
23078 See \`config.log' for more details." >&2;}
23079    { (exit 77); exit 77; }; }
23080    else
23081      ac_cv_sizeof_int=0
23082    fi
23083 fi
23084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23085 fi
23086 rm -f conftest.val
23087 fi
23088 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23089 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23090
23091
23092
23093 cat >>confdefs.h <<_ACEOF
23094 #define SIZEOF_INT $ac_cv_sizeof_int
23095 _ACEOF
23096
23097
23098 { echo "$as_me:$LINENO: checking for long" >&5
23099 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23100 if test "${ac_cv_type_long+set}" = set; then
23101   echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103   cat >conftest.$ac_ext <<_ACEOF
23104 /* confdefs.h.  */
23105 _ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h.  */
23109 $ac_includes_default
23110 typedef long ac__type_new_;
23111 int
23112 main ()
23113 {
23114 if ((ac__type_new_ *) 0)
23115   return 0;
23116 if (sizeof (ac__type_new_))
23117   return 0;
23118   ;
23119   return 0;
23120 }
23121 _ACEOF
23122 rm -f conftest.$ac_objext
23123 if { (ac_try="$ac_compile"
23124 case "(($ac_try" in
23125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23126   *) ac_try_echo=$ac_try;;
23127 esac
23128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23129   (eval "$ac_compile") 2>conftest.er1
23130   ac_status=$?
23131   grep -v '^ *+' conftest.er1 >conftest.err
23132   rm -f conftest.er1
23133   cat conftest.err >&5
23134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); } && {
23136          test -z "$ac_c_werror_flag" ||
23137          test ! -s conftest.err
23138        } && test -s conftest.$ac_objext; then
23139   ac_cv_type_long=yes
23140 else
23141   echo "$as_me: failed program was:" >&5
23142 sed 's/^/| /' conftest.$ac_ext >&5
23143
23144         ac_cv_type_long=no
23145 fi
23146
23147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23148 fi
23149 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23150 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23151
23152 # The cast to long int works around a bug in the HP C Compiler
23153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23155 # This bug is HP SR number 8606223364.
23156 { echo "$as_me:$LINENO: checking size of long" >&5
23157 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23158 if test "${ac_cv_sizeof_long+set}" = set; then
23159   echo $ECHO_N "(cached) $ECHO_C" >&6
23160 else
23161   if test "$cross_compiling" = yes; then
23162   # Depending upon the size, compute the lo and hi bounds.
23163 cat >conftest.$ac_ext <<_ACEOF
23164 /* confdefs.h.  */
23165 _ACEOF
23166 cat confdefs.h >>conftest.$ac_ext
23167 cat >>conftest.$ac_ext <<_ACEOF
23168 /* end confdefs.h.  */
23169 $ac_includes_default
23170    typedef long ac__type_sizeof_;
23171 int
23172 main ()
23173 {
23174 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23175 test_array [0] = 0
23176
23177   ;
23178   return 0;
23179 }
23180 _ACEOF
23181 rm -f conftest.$ac_objext
23182 if { (ac_try="$ac_compile"
23183 case "(($ac_try" in
23184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185   *) ac_try_echo=$ac_try;;
23186 esac
23187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23188   (eval "$ac_compile") 2>conftest.er1
23189   ac_status=$?
23190   grep -v '^ *+' conftest.er1 >conftest.err
23191   rm -f conftest.er1
23192   cat conftest.err >&5
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); } && {
23195          test -z "$ac_c_werror_flag" ||
23196          test ! -s conftest.err
23197        } && test -s conftest.$ac_objext; then
23198   ac_lo=0 ac_mid=0
23199   while :; do
23200     cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h.  */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h.  */
23206 $ac_includes_default
23207    typedef long ac__type_sizeof_;
23208 int
23209 main ()
23210 {
23211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23212 test_array [0] = 0
23213
23214   ;
23215   return 0;
23216 }
23217 _ACEOF
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222   *) ac_try_echo=$ac_try;;
23223 esac
23224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225   (eval "$ac_compile") 2>conftest.er1
23226   ac_status=$?
23227   grep -v '^ *+' conftest.er1 >conftest.err
23228   rm -f conftest.er1
23229   cat conftest.err >&5
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); } && {
23232          test -z "$ac_c_werror_flag" ||
23233          test ! -s conftest.err
23234        } && test -s conftest.$ac_objext; then
23235   ac_hi=$ac_mid; break
23236 else
23237   echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240         ac_lo=`expr $ac_mid + 1`
23241                         if test $ac_lo -le $ac_mid; then
23242                           ac_lo= ac_hi=
23243                           break
23244                         fi
23245                         ac_mid=`expr 2 '*' $ac_mid + 1`
23246 fi
23247
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249   done
23250 else
23251   echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23253
23254         cat >conftest.$ac_ext <<_ACEOF
23255 /* confdefs.h.  */
23256 _ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h.  */
23260 $ac_includes_default
23261    typedef long ac__type_sizeof_;
23262 int
23263 main ()
23264 {
23265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23266 test_array [0] = 0
23267
23268   ;
23269   return 0;
23270 }
23271 _ACEOF
23272 rm -f conftest.$ac_objext
23273 if { (ac_try="$ac_compile"
23274 case "(($ac_try" in
23275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276   *) ac_try_echo=$ac_try;;
23277 esac
23278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23279   (eval "$ac_compile") 2>conftest.er1
23280   ac_status=$?
23281   grep -v '^ *+' conftest.er1 >conftest.err
23282   rm -f conftest.er1
23283   cat conftest.err >&5
23284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); } && {
23286          test -z "$ac_c_werror_flag" ||
23287          test ! -s conftest.err
23288        } && test -s conftest.$ac_objext; then
23289   ac_hi=-1 ac_mid=-1
23290   while :; do
23291     cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297 $ac_includes_default
23298    typedef long ac__type_sizeof_;
23299 int
23300 main ()
23301 {
23302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23303 test_array [0] = 0
23304
23305   ;
23306   return 0;
23307 }
23308 _ACEOF
23309 rm -f conftest.$ac_objext
23310 if { (ac_try="$ac_compile"
23311 case "(($ac_try" in
23312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313   *) ac_try_echo=$ac_try;;
23314 esac
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316   (eval "$ac_compile") 2>conftest.er1
23317   ac_status=$?
23318   grep -v '^ *+' conftest.er1 >conftest.err
23319   rm -f conftest.er1
23320   cat conftest.err >&5
23321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); } && {
23323          test -z "$ac_c_werror_flag" ||
23324          test ! -s conftest.err
23325        } && test -s conftest.$ac_objext; then
23326   ac_lo=$ac_mid; break
23327 else
23328   echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331         ac_hi=`expr '(' $ac_mid ')' - 1`
23332                         if test $ac_mid -le $ac_hi; then
23333                           ac_lo= ac_hi=
23334                           break
23335                         fi
23336                         ac_mid=`expr 2 '*' $ac_mid`
23337 fi
23338
23339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23340   done
23341 else
23342   echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345         ac_lo= ac_hi=
23346 fi
23347
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 fi
23350
23351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352 # Binary search between lo and hi bounds.
23353 while test "x$ac_lo" != "x$ac_hi"; do
23354   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23355   cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h.  */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h.  */
23361 $ac_includes_default
23362    typedef long ac__type_sizeof_;
23363 int
23364 main ()
23365 {
23366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23367 test_array [0] = 0
23368
23369   ;
23370   return 0;
23371 }
23372 _ACEOF
23373 rm -f conftest.$ac_objext
23374 if { (ac_try="$ac_compile"
23375 case "(($ac_try" in
23376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377   *) ac_try_echo=$ac_try;;
23378 esac
23379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380   (eval "$ac_compile") 2>conftest.er1
23381   ac_status=$?
23382   grep -v '^ *+' conftest.er1 >conftest.err
23383   rm -f conftest.er1
23384   cat conftest.err >&5
23385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386   (exit $ac_status); } && {
23387          test -z "$ac_c_werror_flag" ||
23388          test ! -s conftest.err
23389        } && test -s conftest.$ac_objext; then
23390   ac_hi=$ac_mid
23391 else
23392   echo "$as_me: failed program was:" >&5
23393 sed 's/^/| /' conftest.$ac_ext >&5
23394
23395         ac_lo=`expr '(' $ac_mid ')' + 1`
23396 fi
23397
23398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23399 done
23400 case $ac_lo in
23401 ?*) ac_cv_sizeof_long=$ac_lo;;
23402 '') if test "$ac_cv_type_long" = yes; then
23403      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23404 See \`config.log' for more details." >&5
23405 echo "$as_me: error: cannot compute sizeof (long)
23406 See \`config.log' for more details." >&2;}
23407    { (exit 77); exit 77; }; }
23408    else
23409      ac_cv_sizeof_long=0
23410    fi ;;
23411 esac
23412 else
23413   cat >conftest.$ac_ext <<_ACEOF
23414 /* confdefs.h.  */
23415 _ACEOF
23416 cat confdefs.h >>conftest.$ac_ext
23417 cat >>conftest.$ac_ext <<_ACEOF
23418 /* end confdefs.h.  */
23419 $ac_includes_default
23420    typedef long ac__type_sizeof_;
23421 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23422 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23423 #include <stdio.h>
23424 #include <stdlib.h>
23425 int
23426 main ()
23427 {
23428
23429   FILE *f = fopen ("conftest.val", "w");
23430   if (! f)
23431     return 1;
23432   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23433     {
23434       long int i = longval ();
23435       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23436         return 1;
23437       fprintf (f, "%ld\n", i);
23438     }
23439   else
23440     {
23441       unsigned long int i = ulongval ();
23442       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23443         return 1;
23444       fprintf (f, "%lu\n", i);
23445     }
23446   return ferror (f) || fclose (f) != 0;
23447
23448   ;
23449   return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest$ac_exeext
23453 if { (ac_try="$ac_link"
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_link") 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23463   { (case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_try") 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; }; then
23472   ac_cv_sizeof_long=`cat conftest.val`
23473 else
23474   echo "$as_me: program exited with status $ac_status" >&5
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23477
23478 ( exit $ac_status )
23479 if test "$ac_cv_type_long" = yes; then
23480      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23481 See \`config.log' for more details." >&5
23482 echo "$as_me: error: cannot compute sizeof (long)
23483 See \`config.log' for more details." >&2;}
23484    { (exit 77); exit 77; }; }
23485    else
23486      ac_cv_sizeof_long=0
23487    fi
23488 fi
23489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23490 fi
23491 rm -f conftest.val
23492 fi
23493 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23494 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23495
23496
23497
23498 cat >>confdefs.h <<_ACEOF
23499 #define SIZEOF_LONG $ac_cv_sizeof_long
23500 _ACEOF
23501
23502
23503 { echo "$as_me:$LINENO: checking for size_t" >&5
23504 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23505 if test "${ac_cv_type_size_t+set}" = set; then
23506   echo $ECHO_N "(cached) $ECHO_C" >&6
23507 else
23508   cat >conftest.$ac_ext <<_ACEOF
23509 /* confdefs.h.  */
23510 _ACEOF
23511 cat confdefs.h >>conftest.$ac_ext
23512 cat >>conftest.$ac_ext <<_ACEOF
23513 /* end confdefs.h.  */
23514 $ac_includes_default
23515 typedef size_t ac__type_new_;
23516 int
23517 main ()
23518 {
23519 if ((ac__type_new_ *) 0)
23520   return 0;
23521 if (sizeof (ac__type_new_))
23522   return 0;
23523   ;
23524   return 0;
23525 }
23526 _ACEOF
23527 rm -f conftest.$ac_objext
23528 if { (ac_try="$ac_compile"
23529 case "(($ac_try" in
23530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531   *) ac_try_echo=$ac_try;;
23532 esac
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534   (eval "$ac_compile") 2>conftest.er1
23535   ac_status=$?
23536   grep -v '^ *+' conftest.er1 >conftest.err
23537   rm -f conftest.er1
23538   cat conftest.err >&5
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); } && {
23541          test -z "$ac_c_werror_flag" ||
23542          test ! -s conftest.err
23543        } && test -s conftest.$ac_objext; then
23544   ac_cv_type_size_t=yes
23545 else
23546   echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23548
23549         ac_cv_type_size_t=no
23550 fi
23551
23552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553 fi
23554 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23555 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23556
23557 # The cast to long int works around a bug in the HP C Compiler
23558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23560 # This bug is HP SR number 8606223364.
23561 { echo "$as_me:$LINENO: checking size of size_t" >&5
23562 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23563 if test "${ac_cv_sizeof_size_t+set}" = set; then
23564   echo $ECHO_N "(cached) $ECHO_C" >&6
23565 else
23566   if test "$cross_compiling" = yes; then
23567   # Depending upon the size, compute the lo and hi bounds.
23568 cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h.  */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h.  */
23574 $ac_includes_default
23575    typedef size_t ac__type_sizeof_;
23576 int
23577 main ()
23578 {
23579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23580 test_array [0] = 0
23581
23582   ;
23583   return 0;
23584 }
23585 _ACEOF
23586 rm -f conftest.$ac_objext
23587 if { (ac_try="$ac_compile"
23588 case "(($ac_try" in
23589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590   *) ac_try_echo=$ac_try;;
23591 esac
23592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23593   (eval "$ac_compile") 2>conftest.er1
23594   ac_status=$?
23595   grep -v '^ *+' conftest.er1 >conftest.err
23596   rm -f conftest.er1
23597   cat conftest.err >&5
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); } && {
23600          test -z "$ac_c_werror_flag" ||
23601          test ! -s conftest.err
23602        } && test -s conftest.$ac_objext; then
23603   ac_lo=0 ac_mid=0
23604   while :; do
23605     cat >conftest.$ac_ext <<_ACEOF
23606 /* confdefs.h.  */
23607 _ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h.  */
23611 $ac_includes_default
23612    typedef size_t ac__type_sizeof_;
23613 int
23614 main ()
23615 {
23616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23617 test_array [0] = 0
23618
23619   ;
23620   return 0;
23621 }
23622 _ACEOF
23623 rm -f conftest.$ac_objext
23624 if { (ac_try="$ac_compile"
23625 case "(($ac_try" in
23626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627   *) ac_try_echo=$ac_try;;
23628 esac
23629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630   (eval "$ac_compile") 2>conftest.er1
23631   ac_status=$?
23632   grep -v '^ *+' conftest.er1 >conftest.err
23633   rm -f conftest.er1
23634   cat conftest.err >&5
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); } && {
23637          test -z "$ac_c_werror_flag" ||
23638          test ! -s conftest.err
23639        } && test -s conftest.$ac_objext; then
23640   ac_hi=$ac_mid; break
23641 else
23642   echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23644
23645         ac_lo=`expr $ac_mid + 1`
23646                         if test $ac_lo -le $ac_mid; then
23647                           ac_lo= ac_hi=
23648                           break
23649                         fi
23650                         ac_mid=`expr 2 '*' $ac_mid + 1`
23651 fi
23652
23653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23654   done
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659         cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h.  */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h.  */
23665 $ac_includes_default
23666    typedef size_t ac__type_sizeof_;
23667 int
23668 main ()
23669 {
23670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23671 test_array [0] = 0
23672
23673   ;
23674   return 0;
23675 }
23676 _ACEOF
23677 rm -f conftest.$ac_objext
23678 if { (ac_try="$ac_compile"
23679 case "(($ac_try" in
23680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681   *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684   (eval "$ac_compile") 2>conftest.er1
23685   ac_status=$?
23686   grep -v '^ *+' conftest.er1 >conftest.err
23687   rm -f conftest.er1
23688   cat conftest.err >&5
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); } && {
23691          test -z "$ac_c_werror_flag" ||
23692          test ! -s conftest.err
23693        } && test -s conftest.$ac_objext; then
23694   ac_hi=-1 ac_mid=-1
23695   while :; do
23696     cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h.  */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h.  */
23702 $ac_includes_default
23703    typedef size_t ac__type_sizeof_;
23704 int
23705 main ()
23706 {
23707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23708 test_array [0] = 0
23709
23710   ;
23711   return 0;
23712 }
23713 _ACEOF
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23718   *) ac_try_echo=$ac_try;;
23719 esac
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721   (eval "$ac_compile") 2>conftest.er1
23722   ac_status=$?
23723   grep -v '^ *+' conftest.er1 >conftest.err
23724   rm -f conftest.er1
23725   cat conftest.err >&5
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); } && {
23728          test -z "$ac_c_werror_flag" ||
23729          test ! -s conftest.err
23730        } && test -s conftest.$ac_objext; then
23731   ac_lo=$ac_mid; break
23732 else
23733   echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735
23736         ac_hi=`expr '(' $ac_mid ')' - 1`
23737                         if test $ac_mid -le $ac_hi; then
23738                           ac_lo= ac_hi=
23739                           break
23740                         fi
23741                         ac_mid=`expr 2 '*' $ac_mid`
23742 fi
23743
23744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745   done
23746 else
23747   echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750         ac_lo= ac_hi=
23751 fi
23752
23753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23754 fi
23755
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757 # Binary search between lo and hi bounds.
23758 while test "x$ac_lo" != "x$ac_hi"; do
23759   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23760   cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766 $ac_includes_default
23767    typedef size_t ac__type_sizeof_;
23768 int
23769 main ()
23770 {
23771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23772 test_array [0] = 0
23773
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782   *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785   (eval "$ac_compile") 2>conftest.er1
23786   ac_status=$?
23787   grep -v '^ *+' conftest.er1 >conftest.err
23788   rm -f conftest.er1
23789   cat conftest.err >&5
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); } && {
23792          test -z "$ac_c_werror_flag" ||
23793          test ! -s conftest.err
23794        } && test -s conftest.$ac_objext; then
23795   ac_hi=$ac_mid
23796 else
23797   echo "$as_me: failed program was:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23799
23800         ac_lo=`expr '(' $ac_mid ')' + 1`
23801 fi
23802
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23804 done
23805 case $ac_lo in
23806 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23807 '') if test "$ac_cv_type_size_t" = yes; then
23808      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23809 See \`config.log' for more details." >&5
23810 echo "$as_me: error: cannot compute sizeof (size_t)
23811 See \`config.log' for more details." >&2;}
23812    { (exit 77); exit 77; }; }
23813    else
23814      ac_cv_sizeof_size_t=0
23815    fi ;;
23816 esac
23817 else
23818   cat >conftest.$ac_ext <<_ACEOF
23819 /* confdefs.h.  */
23820 _ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h.  */
23824 $ac_includes_default
23825    typedef size_t ac__type_sizeof_;
23826 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23827 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23828 #include <stdio.h>
23829 #include <stdlib.h>
23830 int
23831 main ()
23832 {
23833
23834   FILE *f = fopen ("conftest.val", "w");
23835   if (! f)
23836     return 1;
23837   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23838     {
23839       long int i = longval ();
23840       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23841         return 1;
23842       fprintf (f, "%ld\n", i);
23843     }
23844   else
23845     {
23846       unsigned long int i = ulongval ();
23847       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23848         return 1;
23849       fprintf (f, "%lu\n", i);
23850     }
23851   return ferror (f) || fclose (f) != 0;
23852
23853   ;
23854   return 0;
23855 }
23856 _ACEOF
23857 rm -f conftest$ac_exeext
23858 if { (ac_try="$ac_link"
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_link") 2>&5
23865   ac_status=$?
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23868   { (case "(($ac_try" in
23869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870   *) ac_try_echo=$ac_try;;
23871 esac
23872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23873   (eval "$ac_try") 2>&5
23874   ac_status=$?
23875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876   (exit $ac_status); }; }; then
23877   ac_cv_sizeof_size_t=`cat conftest.val`
23878 else
23879   echo "$as_me: program exited with status $ac_status" >&5
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23882
23883 ( exit $ac_status )
23884 if test "$ac_cv_type_size_t" = yes; then
23885      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23886 See \`config.log' for more details." >&5
23887 echo "$as_me: error: cannot compute sizeof (size_t)
23888 See \`config.log' for more details." >&2;}
23889    { (exit 77); exit 77; }; }
23890    else
23891      ac_cv_sizeof_size_t=0
23892    fi
23893 fi
23894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23895 fi
23896 rm -f conftest.val
23897 fi
23898 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23899 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23900
23901
23902
23903 cat >>confdefs.h <<_ACEOF
23904 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23905 _ACEOF
23906
23907
23908
23909 case "${host}" in
23910     arm-*-linux* )
23911         { echo "$as_me:$LINENO: checking for long long" >&5
23912 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23913 if test "${ac_cv_type_long_long+set}" = set; then
23914   echo $ECHO_N "(cached) $ECHO_C" >&6
23915 else
23916   cat >conftest.$ac_ext <<_ACEOF
23917 /* confdefs.h.  */
23918 _ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h.  */
23922 $ac_includes_default
23923 typedef long long ac__type_new_;
23924 int
23925 main ()
23926 {
23927 if ((ac__type_new_ *) 0)
23928   return 0;
23929 if (sizeof (ac__type_new_))
23930   return 0;
23931   ;
23932   return 0;
23933 }
23934 _ACEOF
23935 rm -f conftest.$ac_objext
23936 if { (ac_try="$ac_compile"
23937 case "(($ac_try" in
23938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939   *) ac_try_echo=$ac_try;;
23940 esac
23941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23942   (eval "$ac_compile") 2>conftest.er1
23943   ac_status=$?
23944   grep -v '^ *+' conftest.er1 >conftest.err
23945   rm -f conftest.er1
23946   cat conftest.err >&5
23947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948   (exit $ac_status); } && {
23949          test -z "$ac_c_werror_flag" ||
23950          test ! -s conftest.err
23951        } && test -s conftest.$ac_objext; then
23952   ac_cv_type_long_long=yes
23953 else
23954   echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23956
23957         ac_cv_type_long_long=no
23958 fi
23959
23960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23961 fi
23962 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23963 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23964
23965 # The cast to long int works around a bug in the HP C Compiler
23966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23968 # This bug is HP SR number 8606223364.
23969 { echo "$as_me:$LINENO: checking size of long long" >&5
23970 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23971 if test "${ac_cv_sizeof_long_long+set}" = set; then
23972   echo $ECHO_N "(cached) $ECHO_C" >&6
23973 else
23974   if test "$cross_compiling" = yes; then
23975   # Depending upon the size, compute the lo and hi bounds.
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h.  */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h.  */
23982 $ac_includes_default
23983    typedef long long ac__type_sizeof_;
23984 int
23985 main ()
23986 {
23987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23988 test_array [0] = 0
23989
23990   ;
23991   return 0;
23992 }
23993 _ACEOF
23994 rm -f conftest.$ac_objext
23995 if { (ac_try="$ac_compile"
23996 case "(($ac_try" in
23997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998   *) ac_try_echo=$ac_try;;
23999 esac
24000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001   (eval "$ac_compile") 2>conftest.er1
24002   ac_status=$?
24003   grep -v '^ *+' conftest.er1 >conftest.err
24004   rm -f conftest.er1
24005   cat conftest.err >&5
24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007   (exit $ac_status); } && {
24008          test -z "$ac_c_werror_flag" ||
24009          test ! -s conftest.err
24010        } && test -s conftest.$ac_objext; then
24011   ac_lo=0 ac_mid=0
24012   while :; do
24013     cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h.  */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h.  */
24019 $ac_includes_default
24020    typedef long long ac__type_sizeof_;
24021 int
24022 main ()
24023 {
24024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24025 test_array [0] = 0
24026
24027   ;
24028   return 0;
24029 }
24030 _ACEOF
24031 rm -f conftest.$ac_objext
24032 if { (ac_try="$ac_compile"
24033 case "(($ac_try" in
24034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035   *) ac_try_echo=$ac_try;;
24036 esac
24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038   (eval "$ac_compile") 2>conftest.er1
24039   ac_status=$?
24040   grep -v '^ *+' conftest.er1 >conftest.err
24041   rm -f conftest.er1
24042   cat conftest.err >&5
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); } && {
24045          test -z "$ac_c_werror_flag" ||
24046          test ! -s conftest.err
24047        } && test -s conftest.$ac_objext; then
24048   ac_hi=$ac_mid; break
24049 else
24050   echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24052
24053         ac_lo=`expr $ac_mid + 1`
24054                         if test $ac_lo -le $ac_mid; then
24055                           ac_lo= ac_hi=
24056                           break
24057                         fi
24058                         ac_mid=`expr 2 '*' $ac_mid + 1`
24059 fi
24060
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062   done
24063 else
24064   echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24066
24067         cat >conftest.$ac_ext <<_ACEOF
24068 /* confdefs.h.  */
24069 _ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h.  */
24073 $ac_includes_default
24074    typedef long long ac__type_sizeof_;
24075 int
24076 main ()
24077 {
24078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24079 test_array [0] = 0
24080
24081   ;
24082   return 0;
24083 }
24084 _ACEOF
24085 rm -f conftest.$ac_objext
24086 if { (ac_try="$ac_compile"
24087 case "(($ac_try" in
24088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089   *) ac_try_echo=$ac_try;;
24090 esac
24091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24092   (eval "$ac_compile") 2>conftest.er1
24093   ac_status=$?
24094   grep -v '^ *+' conftest.er1 >conftest.err
24095   rm -f conftest.er1
24096   cat conftest.err >&5
24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098   (exit $ac_status); } && {
24099          test -z "$ac_c_werror_flag" ||
24100          test ! -s conftest.err
24101        } && test -s conftest.$ac_objext; then
24102   ac_hi=-1 ac_mid=-1
24103   while :; do
24104     cat >conftest.$ac_ext <<_ACEOF
24105 /* confdefs.h.  */
24106 _ACEOF
24107 cat confdefs.h >>conftest.$ac_ext
24108 cat >>conftest.$ac_ext <<_ACEOF
24109 /* end confdefs.h.  */
24110 $ac_includes_default
24111    typedef long long ac__type_sizeof_;
24112 int
24113 main ()
24114 {
24115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24116 test_array [0] = 0
24117
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest.$ac_objext
24123 if { (ac_try="$ac_compile"
24124 case "(($ac_try" in
24125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24126   *) ac_try_echo=$ac_try;;
24127 esac
24128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24129   (eval "$ac_compile") 2>conftest.er1
24130   ac_status=$?
24131   grep -v '^ *+' conftest.er1 >conftest.err
24132   rm -f conftest.er1
24133   cat conftest.err >&5
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); } && {
24136          test -z "$ac_c_werror_flag" ||
24137          test ! -s conftest.err
24138        } && test -s conftest.$ac_objext; then
24139   ac_lo=$ac_mid; break
24140 else
24141   echo "$as_me: failed program was:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24143
24144         ac_hi=`expr '(' $ac_mid ')' - 1`
24145                         if test $ac_mid -le $ac_hi; then
24146                           ac_lo= ac_hi=
24147                           break
24148                         fi
24149                         ac_mid=`expr 2 '*' $ac_mid`
24150 fi
24151
24152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24153   done
24154 else
24155   echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158         ac_lo= ac_hi=
24159 fi
24160
24161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162 fi
24163
24164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24165 # Binary search between lo and hi bounds.
24166 while test "x$ac_lo" != "x$ac_hi"; do
24167   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24168   cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h.  */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h.  */
24174 $ac_includes_default
24175    typedef long long ac__type_sizeof_;
24176 int
24177 main ()
24178 {
24179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24180 test_array [0] = 0
24181
24182   ;
24183   return 0;
24184 }
24185 _ACEOF
24186 rm -f conftest.$ac_objext
24187 if { (ac_try="$ac_compile"
24188 case "(($ac_try" in
24189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190   *) ac_try_echo=$ac_try;;
24191 esac
24192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24193   (eval "$ac_compile") 2>conftest.er1
24194   ac_status=$?
24195   grep -v '^ *+' conftest.er1 >conftest.err
24196   rm -f conftest.er1
24197   cat conftest.err >&5
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); } && {
24200          test -z "$ac_c_werror_flag" ||
24201          test ! -s conftest.err
24202        } && test -s conftest.$ac_objext; then
24203   ac_hi=$ac_mid
24204 else
24205   echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24207
24208         ac_lo=`expr '(' $ac_mid ')' + 1`
24209 fi
24210
24211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24212 done
24213 case $ac_lo in
24214 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24215 '') if test "$ac_cv_type_long_long" = yes; then
24216      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24217 See \`config.log' for more details." >&5
24218 echo "$as_me: error: cannot compute sizeof (long long)
24219 See \`config.log' for more details." >&2;}
24220    { (exit 77); exit 77; }; }
24221    else
24222      ac_cv_sizeof_long_long=0
24223    fi ;;
24224 esac
24225 else
24226   cat >conftest.$ac_ext <<_ACEOF
24227 /* confdefs.h.  */
24228 _ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h.  */
24232 $ac_includes_default
24233    typedef long long ac__type_sizeof_;
24234 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24235 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24236 #include <stdio.h>
24237 #include <stdlib.h>
24238 int
24239 main ()
24240 {
24241
24242   FILE *f = fopen ("conftest.val", "w");
24243   if (! f)
24244     return 1;
24245   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24246     {
24247       long int i = longval ();
24248       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24249         return 1;
24250       fprintf (f, "%ld\n", i);
24251     }
24252   else
24253     {
24254       unsigned long int i = ulongval ();
24255       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24256         return 1;
24257       fprintf (f, "%lu\n", i);
24258     }
24259   return ferror (f) || fclose (f) != 0;
24260
24261   ;
24262   return 0;
24263 }
24264 _ACEOF
24265 rm -f conftest$ac_exeext
24266 if { (ac_try="$ac_link"
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_link") 2>&5
24273   ac_status=$?
24274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24276   { (case "(($ac_try" in
24277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24278   *) ac_try_echo=$ac_try;;
24279 esac
24280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24281   (eval "$ac_try") 2>&5
24282   ac_status=$?
24283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); }; }; then
24285   ac_cv_sizeof_long_long=`cat conftest.val`
24286 else
24287   echo "$as_me: program exited with status $ac_status" >&5
24288 echo "$as_me: failed program was:" >&5
24289 sed 's/^/| /' conftest.$ac_ext >&5
24290
24291 ( exit $ac_status )
24292 if test "$ac_cv_type_long_long" = yes; then
24293      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24294 See \`config.log' for more details." >&5
24295 echo "$as_me: error: cannot compute sizeof (long long)
24296 See \`config.log' for more details." >&2;}
24297    { (exit 77); exit 77; }; }
24298    else
24299      ac_cv_sizeof_long_long=0
24300    fi
24301 fi
24302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24303 fi
24304 rm -f conftest.val
24305 fi
24306 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24307 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24308
24309
24310
24311 cat >>confdefs.h <<_ACEOF
24312 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24313 _ACEOF
24314
24315
24316     ;;
24317     *-hp-hpux* )
24318         { echo "$as_me:$LINENO: checking for long long" >&5
24319 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24320 if test "${ac_cv_type_long_long+set}" = set; then
24321   echo $ECHO_N "(cached) $ECHO_C" >&6
24322 else
24323   cat >conftest.$ac_ext <<_ACEOF
24324 /* confdefs.h.  */
24325 _ACEOF
24326 cat confdefs.h >>conftest.$ac_ext
24327 cat >>conftest.$ac_ext <<_ACEOF
24328 /* end confdefs.h.  */
24329 $ac_includes_default
24330 typedef long long ac__type_new_;
24331 int
24332 main ()
24333 {
24334 if ((ac__type_new_ *) 0)
24335   return 0;
24336 if (sizeof (ac__type_new_))
24337   return 0;
24338   ;
24339   return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext
24343 if { (ac_try="$ac_compile"
24344 case "(($ac_try" in
24345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346   *) ac_try_echo=$ac_try;;
24347 esac
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349   (eval "$ac_compile") 2>conftest.er1
24350   ac_status=$?
24351   grep -v '^ *+' conftest.er1 >conftest.err
24352   rm -f conftest.er1
24353   cat conftest.err >&5
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); } && {
24356          test -z "$ac_c_werror_flag" ||
24357          test ! -s conftest.err
24358        } && test -s conftest.$ac_objext; then
24359   ac_cv_type_long_long=yes
24360 else
24361   echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24363
24364         ac_cv_type_long_long=no
24365 fi
24366
24367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24368 fi
24369 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24370 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24371
24372 # The cast to long int works around a bug in the HP C Compiler
24373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24375 # This bug is HP SR number 8606223364.
24376 { echo "$as_me:$LINENO: checking size of long long" >&5
24377 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24378 if test "${ac_cv_sizeof_long_long+set}" = set; then
24379   echo $ECHO_N "(cached) $ECHO_C" >&6
24380 else
24381   if test "$cross_compiling" = yes; then
24382   # Depending upon the size, compute the lo and hi bounds.
24383 cat >conftest.$ac_ext <<_ACEOF
24384 /* confdefs.h.  */
24385 _ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h.  */
24389 $ac_includes_default
24390    typedef long long ac__type_sizeof_;
24391 int
24392 main ()
24393 {
24394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24395 test_array [0] = 0
24396
24397   ;
24398   return 0;
24399 }
24400 _ACEOF
24401 rm -f conftest.$ac_objext
24402 if { (ac_try="$ac_compile"
24403 case "(($ac_try" in
24404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24405   *) ac_try_echo=$ac_try;;
24406 esac
24407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24408   (eval "$ac_compile") 2>conftest.er1
24409   ac_status=$?
24410   grep -v '^ *+' conftest.er1 >conftest.err
24411   rm -f conftest.er1
24412   cat conftest.err >&5
24413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414   (exit $ac_status); } && {
24415          test -z "$ac_c_werror_flag" ||
24416          test ! -s conftest.err
24417        } && test -s conftest.$ac_objext; then
24418   ac_lo=0 ac_mid=0
24419   while :; do
24420     cat >conftest.$ac_ext <<_ACEOF
24421 /* confdefs.h.  */
24422 _ACEOF
24423 cat confdefs.h >>conftest.$ac_ext
24424 cat >>conftest.$ac_ext <<_ACEOF
24425 /* end confdefs.h.  */
24426 $ac_includes_default
24427    typedef long long ac__type_sizeof_;
24428 int
24429 main ()
24430 {
24431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24432 test_array [0] = 0
24433
24434   ;
24435   return 0;
24436 }
24437 _ACEOF
24438 rm -f conftest.$ac_objext
24439 if { (ac_try="$ac_compile"
24440 case "(($ac_try" in
24441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442   *) ac_try_echo=$ac_try;;
24443 esac
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445   (eval "$ac_compile") 2>conftest.er1
24446   ac_status=$?
24447   grep -v '^ *+' conftest.er1 >conftest.err
24448   rm -f conftest.er1
24449   cat conftest.err >&5
24450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451   (exit $ac_status); } && {
24452          test -z "$ac_c_werror_flag" ||
24453          test ! -s conftest.err
24454        } && test -s conftest.$ac_objext; then
24455   ac_hi=$ac_mid; break
24456 else
24457   echo "$as_me: failed program was:" >&5
24458 sed 's/^/| /' conftest.$ac_ext >&5
24459
24460         ac_lo=`expr $ac_mid + 1`
24461                         if test $ac_lo -le $ac_mid; then
24462                           ac_lo= ac_hi=
24463                           break
24464                         fi
24465                         ac_mid=`expr 2 '*' $ac_mid + 1`
24466 fi
24467
24468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24469   done
24470 else
24471   echo "$as_me: failed program was:" >&5
24472 sed 's/^/| /' conftest.$ac_ext >&5
24473
24474         cat >conftest.$ac_ext <<_ACEOF
24475 /* confdefs.h.  */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h.  */
24480 $ac_includes_default
24481    typedef long long ac__type_sizeof_;
24482 int
24483 main ()
24484 {
24485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24486 test_array [0] = 0
24487
24488   ;
24489   return 0;
24490 }
24491 _ACEOF
24492 rm -f conftest.$ac_objext
24493 if { (ac_try="$ac_compile"
24494 case "(($ac_try" in
24495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496   *) ac_try_echo=$ac_try;;
24497 esac
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499   (eval "$ac_compile") 2>conftest.er1
24500   ac_status=$?
24501   grep -v '^ *+' conftest.er1 >conftest.err
24502   rm -f conftest.er1
24503   cat conftest.err >&5
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); } && {
24506          test -z "$ac_c_werror_flag" ||
24507          test ! -s conftest.err
24508        } && test -s conftest.$ac_objext; then
24509   ac_hi=-1 ac_mid=-1
24510   while :; do
24511     cat >conftest.$ac_ext <<_ACEOF
24512 /* confdefs.h.  */
24513 _ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h.  */
24517 $ac_includes_default
24518    typedef long long ac__type_sizeof_;
24519 int
24520 main ()
24521 {
24522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24523 test_array [0] = 0
24524
24525   ;
24526   return 0;
24527 }
24528 _ACEOF
24529 rm -f conftest.$ac_objext
24530 if { (ac_try="$ac_compile"
24531 case "(($ac_try" in
24532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24533   *) ac_try_echo=$ac_try;;
24534 esac
24535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24536   (eval "$ac_compile") 2>conftest.er1
24537   ac_status=$?
24538   grep -v '^ *+' conftest.er1 >conftest.err
24539   rm -f conftest.er1
24540   cat conftest.err >&5
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); } && {
24543          test -z "$ac_c_werror_flag" ||
24544          test ! -s conftest.err
24545        } && test -s conftest.$ac_objext; then
24546   ac_lo=$ac_mid; break
24547 else
24548   echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24550
24551         ac_hi=`expr '(' $ac_mid ')' - 1`
24552                         if test $ac_mid -le $ac_hi; then
24553                           ac_lo= ac_hi=
24554                           break
24555                         fi
24556                         ac_mid=`expr 2 '*' $ac_mid`
24557 fi
24558
24559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24560   done
24561 else
24562   echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24564
24565         ac_lo= ac_hi=
24566 fi
24567
24568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24569 fi
24570
24571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24572 # Binary search between lo and hi bounds.
24573 while test "x$ac_lo" != "x$ac_hi"; do
24574   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24575   cat >conftest.$ac_ext <<_ACEOF
24576 /* confdefs.h.  */
24577 _ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h.  */
24581 $ac_includes_default
24582    typedef long long ac__type_sizeof_;
24583 int
24584 main ()
24585 {
24586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24587 test_array [0] = 0
24588
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest.$ac_objext
24594 if { (ac_try="$ac_compile"
24595 case "(($ac_try" in
24596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597   *) ac_try_echo=$ac_try;;
24598 esac
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600   (eval "$ac_compile") 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } && {
24607          test -z "$ac_c_werror_flag" ||
24608          test ! -s conftest.err
24609        } && test -s conftest.$ac_objext; then
24610   ac_hi=$ac_mid
24611 else
24612   echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615         ac_lo=`expr '(' $ac_mid ')' + 1`
24616 fi
24617
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619 done
24620 case $ac_lo in
24621 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24622 '') if test "$ac_cv_type_long_long" = yes; then
24623      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24624 See \`config.log' for more details." >&5
24625 echo "$as_me: error: cannot compute sizeof (long long)
24626 See \`config.log' for more details." >&2;}
24627    { (exit 77); exit 77; }; }
24628    else
24629      ac_cv_sizeof_long_long=0
24630    fi ;;
24631 esac
24632 else
24633   cat >conftest.$ac_ext <<_ACEOF
24634 /* confdefs.h.  */
24635 _ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h.  */
24639 $ac_includes_default
24640    typedef long long ac__type_sizeof_;
24641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24643 #include <stdio.h>
24644 #include <stdlib.h>
24645 int
24646 main ()
24647 {
24648
24649   FILE *f = fopen ("conftest.val", "w");
24650   if (! f)
24651     return 1;
24652   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24653     {
24654       long int i = longval ();
24655       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24656         return 1;
24657       fprintf (f, "%ld\n", i);
24658     }
24659   else
24660     {
24661       unsigned long int i = ulongval ();
24662       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24663         return 1;
24664       fprintf (f, "%lu\n", i);
24665     }
24666   return ferror (f) || fclose (f) != 0;
24667
24668   ;
24669   return 0;
24670 }
24671 _ACEOF
24672 rm -f conftest$ac_exeext
24673 if { (ac_try="$ac_link"
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_link") 2>&5
24680   ac_status=$?
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24683   { (case "(($ac_try" in
24684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685   *) ac_try_echo=$ac_try;;
24686 esac
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688   (eval "$ac_try") 2>&5
24689   ac_status=$?
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); }; }; then
24692   ac_cv_sizeof_long_long=`cat conftest.val`
24693 else
24694   echo "$as_me: program exited with status $ac_status" >&5
24695 echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698 ( exit $ac_status )
24699 if test "$ac_cv_type_long_long" = yes; then
24700      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24701 See \`config.log' for more details." >&5
24702 echo "$as_me: error: cannot compute sizeof (long long)
24703 See \`config.log' for more details." >&2;}
24704    { (exit 77); exit 77; }; }
24705    else
24706      ac_cv_sizeof_long_long=0
24707    fi
24708 fi
24709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24710 fi
24711 rm -f conftest.val
24712 fi
24713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24714 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24715
24716
24717
24718 cat >>confdefs.h <<_ACEOF
24719 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24720 _ACEOF
24721
24722
24723         if test "$ac_cv_sizeof_long_long" != "0"; then
24724                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24725         fi
24726     ;;
24727     * )
24728         { echo "$as_me:$LINENO: checking for long long" >&5
24729 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24730 if test "${ac_cv_type_long_long+set}" = set; then
24731   echo $ECHO_N "(cached) $ECHO_C" >&6
24732 else
24733   cat >conftest.$ac_ext <<_ACEOF
24734 /* confdefs.h.  */
24735 _ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h.  */
24739 $ac_includes_default
24740 typedef long long ac__type_new_;
24741 int
24742 main ()
24743 {
24744 if ((ac__type_new_ *) 0)
24745   return 0;
24746 if (sizeof (ac__type_new_))
24747   return 0;
24748   ;
24749   return 0;
24750 }
24751 _ACEOF
24752 rm -f conftest.$ac_objext
24753 if { (ac_try="$ac_compile"
24754 case "(($ac_try" in
24755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24756   *) ac_try_echo=$ac_try;;
24757 esac
24758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24759   (eval "$ac_compile") 2>conftest.er1
24760   ac_status=$?
24761   grep -v '^ *+' conftest.er1 >conftest.err
24762   rm -f conftest.er1
24763   cat conftest.err >&5
24764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); } && {
24766          test -z "$ac_c_werror_flag" ||
24767          test ! -s conftest.err
24768        } && test -s conftest.$ac_objext; then
24769   ac_cv_type_long_long=yes
24770 else
24771   echo "$as_me: failed program was:" >&5
24772 sed 's/^/| /' conftest.$ac_ext >&5
24773
24774         ac_cv_type_long_long=no
24775 fi
24776
24777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24778 fi
24779 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24780 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24781
24782 # The cast to long int works around a bug in the HP C Compiler
24783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24785 # This bug is HP SR number 8606223364.
24786 { echo "$as_me:$LINENO: checking size of long long" >&5
24787 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24788 if test "${ac_cv_sizeof_long_long+set}" = set; then
24789   echo $ECHO_N "(cached) $ECHO_C" >&6
24790 else
24791   if test "$cross_compiling" = yes; then
24792   # Depending upon the size, compute the lo and hi bounds.
24793 cat >conftest.$ac_ext <<_ACEOF
24794 /* confdefs.h.  */
24795 _ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h.  */
24799 $ac_includes_default
24800    typedef long long ac__type_sizeof_;
24801 int
24802 main ()
24803 {
24804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24805 test_array [0] = 0
24806
24807   ;
24808   return 0;
24809 }
24810 _ACEOF
24811 rm -f conftest.$ac_objext
24812 if { (ac_try="$ac_compile"
24813 case "(($ac_try" in
24814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24815   *) ac_try_echo=$ac_try;;
24816 esac
24817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24818   (eval "$ac_compile") 2>conftest.er1
24819   ac_status=$?
24820   grep -v '^ *+' conftest.er1 >conftest.err
24821   rm -f conftest.er1
24822   cat conftest.err >&5
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); } && {
24825          test -z "$ac_c_werror_flag" ||
24826          test ! -s conftest.err
24827        } && test -s conftest.$ac_objext; then
24828   ac_lo=0 ac_mid=0
24829   while :; do
24830     cat >conftest.$ac_ext <<_ACEOF
24831 /* confdefs.h.  */
24832 _ACEOF
24833 cat confdefs.h >>conftest.$ac_ext
24834 cat >>conftest.$ac_ext <<_ACEOF
24835 /* end confdefs.h.  */
24836 $ac_includes_default
24837    typedef long long ac__type_sizeof_;
24838 int
24839 main ()
24840 {
24841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24842 test_array [0] = 0
24843
24844   ;
24845   return 0;
24846 }
24847 _ACEOF
24848 rm -f conftest.$ac_objext
24849 if { (ac_try="$ac_compile"
24850 case "(($ac_try" in
24851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852   *) ac_try_echo=$ac_try;;
24853 esac
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855   (eval "$ac_compile") 2>conftest.er1
24856   ac_status=$?
24857   grep -v '^ *+' conftest.er1 >conftest.err
24858   rm -f conftest.er1
24859   cat conftest.err >&5
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); } && {
24862          test -z "$ac_c_werror_flag" ||
24863          test ! -s conftest.err
24864        } && test -s conftest.$ac_objext; then
24865   ac_hi=$ac_mid; break
24866 else
24867   echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24869
24870         ac_lo=`expr $ac_mid + 1`
24871                         if test $ac_lo -le $ac_mid; then
24872                           ac_lo= ac_hi=
24873                           break
24874                         fi
24875                         ac_mid=`expr 2 '*' $ac_mid + 1`
24876 fi
24877
24878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24879   done
24880 else
24881   echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24883
24884         cat >conftest.$ac_ext <<_ACEOF
24885 /* confdefs.h.  */
24886 _ACEOF
24887 cat confdefs.h >>conftest.$ac_ext
24888 cat >>conftest.$ac_ext <<_ACEOF
24889 /* end confdefs.h.  */
24890 $ac_includes_default
24891    typedef long long ac__type_sizeof_;
24892 int
24893 main ()
24894 {
24895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24896 test_array [0] = 0
24897
24898   ;
24899   return 0;
24900 }
24901 _ACEOF
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906   *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909   (eval "$ac_compile") 2>conftest.er1
24910   ac_status=$?
24911   grep -v '^ *+' conftest.er1 >conftest.err
24912   rm -f conftest.er1
24913   cat conftest.err >&5
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); } && {
24916          test -z "$ac_c_werror_flag" ||
24917          test ! -s conftest.err
24918        } && test -s conftest.$ac_objext; then
24919   ac_hi=-1 ac_mid=-1
24920   while :; do
24921     cat >conftest.$ac_ext <<_ACEOF
24922 /* confdefs.h.  */
24923 _ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h.  */
24927 $ac_includes_default
24928    typedef long long ac__type_sizeof_;
24929 int
24930 main ()
24931 {
24932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24933 test_array [0] = 0
24934
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext
24940 if { (ac_try="$ac_compile"
24941 case "(($ac_try" in
24942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943   *) ac_try_echo=$ac_try;;
24944 esac
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946   (eval "$ac_compile") 2>conftest.er1
24947   ac_status=$?
24948   grep -v '^ *+' conftest.er1 >conftest.err
24949   rm -f conftest.er1
24950   cat conftest.err >&5
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); } && {
24953          test -z "$ac_c_werror_flag" ||
24954          test ! -s conftest.err
24955        } && test -s conftest.$ac_objext; then
24956   ac_lo=$ac_mid; break
24957 else
24958   echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24960
24961         ac_hi=`expr '(' $ac_mid ')' - 1`
24962                         if test $ac_mid -le $ac_hi; then
24963                           ac_lo= ac_hi=
24964                           break
24965                         fi
24966                         ac_mid=`expr 2 '*' $ac_mid`
24967 fi
24968
24969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24970   done
24971 else
24972   echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24974
24975         ac_lo= ac_hi=
24976 fi
24977
24978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979 fi
24980
24981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24982 # Binary search between lo and hi bounds.
24983 while test "x$ac_lo" != "x$ac_hi"; do
24984   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24985   cat >conftest.$ac_ext <<_ACEOF
24986 /* confdefs.h.  */
24987 _ACEOF
24988 cat confdefs.h >>conftest.$ac_ext
24989 cat >>conftest.$ac_ext <<_ACEOF
24990 /* end confdefs.h.  */
24991 $ac_includes_default
24992    typedef long long ac__type_sizeof_;
24993 int
24994 main ()
24995 {
24996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24997 test_array [0] = 0
24998
24999   ;
25000   return 0;
25001 }
25002 _ACEOF
25003 rm -f conftest.$ac_objext
25004 if { (ac_try="$ac_compile"
25005 case "(($ac_try" in
25006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25007   *) ac_try_echo=$ac_try;;
25008 esac
25009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25010   (eval "$ac_compile") 2>conftest.er1
25011   ac_status=$?
25012   grep -v '^ *+' conftest.er1 >conftest.err
25013   rm -f conftest.er1
25014   cat conftest.err >&5
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); } && {
25017          test -z "$ac_c_werror_flag" ||
25018          test ! -s conftest.err
25019        } && test -s conftest.$ac_objext; then
25020   ac_hi=$ac_mid
25021 else
25022   echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025         ac_lo=`expr '(' $ac_mid ')' + 1`
25026 fi
25027
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 done
25030 case $ac_lo in
25031 ?*) ac_cv_sizeof_long_long=$ac_lo;;
25032 '') if test "$ac_cv_type_long_long" = yes; then
25033      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25034 See \`config.log' for more details." >&5
25035 echo "$as_me: error: cannot compute sizeof (long long)
25036 See \`config.log' for more details." >&2;}
25037    { (exit 77); exit 77; }; }
25038    else
25039      ac_cv_sizeof_long_long=0
25040    fi ;;
25041 esac
25042 else
25043   cat >conftest.$ac_ext <<_ACEOF
25044 /* confdefs.h.  */
25045 _ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h.  */
25049 $ac_includes_default
25050    typedef long long ac__type_sizeof_;
25051 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25052 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25053 #include <stdio.h>
25054 #include <stdlib.h>
25055 int
25056 main ()
25057 {
25058
25059   FILE *f = fopen ("conftest.val", "w");
25060   if (! f)
25061     return 1;
25062   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25063     {
25064       long int i = longval ();
25065       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25066         return 1;
25067       fprintf (f, "%ld\n", i);
25068     }
25069   else
25070     {
25071       unsigned long int i = ulongval ();
25072       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25073         return 1;
25074       fprintf (f, "%lu\n", i);
25075     }
25076   return ferror (f) || fclose (f) != 0;
25077
25078   ;
25079   return 0;
25080 }
25081 _ACEOF
25082 rm -f conftest$ac_exeext
25083 if { (ac_try="$ac_link"
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_link") 2>&5
25090   ac_status=$?
25091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25093   { (case "(($ac_try" in
25094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095   *) ac_try_echo=$ac_try;;
25096 esac
25097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098   (eval "$ac_try") 2>&5
25099   ac_status=$?
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; }; then
25102   ac_cv_sizeof_long_long=`cat conftest.val`
25103 else
25104   echo "$as_me: program exited with status $ac_status" >&5
25105 echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108 ( exit $ac_status )
25109 if test "$ac_cv_type_long_long" = yes; then
25110      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25111 See \`config.log' for more details." >&5
25112 echo "$as_me: error: cannot compute sizeof (long long)
25113 See \`config.log' for more details." >&2;}
25114    { (exit 77); exit 77; }; }
25115    else
25116      ac_cv_sizeof_long_long=0
25117    fi
25118 fi
25119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25120 fi
25121 rm -f conftest.val
25122 fi
25123 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25124 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25125
25126
25127
25128 cat >>confdefs.h <<_ACEOF
25129 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25130 _ACEOF
25131
25132
25133 esac
25134
25135 { echo "$as_me:$LINENO: checking for wchar_t" >&5
25136 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25137 if test "${ac_cv_type_wchar_t+set}" = set; then
25138   echo $ECHO_N "(cached) $ECHO_C" >&6
25139 else
25140   cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h.  */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h.  */
25146
25147         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25148         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25149         #  error "fake wchar_t"
25150         #endif
25151         #ifdef HAVE_WCHAR_H
25152         #  ifdef __CYGWIN__
25153         #    include <stddef.h>
25154         #  endif
25155         #  include <wchar.h>
25156         #endif
25157         #ifdef HAVE_STDLIB_H
25158         #  include <stdlib.h>
25159         #endif
25160         #include <stdio.h>
25161
25162
25163
25164 typedef wchar_t ac__type_new_;
25165 int
25166 main ()
25167 {
25168 if ((ac__type_new_ *) 0)
25169   return 0;
25170 if (sizeof (ac__type_new_))
25171   return 0;
25172   ;
25173   return 0;
25174 }
25175 _ACEOF
25176 rm -f conftest.$ac_objext
25177 if { (ac_try="$ac_compile"
25178 case "(($ac_try" in
25179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180   *) ac_try_echo=$ac_try;;
25181 esac
25182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25183   (eval "$ac_compile") 2>conftest.er1
25184   ac_status=$?
25185   grep -v '^ *+' conftest.er1 >conftest.err
25186   rm -f conftest.er1
25187   cat conftest.err >&5
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); } && {
25190          test -z "$ac_c_werror_flag" ||
25191          test ! -s conftest.err
25192        } && test -s conftest.$ac_objext; then
25193   ac_cv_type_wchar_t=yes
25194 else
25195   echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25197
25198         ac_cv_type_wchar_t=no
25199 fi
25200
25201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25202 fi
25203 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
25204 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
25205
25206 # The cast to long int works around a bug in the HP C Compiler
25207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25209 # This bug is HP SR number 8606223364.
25210 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
25211 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
25212 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25213   echo $ECHO_N "(cached) $ECHO_C" >&6
25214 else
25215   if test "$cross_compiling" = yes; then
25216   # Depending upon the size, compute the lo and hi bounds.
25217 cat >conftest.$ac_ext <<_ACEOF
25218 /* confdefs.h.  */
25219 _ACEOF
25220 cat confdefs.h >>conftest.$ac_ext
25221 cat >>conftest.$ac_ext <<_ACEOF
25222 /* end confdefs.h.  */
25223
25224         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25225         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25226         #  error "fake wchar_t"
25227         #endif
25228         #ifdef HAVE_WCHAR_H
25229         #  ifdef __CYGWIN__
25230         #    include <stddef.h>
25231         #  endif
25232         #  include <wchar.h>
25233         #endif
25234         #ifdef HAVE_STDLIB_H
25235         #  include <stdlib.h>
25236         #endif
25237         #include <stdio.h>
25238
25239
25240
25241    typedef wchar_t ac__type_sizeof_;
25242 int
25243 main ()
25244 {
25245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25246 test_array [0] = 0
25247
25248   ;
25249   return 0;
25250 }
25251 _ACEOF
25252 rm -f conftest.$ac_objext
25253 if { (ac_try="$ac_compile"
25254 case "(($ac_try" in
25255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256   *) ac_try_echo=$ac_try;;
25257 esac
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259   (eval "$ac_compile") 2>conftest.er1
25260   ac_status=$?
25261   grep -v '^ *+' conftest.er1 >conftest.err
25262   rm -f conftest.er1
25263   cat conftest.err >&5
25264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); } && {
25266          test -z "$ac_c_werror_flag" ||
25267          test ! -s conftest.err
25268        } && test -s conftest.$ac_objext; then
25269   ac_lo=0 ac_mid=0
25270   while :; do
25271     cat >conftest.$ac_ext <<_ACEOF
25272 /* confdefs.h.  */
25273 _ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h.  */
25277
25278         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25279         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25280         #  error "fake wchar_t"
25281         #endif
25282         #ifdef HAVE_WCHAR_H
25283         #  ifdef __CYGWIN__
25284         #    include <stddef.h>
25285         #  endif
25286         #  include <wchar.h>
25287         #endif
25288         #ifdef HAVE_STDLIB_H
25289         #  include <stdlib.h>
25290         #endif
25291         #include <stdio.h>
25292
25293
25294
25295    typedef wchar_t ac__type_sizeof_;
25296 int
25297 main ()
25298 {
25299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25300 test_array [0] = 0
25301
25302   ;
25303   return 0;
25304 }
25305 _ACEOF
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310   *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313   (eval "$ac_compile") 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } && {
25320          test -z "$ac_c_werror_flag" ||
25321          test ! -s conftest.err
25322        } && test -s conftest.$ac_objext; then
25323   ac_hi=$ac_mid; break
25324 else
25325   echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25327
25328         ac_lo=`expr $ac_mid + 1`
25329                         if test $ac_lo -le $ac_mid; then
25330                           ac_lo= ac_hi=
25331                           break
25332                         fi
25333                         ac_mid=`expr 2 '*' $ac_mid + 1`
25334 fi
25335
25336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25337   done
25338 else
25339   echo "$as_me: failed program was:" >&5
25340 sed 's/^/| /' conftest.$ac_ext >&5
25341
25342         cat >conftest.$ac_ext <<_ACEOF
25343 /* confdefs.h.  */
25344 _ACEOF
25345 cat confdefs.h >>conftest.$ac_ext
25346 cat >>conftest.$ac_ext <<_ACEOF
25347 /* end confdefs.h.  */
25348
25349         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25350         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25351         #  error "fake wchar_t"
25352         #endif
25353         #ifdef HAVE_WCHAR_H
25354         #  ifdef __CYGWIN__
25355         #    include <stddef.h>
25356         #  endif
25357         #  include <wchar.h>
25358         #endif
25359         #ifdef HAVE_STDLIB_H
25360         #  include <stdlib.h>
25361         #endif
25362         #include <stdio.h>
25363
25364
25365
25366    typedef wchar_t ac__type_sizeof_;
25367 int
25368 main ()
25369 {
25370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25371 test_array [0] = 0
25372
25373   ;
25374   return 0;
25375 }
25376 _ACEOF
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381   *) ac_try_echo=$ac_try;;
25382 esac
25383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25384   (eval "$ac_compile") 2>conftest.er1
25385   ac_status=$?
25386   grep -v '^ *+' conftest.er1 >conftest.err
25387   rm -f conftest.er1
25388   cat conftest.err >&5
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); } && {
25391          test -z "$ac_c_werror_flag" ||
25392          test ! -s conftest.err
25393        } && test -s conftest.$ac_objext; then
25394   ac_hi=-1 ac_mid=-1
25395   while :; do
25396     cat >conftest.$ac_ext <<_ACEOF
25397 /* confdefs.h.  */
25398 _ACEOF
25399 cat confdefs.h >>conftest.$ac_ext
25400 cat >>conftest.$ac_ext <<_ACEOF
25401 /* end confdefs.h.  */
25402
25403         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25404         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25405         #  error "fake wchar_t"
25406         #endif
25407         #ifdef HAVE_WCHAR_H
25408         #  ifdef __CYGWIN__
25409         #    include <stddef.h>
25410         #  endif
25411         #  include <wchar.h>
25412         #endif
25413         #ifdef HAVE_STDLIB_H
25414         #  include <stdlib.h>
25415         #endif
25416         #include <stdio.h>
25417
25418
25419
25420    typedef wchar_t ac__type_sizeof_;
25421 int
25422 main ()
25423 {
25424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25425 test_array [0] = 0
25426
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 rm -f conftest.$ac_objext
25432 if { (ac_try="$ac_compile"
25433 case "(($ac_try" in
25434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435   *) ac_try_echo=$ac_try;;
25436 esac
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438   (eval "$ac_compile") 2>conftest.er1
25439   ac_status=$?
25440   grep -v '^ *+' conftest.er1 >conftest.err
25441   rm -f conftest.er1
25442   cat conftest.err >&5
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); } && {
25445          test -z "$ac_c_werror_flag" ||
25446          test ! -s conftest.err
25447        } && test -s conftest.$ac_objext; then
25448   ac_lo=$ac_mid; break
25449 else
25450   echo "$as_me: failed program was:" >&5
25451 sed 's/^/| /' conftest.$ac_ext >&5
25452
25453         ac_hi=`expr '(' $ac_mid ')' - 1`
25454                         if test $ac_mid -le $ac_hi; then
25455                           ac_lo= ac_hi=
25456                           break
25457                         fi
25458                         ac_mid=`expr 2 '*' $ac_mid`
25459 fi
25460
25461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25462   done
25463 else
25464   echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467         ac_lo= ac_hi=
25468 fi
25469
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471 fi
25472
25473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25474 # Binary search between lo and hi bounds.
25475 while test "x$ac_lo" != "x$ac_hi"; do
25476   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25477   cat >conftest.$ac_ext <<_ACEOF
25478 /* confdefs.h.  */
25479 _ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h.  */
25483
25484         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25485         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25486         #  error "fake wchar_t"
25487         #endif
25488         #ifdef HAVE_WCHAR_H
25489         #  ifdef __CYGWIN__
25490         #    include <stddef.h>
25491         #  endif
25492         #  include <wchar.h>
25493         #endif
25494         #ifdef HAVE_STDLIB_H
25495         #  include <stdlib.h>
25496         #endif
25497         #include <stdio.h>
25498
25499
25500
25501    typedef wchar_t ac__type_sizeof_;
25502 int
25503 main ()
25504 {
25505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25506 test_array [0] = 0
25507
25508   ;
25509   return 0;
25510 }
25511 _ACEOF
25512 rm -f conftest.$ac_objext
25513 if { (ac_try="$ac_compile"
25514 case "(($ac_try" in
25515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516   *) ac_try_echo=$ac_try;;
25517 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519   (eval "$ac_compile") 2>conftest.er1
25520   ac_status=$?
25521   grep -v '^ *+' conftest.er1 >conftest.err
25522   rm -f conftest.er1
25523   cat conftest.err >&5
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); } && {
25526          test -z "$ac_c_werror_flag" ||
25527          test ! -s conftest.err
25528        } && test -s conftest.$ac_objext; then
25529   ac_hi=$ac_mid
25530 else
25531   echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25533
25534         ac_lo=`expr '(' $ac_mid ')' + 1`
25535 fi
25536
25537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25538 done
25539 case $ac_lo in
25540 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25541 '') if test "$ac_cv_type_wchar_t" = yes; then
25542      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25543 See \`config.log' for more details." >&5
25544 echo "$as_me: error: cannot compute sizeof (wchar_t)
25545 See \`config.log' for more details." >&2;}
25546    { (exit 77); exit 77; }; }
25547    else
25548      ac_cv_sizeof_wchar_t=0
25549    fi ;;
25550 esac
25551 else
25552   cat >conftest.$ac_ext <<_ACEOF
25553 /* confdefs.h.  */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h.  */
25558
25559         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25560         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25561         #  error "fake wchar_t"
25562         #endif
25563         #ifdef HAVE_WCHAR_H
25564         #  ifdef __CYGWIN__
25565         #    include <stddef.h>
25566         #  endif
25567         #  include <wchar.h>
25568         #endif
25569         #ifdef HAVE_STDLIB_H
25570         #  include <stdlib.h>
25571         #endif
25572         #include <stdio.h>
25573
25574
25575
25576    typedef wchar_t ac__type_sizeof_;
25577 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25578 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25579 #include <stdio.h>
25580 #include <stdlib.h>
25581 int
25582 main ()
25583 {
25584
25585   FILE *f = fopen ("conftest.val", "w");
25586   if (! f)
25587     return 1;
25588   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25589     {
25590       long int i = longval ();
25591       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25592         return 1;
25593       fprintf (f, "%ld\n", i);
25594     }
25595   else
25596     {
25597       unsigned long int i = ulongval ();
25598       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25599         return 1;
25600       fprintf (f, "%lu\n", i);
25601     }
25602   return ferror (f) || fclose (f) != 0;
25603
25604   ;
25605   return 0;
25606 }
25607 _ACEOF
25608 rm -f conftest$ac_exeext
25609 if { (ac_try="$ac_link"
25610 case "(($ac_try" in
25611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612   *) ac_try_echo=$ac_try;;
25613 esac
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615   (eval "$ac_link") 2>&5
25616   ac_status=$?
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25619   { (case "(($ac_try" in
25620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621   *) ac_try_echo=$ac_try;;
25622 esac
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624   (eval "$ac_try") 2>&5
25625   ac_status=$?
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); }; }; then
25628   ac_cv_sizeof_wchar_t=`cat conftest.val`
25629 else
25630   echo "$as_me: program exited with status $ac_status" >&5
25631 echo "$as_me: failed program was:" >&5
25632 sed 's/^/| /' conftest.$ac_ext >&5
25633
25634 ( exit $ac_status )
25635 if test "$ac_cv_type_wchar_t" = yes; then
25636      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25637 See \`config.log' for more details." >&5
25638 echo "$as_me: error: cannot compute sizeof (wchar_t)
25639 See \`config.log' for more details." >&2;}
25640    { (exit 77); exit 77; }; }
25641    else
25642      ac_cv_sizeof_wchar_t=0
25643    fi
25644 fi
25645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25646 fi
25647 rm -f conftest.val
25648 fi
25649 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25650 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25651
25652
25653
25654 cat >>confdefs.h <<_ACEOF
25655 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25656 _ACEOF
25657
25658
25659 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25660     wxUSE_WCHAR_T=yes
25661 else
25662     wxUSE_WCHAR_T=no
25663 fi
25664
25665 { echo "$as_me:$LINENO: checking for va_copy" >&5
25666 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25667 if test "${wx_cv_func_va_copy+set}" = set; then
25668   echo $ECHO_N "(cached) $ECHO_C" >&6
25669 else
25670
25671         ac_ext=cpp
25672 ac_cpp='$CXXCPP $CPPFLAGS'
25673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25676
25677         cat >conftest.$ac_ext <<_ACEOF
25678
25679             #include <stdarg.h>
25680             void foo(char *f, ...)
25681             {
25682                 va_list ap1, ap2;
25683                 va_start(ap1, f);
25684                 va_copy(ap2, ap1);
25685                 va_end(ap2);
25686                 va_end(ap1);
25687             }
25688             int main()
25689             {
25690                 foo("hi", 17);
25691                 return 0;
25692             }
25693 _ACEOF
25694 rm -f conftest.$ac_objext conftest$ac_exeext
25695 if { (ac_try="$ac_link"
25696 case "(($ac_try" in
25697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698   *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701   (eval "$ac_link") 2>conftest.er1
25702   ac_status=$?
25703   grep -v '^ *+' conftest.er1 >conftest.err
25704   rm -f conftest.er1
25705   cat conftest.err >&5
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); } && {
25708          test -z "$ac_cxx_werror_flag" ||
25709          test ! -s conftest.err
25710        } && test -s conftest$ac_exeext &&
25711        $as_test_x conftest$ac_exeext; then
25712   wx_cv_func_va_copy=yes
25713 else
25714   echo "$as_me: failed program was:" >&5
25715 sed 's/^/| /' conftest.$ac_ext >&5
25716
25717         wx_cv_func_va_copy=no
25718
25719 fi
25720
25721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25722       conftest$ac_exeext conftest.$ac_ext
25723         ac_ext=c
25724 ac_cpp='$CPP $CPPFLAGS'
25725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25728
25729
25730
25731 fi
25732 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25733 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25734
25735 if test $wx_cv_func_va_copy = "yes"; then
25736     cat >>confdefs.h <<\_ACEOF
25737 #define HAVE_VA_COPY 1
25738 _ACEOF
25739
25740 else
25741         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25742 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25743 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25744   echo $ECHO_N "(cached) $ECHO_C" >&6
25745 else
25746
25747             if test "$cross_compiling" = yes; then
25748                   wx_cv_type_va_list_lvalue=yes
25749
25750 else
25751   cat >conftest.$ac_ext <<_ACEOF
25752
25753                 #include <stdarg.h>
25754                 int foo(char *f, ...)
25755                 {
25756                     va_list ap1, ap2;
25757                     va_start(ap1, f);
25758                     ap2 = ap1;
25759                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25760                         return 1;
25761                     va_end(ap2);
25762                     va_end(ap1);
25763                     return 0;
25764                 }
25765                 int main()
25766                 {
25767                     return foo("hi", 17);
25768                 }
25769 _ACEOF
25770 rm -f conftest$ac_exeext
25771 if { (ac_try="$ac_link"
25772 case "(($ac_try" in
25773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774   *) ac_try_echo=$ac_try;;
25775 esac
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777   (eval "$ac_link") 2>&5
25778   ac_status=$?
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25781   { (case "(($ac_try" in
25782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25783   *) ac_try_echo=$ac_try;;
25784 esac
25785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25786   (eval "$ac_try") 2>&5
25787   ac_status=$?
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); }; }; then
25790   wx_cv_type_va_list_lvalue=yes
25791 else
25792   echo "$as_me: program exited with status $ac_status" >&5
25793 echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25795
25796 ( exit $ac_status )
25797 wx_cv_type_va_list_lvalue=no
25798 fi
25799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25800 fi
25801
25802
25803
25804
25805 fi
25806 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25807 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25808
25809     if test $wx_cv_type_va_list_lvalue != "yes"; then
25810                         cat >>confdefs.h <<\_ACEOF
25811 #define VA_LIST_IS_ARRAY 1
25812 _ACEOF
25813
25814     fi
25815 fi
25816
25817 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25818
25819 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25820 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25821 if test "${wx_cv_have_variadic_macros+set}" = set; then
25822   echo $ECHO_N "(cached) $ECHO_C" >&6
25823 else
25824
25825                         ac_ext=cpp
25826 ac_cpp='$CXXCPP $CPPFLAGS'
25827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25830
25831         cat >conftest.$ac_ext <<_ACEOF
25832 /* confdefs.h.  */
25833 _ACEOF
25834 cat confdefs.h >>conftest.$ac_ext
25835 cat >>conftest.$ac_ext <<_ACEOF
25836 /* end confdefs.h.  */
25837
25838                     #include <stdio.h>
25839                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25840
25841 int
25842 main ()
25843 {
25844
25845                     test("%s %d %p", "test", 1, 0);
25846
25847
25848   ;
25849   return 0;
25850 }
25851 _ACEOF
25852 rm -f conftest.$ac_objext
25853 if { (ac_try="$ac_compile"
25854 case "(($ac_try" in
25855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856   *) ac_try_echo=$ac_try;;
25857 esac
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859   (eval "$ac_compile") 2>conftest.er1
25860   ac_status=$?
25861   grep -v '^ *+' conftest.er1 >conftest.err
25862   rm -f conftest.er1
25863   cat conftest.err >&5
25864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865   (exit $ac_status); } && {
25866          test -z "$ac_cxx_werror_flag" ||
25867          test ! -s conftest.err
25868        } && test -s conftest.$ac_objext; then
25869   wx_cv_have_variadic_macros=yes
25870 else
25871   echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25873
25874         wx_cv_have_variadic_macros=no
25875
25876 fi
25877
25878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25879         ac_ext=c
25880 ac_cpp='$CPP $CPPFLAGS'
25881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25884
25885
25886
25887 fi
25888 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25889 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25890
25891 if test $wx_cv_have_variadic_macros = "yes"; then
25892     cat >>confdefs.h <<\_ACEOF
25893 #define HAVE_VARIADIC_MACROS 1
25894 _ACEOF
25895
25896 fi
25897
25898 fi
25899 # Check whether --enable-largefile was given.
25900 if test "${enable_largefile+set}" = set; then
25901   enableval=$enable_largefile;
25902 fi
25903
25904 if test "$enable_largefile" != no; then
25905             wx_largefile=no
25906
25907     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25908 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25909 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25910   echo $ECHO_N "(cached) $ECHO_C" >&6
25911 else
25912
25913           cat >conftest.$ac_ext <<_ACEOF
25914 /* confdefs.h.  */
25915 _ACEOF
25916 cat confdefs.h >>conftest.$ac_ext
25917 cat >>conftest.$ac_ext <<_ACEOF
25918 /* end confdefs.h.  */
25919 #define _FILE_OFFSET_BITS 64
25920                           #include <sys/types.h>
25921 int
25922 main ()
25923 {
25924 typedef struct {
25925     unsigned int field: sizeof(off_t) == 8;
25926 } wxlf;
25927
25928   ;
25929   return 0;
25930 }
25931 _ACEOF
25932 rm -f conftest.$ac_objext
25933 if { (ac_try="$ac_compile"
25934 case "(($ac_try" in
25935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936   *) ac_try_echo=$ac_try;;
25937 esac
25938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25939   (eval "$ac_compile") 2>conftest.er1
25940   ac_status=$?
25941   grep -v '^ *+' conftest.er1 >conftest.err
25942   rm -f conftest.er1
25943   cat conftest.err >&5
25944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945   (exit $ac_status); } && {
25946          test -z "$ac_c_werror_flag" ||
25947          test ! -s conftest.err
25948        } && test -s conftest.$ac_objext; then
25949   ac_cv_sys_file_offset_bits=64
25950 else
25951   echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25953
25954         ac_cv_sys_file_offset_bits=no
25955 fi
25956
25957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25958
25959
25960 fi
25961 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25962 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25963
25964     if test "$ac_cv_sys_file_offset_bits" != no; then
25965         wx_largefile=yes
25966         cat >>confdefs.h <<_ACEOF
25967 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25968 _ACEOF
25969
25970     fi
25971
25972     if test "x$wx_largefile" != "xyes"; then
25973
25974     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25975 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25976 if test "${ac_cv_sys_large_files+set}" = set; then
25977   echo $ECHO_N "(cached) $ECHO_C" >&6
25978 else
25979
25980           cat >conftest.$ac_ext <<_ACEOF
25981 /* confdefs.h.  */
25982 _ACEOF
25983 cat confdefs.h >>conftest.$ac_ext
25984 cat >>conftest.$ac_ext <<_ACEOF
25985 /* end confdefs.h.  */
25986 #define _LARGE_FILES 1
25987                           #include <sys/types.h>
25988 int
25989 main ()
25990 {
25991 typedef struct {
25992     unsigned int field: sizeof(off_t) == 8;
25993 } wxlf;
25994
25995   ;
25996   return 0;
25997 }
25998 _ACEOF
25999 rm -f conftest.$ac_objext
26000 if { (ac_try="$ac_compile"
26001 case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006   (eval "$ac_compile") 2>conftest.er1
26007   ac_status=$?
26008   grep -v '^ *+' conftest.er1 >conftest.err
26009   rm -f conftest.er1
26010   cat conftest.err >&5
26011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); } && {
26013          test -z "$ac_c_werror_flag" ||
26014          test ! -s conftest.err
26015        } && test -s conftest.$ac_objext; then
26016   ac_cv_sys_large_files=1
26017 else
26018   echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26020
26021         ac_cv_sys_large_files=no
26022 fi
26023
26024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26025
26026
26027 fi
26028 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26029 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
26030
26031     if test "$ac_cv_sys_large_files" != no; then
26032         wx_largefile=yes
26033         cat >>confdefs.h <<_ACEOF
26034 #define _LARGE_FILES $ac_cv_sys_large_files
26035 _ACEOF
26036
26037     fi
26038
26039     fi
26040
26041     { echo "$as_me:$LINENO: checking if large file support is available" >&5
26042 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
26043     if test "x$wx_largefile" = "xyes"; then
26044         cat >>confdefs.h <<\_ACEOF
26045 #define HAVE_LARGEFILE_SUPPORT 1
26046 _ACEOF
26047
26048     fi
26049     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
26050 echo "${ECHO_T}$wx_largefile" >&6; }
26051 fi
26052
26053
26054 if test "x$wx_largefile" = "xyes"; then
26055     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
26056         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
26057
26058                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
26059             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
26060 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
26061 if test "${wx_cv_STDC_EXT_required+set}" = set; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064
26065                     ac_ext=cpp
26066 ac_cpp='$CXXCPP $CPPFLAGS'
26067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26070
26071                     cat >conftest.$ac_ext <<_ACEOF
26072 /* confdefs.h.  */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h.  */
26077
26078 int
26079 main ()
26080 {
26081
26082                             #ifndef __STDC_EXT__
26083                                 choke me
26084                             #endif
26085
26086   ;
26087   return 0;
26088 }
26089 _ACEOF
26090 rm -f conftest.$ac_objext
26091 if { (ac_try="$ac_compile"
26092 case "(($ac_try" in
26093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26094   *) ac_try_echo=$ac_try;;
26095 esac
26096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26097   (eval "$ac_compile") 2>conftest.er1
26098   ac_status=$?
26099   grep -v '^ *+' conftest.er1 >conftest.err
26100   rm -f conftest.er1
26101   cat conftest.err >&5
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); } && {
26104          test -z "$ac_cxx_werror_flag" ||
26105          test ! -s conftest.err
26106        } && test -s conftest.$ac_objext; then
26107   wx_cv_STDC_EXT_required=no
26108 else
26109   echo "$as_me: failed program was:" >&5
26110 sed 's/^/| /' conftest.$ac_ext >&5
26111
26112         wx_cv_STDC_EXT_required=yes
26113
26114 fi
26115
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117                     ac_ext=c
26118 ac_cpp='$CPP $CPPFLAGS'
26119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26122
26123
26124
26125 fi
26126 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
26127 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
26128             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
26129                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
26130             fi
26131         fi
26132     else
26133         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
26134     fi
26135         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26136 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
26137 if test "${ac_cv_sys_largefile_source+set}" = set; then
26138   echo $ECHO_N "(cached) $ECHO_C" >&6
26139 else
26140   while :; do
26141   cat >conftest.$ac_ext <<_ACEOF
26142 /* confdefs.h.  */
26143 _ACEOF
26144 cat confdefs.h >>conftest.$ac_ext
26145 cat >>conftest.$ac_ext <<_ACEOF
26146 /* end confdefs.h.  */
26147 #include <sys/types.h> /* for off_t */
26148      #include <stdio.h>
26149 int
26150 main ()
26151 {
26152 int (*fp) (FILE *, off_t, int) = fseeko;
26153      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26154   ;
26155   return 0;
26156 }
26157 _ACEOF
26158 rm -f conftest.$ac_objext conftest$ac_exeext
26159 if { (ac_try="$ac_link"
26160 case "(($ac_try" in
26161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162   *) ac_try_echo=$ac_try;;
26163 esac
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165   (eval "$ac_link") 2>conftest.er1
26166   ac_status=$?
26167   grep -v '^ *+' conftest.er1 >conftest.err
26168   rm -f conftest.er1
26169   cat conftest.err >&5
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); } && {
26172          test -z "$ac_c_werror_flag" ||
26173          test ! -s conftest.err
26174        } && test -s conftest$ac_exeext &&
26175        $as_test_x conftest$ac_exeext; then
26176   ac_cv_sys_largefile_source=no; break
26177 else
26178   echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26180
26181
26182 fi
26183
26184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26185       conftest$ac_exeext conftest.$ac_ext
26186   cat >conftest.$ac_ext <<_ACEOF
26187 /* confdefs.h.  */
26188 _ACEOF
26189 cat confdefs.h >>conftest.$ac_ext
26190 cat >>conftest.$ac_ext <<_ACEOF
26191 /* end confdefs.h.  */
26192 #define _LARGEFILE_SOURCE 1
26193 #include <sys/types.h> /* for off_t */
26194      #include <stdio.h>
26195 int
26196 main ()
26197 {
26198 int (*fp) (FILE *, off_t, int) = fseeko;
26199      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26200   ;
26201   return 0;
26202 }
26203 _ACEOF
26204 rm -f conftest.$ac_objext conftest$ac_exeext
26205 if { (ac_try="$ac_link"
26206 case "(($ac_try" in
26207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26208   *) ac_try_echo=$ac_try;;
26209 esac
26210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26211   (eval "$ac_link") 2>conftest.er1
26212   ac_status=$?
26213   grep -v '^ *+' conftest.er1 >conftest.err
26214   rm -f conftest.er1
26215   cat conftest.err >&5
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); } && {
26218          test -z "$ac_c_werror_flag" ||
26219          test ! -s conftest.err
26220        } && test -s conftest$ac_exeext &&
26221        $as_test_x conftest$ac_exeext; then
26222   ac_cv_sys_largefile_source=1; break
26223 else
26224   echo "$as_me: failed program was:" >&5
26225 sed 's/^/| /' conftest.$ac_ext >&5
26226
26227
26228 fi
26229
26230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26231       conftest$ac_exeext conftest.$ac_ext
26232   ac_cv_sys_largefile_source=unknown
26233   break
26234 done
26235 fi
26236 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26237 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
26238 case $ac_cv_sys_largefile_source in #(
26239   no | unknown) ;;
26240   *)
26241 cat >>confdefs.h <<_ACEOF
26242 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26243 _ACEOF
26244 ;;
26245 esac
26246 rm -f conftest*
26247
26248 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26249 # in glibc 2.1.3, but that breaks too many other things.
26250 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26251 if test $ac_cv_sys_largefile_source != unknown; then
26252
26253 cat >>confdefs.h <<\_ACEOF
26254 #define HAVE_FSEEKO 1
26255 _ACEOF
26256
26257 fi
26258
26259     if test "$ac_cv_sys_largefile_source" != no; then
26260         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
26261     fi
26262 fi
26263
26264 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26265 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
26266 if test "${ac_cv_c_bigendian+set}" = set; then
26267   echo $ECHO_N "(cached) $ECHO_C" >&6
26268 else
26269   ac_cv_c_bigendian=unknown
26270 # See if sys/param.h defines the BYTE_ORDER macro.
26271 cat >conftest.$ac_ext <<_ACEOF
26272 /* confdefs.h.  */
26273 _ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h.  */
26277 #include <sys/types.h>
26278 #include <sys/param.h>
26279 int
26280 main ()
26281 {
26282
26283 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26284  bogus endian macros
26285 #endif
26286   ;
26287   return 0;
26288 }
26289 _ACEOF
26290 rm -f conftest.$ac_objext
26291 if { (ac_try="$ac_compile"
26292 case "(($ac_try" in
26293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294   *) ac_try_echo=$ac_try;;
26295 esac
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297   (eval "$ac_compile") 2>conftest.er1
26298   ac_status=$?
26299   grep -v '^ *+' conftest.er1 >conftest.err
26300   rm -f conftest.er1
26301   cat conftest.err >&5
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); } && {
26304          test -z "$ac_c_werror_flag" ||
26305          test ! -s conftest.err
26306        } && test -s conftest.$ac_objext; then
26307   # It does; now see whether it defined to BIG_ENDIAN or not.
26308 cat >conftest.$ac_ext <<_ACEOF
26309 /* confdefs.h.  */
26310 _ACEOF
26311 cat confdefs.h >>conftest.$ac_ext
26312 cat >>conftest.$ac_ext <<_ACEOF
26313 /* end confdefs.h.  */
26314 #include <sys/types.h>
26315 #include <sys/param.h>
26316 int
26317 main ()
26318 {
26319
26320 #if BYTE_ORDER != BIG_ENDIAN
26321  not big endian
26322 #endif
26323   ;
26324   return 0;
26325 }
26326 _ACEOF
26327 rm -f conftest.$ac_objext
26328 if { (ac_try="$ac_compile"
26329 case "(($ac_try" in
26330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26331   *) ac_try_echo=$ac_try;;
26332 esac
26333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26334   (eval "$ac_compile") 2>conftest.er1
26335   ac_status=$?
26336   grep -v '^ *+' conftest.er1 >conftest.err
26337   rm -f conftest.er1
26338   cat conftest.err >&5
26339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340   (exit $ac_status); } && {
26341          test -z "$ac_c_werror_flag" ||
26342          test ! -s conftest.err
26343        } && test -s conftest.$ac_objext; then
26344   ac_cv_c_bigendian=yes
26345 else
26346   echo "$as_me: failed program was:" >&5
26347 sed 's/^/| /' conftest.$ac_ext >&5
26348
26349         ac_cv_c_bigendian=no
26350 fi
26351
26352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26353 else
26354   echo "$as_me: failed program was:" >&5
26355 sed 's/^/| /' conftest.$ac_ext >&5
26356
26357
26358 fi
26359
26360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26361 if test $ac_cv_c_bigendian = unknown; then
26362 if test "$cross_compiling" = yes; then
26363   ac_cv_c_bigendian=unknown
26364 else
26365   cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h.  */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h.  */
26371 main () {
26372   /* Are we little or big endian?  From Harbison&Steele.  */
26373   union
26374   {
26375     long l;
26376     char c[sizeof (long)];
26377   } u;
26378   u.l = 1;
26379   exit (u.c[sizeof (long) - 1] == 1);
26380 }
26381 _ACEOF
26382 rm -f conftest$ac_exeext
26383 if { (ac_try="$ac_link"
26384 case "(($ac_try" in
26385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26386   *) ac_try_echo=$ac_try;;
26387 esac
26388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26389   (eval "$ac_link") 2>&5
26390   ac_status=$?
26391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26393   { (case "(($ac_try" in
26394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26395   *) ac_try_echo=$ac_try;;
26396 esac
26397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26398   (eval "$ac_try") 2>&5
26399   ac_status=$?
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); }; }; then
26402   ac_cv_c_bigendian=no
26403 else
26404   echo "$as_me: program exited with status $ac_status" >&5
26405 echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26407
26408 ( exit $ac_status )
26409 ac_cv_c_bigendian=yes
26410 fi
26411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26412 fi
26413
26414
26415 fi
26416 fi
26417 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26418 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26419 if test $ac_cv_c_bigendian = unknown; then
26420   { 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
26421 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;}
26422 fi
26423 if test $ac_cv_c_bigendian = yes; then
26424   cat >>confdefs.h <<\_ACEOF
26425 #define WORDS_BIGENDIAN 1
26426 _ACEOF
26427
26428 fi
26429
26430
26431
26432
26433     ac_ext=cpp
26434 ac_cpp='$CXXCPP $CPPFLAGS'
26435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26438
26439
26440
26441 for ac_header in iostream
26442 do
26443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26447   echo $ECHO_N "(cached) $ECHO_C" >&6
26448 else
26449   cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h.  */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h.  */
26455
26456
26457 #include <$ac_header>
26458 _ACEOF
26459 rm -f conftest.$ac_objext
26460 if { (ac_try="$ac_compile"
26461 case "(($ac_try" in
26462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463   *) ac_try_echo=$ac_try;;
26464 esac
26465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466   (eval "$ac_compile") 2>conftest.er1
26467   ac_status=$?
26468   grep -v '^ *+' conftest.er1 >conftest.err
26469   rm -f conftest.er1
26470   cat conftest.err >&5
26471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472   (exit $ac_status); } && {
26473          test -z "$ac_cxx_werror_flag" ||
26474          test ! -s conftest.err
26475        } && test -s conftest.$ac_objext; then
26476   eval "$as_ac_Header=yes"
26477 else
26478   echo "$as_me: failed program was:" >&5
26479 sed 's/^/| /' conftest.$ac_ext >&5
26480
26481         eval "$as_ac_Header=no"
26482 fi
26483
26484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485 fi
26486 ac_res=`eval echo '${'$as_ac_Header'}'`
26487                { echo "$as_me:$LINENO: result: $ac_res" >&5
26488 echo "${ECHO_T}$ac_res" >&6; }
26489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26490   cat >>confdefs.h <<_ACEOF
26491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26492 _ACEOF
26493
26494 fi
26495
26496 done
26497
26498
26499     if test "$ac_cv_header_iostream" = "yes" ; then
26500       :
26501     else
26502       cat >>confdefs.h <<\_ACEOF
26503 #define wxUSE_IOSTREAMH 1
26504 _ACEOF
26505
26506     fi
26507
26508     ac_ext=c
26509 ac_cpp='$CPP $CPPFLAGS'
26510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26513
26514
26515
26516
26517   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26518 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26519 if test "${wx_cv_cpp_bool+set}" = set; then
26520   echo $ECHO_N "(cached) $ECHO_C" >&6
26521 else
26522
26523
26524     ac_ext=cpp
26525 ac_cpp='$CXXCPP $CPPFLAGS'
26526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26529
26530
26531     cat >conftest.$ac_ext <<_ACEOF
26532 /* confdefs.h.  */
26533 _ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h.  */
26537
26538
26539 int
26540 main ()
26541 {
26542
26543         bool b = true;
26544
26545         return 0;
26546
26547   ;
26548   return 0;
26549 }
26550 _ACEOF
26551 rm -f conftest.$ac_objext
26552 if { (ac_try="$ac_compile"
26553 case "(($ac_try" in
26554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555   *) ac_try_echo=$ac_try;;
26556 esac
26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26558   (eval "$ac_compile") 2>conftest.er1
26559   ac_status=$?
26560   grep -v '^ *+' conftest.er1 >conftest.err
26561   rm -f conftest.er1
26562   cat conftest.err >&5
26563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564   (exit $ac_status); } && {
26565          test -z "$ac_cxx_werror_flag" ||
26566          test ! -s conftest.err
26567        } && test -s conftest.$ac_objext; then
26568
26569         wx_cv_cpp_bool=yes
26570
26571 else
26572   echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.$ac_ext >&5
26574
26575
26576         wx_cv_cpp_bool=no
26577
26578
26579 fi
26580
26581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26582
26583     ac_ext=c
26584 ac_cpp='$CPP $CPPFLAGS'
26585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26588
26589
26590 fi
26591 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26592 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26593
26594   if test "$wx_cv_cpp_bool" = "yes"; then
26595     cat >>confdefs.h <<\_ACEOF
26596 #define HAVE_BOOL 1
26597 _ACEOF
26598
26599   fi
26600
26601
26602
26603   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26604 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26605 if test "${wx_cv_explicit+set}" = set; then
26606   echo $ECHO_N "(cached) $ECHO_C" >&6
26607 else
26608
26609
26610     ac_ext=cpp
26611 ac_cpp='$CXXCPP $CPPFLAGS'
26612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26615
26616
26617             cat >conftest.$ac_ext <<_ACEOF
26618 /* confdefs.h.  */
26619 _ACEOF
26620 cat confdefs.h >>conftest.$ac_ext
26621 cat >>conftest.$ac_ext <<_ACEOF
26622 /* end confdefs.h.  */
26623
26624         class Foo { public: explicit Foo(int) {} };
26625
26626 int
26627 main ()
26628 {
26629
26630         return 0;
26631
26632   ;
26633   return 0;
26634 }
26635 _ACEOF
26636 rm -f conftest.$ac_objext
26637 if { (ac_try="$ac_compile"
26638 case "(($ac_try" in
26639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26640   *) ac_try_echo=$ac_try;;
26641 esac
26642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26643   (eval "$ac_compile") 2>conftest.er1
26644   ac_status=$?
26645   grep -v '^ *+' conftest.er1 >conftest.err
26646   rm -f conftest.er1
26647   cat conftest.err >&5
26648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649   (exit $ac_status); } && {
26650          test -z "$ac_cxx_werror_flag" ||
26651          test ! -s conftest.err
26652        } && test -s conftest.$ac_objext; then
26653
26654         cat >conftest.$ac_ext <<_ACEOF
26655 /* confdefs.h.  */
26656 _ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h.  */
26660
26661                 class Foo { public: explicit Foo(int) {} };
26662                 static void TakeFoo(const Foo& foo) { }
26663
26664 int
26665 main ()
26666 {
26667
26668                 TakeFoo(17);
26669                 return 0;
26670
26671   ;
26672   return 0;
26673 }
26674 _ACEOF
26675 rm -f conftest.$ac_objext
26676 if { (ac_try="$ac_compile"
26677 case "(($ac_try" in
26678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679   *) ac_try_echo=$ac_try;;
26680 esac
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682   (eval "$ac_compile") 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } && {
26689          test -z "$ac_cxx_werror_flag" ||
26690          test ! -s conftest.err
26691        } && test -s conftest.$ac_objext; then
26692   wx_cv_explicit=no
26693 else
26694   echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26696
26697         wx_cv_explicit=yes
26698
26699 fi
26700
26701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26702
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707         wx_cv_explicit=no
26708
26709 fi
26710
26711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26712
26713     ac_ext=c
26714 ac_cpp='$CPP $CPPFLAGS'
26715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26718
26719
26720 fi
26721 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26722 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26723
26724   if test "$wx_cv_explicit" = "yes"; then
26725     cat >>confdefs.h <<\_ACEOF
26726 #define HAVE_EXPLICIT 1
26727 _ACEOF
26728
26729   fi
26730
26731
26732 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26733 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26734 if test "${ac_cv_cxx_const_cast+set}" = set; then
26735   echo $ECHO_N "(cached) $ECHO_C" >&6
26736 else
26737
26738  ac_ext=cpp
26739 ac_cpp='$CXXCPP $CPPFLAGS'
26740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26743
26744  cat >conftest.$ac_ext <<_ACEOF
26745 /* confdefs.h.  */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h.  */
26750
26751 int
26752 main ()
26753 {
26754 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (ac_try="$ac_compile"
26761 case "(($ac_try" in
26762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763   *) ac_try_echo=$ac_try;;
26764 esac
26765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766   (eval "$ac_compile") 2>conftest.er1
26767   ac_status=$?
26768   grep -v '^ *+' conftest.er1 >conftest.err
26769   rm -f conftest.er1
26770   cat conftest.err >&5
26771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772   (exit $ac_status); } && {
26773          test -z "$ac_cxx_werror_flag" ||
26774          test ! -s conftest.err
26775        } && test -s conftest.$ac_objext; then
26776   ac_cv_cxx_const_cast=yes
26777 else
26778   echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26780
26781         ac_cv_cxx_const_cast=no
26782 fi
26783
26784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26785  ac_ext=c
26786 ac_cpp='$CPP $CPPFLAGS'
26787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26790
26791
26792 fi
26793 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26794 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26795 if test "$ac_cv_cxx_const_cast" = yes; then
26796
26797 cat >>confdefs.h <<\_ACEOF
26798 #define HAVE_CONST_CAST
26799 _ACEOF
26800
26801 fi
26802
26803 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26804 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26805 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26806   echo $ECHO_N "(cached) $ECHO_C" >&6
26807 else
26808
26809  ac_ext=cpp
26810 ac_cpp='$CXXCPP $CPPFLAGS'
26811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26814
26815  cat >conftest.$ac_ext <<_ACEOF
26816 /* confdefs.h.  */
26817 _ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h.  */
26821 #include <typeinfo>
26822 class Base { public : Base () {} virtual void f () = 0;};
26823 class Derived : public Base { public : Derived () {} virtual void f () {} };
26824 class Unrelated { public : Unrelated () {} };
26825 int g (Unrelated&) { return 0; }
26826 int
26827 main ()
26828 {
26829
26830 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 rm -f conftest.$ac_objext
26836 if { (ac_try="$ac_compile"
26837 case "(($ac_try" in
26838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839   *) ac_try_echo=$ac_try;;
26840 esac
26841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26842   (eval "$ac_compile") 2>conftest.er1
26843   ac_status=$?
26844   grep -v '^ *+' conftest.er1 >conftest.err
26845   rm -f conftest.er1
26846   cat conftest.err >&5
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); } && {
26849          test -z "$ac_cxx_werror_flag" ||
26850          test ! -s conftest.err
26851        } && test -s conftest.$ac_objext; then
26852   ac_cv_cxx_reinterpret_cast=yes
26853 else
26854   echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26856
26857         ac_cv_cxx_reinterpret_cast=no
26858 fi
26859
26860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26861  ac_ext=c
26862 ac_cpp='$CPP $CPPFLAGS'
26863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26866
26867
26868 fi
26869 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26870 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26871 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26872
26873 cat >>confdefs.h <<\_ACEOF
26874 #define HAVE_REINTERPRET_CAST
26875 _ACEOF
26876
26877 fi
26878
26879 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26880 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26881 if test "${ac_cv_cxx_static_cast+set}" = set; then
26882   echo $ECHO_N "(cached) $ECHO_C" >&6
26883 else
26884
26885  ac_ext=cpp
26886 ac_cpp='$CXXCPP $CPPFLAGS'
26887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26890
26891  cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 #include <typeinfo>
26898 class Base { public : Base () {} virtual void f () = 0; };
26899 class Derived : public Base { public : Derived () {} virtual void f () {} };
26900 int g (Derived&) { return 0; }
26901 int
26902 main ()
26903 {
26904
26905 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26906   ;
26907   return 0;
26908 }
26909 _ACEOF
26910 rm -f conftest.$ac_objext
26911 if { (ac_try="$ac_compile"
26912 case "(($ac_try" in
26913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26914   *) ac_try_echo=$ac_try;;
26915 esac
26916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26917   (eval "$ac_compile") 2>conftest.er1
26918   ac_status=$?
26919   grep -v '^ *+' conftest.er1 >conftest.err
26920   rm -f conftest.er1
26921   cat conftest.err >&5
26922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923   (exit $ac_status); } && {
26924          test -z "$ac_cxx_werror_flag" ||
26925          test ! -s conftest.err
26926        } && test -s conftest.$ac_objext; then
26927   ac_cv_cxx_static_cast=yes
26928 else
26929   echo "$as_me: failed program was:" >&5
26930 sed 's/^/| /' conftest.$ac_ext >&5
26931
26932         ac_cv_cxx_static_cast=no
26933 fi
26934
26935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26936  ac_ext=c
26937 ac_cpp='$CPP $CPPFLAGS'
26938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26941
26942
26943 fi
26944 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26945 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26946 if test "$ac_cv_cxx_static_cast" = yes; then
26947
26948 cat >>confdefs.h <<\_ACEOF
26949 #define HAVE_STATIC_CAST
26950 _ACEOF
26951
26952 fi
26953
26954
26955 if test "x$SUNCXX" = xyes; then
26956     CXXFLAGS="-features=tmplife $CXXFLAGS"
26957 fi
26958
26959 if test "x$SUNCC" = xyes; then
26960     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26961 fi
26962
26963 if test "x$SGICC" = "xyes"; then
26964     CFLAGS="-woff 3970 $CFLAGS"
26965 fi
26966 if test "x$SGICXX" = "xyes"; then
26967     CXXFLAGS="-woff 3970 $CXXFLAGS"
26968 fi
26969
26970 if test "x$HPCC" = "xyes"; then
26971                     CFLAGS="+W 2011,2450 $CFLAGS"
26972 fi
26973 if test "x$HPCXX" = "xyes"; then
26974             CXXFLAGS="+W 2340 $CXXFLAGS"
26975 fi
26976
26977 if test "x$COMPAQCXX" = "xyes"; then
26978                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26979 fi
26980
26981 ac_ext=cpp
26982 ac_cpp='$CXXCPP $CPPFLAGS'
26983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26986
26987
26988 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26989     if test "$wxUSE_UNICODE" = "yes"; then
26990         std_string="std::wstring"
26991         char_type="wchar_t"
26992     else
26993         std_string="std::string"
26994         char_type="char"
26995     fi
26996
26997         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26998 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26999 if test "${wx_cv_class_stdstring+set}" = set; then
27000   echo $ECHO_N "(cached) $ECHO_C" >&6
27001 else
27002
27003             cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h.  */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h.  */
27009 #include <string>
27010 int
27011 main ()
27012 {
27013 $std_string foo;
27014   ;
27015   return 0;
27016 }
27017 _ACEOF
27018 rm -f conftest.$ac_objext
27019 if { (ac_try="$ac_compile"
27020 case "(($ac_try" in
27021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022   *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025   (eval "$ac_compile") 2>conftest.er1
27026   ac_status=$?
27027   grep -v '^ *+' conftest.er1 >conftest.err
27028   rm -f conftest.er1
27029   cat conftest.err >&5
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } && {
27032          test -z "$ac_cxx_werror_flag" ||
27033          test ! -s conftest.err
27034        } && test -s conftest.$ac_objext; then
27035   wx_cv_class_stdstring=yes
27036 else
27037   echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27039
27040         wx_cv_class_stdstring=no
27041
27042 fi
27043
27044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27045
27046
27047 fi
27048 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
27049 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
27050
27051     if test "$wx_cv_class_stdstring" = yes; then
27052         if test "$wxUSE_UNICODE" = "yes"; then
27053             cat >>confdefs.h <<\_ACEOF
27054 #define HAVE_STD_WSTRING 1
27055 _ACEOF
27056
27057         fi
27058                     else
27059         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
27060 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
27061 if test "${wx_cv_class_stdbasicstring+set}" = set; then
27062   echo $ECHO_N "(cached) $ECHO_C" >&6
27063 else
27064
27065                 cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h.  */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h.  */
27071
27072                     #ifdef HAVE_WCHAR_H
27073                     #  ifdef __CYGWIN__
27074                     #    include <stddef.h>
27075                     #  endif
27076                     #  include <wchar.h>
27077                     #endif
27078                     #ifdef HAVE_STDLIB_H
27079                     #  include <stdlib.h>
27080                     #endif
27081                     #include <stdio.h>
27082                     #include <string>
27083
27084 int
27085 main ()
27086 {
27087 std::basic_string<$char_type> foo;
27088                      const $char_type* dummy = foo.c_str();
27089   ;
27090   return 0;
27091 }
27092 _ACEOF
27093 rm -f conftest.$ac_objext
27094 if { (ac_try="$ac_compile"
27095 case "(($ac_try" in
27096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097   *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100   (eval "$ac_compile") 2>conftest.er1
27101   ac_status=$?
27102   grep -v '^ *+' conftest.er1 >conftest.err
27103   rm -f conftest.er1
27104   cat conftest.err >&5
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); } && {
27107          test -z "$ac_cxx_werror_flag" ||
27108          test ! -s conftest.err
27109        } && test -s conftest.$ac_objext; then
27110   wx_cv_class_stdbasicstring=yes
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115         wx_cv_class_stdbasicstring=no
27116
27117 fi
27118
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27120
27121
27122 fi
27123 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
27124 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
27125
27126         if test "$wx_cv_class_stdbasicstring" != yes; then
27127             if test "$wxUSE_STL" = "yes"; then
27128                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
27129 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
27130    { (exit 1); exit 1; }; }
27131             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
27132                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
27133 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
27134    { (exit 1); exit 1; }; }
27135             else
27136                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
27137 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
27138                 wxUSE_STD_STRING=no
27139             fi
27140         fi
27141     fi
27142 fi
27143
27144 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
27145     { echo "$as_me:$LINENO: checking for std::istream" >&5
27146 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
27147 if test "${ac_cv_type_std__istream+set}" = set; then
27148   echo $ECHO_N "(cached) $ECHO_C" >&6
27149 else
27150   cat >conftest.$ac_ext <<_ACEOF
27151 /* confdefs.h.  */
27152 _ACEOF
27153 cat confdefs.h >>conftest.$ac_ext
27154 cat >>conftest.$ac_ext <<_ACEOF
27155 /* end confdefs.h.  */
27156 #include <iostream>
27157
27158 typedef std::istream ac__type_new_;
27159 int
27160 main ()
27161 {
27162 if ((ac__type_new_ *) 0)
27163   return 0;
27164 if (sizeof (ac__type_new_))
27165   return 0;
27166   ;
27167   return 0;
27168 }
27169 _ACEOF
27170 rm -f conftest.$ac_objext
27171 if { (ac_try="$ac_compile"
27172 case "(($ac_try" in
27173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174   *) ac_try_echo=$ac_try;;
27175 esac
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177   (eval "$ac_compile") 2>conftest.er1
27178   ac_status=$?
27179   grep -v '^ *+' conftest.er1 >conftest.err
27180   rm -f conftest.er1
27181   cat conftest.err >&5
27182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183   (exit $ac_status); } && {
27184          test -z "$ac_cxx_werror_flag" ||
27185          test ! -s conftest.err
27186        } && test -s conftest.$ac_objext; then
27187   ac_cv_type_std__istream=yes
27188 else
27189   echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27191
27192         ac_cv_type_std__istream=no
27193 fi
27194
27195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27196 fi
27197 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
27198 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
27199 if test $ac_cv_type_std__istream = yes; then
27200
27201 cat >>confdefs.h <<_ACEOF
27202 #define HAVE_STD__ISTREAM 1
27203 _ACEOF
27204
27205
27206 else
27207   wxUSE_STD_IOSTREAM=no
27208 fi
27209 { echo "$as_me:$LINENO: checking for std::ostream" >&5
27210 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
27211 if test "${ac_cv_type_std__ostream+set}" = set; then
27212   echo $ECHO_N "(cached) $ECHO_C" >&6
27213 else
27214   cat >conftest.$ac_ext <<_ACEOF
27215 /* confdefs.h.  */
27216 _ACEOF
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h.  */
27220 #include <iostream>
27221
27222 typedef std::ostream ac__type_new_;
27223 int
27224 main ()
27225 {
27226 if ((ac__type_new_ *) 0)
27227   return 0;
27228 if (sizeof (ac__type_new_))
27229   return 0;
27230   ;
27231   return 0;
27232 }
27233 _ACEOF
27234 rm -f conftest.$ac_objext
27235 if { (ac_try="$ac_compile"
27236 case "(($ac_try" in
27237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238   *) ac_try_echo=$ac_try;;
27239 esac
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241   (eval "$ac_compile") 2>conftest.er1
27242   ac_status=$?
27243   grep -v '^ *+' conftest.er1 >conftest.err
27244   rm -f conftest.er1
27245   cat conftest.err >&5
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); } && {
27248          test -z "$ac_cxx_werror_flag" ||
27249          test ! -s conftest.err
27250        } && test -s conftest.$ac_objext; then
27251   ac_cv_type_std__ostream=yes
27252 else
27253   echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27255
27256         ac_cv_type_std__ostream=no
27257 fi
27258
27259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260 fi
27261 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
27262 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
27263 if test $ac_cv_type_std__ostream = yes; then
27264
27265 cat >>confdefs.h <<_ACEOF
27266 #define HAVE_STD__OSTREAM 1
27267 _ACEOF
27268
27269
27270 else
27271   wxUSE_STD_IOSTREAM=no
27272 fi
27273
27274
27275     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
27276         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
27277             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
27278 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
27279    { (exit 1); exit 1; }; }
27280         else
27281             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
27282 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
27283         fi
27284     fi
27285 fi
27286
27287 if test "$wxUSE_STL" = "yes"; then
27288         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
27289 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
27290 if test "${wx_cv_lib_stl+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 <string>
27300             #include <functional>
27301             #include <algorithm>
27302             #include <vector>
27303             #include <list>
27304 int
27305 main ()
27306 {
27307 std::vector<int> moo;
27308              std::list<int> foo;
27309              std::vector<int>::iterator it =
27310                  std::find_if(moo.begin(), moo.end(),
27311                               std::bind2nd(std::less<int>(), 3));
27312   ;
27313   return 0;
27314 }
27315 _ACEOF
27316 rm -f conftest.$ac_objext
27317 if { (ac_try="$ac_compile"
27318 case "(($ac_try" in
27319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27320   *) ac_try_echo=$ac_try;;
27321 esac
27322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27323   (eval "$ac_compile") 2>conftest.er1
27324   ac_status=$?
27325   grep -v '^ *+' conftest.er1 >conftest.err
27326   rm -f conftest.er1
27327   cat conftest.err >&5
27328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329   (exit $ac_status); } && {
27330          test -z "$ac_cxx_werror_flag" ||
27331          test ! -s conftest.err
27332        } && test -s conftest.$ac_objext; then
27333   wx_cv_lib_stl=yes
27334 else
27335   echo "$as_me: failed program was:" >&5
27336 sed 's/^/| /' conftest.$ac_ext >&5
27337
27338         wx_cv_lib_stl=no
27339
27340 fi
27341
27342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27343
27344 fi
27345 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
27346 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
27347
27348     if test "$wx_cv_lib_stl" != yes; then
27349          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
27350 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
27351    { (exit 1); exit 1; }; }
27352     fi
27353
27354         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
27355 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
27356 if test "${wx_cv_func_stdstring_compare+set}" = set; then
27357   echo $ECHO_N "(cached) $ECHO_C" >&6
27358 else
27359   cat >conftest.$ac_ext <<_ACEOF
27360 /* confdefs.h.  */
27361 _ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h.  */
27365 #include <string>
27366 int
27367 main ()
27368 {
27369 std::string foo, bar;
27370             foo.compare(bar);
27371             foo.compare(1, 1, bar);
27372             foo.compare(1, 1, bar, 1, 1);
27373             foo.compare("");
27374             foo.compare(1, 1, "");
27375             foo.compare(1, 1, "", 2);
27376   ;
27377   return 0;
27378 }
27379 _ACEOF
27380 rm -f conftest.$ac_objext
27381 if { (ac_try="$ac_compile"
27382 case "(($ac_try" in
27383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384   *) ac_try_echo=$ac_try;;
27385 esac
27386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27387   (eval "$ac_compile") 2>conftest.er1
27388   ac_status=$?
27389   grep -v '^ *+' conftest.er1 >conftest.err
27390   rm -f conftest.er1
27391   cat conftest.err >&5
27392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393   (exit $ac_status); } && {
27394          test -z "$ac_cxx_werror_flag" ||
27395          test ! -s conftest.err
27396        } && test -s conftest.$ac_objext; then
27397   wx_cv_func_stdstring_compare=yes
27398 else
27399   echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27401
27402         wx_cv_func_stdstring_compare=no
27403
27404 fi
27405
27406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407
27408 fi
27409 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27410 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27411
27412     if test "$wx_cv_func_stdstring_compare" = yes; then
27413         cat >>confdefs.h <<\_ACEOF
27414 #define HAVE_STD_STRING_COMPARE 1
27415 _ACEOF
27416
27417     fi
27418
27419         { echo "$as_me:$LINENO: checking for hash_map" >&5
27420 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27421 if test "${ac_cv_header_hash_map+set}" = set; then
27422   echo $ECHO_N "(cached) $ECHO_C" >&6
27423 else
27424   cat >conftest.$ac_ext <<_ACEOF
27425 /* confdefs.h.  */
27426 _ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h.  */
27430
27431
27432
27433 #include <hash_map>
27434 _ACEOF
27435 rm -f conftest.$ac_objext
27436 if { (ac_try="$ac_compile"
27437 case "(($ac_try" in
27438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27439   *) ac_try_echo=$ac_try;;
27440 esac
27441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27442   (eval "$ac_compile") 2>conftest.er1
27443   ac_status=$?
27444   grep -v '^ *+' conftest.er1 >conftest.err
27445   rm -f conftest.er1
27446   cat conftest.err >&5
27447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448   (exit $ac_status); } && {
27449          test -z "$ac_cxx_werror_flag" ||
27450          test ! -s conftest.err
27451        } && test -s conftest.$ac_objext; then
27452   ac_cv_header_hash_map=yes
27453 else
27454   echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27456
27457         ac_cv_header_hash_map=no
27458 fi
27459
27460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27461 fi
27462 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27463 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27464 if test $ac_cv_header_hash_map = yes; then
27465   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27466 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27467 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27468   echo $ECHO_N "(cached) $ECHO_C" >&6
27469 else
27470   cat >conftest.$ac_ext <<_ACEOF
27471 /* confdefs.h.  */
27472 _ACEOF
27473 cat confdefs.h >>conftest.$ac_ext
27474 cat >>conftest.$ac_ext <<_ACEOF
27475 /* end confdefs.h.  */
27476 #include <hash_map>
27477                 #include <hash_set>
27478 int
27479 main ()
27480 {
27481 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27482                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27483   ;
27484   return 0;
27485 }
27486 _ACEOF
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491   *) ac_try_echo=$ac_try;;
27492 esac
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494   (eval "$ac_compile") 2>conftest.er1
27495   ac_status=$?
27496   grep -v '^ *+' conftest.er1 >conftest.err
27497   rm -f conftest.er1
27498   cat conftest.err >&5
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); } && {
27501          test -z "$ac_cxx_werror_flag" ||
27502          test ! -s conftest.err
27503        } && test -s conftest.$ac_objext; then
27504   wx_cv_class_stdhashmapset=yes
27505 else
27506   echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27508
27509         wx_cv_class_stdhashmapset=no
27510 fi
27511
27512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27513
27514
27515 fi
27516 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27517 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27518 fi
27519
27520
27521
27522     if test "$wx_cv_class_stdhashmapset" = yes; then
27523         cat >>confdefs.h <<\_ACEOF
27524 #define HAVE_HASH_MAP 1
27525 _ACEOF
27526
27527         cat >>confdefs.h <<\_ACEOF
27528 #define HAVE_STD_HASH_MAP 1
27529 _ACEOF
27530
27531     fi
27532
27533     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27534 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27535 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27536   echo $ECHO_N "(cached) $ECHO_C" >&6
27537 else
27538   cat >conftest.$ac_ext <<_ACEOF
27539 /* confdefs.h.  */
27540 _ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h.  */
27544
27545
27546
27547 #include <ext/hash_map>
27548 _ACEOF
27549 rm -f conftest.$ac_objext
27550 if { (ac_try="$ac_compile"
27551 case "(($ac_try" in
27552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553   *) ac_try_echo=$ac_try;;
27554 esac
27555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556   (eval "$ac_compile") 2>conftest.er1
27557   ac_status=$?
27558   grep -v '^ *+' conftest.er1 >conftest.err
27559   rm -f conftest.er1
27560   cat conftest.err >&5
27561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); } && {
27563          test -z "$ac_cxx_werror_flag" ||
27564          test ! -s conftest.err
27565        } && test -s conftest.$ac_objext; then
27566   ac_cv_header_ext_hash_map=yes
27567 else
27568   echo "$as_me: failed program was:" >&5
27569 sed 's/^/| /' conftest.$ac_ext >&5
27570
27571         ac_cv_header_ext_hash_map=no
27572 fi
27573
27574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27575 fi
27576 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27577 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27578 if test $ac_cv_header_ext_hash_map = yes; then
27579   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27580 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27581 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27582   echo $ECHO_N "(cached) $ECHO_C" >&6
27583 else
27584   cat >conftest.$ac_ext <<_ACEOF
27585 /* confdefs.h.  */
27586 _ACEOF
27587 cat confdefs.h >>conftest.$ac_ext
27588 cat >>conftest.$ac_ext <<_ACEOF
27589 /* end confdefs.h.  */
27590 #include <ext/hash_map>
27591                 #include <ext/hash_set>
27592 int
27593 main ()
27594 {
27595 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27596                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27597   ;
27598   return 0;
27599 }
27600 _ACEOF
27601 rm -f conftest.$ac_objext
27602 if { (ac_try="$ac_compile"
27603 case "(($ac_try" in
27604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605   *) ac_try_echo=$ac_try;;
27606 esac
27607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608   (eval "$ac_compile") 2>conftest.er1
27609   ac_status=$?
27610   grep -v '^ *+' conftest.er1 >conftest.err
27611   rm -f conftest.er1
27612   cat conftest.err >&5
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); } && {
27615          test -z "$ac_cxx_werror_flag" ||
27616          test ! -s conftest.err
27617        } && test -s conftest.$ac_objext; then
27618   wx_cv_class_gnuhashmapset=yes
27619 else
27620   echo "$as_me: failed program was:" >&5
27621 sed 's/^/| /' conftest.$ac_ext >&5
27622
27623         wx_cv_class_gnuhashmapset=no
27624 fi
27625
27626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27627
27628
27629 fi
27630 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27631 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27632 fi
27633
27634
27635
27636     if test "$wx_cv_class_gnuhashmapset" = yes; then
27637          cat >>confdefs.h <<\_ACEOF
27638 #define HAVE_EXT_HASH_MAP 1
27639 _ACEOF
27640
27641          cat >>confdefs.h <<\_ACEOF
27642 #define HAVE_GNU_CXX_HASH_MAP 1
27643 _ACEOF
27644
27645     fi
27646 fi
27647
27648
27649
27650   if test -n "$GCC"; then
27651     { echo "$as_me:$LINENO: checking for __sync_fetch_* builtins" >&5
27652 echo $ECHO_N "checking for __sync_fetch_* builtins... $ECHO_C" >&6; }
27653     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
27654   echo $ECHO_N "(cached) $ECHO_C" >&6
27655 else
27656
27657       cat >conftest.$ac_ext <<_ACEOF
27658 /* confdefs.h.  */
27659 _ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h.  */
27663
27664 int
27665 main ()
27666 {
27667
27668           int value=0;
27669           __sync_fetch_and_add(&value, 1);
27670           __sync_sub_and_fetch(&value, 1);
27671
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 rm -f conftest.$ac_objext
27677 if { (ac_try="$ac_compile"
27678 case "(($ac_try" in
27679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680   *) ac_try_echo=$ac_try;;
27681 esac
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683   (eval "$ac_compile") 2>conftest.er1
27684   ac_status=$?
27685   grep -v '^ *+' conftest.er1 >conftest.err
27686   rm -f conftest.er1
27687   cat conftest.err >&5
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } && {
27690          test -z "$ac_cxx_werror_flag" ||
27691          test ! -s conftest.err
27692        } && test -s conftest.$ac_objext; then
27693   wx_cv_cc_gcc_atomic_builtins=yes
27694 else
27695   echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27697
27698         wx_cv_cc_gcc_atomic_builtins=no
27699 fi
27700
27701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27702
27703 fi
27704
27705     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27706 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27707     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27708       cat >>confdefs.h <<\_ACEOF
27709 #define HAVE_GCC_ATOMIC_BUILTINS 1
27710 _ACEOF
27711
27712     fi
27713   fi
27714
27715
27716 ac_ext=c
27717 ac_cpp='$CPP $CPPFLAGS'
27718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27721
27722
27723
27724 SEARCH_INCLUDE="\
27725     /usr/local/include        \
27726                               \
27727     /usr/Motif-2.1/include    \
27728     /usr/Motif-1.2/include    \
27729     /usr/include/Motif1.2     \
27730                               \
27731     /usr/dt/include           \
27732     /usr/openwin/include      \
27733                               \
27734     /usr/include/Xm           \
27735                               \
27736     /usr/X11R6/include        \
27737     /usr/X11R6.4/include      \
27738     /usr/X11R5/include        \
27739     /usr/X11R4/include        \
27740                               \
27741     /usr/include/X11R6        \
27742     /usr/include/X11R5        \
27743     /usr/include/X11R4        \
27744                               \
27745     /usr/local/X11R6/include  \
27746     /usr/local/X11R5/include  \
27747     /usr/local/X11R4/include  \
27748                               \
27749     /usr/local/include/X11R6  \
27750     /usr/local/include/X11R5  \
27751     /usr/local/include/X11R4  \
27752                               \
27753     /usr/X11/include          \
27754     /usr/include/X11          \
27755     /usr/local/X11/include    \
27756     /usr/local/include/X11    \
27757                               \
27758     /usr/XFree86/include/X11  \
27759     /usr/pkg/include          \
27760                               \
27761     /usr/openwin/share/include"
27762
27763 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27764 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27765
27766 case "${host}" in
27767     *-*-irix6* )
27768         if test "${wx_cv_std_libpath+set}" = set; then
27769   echo $ECHO_N "(cached) $ECHO_C" >&6
27770 else
27771
27772                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27773                     for e in a so sl dylib dll.a; do
27774                         libc="$d/libc.$e"
27775                         if test -f $libc; then
27776                             save_LIBS="$LIBS"
27777                             LIBS="$libc"
27778                             cat >conftest.$ac_ext <<_ACEOF
27779 int main() { return 0; }
27780 _ACEOF
27781 rm -f conftest.$ac_objext conftest$ac_exeext
27782 if { (ac_try="$ac_link"
27783 case "(($ac_try" in
27784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785   *) ac_try_echo=$ac_try;;
27786 esac
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788   (eval "$ac_link") 2>conftest.er1
27789   ac_status=$?
27790   grep -v '^ *+' conftest.er1 >conftest.err
27791   rm -f conftest.er1
27792   cat conftest.err >&5
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); } && {
27795          test -z "$ac_c_werror_flag" ||
27796          test ! -s conftest.err
27797        } && test -s conftest$ac_exeext &&
27798        $as_test_x conftest$ac_exeext; then
27799   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27800 else
27801   echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.$ac_ext >&5
27803
27804
27805 fi
27806
27807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27808       conftest$ac_exeext conftest.$ac_ext
27809                             LIBS="$save_LIBS"
27810                             if test "x$wx_cv_std_libpath" != "x"; then
27811                                 break 2
27812                             fi
27813                         fi
27814                     done
27815                 done
27816                 if test "x$wx_cv_std_libpath" = "x"; then
27817                     wx_cv_std_libpath="lib"
27818                 fi
27819
27820
27821 fi
27822
27823         ;;
27824
27825     *-*-solaris2* )
27826                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27827             wx_cv_std_libpath="lib/64"
27828         else
27829             wx_cv_std_libpath="lib"
27830         fi
27831         ;;
27832
27833     *-*-linux* )
27834                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27835                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27836             wx_cv_std_libpath="lib64"
27837         else
27838             wx_cv_std_libpath="lib"
27839         fi
27840         ;;
27841
27842     *)
27843         wx_cv_std_libpath="lib";
27844         ;;
27845 esac
27846
27847 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27848 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27849
27850 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27851
27852 if test "$build" != "$host" -a "$GCC" = yes; then
27853                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27854         cross_root=`dirname $cross_root`
27855         cross_root=`dirname $cross_root`
27856
27857                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27858         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27859         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27860
27861                 if test -z "$PKG_CONFIG_PATH"; then
27862             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27863             export PKG_CONFIG_PATH
27864         fi
27865
27866                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27867
27868 ac_find_includes=
27869 for ac_dir in $SEARCH_INCLUDE /usr/include;
27870   do
27871     if test -f "$ac_dir/X11/Intrinsic.h"; then
27872       ac_find_includes=$ac_dir
27873       break
27874     fi
27875   done
27876
27877             x_includes=$ac_find_includes
27878         fi
27879         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27880
27881   ac_find_libraries=
27882   for ac_dir in $SEARCH_LIB;
27883   do
27884     for ac_extension in a so sl dylib dll.a; do
27885       if test -f "$ac_dir/libXt.$ac_extension"; then
27886         ac_find_libraries=$ac_dir
27887         break 2
27888       fi
27889     done
27890   done
27891
27892             x_libraries=$ac_find_libraries
27893         fi
27894     fi
27895 fi
27896
27897
27898 cat >confcache <<\_ACEOF
27899 # This file is a shell script that caches the results of configure
27900 # tests run on this system so they can be shared between configure
27901 # scripts and configure runs, see configure's option --config-cache.
27902 # It is not useful on other systems.  If it contains results you don't
27903 # want to keep, you may remove or edit it.
27904 #
27905 # config.status only pays attention to the cache file if you give it
27906 # the --recheck option to rerun configure.
27907 #
27908 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27910 # following values.
27911
27912 _ACEOF
27913
27914 # The following way of writing the cache mishandles newlines in values,
27915 # but we know of no workaround that is simple, portable, and efficient.
27916 # So, we kill variables containing newlines.
27917 # Ultrix sh set writes to stderr and can't be redirected directly,
27918 # and sets the high bit in the cache file unless we assign to the vars.
27919 (
27920   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27921     eval ac_val=\$$ac_var
27922     case $ac_val in #(
27923     *${as_nl}*)
27924       case $ac_var in #(
27925       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27926 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27927       esac
27928       case $ac_var in #(
27929       _ | IFS | as_nl) ;; #(
27930       *) $as_unset $ac_var ;;
27931       esac ;;
27932     esac
27933   done
27934
27935   (set) 2>&1 |
27936     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27937     *${as_nl}ac_space=\ *)
27938       # `set' does not quote correctly, so add quotes (double-quote
27939       # substitution turns \\\\ into \\, and sed turns \\ into \).
27940       sed -n \
27941         "s/'/'\\\\''/g;
27942           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27943       ;; #(
27944     *)
27945       # `set' quotes correctly as required by POSIX, so do not add quotes.
27946       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27947       ;;
27948     esac |
27949     sort
27950 ) |
27951   sed '
27952      /^ac_cv_env_/b end
27953      t clear
27954      :clear
27955      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27956      t end
27957      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27958      :end' >>confcache
27959 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27960   if test -w "$cache_file"; then
27961     test "x$cache_file" != "x/dev/null" &&
27962       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27963 echo "$as_me: updating cache $cache_file" >&6;}
27964     cat confcache >$cache_file
27965   else
27966     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27967 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27968   fi
27969 fi
27970 rm -f confcache
27971
27972 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27973     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27974 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27975 if test "${wx_cv_lib_glibc21+set}" = set; then
27976   echo $ECHO_N "(cached) $ECHO_C" >&6
27977 else
27978
27979         cat >conftest.$ac_ext <<_ACEOF
27980 /* confdefs.h.  */
27981 _ACEOF
27982 cat confdefs.h >>conftest.$ac_ext
27983 cat >>conftest.$ac_ext <<_ACEOF
27984 /* end confdefs.h.  */
27985 #include <features.h>
27986 int
27987 main ()
27988 {
27989
27990                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27991                 not glibc 2.1
27992                 #endif
27993
27994   ;
27995   return 0;
27996 }
27997 _ACEOF
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002   *) ac_try_echo=$ac_try;;
28003 esac
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005   (eval "$ac_compile") 2>conftest.er1
28006   ac_status=$?
28007   grep -v '^ *+' conftest.er1 >conftest.err
28008   rm -f conftest.er1
28009   cat conftest.err >&5
28010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); } && {
28012          test -z "$ac_c_werror_flag" ||
28013          test ! -s conftest.err
28014        } && test -s conftest.$ac_objext; then
28015
28016                 wx_cv_lib_glibc21=yes
28017
28018 else
28019   echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28021
28022
28023                 wx_cv_lib_glibc21=no
28024
28025
28026 fi
28027
28028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28029
28030 fi
28031 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
28032 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
28033     if test "$wx_cv_lib_glibc21" = "yes"; then
28034         cat >>confdefs.h <<\_ACEOF
28035 #define wxHAVE_GLIBC2 1
28036 _ACEOF
28037
28038     fi
28039 fi
28040
28041 if test "x$wx_cv_lib_glibc21" = "xyes"; then
28042     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
28043         cat >>confdefs.h <<\_ACEOF
28044 #define _GNU_SOURCE 1
28045 _ACEOF
28046
28047     fi
28048 fi
28049
28050 have_cos=0
28051 have_floor=0
28052
28053 for ac_func in cos
28054 do
28055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28059   echo $ECHO_N "(cached) $ECHO_C" >&6
28060 else
28061   cat >conftest.$ac_ext <<_ACEOF
28062 /* confdefs.h.  */
28063 _ACEOF
28064 cat confdefs.h >>conftest.$ac_ext
28065 cat >>conftest.$ac_ext <<_ACEOF
28066 /* end confdefs.h.  */
28067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28069 #define $ac_func innocuous_$ac_func
28070
28071 /* System header to define __stub macros and hopefully few prototypes,
28072     which can conflict with char $ac_func (); below.
28073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28074     <limits.h> exists even on freestanding compilers.  */
28075
28076 #ifdef __STDC__
28077 # include <limits.h>
28078 #else
28079 # include <assert.h>
28080 #endif
28081
28082 #undef $ac_func
28083
28084 /* Override any GCC internal prototype to avoid an error.
28085    Use char because int might match the return type of a GCC
28086    builtin and then its argument prototype would still apply.  */
28087 #ifdef __cplusplus
28088 extern "C"
28089 #endif
28090 char $ac_func ();
28091 /* The GNU C library defines this for functions which it implements
28092     to always fail with ENOSYS.  Some functions are actually named
28093     something starting with __ and the normal name is an alias.  */
28094 #if defined __stub_$ac_func || defined __stub___$ac_func
28095 choke me
28096 #endif
28097
28098 int
28099 main ()
28100 {
28101 return $ac_func ();
28102   ;
28103   return 0;
28104 }
28105 _ACEOF
28106 rm -f conftest.$ac_objext conftest$ac_exeext
28107 if { (ac_try="$ac_link"
28108 case "(($ac_try" in
28109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110   *) ac_try_echo=$ac_try;;
28111 esac
28112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113   (eval "$ac_link") 2>conftest.er1
28114   ac_status=$?
28115   grep -v '^ *+' conftest.er1 >conftest.err
28116   rm -f conftest.er1
28117   cat conftest.err >&5
28118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119   (exit $ac_status); } && {
28120          test -z "$ac_c_werror_flag" ||
28121          test ! -s conftest.err
28122        } && test -s conftest$ac_exeext &&
28123        $as_test_x conftest$ac_exeext; then
28124   eval "$as_ac_var=yes"
28125 else
28126   echo "$as_me: failed program was:" >&5
28127 sed 's/^/| /' conftest.$ac_ext >&5
28128
28129         eval "$as_ac_var=no"
28130 fi
28131
28132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28133       conftest$ac_exeext conftest.$ac_ext
28134 fi
28135 ac_res=`eval echo '${'$as_ac_var'}'`
28136                { echo "$as_me:$LINENO: result: $ac_res" >&5
28137 echo "${ECHO_T}$ac_res" >&6; }
28138 if test `eval echo '${'$as_ac_var'}'` = yes; then
28139   cat >>confdefs.h <<_ACEOF
28140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28141 _ACEOF
28142  have_cos=1
28143 fi
28144 done
28145
28146
28147 for ac_func in floor
28148 do
28149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28153   echo $ECHO_N "(cached) $ECHO_C" >&6
28154 else
28155   cat >conftest.$ac_ext <<_ACEOF
28156 /* confdefs.h.  */
28157 _ACEOF
28158 cat confdefs.h >>conftest.$ac_ext
28159 cat >>conftest.$ac_ext <<_ACEOF
28160 /* end confdefs.h.  */
28161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28163 #define $ac_func innocuous_$ac_func
28164
28165 /* System header to define __stub macros and hopefully few prototypes,
28166     which can conflict with char $ac_func (); below.
28167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28168     <limits.h> exists even on freestanding compilers.  */
28169
28170 #ifdef __STDC__
28171 # include <limits.h>
28172 #else
28173 # include <assert.h>
28174 #endif
28175
28176 #undef $ac_func
28177
28178 /* Override any GCC internal prototype to avoid an error.
28179    Use char because int might match the return type of a GCC
28180    builtin and then its argument prototype would still apply.  */
28181 #ifdef __cplusplus
28182 extern "C"
28183 #endif
28184 char $ac_func ();
28185 /* The GNU C library defines this for functions which it implements
28186     to always fail with ENOSYS.  Some functions are actually named
28187     something starting with __ and the normal name is an alias.  */
28188 #if defined __stub_$ac_func || defined __stub___$ac_func
28189 choke me
28190 #endif
28191
28192 int
28193 main ()
28194 {
28195 return $ac_func ();
28196   ;
28197   return 0;
28198 }
28199 _ACEOF
28200 rm -f conftest.$ac_objext conftest$ac_exeext
28201 if { (ac_try="$ac_link"
28202 case "(($ac_try" in
28203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204   *) ac_try_echo=$ac_try;;
28205 esac
28206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207   (eval "$ac_link") 2>conftest.er1
28208   ac_status=$?
28209   grep -v '^ *+' conftest.er1 >conftest.err
28210   rm -f conftest.er1
28211   cat conftest.err >&5
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); } && {
28214          test -z "$ac_c_werror_flag" ||
28215          test ! -s conftest.err
28216        } && test -s conftest$ac_exeext &&
28217        $as_test_x conftest$ac_exeext; then
28218   eval "$as_ac_var=yes"
28219 else
28220   echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223         eval "$as_ac_var=no"
28224 fi
28225
28226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28227       conftest$ac_exeext conftest.$ac_ext
28228 fi
28229 ac_res=`eval echo '${'$as_ac_var'}'`
28230                { echo "$as_me:$LINENO: result: $ac_res" >&5
28231 echo "${ECHO_T}$ac_res" >&6; }
28232 if test `eval echo '${'$as_ac_var'}'` = yes; then
28233   cat >>confdefs.h <<_ACEOF
28234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28235 _ACEOF
28236  have_floor=1
28237 fi
28238 done
28239
28240 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28241 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
28242 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28243     { echo "$as_me:$LINENO: result: yes" >&5
28244 echo "${ECHO_T}yes" >&6; }
28245 else
28246     { echo "$as_me:$LINENO: result: no" >&5
28247 echo "${ECHO_T}no" >&6; }
28248     LIBS="$LIBS -lm"
28249     # use different functions to avoid configure caching
28250     have_sin=0
28251     have_ceil=0
28252
28253 for ac_func in sin
28254 do
28255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28259   echo $ECHO_N "(cached) $ECHO_C" >&6
28260 else
28261   cat >conftest.$ac_ext <<_ACEOF
28262 /* confdefs.h.  */
28263 _ACEOF
28264 cat confdefs.h >>conftest.$ac_ext
28265 cat >>conftest.$ac_ext <<_ACEOF
28266 /* end confdefs.h.  */
28267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28269 #define $ac_func innocuous_$ac_func
28270
28271 /* System header to define __stub macros and hopefully few prototypes,
28272     which can conflict with char $ac_func (); below.
28273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28274     <limits.h> exists even on freestanding compilers.  */
28275
28276 #ifdef __STDC__
28277 # include <limits.h>
28278 #else
28279 # include <assert.h>
28280 #endif
28281
28282 #undef $ac_func
28283
28284 /* Override any GCC internal prototype to avoid an error.
28285    Use char because int might match the return type of a GCC
28286    builtin and then its argument prototype would still apply.  */
28287 #ifdef __cplusplus
28288 extern "C"
28289 #endif
28290 char $ac_func ();
28291 /* The GNU C library defines this for functions which it implements
28292     to always fail with ENOSYS.  Some functions are actually named
28293     something starting with __ and the normal name is an alias.  */
28294 #if defined __stub_$ac_func || defined __stub___$ac_func
28295 choke me
28296 #endif
28297
28298 int
28299 main ()
28300 {
28301 return $ac_func ();
28302   ;
28303   return 0;
28304 }
28305 _ACEOF
28306 rm -f conftest.$ac_objext conftest$ac_exeext
28307 if { (ac_try="$ac_link"
28308 case "(($ac_try" in
28309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310   *) ac_try_echo=$ac_try;;
28311 esac
28312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313   (eval "$ac_link") 2>conftest.er1
28314   ac_status=$?
28315   grep -v '^ *+' conftest.er1 >conftest.err
28316   rm -f conftest.er1
28317   cat conftest.err >&5
28318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319   (exit $ac_status); } && {
28320          test -z "$ac_c_werror_flag" ||
28321          test ! -s conftest.err
28322        } && test -s conftest$ac_exeext &&
28323        $as_test_x conftest$ac_exeext; then
28324   eval "$as_ac_var=yes"
28325 else
28326   echo "$as_me: failed program was:" >&5
28327 sed 's/^/| /' conftest.$ac_ext >&5
28328
28329         eval "$as_ac_var=no"
28330 fi
28331
28332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28333       conftest$ac_exeext conftest.$ac_ext
28334 fi
28335 ac_res=`eval echo '${'$as_ac_var'}'`
28336                { echo "$as_me:$LINENO: result: $ac_res" >&5
28337 echo "${ECHO_T}$ac_res" >&6; }
28338 if test `eval echo '${'$as_ac_var'}'` = yes; then
28339   cat >>confdefs.h <<_ACEOF
28340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28341 _ACEOF
28342  have_sin=1
28343 fi
28344 done
28345
28346
28347 for ac_func in ceil
28348 do
28349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28353   echo $ECHO_N "(cached) $ECHO_C" >&6
28354 else
28355   cat >conftest.$ac_ext <<_ACEOF
28356 /* confdefs.h.  */
28357 _ACEOF
28358 cat confdefs.h >>conftest.$ac_ext
28359 cat >>conftest.$ac_ext <<_ACEOF
28360 /* end confdefs.h.  */
28361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28363 #define $ac_func innocuous_$ac_func
28364
28365 /* System header to define __stub macros and hopefully few prototypes,
28366     which can conflict with char $ac_func (); below.
28367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28368     <limits.h> exists even on freestanding compilers.  */
28369
28370 #ifdef __STDC__
28371 # include <limits.h>
28372 #else
28373 # include <assert.h>
28374 #endif
28375
28376 #undef $ac_func
28377
28378 /* Override any GCC internal prototype to avoid an error.
28379    Use char because int might match the return type of a GCC
28380    builtin and then its argument prototype would still apply.  */
28381 #ifdef __cplusplus
28382 extern "C"
28383 #endif
28384 char $ac_func ();
28385 /* The GNU C library defines this for functions which it implements
28386     to always fail with ENOSYS.  Some functions are actually named
28387     something starting with __ and the normal name is an alias.  */
28388 #if defined __stub_$ac_func || defined __stub___$ac_func
28389 choke me
28390 #endif
28391
28392 int
28393 main ()
28394 {
28395 return $ac_func ();
28396   ;
28397   return 0;
28398 }
28399 _ACEOF
28400 rm -f conftest.$ac_objext conftest$ac_exeext
28401 if { (ac_try="$ac_link"
28402 case "(($ac_try" in
28403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404   *) ac_try_echo=$ac_try;;
28405 esac
28406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407   (eval "$ac_link") 2>conftest.er1
28408   ac_status=$?
28409   grep -v '^ *+' conftest.er1 >conftest.err
28410   rm -f conftest.er1
28411   cat conftest.err >&5
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); } && {
28414          test -z "$ac_c_werror_flag" ||
28415          test ! -s conftest.err
28416        } && test -s conftest$ac_exeext &&
28417        $as_test_x conftest$ac_exeext; then
28418   eval "$as_ac_var=yes"
28419 else
28420   echo "$as_me: failed program was:" >&5
28421 sed 's/^/| /' conftest.$ac_ext >&5
28422
28423         eval "$as_ac_var=no"
28424 fi
28425
28426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28427       conftest$ac_exeext conftest.$ac_ext
28428 fi
28429 ac_res=`eval echo '${'$as_ac_var'}'`
28430                { echo "$as_me:$LINENO: result: $ac_res" >&5
28431 echo "${ECHO_T}$ac_res" >&6; }
28432 if test `eval echo '${'$as_ac_var'}'` = yes; then
28433   cat >>confdefs.h <<_ACEOF
28434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28435 _ACEOF
28436  have_ceil=1
28437 fi
28438 done
28439
28440     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28441 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28442     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28443         { echo "$as_me:$LINENO: result: yes" >&5
28444 echo "${ECHO_T}yes" >&6; }
28445     else
28446         { echo "$as_me:$LINENO: result: no" >&5
28447 echo "${ECHO_T}no" >&6; }
28448         # not sure we should warn the user, crash, etc.
28449     fi
28450 fi
28451
28452 ac_ext=cpp
28453 ac_cpp='$CXXCPP $CPPFLAGS'
28454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28457
28458 if test "wxUSE_UNICODE" = "yes"; then
28459
28460   for wx_func in wcstoull
28461   do
28462     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28463 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28464 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28465   echo $ECHO_N "(cached) $ECHO_C" >&6
28466 else
28467
28468         cat >conftest.$ac_ext <<_ACEOF
28469
28470             /* confdefs.h.  */
28471 _ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h.  */
28475
28476
28477                 $ac_includes_default
28478
28479 int
28480 main ()
28481 {
28482
28483                 #ifndef $wx_func
28484                   &$wx_func;
28485                 #endif
28486
28487
28488   ;
28489   return 0;
28490 }
28491
28492 _ACEOF
28493 rm -f conftest.$ac_objext conftest$ac_exeext
28494 if { (ac_try="$ac_link"
28495 case "(($ac_try" in
28496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497   *) ac_try_echo=$ac_try;;
28498 esac
28499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500   (eval "$ac_link") 2>conftest.er1
28501   ac_status=$?
28502   grep -v '^ *+' conftest.er1 >conftest.err
28503   rm -f conftest.er1
28504   cat conftest.err >&5
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); } && {
28507          test -z "$ac_cxx_werror_flag" ||
28508          test ! -s conftest.err
28509        } && test -s conftest$ac_exeext &&
28510        $as_test_x conftest$ac_exeext; then
28511   eval wx_cv_func_$wx_func=yes
28512 else
28513   echo "$as_me: failed program was:" >&5
28514 sed 's/^/| /' conftest.$ac_ext >&5
28515
28516         eval wx_cv_func_$wx_func=no
28517 fi
28518
28519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28520       conftest$ac_exeext conftest.$ac_ext
28521
28522 fi
28523 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28524                { echo "$as_me:$LINENO: result: $ac_res" >&5
28525 echo "${ECHO_T}$ac_res" >&6; }
28526
28527     if eval test \$wx_cv_func_$wx_func = yes
28528     then
28529       cat >>confdefs.h <<_ACEOF
28530 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
28531 _ACEOF
28532
28533
28534     else
28535       :
28536
28537     fi
28538   done
28539
28540 else
28541
28542   for wx_func in strtoull
28543   do
28544     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28545 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28546 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28547   echo $ECHO_N "(cached) $ECHO_C" >&6
28548 else
28549
28550         cat >conftest.$ac_ext <<_ACEOF
28551
28552             /* confdefs.h.  */
28553 _ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h.  */
28557
28558
28559                 $ac_includes_default
28560
28561 int
28562 main ()
28563 {
28564
28565                 #ifndef $wx_func
28566                   &$wx_func;
28567                 #endif
28568
28569
28570   ;
28571   return 0;
28572 }
28573
28574 _ACEOF
28575 rm -f conftest.$ac_objext conftest$ac_exeext
28576 if { (ac_try="$ac_link"
28577 case "(($ac_try" in
28578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579   *) ac_try_echo=$ac_try;;
28580 esac
28581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582   (eval "$ac_link") 2>conftest.er1
28583   ac_status=$?
28584   grep -v '^ *+' conftest.er1 >conftest.err
28585   rm -f conftest.er1
28586   cat conftest.err >&5
28587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588   (exit $ac_status); } && {
28589          test -z "$ac_cxx_werror_flag" ||
28590          test ! -s conftest.err
28591        } && test -s conftest$ac_exeext &&
28592        $as_test_x conftest$ac_exeext; then
28593   eval wx_cv_func_$wx_func=yes
28594 else
28595   echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28597
28598         eval wx_cv_func_$wx_func=no
28599 fi
28600
28601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28602       conftest$ac_exeext conftest.$ac_ext
28603
28604 fi
28605 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28606                { echo "$as_me:$LINENO: result: $ac_res" >&5
28607 echo "${ECHO_T}$ac_res" >&6; }
28608
28609     if eval test \$wx_cv_func_$wx_func = yes
28610     then
28611       cat >>confdefs.h <<_ACEOF
28612 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
28613 _ACEOF
28614
28615
28616     else
28617       :
28618
28619     fi
28620   done
28621
28622 fi
28623 ac_ext=c
28624 ac_cpp='$CPP $CPPFLAGS'
28625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28628
28629
28630
28631
28632 if test "$wxUSE_REGEX" != "no"; then
28633     cat >>confdefs.h <<\_ACEOF
28634 #define wxUSE_REGEX 1
28635 _ACEOF
28636
28637
28638     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28639         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28640 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28641         wxUSE_REGEX=builtin
28642     fi
28643
28644     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28645                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28646 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28647 if test "${ac_cv_header_regex_h+set}" = set; then
28648   echo $ECHO_N "(cached) $ECHO_C" >&6
28649 else
28650   cat >conftest.$ac_ext <<_ACEOF
28651 /* confdefs.h.  */
28652 _ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h.  */
28656
28657
28658 #include <regex.h>
28659 _ACEOF
28660 rm -f conftest.$ac_objext
28661 if { (ac_try="$ac_compile"
28662 case "(($ac_try" in
28663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664   *) ac_try_echo=$ac_try;;
28665 esac
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667   (eval "$ac_compile") 2>conftest.er1
28668   ac_status=$?
28669   grep -v '^ *+' conftest.er1 >conftest.err
28670   rm -f conftest.er1
28671   cat conftest.err >&5
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); } && {
28674          test -z "$ac_c_werror_flag" ||
28675          test ! -s conftest.err
28676        } && test -s conftest.$ac_objext; then
28677   ac_cv_header_regex_h=yes
28678 else
28679   echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28681
28682         ac_cv_header_regex_h=no
28683 fi
28684
28685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28686 fi
28687 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28688 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28689 if test $ac_cv_header_regex_h = yes; then
28690
28691
28692 for ac_func in regcomp re_search
28693 do
28694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28698   echo $ECHO_N "(cached) $ECHO_C" >&6
28699 else
28700   cat >conftest.$ac_ext <<_ACEOF
28701 /* confdefs.h.  */
28702 _ACEOF
28703 cat confdefs.h >>conftest.$ac_ext
28704 cat >>conftest.$ac_ext <<_ACEOF
28705 /* end confdefs.h.  */
28706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28708 #define $ac_func innocuous_$ac_func
28709
28710 /* System header to define __stub macros and hopefully few prototypes,
28711     which can conflict with char $ac_func (); below.
28712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28713     <limits.h> exists even on freestanding compilers.  */
28714
28715 #ifdef __STDC__
28716 # include <limits.h>
28717 #else
28718 # include <assert.h>
28719 #endif
28720
28721 #undef $ac_func
28722
28723 /* Override any GCC internal prototype to avoid an error.
28724    Use char because int might match the return type of a GCC
28725    builtin and then its argument prototype would still apply.  */
28726 #ifdef __cplusplus
28727 extern "C"
28728 #endif
28729 char $ac_func ();
28730 /* The GNU C library defines this for functions which it implements
28731     to always fail with ENOSYS.  Some functions are actually named
28732     something starting with __ and the normal name is an alias.  */
28733 #if defined __stub_$ac_func || defined __stub___$ac_func
28734 choke me
28735 #endif
28736
28737 int
28738 main ()
28739 {
28740 return $ac_func ();
28741   ;
28742   return 0;
28743 }
28744 _ACEOF
28745 rm -f conftest.$ac_objext conftest$ac_exeext
28746 if { (ac_try="$ac_link"
28747 case "(($ac_try" in
28748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749   *) ac_try_echo=$ac_try;;
28750 esac
28751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752   (eval "$ac_link") 2>conftest.er1
28753   ac_status=$?
28754   grep -v '^ *+' conftest.er1 >conftest.err
28755   rm -f conftest.er1
28756   cat conftest.err >&5
28757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758   (exit $ac_status); } && {
28759          test -z "$ac_c_werror_flag" ||
28760          test ! -s conftest.err
28761        } && test -s conftest$ac_exeext &&
28762        $as_test_x conftest$ac_exeext; then
28763   eval "$as_ac_var=yes"
28764 else
28765   echo "$as_me: failed program was:" >&5
28766 sed 's/^/| /' conftest.$ac_ext >&5
28767
28768         eval "$as_ac_var=no"
28769 fi
28770
28771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28772       conftest$ac_exeext conftest.$ac_ext
28773 fi
28774 ac_res=`eval echo '${'$as_ac_var'}'`
28775                { echo "$as_me:$LINENO: result: $ac_res" >&5
28776 echo "${ECHO_T}$ac_res" >&6; }
28777 if test `eval echo '${'$as_ac_var'}'` = yes; then
28778   cat >>confdefs.h <<_ACEOF
28779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28780 _ACEOF
28781
28782 fi
28783 done
28784
28785 fi
28786
28787
28788
28789         if test "x$ac_cv_func_regcomp" != "xyes"; then
28790             if test "$wxUSE_REGEX" = "sys" ; then
28791                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28792 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28793    { (exit 1); exit 1; }; }
28794             else
28795                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28796 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28797                 wxUSE_REGEX=builtin
28798             fi
28799         else
28800                         wxUSE_REGEX=sys
28801                         cat >>confdefs.h <<\_ACEOF
28802 #define WX_NO_REGEX_ADVANCED 1
28803 _ACEOF
28804
28805         fi
28806     fi
28807 fi
28808
28809
28810 ZLIB_LINK=
28811 if test "$wxUSE_ZLIB" != "no" ; then
28812     cat >>confdefs.h <<\_ACEOF
28813 #define wxUSE_ZLIB 1
28814 _ACEOF
28815
28816
28817     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28818                                                 if test "$USE_DARWIN" = 1; then
28819             system_zlib_h_ok="yes"
28820         else
28821                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28822 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28823 if test "${ac_cv_header_zlib_h+set}" = set; then
28824   echo $ECHO_N "(cached) $ECHO_C" >&6
28825 else
28826   if test "$cross_compiling" = yes; then
28827                       unset ac_cv_header_zlib_h
28828
28829 else
28830   cat >conftest.$ac_ext <<_ACEOF
28831 /* confdefs.h.  */
28832 _ACEOF
28833 cat confdefs.h >>conftest.$ac_ext
28834 cat >>conftest.$ac_ext <<_ACEOF
28835 /* end confdefs.h.  */
28836
28837                         #include <zlib.h>
28838                         #include <stdio.h>
28839
28840                         int main()
28841                         {
28842                             FILE *f=fopen("conftestval", "w");
28843                             if (!f) exit(1);
28844                             fprintf(f, "%s",
28845                                     ZLIB_VERSION[0] == '1' &&
28846                                     (ZLIB_VERSION[2] > '1' ||
28847                                     (ZLIB_VERSION[2] == '1' &&
28848                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28849                             exit(0);
28850                         }
28851
28852 _ACEOF
28853 rm -f conftest$ac_exeext
28854 if { (ac_try="$ac_link"
28855 case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_link") 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28864   { (case "(($ac_try" in
28865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866   *) ac_try_echo=$ac_try;;
28867 esac
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869   (eval "$ac_try") 2>&5
28870   ac_status=$?
28871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872   (exit $ac_status); }; }; then
28873   ac_cv_header_zlib_h=`cat conftestval`
28874 else
28875   echo "$as_me: program exited with status $ac_status" >&5
28876 echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28878
28879 ( exit $ac_status )
28880 ac_cv_header_zlib_h=no
28881 fi
28882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28883 fi
28884
28885
28886
28887 fi
28888 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28889 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28890                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28891 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28892 if test "${ac_cv_header_zlib_h+set}" = set; then
28893   echo $ECHO_N "(cached) $ECHO_C" >&6
28894 else
28895   cat >conftest.$ac_ext <<_ACEOF
28896 /* confdefs.h.  */
28897 _ACEOF
28898 cat confdefs.h >>conftest.$ac_ext
28899 cat >>conftest.$ac_ext <<_ACEOF
28900 /* end confdefs.h.  */
28901
28902
28903 #include <zlib.h>
28904 _ACEOF
28905 rm -f conftest.$ac_objext
28906 if { (ac_try="$ac_compile"
28907 case "(($ac_try" in
28908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909   *) ac_try_echo=$ac_try;;
28910 esac
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912   (eval "$ac_compile") 2>conftest.er1
28913   ac_status=$?
28914   grep -v '^ *+' conftest.er1 >conftest.err
28915   rm -f conftest.er1
28916   cat conftest.err >&5
28917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); } && {
28919          test -z "$ac_c_werror_flag" ||
28920          test ! -s conftest.err
28921        } && test -s conftest.$ac_objext; then
28922   ac_cv_header_zlib_h=yes
28923 else
28924   echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28926
28927         ac_cv_header_zlib_h=no
28928 fi
28929
28930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28931 fi
28932 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28933 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28934
28935
28936
28937             system_zlib_h_ok=$ac_cv_header_zlib_h
28938         fi
28939
28940         if test "$system_zlib_h_ok" = "yes"; then
28941             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28942 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28943 if test "${ac_cv_lib_z_deflate+set}" = set; then
28944   echo $ECHO_N "(cached) $ECHO_C" >&6
28945 else
28946   ac_check_lib_save_LIBS=$LIBS
28947 LIBS="-lz  $LIBS"
28948 cat >conftest.$ac_ext <<_ACEOF
28949 /* confdefs.h.  */
28950 _ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h.  */
28954
28955 /* Override any GCC internal prototype to avoid an error.
28956    Use char because int might match the return type of a GCC
28957    builtin and then its argument prototype would still apply.  */
28958 #ifdef __cplusplus
28959 extern "C"
28960 #endif
28961 char deflate ();
28962 int
28963 main ()
28964 {
28965 return deflate ();
28966   ;
28967   return 0;
28968 }
28969 _ACEOF
28970 rm -f conftest.$ac_objext conftest$ac_exeext
28971 if { (ac_try="$ac_link"
28972 case "(($ac_try" in
28973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974   *) ac_try_echo=$ac_try;;
28975 esac
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977   (eval "$ac_link") 2>conftest.er1
28978   ac_status=$?
28979   grep -v '^ *+' conftest.er1 >conftest.err
28980   rm -f conftest.er1
28981   cat conftest.err >&5
28982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983   (exit $ac_status); } && {
28984          test -z "$ac_c_werror_flag" ||
28985          test ! -s conftest.err
28986        } && test -s conftest$ac_exeext &&
28987        $as_test_x conftest$ac_exeext; then
28988   ac_cv_lib_z_deflate=yes
28989 else
28990   echo "$as_me: failed program was:" >&5
28991 sed 's/^/| /' conftest.$ac_ext >&5
28992
28993         ac_cv_lib_z_deflate=no
28994 fi
28995
28996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28997       conftest$ac_exeext conftest.$ac_ext
28998 LIBS=$ac_check_lib_save_LIBS
28999 fi
29000 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29001 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29002 if test $ac_cv_lib_z_deflate = yes; then
29003   ZLIB_LINK=" -lz"
29004 fi
29005
29006         fi
29007
29008         if test "x$ZLIB_LINK" = "x" ; then
29009             if test "$wxUSE_ZLIB" = "sys" ; then
29010                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
29011 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
29012    { (exit 1); exit 1; }; }
29013             else
29014                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
29015 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
29016                 wxUSE_ZLIB=builtin
29017             fi
29018         else
29019                         wxUSE_ZLIB=sys
29020         fi
29021     fi
29022 fi
29023
29024
29025 PNG_LINK=
29026 if test "$wxUSE_LIBPNG" != "no" ; then
29027     cat >>confdefs.h <<\_ACEOF
29028 #define wxUSE_LIBPNG 1
29029 _ACEOF
29030
29031
29032     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
29033         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
29034 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
29035         wxUSE_LIBPNG=sys
29036     fi
29037
29038                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
29039         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
29040 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
29041         wxUSE_LIBPNG=builtin
29042     fi
29043
29044     if test "$wxUSE_MGL" != 1 ; then
29045                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
29046                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
29047 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
29048 if test "${ac_cv_header_png_h+set}" = set; then
29049   echo $ECHO_N "(cached) $ECHO_C" >&6
29050 else
29051   if test "$cross_compiling" = yes; then
29052                       unset ac_cv_header_png_h
29053
29054 else
29055   cat >conftest.$ac_ext <<_ACEOF
29056 /* confdefs.h.  */
29057 _ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h.  */
29061
29062                         #include <png.h>
29063                         #include <stdio.h>
29064
29065                         int main()
29066                         {
29067                             FILE *f=fopen("conftestval", "w");
29068                             if (!f) exit(1);
29069                             fprintf(f, "%s",
29070                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
29071                             exit(0);
29072                         }
29073
29074 _ACEOF
29075 rm -f conftest$ac_exeext
29076 if { (ac_try="$ac_link"
29077 case "(($ac_try" in
29078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079   *) ac_try_echo=$ac_try;;
29080 esac
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082   (eval "$ac_link") 2>&5
29083   ac_status=$?
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29086   { (case "(($ac_try" in
29087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29088   *) ac_try_echo=$ac_try;;
29089 esac
29090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29091   (eval "$ac_try") 2>&5
29092   ac_status=$?
29093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094   (exit $ac_status); }; }; then
29095   ac_cv_header_png_h=`cat conftestval`
29096 else
29097   echo "$as_me: program exited with status $ac_status" >&5
29098 echo "$as_me: failed program was:" >&5
29099 sed 's/^/| /' conftest.$ac_ext >&5
29100
29101 ( exit $ac_status )
29102 ac_cv_header_png_h=no
29103 fi
29104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29105 fi
29106
29107
29108
29109 fi
29110 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29111 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29112             { echo "$as_me:$LINENO: checking for png.h" >&5
29113 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29114 if test "${ac_cv_header_png_h+set}" = set; then
29115   echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117   cat >conftest.$ac_ext <<_ACEOF
29118 /* confdefs.h.  */
29119 _ACEOF
29120 cat confdefs.h >>conftest.$ac_ext
29121 cat >>conftest.$ac_ext <<_ACEOF
29122 /* end confdefs.h.  */
29123
29124
29125 #include <png.h>
29126 _ACEOF
29127 rm -f conftest.$ac_objext
29128 if { (ac_try="$ac_compile"
29129 case "(($ac_try" in
29130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131   *) ac_try_echo=$ac_try;;
29132 esac
29133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134   (eval "$ac_compile") 2>conftest.er1
29135   ac_status=$?
29136   grep -v '^ *+' conftest.er1 >conftest.err
29137   rm -f conftest.er1
29138   cat conftest.err >&5
29139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140   (exit $ac_status); } && {
29141          test -z "$ac_c_werror_flag" ||
29142          test ! -s conftest.err
29143        } && test -s conftest.$ac_objext; then
29144   ac_cv_header_png_h=yes
29145 else
29146   echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29148
29149         ac_cv_header_png_h=no
29150 fi
29151
29152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29153 fi
29154 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29155 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29156
29157
29158
29159             if test "$ac_cv_header_png_h" = "yes"; then
29160                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29161 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29162 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29163   echo $ECHO_N "(cached) $ECHO_C" >&6
29164 else
29165   ac_check_lib_save_LIBS=$LIBS
29166 LIBS="-lpng -lz -lm $LIBS"
29167 cat >conftest.$ac_ext <<_ACEOF
29168 /* confdefs.h.  */
29169 _ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h.  */
29173
29174 /* Override any GCC internal prototype to avoid an error.
29175    Use char because int might match the return type of a GCC
29176    builtin and then its argument prototype would still apply.  */
29177 #ifdef __cplusplus
29178 extern "C"
29179 #endif
29180 char png_check_sig ();
29181 int
29182 main ()
29183 {
29184 return png_check_sig ();
29185   ;
29186   return 0;
29187 }
29188 _ACEOF
29189 rm -f conftest.$ac_objext conftest$ac_exeext
29190 if { (ac_try="$ac_link"
29191 case "(($ac_try" in
29192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29193   *) ac_try_echo=$ac_try;;
29194 esac
29195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29196   (eval "$ac_link") 2>conftest.er1
29197   ac_status=$?
29198   grep -v '^ *+' conftest.er1 >conftest.err
29199   rm -f conftest.er1
29200   cat conftest.err >&5
29201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202   (exit $ac_status); } && {
29203          test -z "$ac_c_werror_flag" ||
29204          test ! -s conftest.err
29205        } && test -s conftest$ac_exeext &&
29206        $as_test_x conftest$ac_exeext; then
29207   ac_cv_lib_png_png_check_sig=yes
29208 else
29209   echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.$ac_ext >&5
29211
29212         ac_cv_lib_png_png_check_sig=no
29213 fi
29214
29215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29216       conftest$ac_exeext conftest.$ac_ext
29217 LIBS=$ac_check_lib_save_LIBS
29218 fi
29219 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29220 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29221 if test $ac_cv_lib_png_png_check_sig = yes; then
29222   PNG_LINK=" -lpng -lz"
29223 fi
29224
29225             fi
29226
29227             if test "x$PNG_LINK" = "x" ; then
29228                 if test "$wxUSE_LIBPNG" = "sys" ; then
29229                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29230 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29231    { (exit 1); exit 1; }; }
29232                 else
29233                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29234 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29235                     wxUSE_LIBPNG=builtin
29236                 fi
29237             else
29238                                 wxUSE_LIBPNG=sys
29239             fi
29240         fi
29241     fi
29242 fi
29243
29244
29245 JPEG_LINK=
29246 if test "$wxUSE_LIBJPEG" != "no" ; then
29247     cat >>confdefs.h <<\_ACEOF
29248 #define wxUSE_LIBJPEG 1
29249 _ACEOF
29250
29251
29252     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29253         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29254 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29255         wxUSE_LIBJPEG=sys
29256     fi
29257
29258     if test "$wxUSE_MGL" != 1 ; then
29259                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29260                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29261 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29262             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29263   echo $ECHO_N "(cached) $ECHO_C" >&6
29264 else
29265   cat >conftest.$ac_ext <<_ACEOF
29266 /* confdefs.h.  */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h.  */
29271
29272                         #undef HAVE_STDLIB_H
29273                         #include <stdio.h>
29274                         #include <jpeglib.h>
29275
29276 int
29277 main ()
29278 {
29279
29280
29281   ;
29282   return 0;
29283 }
29284 _ACEOF
29285 rm -f conftest.$ac_objext
29286 if { (ac_try="$ac_compile"
29287 case "(($ac_try" in
29288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29289   *) ac_try_echo=$ac_try;;
29290 esac
29291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29292   (eval "$ac_compile") 2>conftest.er1
29293   ac_status=$?
29294   grep -v '^ *+' conftest.er1 >conftest.err
29295   rm -f conftest.er1
29296   cat conftest.err >&5
29297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298   (exit $ac_status); } && {
29299          test -z "$ac_c_werror_flag" ||
29300          test ! -s conftest.err
29301        } && test -s conftest.$ac_objext; then
29302   ac_cv_header_jpeglib_h=yes
29303 else
29304   echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29306
29307         ac_cv_header_jpeglib_h=no
29308
29309 fi
29310
29311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29312
29313 fi
29314
29315             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29316 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29317
29318             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29319                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29320 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29321 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29322   echo $ECHO_N "(cached) $ECHO_C" >&6
29323 else
29324   ac_check_lib_save_LIBS=$LIBS
29325 LIBS="-ljpeg  $LIBS"
29326 cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h.  */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h.  */
29332
29333 /* Override any GCC internal prototype to avoid an error.
29334    Use char because int might match the return type of a GCC
29335    builtin and then its argument prototype would still apply.  */
29336 #ifdef __cplusplus
29337 extern "C"
29338 #endif
29339 char jpeg_read_header ();
29340 int
29341 main ()
29342 {
29343 return jpeg_read_header ();
29344   ;
29345   return 0;
29346 }
29347 _ACEOF
29348 rm -f conftest.$ac_objext conftest$ac_exeext
29349 if { (ac_try="$ac_link"
29350 case "(($ac_try" in
29351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352   *) ac_try_echo=$ac_try;;
29353 esac
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355   (eval "$ac_link") 2>conftest.er1
29356   ac_status=$?
29357   grep -v '^ *+' conftest.er1 >conftest.err
29358   rm -f conftest.er1
29359   cat conftest.err >&5
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); } && {
29362          test -z "$ac_c_werror_flag" ||
29363          test ! -s conftest.err
29364        } && test -s conftest$ac_exeext &&
29365        $as_test_x conftest$ac_exeext; then
29366   ac_cv_lib_jpeg_jpeg_read_header=yes
29367 else
29368   echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371         ac_cv_lib_jpeg_jpeg_read_header=no
29372 fi
29373
29374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29375       conftest$ac_exeext conftest.$ac_ext
29376 LIBS=$ac_check_lib_save_LIBS
29377 fi
29378 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29379 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29380 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29381   JPEG_LINK=" -ljpeg"
29382 fi
29383
29384             fi
29385
29386             if test "x$JPEG_LINK" = "x" ; then
29387                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29388                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29389 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29390    { (exit 1); exit 1; }; }
29391                 else
29392                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29393 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29394                     wxUSE_LIBJPEG=builtin
29395                 fi
29396             else
29397                                 wxUSE_LIBJPEG=sys
29398
29399                 if test "$wxUSE_MSW" = 1; then
29400                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29401 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29402 if test "${ac_cv_type_boolean+set}" = set; then
29403   echo $ECHO_N "(cached) $ECHO_C" >&6
29404 else
29405   cat >conftest.$ac_ext <<_ACEOF
29406 /* confdefs.h.  */
29407 _ACEOF
29408 cat confdefs.h >>conftest.$ac_ext
29409 cat >>conftest.$ac_ext <<_ACEOF
29410 /* end confdefs.h.  */
29411 #include <windows.h>
29412
29413 typedef boolean ac__type_new_;
29414 int
29415 main ()
29416 {
29417 if ((ac__type_new_ *) 0)
29418   return 0;
29419 if (sizeof (ac__type_new_))
29420   return 0;
29421   ;
29422   return 0;
29423 }
29424 _ACEOF
29425 rm -f conftest.$ac_objext
29426 if { (ac_try="$ac_compile"
29427 case "(($ac_try" in
29428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29429   *) ac_try_echo=$ac_try;;
29430 esac
29431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29432   (eval "$ac_compile") 2>conftest.er1
29433   ac_status=$?
29434   grep -v '^ *+' conftest.er1 >conftest.err
29435   rm -f conftest.er1
29436   cat conftest.err >&5
29437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438   (exit $ac_status); } && {
29439          test -z "$ac_c_werror_flag" ||
29440          test ! -s conftest.err
29441        } && test -s conftest.$ac_objext; then
29442   ac_cv_type_boolean=yes
29443 else
29444   echo "$as_me: failed program was:" >&5
29445 sed 's/^/| /' conftest.$ac_ext >&5
29446
29447         ac_cv_type_boolean=no
29448 fi
29449
29450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29451 fi
29452 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29453 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29454 if test $ac_cv_type_boolean = yes; then
29455
29456 cat >>confdefs.h <<_ACEOF
29457 #define HAVE_BOOLEAN 1
29458 _ACEOF
29459
29460
29461                             { echo "$as_me:$LINENO: checking for boolean" >&5
29462 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29463 if test "${ac_cv_type_boolean+set}" = set; then
29464   echo $ECHO_N "(cached) $ECHO_C" >&6
29465 else
29466   cat >conftest.$ac_ext <<_ACEOF
29467 /* confdefs.h.  */
29468 _ACEOF
29469 cat confdefs.h >>conftest.$ac_ext
29470 cat >>conftest.$ac_ext <<_ACEOF
29471 /* end confdefs.h.  */
29472
29473                                     #undef HAVE_BOOLEAN
29474                                     #include <stdio.h>
29475                                     #include <jpeglib.h>
29476
29477
29478 typedef boolean ac__type_new_;
29479 int
29480 main ()
29481 {
29482 if ((ac__type_new_ *) 0)
29483   return 0;
29484 if (sizeof (ac__type_new_))
29485   return 0;
29486   ;
29487   return 0;
29488 }
29489 _ACEOF
29490 rm -f conftest.$ac_objext
29491 if { (ac_try="$ac_compile"
29492 case "(($ac_try" in
29493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494   *) ac_try_echo=$ac_try;;
29495 esac
29496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497   (eval "$ac_compile") 2>conftest.er1
29498   ac_status=$?
29499   grep -v '^ *+' conftest.er1 >conftest.err
29500   rm -f conftest.er1
29501   cat conftest.err >&5
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); } && {
29504          test -z "$ac_c_werror_flag" ||
29505          test ! -s conftest.err
29506        } && test -s conftest.$ac_objext; then
29507   ac_cv_type_boolean=yes
29508 else
29509   echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29511
29512         ac_cv_type_boolean=no
29513 fi
29514
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516 fi
29517 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29518 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29519
29520 # The cast to long int works around a bug in the HP C Compiler
29521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29523 # This bug is HP SR number 8606223364.
29524 { echo "$as_me:$LINENO: checking size of boolean" >&5
29525 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29526 if test "${ac_cv_sizeof_boolean+set}" = set; then
29527   echo $ECHO_N "(cached) $ECHO_C" >&6
29528 else
29529   if test "$cross_compiling" = yes; then
29530   # Depending upon the size, compute the lo and hi bounds.
29531 cat >conftest.$ac_ext <<_ACEOF
29532 /* confdefs.h.  */
29533 _ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h.  */
29537
29538                                     #undef HAVE_BOOLEAN
29539                                     #include <stdio.h>
29540                                     #include <jpeglib.h>
29541
29542
29543    typedef boolean ac__type_sizeof_;
29544 int
29545 main ()
29546 {
29547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29548 test_array [0] = 0
29549
29550   ;
29551   return 0;
29552 }
29553 _ACEOF
29554 rm -f conftest.$ac_objext
29555 if { (ac_try="$ac_compile"
29556 case "(($ac_try" in
29557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558   *) ac_try_echo=$ac_try;;
29559 esac
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561   (eval "$ac_compile") 2>conftest.er1
29562   ac_status=$?
29563   grep -v '^ *+' conftest.er1 >conftest.err
29564   rm -f conftest.er1
29565   cat conftest.err >&5
29566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567   (exit $ac_status); } && {
29568          test -z "$ac_c_werror_flag" ||
29569          test ! -s conftest.err
29570        } && test -s conftest.$ac_objext; then
29571   ac_lo=0 ac_mid=0
29572   while :; do
29573     cat >conftest.$ac_ext <<_ACEOF
29574 /* confdefs.h.  */
29575 _ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h.  */
29579
29580                                     #undef HAVE_BOOLEAN
29581                                     #include <stdio.h>
29582                                     #include <jpeglib.h>
29583
29584
29585    typedef boolean ac__type_sizeof_;
29586 int
29587 main ()
29588 {
29589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29590 test_array [0] = 0
29591
29592   ;
29593   return 0;
29594 }
29595 _ACEOF
29596 rm -f conftest.$ac_objext
29597 if { (ac_try="$ac_compile"
29598 case "(($ac_try" in
29599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29600   *) ac_try_echo=$ac_try;;
29601 esac
29602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29603   (eval "$ac_compile") 2>conftest.er1
29604   ac_status=$?
29605   grep -v '^ *+' conftest.er1 >conftest.err
29606   rm -f conftest.er1
29607   cat conftest.err >&5
29608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609   (exit $ac_status); } && {
29610          test -z "$ac_c_werror_flag" ||
29611          test ! -s conftest.err
29612        } && test -s conftest.$ac_objext; then
29613   ac_hi=$ac_mid; break
29614 else
29615   echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.$ac_ext >&5
29617
29618         ac_lo=`expr $ac_mid + 1`
29619                         if test $ac_lo -le $ac_mid; then
29620                           ac_lo= ac_hi=
29621                           break
29622                         fi
29623                         ac_mid=`expr 2 '*' $ac_mid + 1`
29624 fi
29625
29626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29627   done
29628 else
29629   echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29631
29632         cat >conftest.$ac_ext <<_ACEOF
29633 /* confdefs.h.  */
29634 _ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h.  */
29638
29639                                     #undef HAVE_BOOLEAN
29640                                     #include <stdio.h>
29641                                     #include <jpeglib.h>
29642
29643
29644    typedef boolean ac__type_sizeof_;
29645 int
29646 main ()
29647 {
29648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29649 test_array [0] = 0
29650
29651   ;
29652   return 0;
29653 }
29654 _ACEOF
29655 rm -f conftest.$ac_objext
29656 if { (ac_try="$ac_compile"
29657 case "(($ac_try" in
29658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659   *) ac_try_echo=$ac_try;;
29660 esac
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662   (eval "$ac_compile") 2>conftest.er1
29663   ac_status=$?
29664   grep -v '^ *+' conftest.er1 >conftest.err
29665   rm -f conftest.er1
29666   cat conftest.err >&5
29667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668   (exit $ac_status); } && {
29669          test -z "$ac_c_werror_flag" ||
29670          test ! -s conftest.err
29671        } && test -s conftest.$ac_objext; then
29672   ac_hi=-1 ac_mid=-1
29673   while :; do
29674     cat >conftest.$ac_ext <<_ACEOF
29675 /* confdefs.h.  */
29676 _ACEOF
29677 cat confdefs.h >>conftest.$ac_ext
29678 cat >>conftest.$ac_ext <<_ACEOF
29679 /* end confdefs.h.  */
29680
29681                                     #undef HAVE_BOOLEAN
29682                                     #include <stdio.h>
29683                                     #include <jpeglib.h>
29684
29685
29686    typedef boolean ac__type_sizeof_;
29687 int
29688 main ()
29689 {
29690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29691 test_array [0] = 0
29692
29693   ;
29694   return 0;
29695 }
29696 _ACEOF
29697 rm -f conftest.$ac_objext
29698 if { (ac_try="$ac_compile"
29699 case "(($ac_try" in
29700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29701   *) ac_try_echo=$ac_try;;
29702 esac
29703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29704   (eval "$ac_compile") 2>conftest.er1
29705   ac_status=$?
29706   grep -v '^ *+' conftest.er1 >conftest.err
29707   rm -f conftest.er1
29708   cat conftest.err >&5
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); } && {
29711          test -z "$ac_c_werror_flag" ||
29712          test ! -s conftest.err
29713        } && test -s conftest.$ac_objext; then
29714   ac_lo=$ac_mid; break
29715 else
29716   echo "$as_me: failed program was:" >&5
29717 sed 's/^/| /' conftest.$ac_ext >&5
29718
29719         ac_hi=`expr '(' $ac_mid ')' - 1`
29720                         if test $ac_mid -le $ac_hi; then
29721                           ac_lo= ac_hi=
29722                           break
29723                         fi
29724                         ac_mid=`expr 2 '*' $ac_mid`
29725 fi
29726
29727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29728   done
29729 else
29730   echo "$as_me: failed program was:" >&5
29731 sed 's/^/| /' conftest.$ac_ext >&5
29732
29733         ac_lo= ac_hi=
29734 fi
29735
29736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29737 fi
29738
29739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29740 # Binary search between lo and hi bounds.
29741 while test "x$ac_lo" != "x$ac_hi"; do
29742   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29743   cat >conftest.$ac_ext <<_ACEOF
29744 /* confdefs.h.  */
29745 _ACEOF
29746 cat confdefs.h >>conftest.$ac_ext
29747 cat >>conftest.$ac_ext <<_ACEOF
29748 /* end confdefs.h.  */
29749
29750                                     #undef HAVE_BOOLEAN
29751                                     #include <stdio.h>
29752                                     #include <jpeglib.h>
29753
29754
29755    typedef boolean ac__type_sizeof_;
29756 int
29757 main ()
29758 {
29759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29760 test_array [0] = 0
29761
29762   ;
29763   return 0;
29764 }
29765 _ACEOF
29766 rm -f conftest.$ac_objext
29767 if { (ac_try="$ac_compile"
29768 case "(($ac_try" in
29769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770   *) ac_try_echo=$ac_try;;
29771 esac
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773   (eval "$ac_compile") 2>conftest.er1
29774   ac_status=$?
29775   grep -v '^ *+' conftest.er1 >conftest.err
29776   rm -f conftest.er1
29777   cat conftest.err >&5
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); } && {
29780          test -z "$ac_c_werror_flag" ||
29781          test ! -s conftest.err
29782        } && test -s conftest.$ac_objext; then
29783   ac_hi=$ac_mid
29784 else
29785   echo "$as_me: failed program was:" >&5
29786 sed 's/^/| /' conftest.$ac_ext >&5
29787
29788         ac_lo=`expr '(' $ac_mid ')' + 1`
29789 fi
29790
29791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792 done
29793 case $ac_lo in
29794 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29795 '') if test "$ac_cv_type_boolean" = yes; then
29796      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29797 See \`config.log' for more details." >&5
29798 echo "$as_me: error: cannot compute sizeof (boolean)
29799 See \`config.log' for more details." >&2;}
29800    { (exit 77); exit 77; }; }
29801    else
29802      ac_cv_sizeof_boolean=0
29803    fi ;;
29804 esac
29805 else
29806   cat >conftest.$ac_ext <<_ACEOF
29807 /* confdefs.h.  */
29808 _ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h.  */
29812
29813                                     #undef HAVE_BOOLEAN
29814                                     #include <stdio.h>
29815                                     #include <jpeglib.h>
29816
29817
29818    typedef boolean ac__type_sizeof_;
29819 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29820 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29821 #include <stdio.h>
29822 #include <stdlib.h>
29823 int
29824 main ()
29825 {
29826
29827   FILE *f = fopen ("conftest.val", "w");
29828   if (! f)
29829     return 1;
29830   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29831     {
29832       long int i = longval ();
29833       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29834         return 1;
29835       fprintf (f, "%ld\n", i);
29836     }
29837   else
29838     {
29839       unsigned long int i = ulongval ();
29840       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29841         return 1;
29842       fprintf (f, "%lu\n", i);
29843     }
29844   return ferror (f) || fclose (f) != 0;
29845
29846   ;
29847   return 0;
29848 }
29849 _ACEOF
29850 rm -f conftest$ac_exeext
29851 if { (ac_try="$ac_link"
29852 case "(($ac_try" in
29853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854   *) ac_try_echo=$ac_try;;
29855 esac
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857   (eval "$ac_link") 2>&5
29858   ac_status=$?
29859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29861   { (case "(($ac_try" in
29862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29863   *) ac_try_echo=$ac_try;;
29864 esac
29865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29866   (eval "$ac_try") 2>&5
29867   ac_status=$?
29868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869   (exit $ac_status); }; }; then
29870   ac_cv_sizeof_boolean=`cat conftest.val`
29871 else
29872   echo "$as_me: program exited with status $ac_status" >&5
29873 echo "$as_me: failed program was:" >&5
29874 sed 's/^/| /' conftest.$ac_ext >&5
29875
29876 ( exit $ac_status )
29877 if test "$ac_cv_type_boolean" = yes; then
29878      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29879 See \`config.log' for more details." >&5
29880 echo "$as_me: error: cannot compute sizeof (boolean)
29881 See \`config.log' for more details." >&2;}
29882    { (exit 77); exit 77; }; }
29883    else
29884      ac_cv_sizeof_boolean=0
29885    fi
29886 fi
29887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29888 fi
29889 rm -f conftest.val
29890 fi
29891 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29892 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29893
29894
29895
29896 cat >>confdefs.h <<_ACEOF
29897 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29898 _ACEOF
29899
29900
29901                             cat >>confdefs.h <<_ACEOF
29902 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29903 _ACEOF
29904
29905
29906 fi
29907
29908                 fi
29909             fi
29910         fi
29911     fi
29912 fi
29913
29914
29915 TIFF_LINK=
29916 TIFF_PREREQ_LINKS=-lm
29917 if test "$wxUSE_LIBTIFF" != "no" ; then
29918     cat >>confdefs.h <<\_ACEOF
29919 #define wxUSE_LIBTIFF 1
29920 _ACEOF
29921
29922
29923     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29924                         if test "$wxUSE_LIBJPEG" = "sys"; then
29925             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29926         fi
29927         if test "$wxUSE_ZLIB" = "sys"; then
29928             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29929         fi
29930         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29931 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29932 if test "${ac_cv_header_tiffio_h+set}" = set; then
29933   echo $ECHO_N "(cached) $ECHO_C" >&6
29934 else
29935   cat >conftest.$ac_ext <<_ACEOF
29936 /* confdefs.h.  */
29937 _ACEOF
29938 cat confdefs.h >>conftest.$ac_ext
29939 cat >>conftest.$ac_ext <<_ACEOF
29940 /* end confdefs.h.  */
29941
29942
29943
29944 #include <tiffio.h>
29945 _ACEOF
29946 rm -f conftest.$ac_objext
29947 if { (ac_try="$ac_compile"
29948 case "(($ac_try" in
29949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950   *) ac_try_echo=$ac_try;;
29951 esac
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953   (eval "$ac_compile") 2>conftest.er1
29954   ac_status=$?
29955   grep -v '^ *+' conftest.er1 >conftest.err
29956   rm -f conftest.er1
29957   cat conftest.err >&5
29958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959   (exit $ac_status); } && {
29960          test -z "$ac_c_werror_flag" ||
29961          test ! -s conftest.err
29962        } && test -s conftest.$ac_objext; then
29963   ac_cv_header_tiffio_h=yes
29964 else
29965   echo "$as_me: failed program was:" >&5
29966 sed 's/^/| /' conftest.$ac_ext >&5
29967
29968         ac_cv_header_tiffio_h=no
29969 fi
29970
29971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29972 fi
29973 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29974 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29975 if test $ac_cv_header_tiffio_h = yes; then
29976
29977                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29978 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29979 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29980   echo $ECHO_N "(cached) $ECHO_C" >&6
29981 else
29982   ac_check_lib_save_LIBS=$LIBS
29983 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29984 cat >conftest.$ac_ext <<_ACEOF
29985 /* confdefs.h.  */
29986 _ACEOF
29987 cat confdefs.h >>conftest.$ac_ext
29988 cat >>conftest.$ac_ext <<_ACEOF
29989 /* end confdefs.h.  */
29990
29991 /* Override any GCC internal prototype to avoid an error.
29992    Use char because int might match the return type of a GCC
29993    builtin and then its argument prototype would still apply.  */
29994 #ifdef __cplusplus
29995 extern "C"
29996 #endif
29997 char TIFFError ();
29998 int
29999 main ()
30000 {
30001 return TIFFError ();
30002   ;
30003   return 0;
30004 }
30005 _ACEOF
30006 rm -f conftest.$ac_objext conftest$ac_exeext
30007 if { (ac_try="$ac_link"
30008 case "(($ac_try" in
30009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010   *) ac_try_echo=$ac_try;;
30011 esac
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013   (eval "$ac_link") 2>conftest.er1
30014   ac_status=$?
30015   grep -v '^ *+' conftest.er1 >conftest.err
30016   rm -f conftest.er1
30017   cat conftest.err >&5
30018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30019   (exit $ac_status); } && {
30020          test -z "$ac_c_werror_flag" ||
30021          test ! -s conftest.err
30022        } && test -s conftest$ac_exeext &&
30023        $as_test_x conftest$ac_exeext; then
30024   ac_cv_lib_tiff_TIFFError=yes
30025 else
30026   echo "$as_me: failed program was:" >&5
30027 sed 's/^/| /' conftest.$ac_ext >&5
30028
30029         ac_cv_lib_tiff_TIFFError=no
30030 fi
30031
30032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30033       conftest$ac_exeext conftest.$ac_ext
30034 LIBS=$ac_check_lib_save_LIBS
30035 fi
30036 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
30037 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
30038 if test $ac_cv_lib_tiff_TIFFError = yes; then
30039   TIFF_LINK=" -ltiff"
30040 fi
30041
30042
30043 fi
30044
30045
30046
30047         if test "x$TIFF_LINK" = "x" ; then
30048             if test "$wxUSE_LIBTIFF" = "sys" ; then
30049                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
30050 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
30051    { (exit 1); exit 1; }; }
30052             else
30053                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
30054 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
30055                 wxUSE_LIBTIFF=builtin
30056             fi
30057         else
30058                         wxUSE_LIBTIFF=sys
30059         fi
30060         if test "$wxUSE_LIBTIFF" = "builtin" ; then
30061             subdirs="$subdirs src/tiff"
30062
30063         fi
30064     fi
30065 fi
30066
30067
30068 if test "$wxUSE_WCHAR_T" != "yes"; then
30069     if test "$wxUSE_EXPAT" != "no"; then
30070         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
30071 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
30072         wxUSE_EXPAT=no
30073     fi
30074     if test "$wxUSE_XML" != "no"; then
30075         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30076 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30077         wxUSE_XML=no
30078     fi
30079 fi
30080
30081 if test "$wxUSE_EXPAT" != "no"; then
30082     wxUSE_XML=yes
30083     cat >>confdefs.h <<\_ACEOF
30084 #define wxUSE_EXPAT 1
30085 _ACEOF
30086
30087     cat >>confdefs.h <<\_ACEOF
30088 #define wxUSE_XML 1
30089 _ACEOF
30090
30091
30092     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30093         { echo "$as_me:$LINENO: checking for expat.h" >&5
30094 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30095 if test "${ac_cv_header_expat_h+set}" = set; then
30096   echo $ECHO_N "(cached) $ECHO_C" >&6
30097 else
30098   cat >conftest.$ac_ext <<_ACEOF
30099 /* confdefs.h.  */
30100 _ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h.  */
30104
30105
30106 #include <expat.h>
30107 _ACEOF
30108 rm -f conftest.$ac_objext
30109 if { (ac_try="$ac_compile"
30110 case "(($ac_try" in
30111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112   *) ac_try_echo=$ac_try;;
30113 esac
30114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30115   (eval "$ac_compile") 2>conftest.er1
30116   ac_status=$?
30117   grep -v '^ *+' conftest.er1 >conftest.err
30118   rm -f conftest.er1
30119   cat conftest.err >&5
30120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121   (exit $ac_status); } && {
30122          test -z "$ac_c_werror_flag" ||
30123          test ! -s conftest.err
30124        } && test -s conftest.$ac_objext; then
30125   ac_cv_header_expat_h=yes
30126 else
30127   echo "$as_me: failed program was:" >&5
30128 sed 's/^/| /' conftest.$ac_ext >&5
30129
30130         ac_cv_header_expat_h=no
30131 fi
30132
30133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30134 fi
30135 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30136 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30137 if test $ac_cv_header_expat_h = yes; then
30138   found_expat_h=1
30139 fi
30140
30141
30142         if test "x$found_expat_h" = "x1"; then
30143                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30144 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30145 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30146   echo $ECHO_N "(cached) $ECHO_C" >&6
30147 else
30148
30149                 ac_ext=cpp
30150 ac_cpp='$CXXCPP $CPPFLAGS'
30151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30154
30155                 cat >conftest.$ac_ext <<_ACEOF
30156 /* confdefs.h.  */
30157 _ACEOF
30158 cat confdefs.h >>conftest.$ac_ext
30159 cat >>conftest.$ac_ext <<_ACEOF
30160 /* end confdefs.h.  */
30161 #include <expat.h>
30162 int
30163 main ()
30164 {
30165
30166   ;
30167   return 0;
30168 }
30169 _ACEOF
30170 rm -f conftest.$ac_objext
30171 if { (ac_try="$ac_compile"
30172 case "(($ac_try" in
30173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30174   *) ac_try_echo=$ac_try;;
30175 esac
30176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30177   (eval "$ac_compile") 2>conftest.er1
30178   ac_status=$?
30179   grep -v '^ *+' conftest.er1 >conftest.err
30180   rm -f conftest.er1
30181   cat conftest.err >&5
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); } && {
30184          test -z "$ac_cxx_werror_flag" ||
30185          test ! -s conftest.err
30186        } && test -s conftest.$ac_objext; then
30187   wx_cv_expat_is_not_broken=yes
30188 else
30189   echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30191
30192         wx_cv_expat_is_not_broken=no
30193
30194 fi
30195
30196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30197                 ac_ext=c
30198 ac_cpp='$CPP $CPPFLAGS'
30199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30202
30203
30204
30205 fi
30206 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30207 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30208             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30209                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30210 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30211 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30212   echo $ECHO_N "(cached) $ECHO_C" >&6
30213 else
30214   ac_check_lib_save_LIBS=$LIBS
30215 LIBS="-lexpat  $LIBS"
30216 cat >conftest.$ac_ext <<_ACEOF
30217 /* confdefs.h.  */
30218 _ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h.  */
30222
30223 /* Override any GCC internal prototype to avoid an error.
30224    Use char because int might match the return type of a GCC
30225    builtin and then its argument prototype would still apply.  */
30226 #ifdef __cplusplus
30227 extern "C"
30228 #endif
30229 char XML_ParserCreate ();
30230 int
30231 main ()
30232 {
30233 return XML_ParserCreate ();
30234   ;
30235   return 0;
30236 }
30237 _ACEOF
30238 rm -f conftest.$ac_objext conftest$ac_exeext
30239 if { (ac_try="$ac_link"
30240 case "(($ac_try" in
30241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30242   *) ac_try_echo=$ac_try;;
30243 esac
30244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30245   (eval "$ac_link") 2>conftest.er1
30246   ac_status=$?
30247   grep -v '^ *+' conftest.er1 >conftest.err
30248   rm -f conftest.er1
30249   cat conftest.err >&5
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); } && {
30252          test -z "$ac_c_werror_flag" ||
30253          test ! -s conftest.err
30254        } && test -s conftest$ac_exeext &&
30255        $as_test_x conftest$ac_exeext; then
30256   ac_cv_lib_expat_XML_ParserCreate=yes
30257 else
30258   echo "$as_me: failed program was:" >&5
30259 sed 's/^/| /' conftest.$ac_ext >&5
30260
30261         ac_cv_lib_expat_XML_ParserCreate=no
30262 fi
30263
30264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30265       conftest$ac_exeext conftest.$ac_ext
30266 LIBS=$ac_check_lib_save_LIBS
30267 fi
30268 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30269 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30270 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30271   EXPAT_LINK=" -lexpat"
30272 fi
30273
30274             fi
30275         fi
30276         if test "x$EXPAT_LINK" = "x" ; then
30277             if test "$wxUSE_EXPAT" = "sys" ; then
30278                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30279 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30280    { (exit 1); exit 1; }; }
30281             else
30282                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30283 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30284                 wxUSE_EXPAT=builtin
30285             fi
30286         else
30287                         wxUSE_EXPAT=sys
30288         fi
30289     fi
30290     if test "$wxUSE_EXPAT" = "builtin" ; then
30291                 subdirs="$subdirs src/expat"
30292
30293     fi
30294 fi
30295
30296
30297
30298 if test "$wxUSE_LIBMSPACK" != "no"; then
30299     { echo "$as_me:$LINENO: checking for mspack.h" >&5
30300 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30301 if test "${ac_cv_header_mspack_h+set}" = set; then
30302   echo $ECHO_N "(cached) $ECHO_C" >&6
30303 else
30304   cat >conftest.$ac_ext <<_ACEOF
30305 /* confdefs.h.  */
30306 _ACEOF
30307 cat confdefs.h >>conftest.$ac_ext
30308 cat >>conftest.$ac_ext <<_ACEOF
30309 /* end confdefs.h.  */
30310
30311
30312 #include <mspack.h>
30313 _ACEOF
30314 rm -f conftest.$ac_objext
30315 if { (ac_try="$ac_compile"
30316 case "(($ac_try" in
30317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30318   *) ac_try_echo=$ac_try;;
30319 esac
30320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30321   (eval "$ac_compile") 2>conftest.er1
30322   ac_status=$?
30323   grep -v '^ *+' conftest.er1 >conftest.err
30324   rm -f conftest.er1
30325   cat conftest.err >&5
30326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30327   (exit $ac_status); } && {
30328          test -z "$ac_c_werror_flag" ||
30329          test ! -s conftest.err
30330        } && test -s conftest.$ac_objext; then
30331   ac_cv_header_mspack_h=yes
30332 else
30333   echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30335
30336         ac_cv_header_mspack_h=no
30337 fi
30338
30339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30340 fi
30341 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30342 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30343 if test $ac_cv_header_mspack_h = yes; then
30344   found_mspack_h=1
30345 fi
30346
30347
30348     if test "x$found_mspack_h" = "x1"; then
30349         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
30350 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
30351 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
30352   echo $ECHO_N "(cached) $ECHO_C" >&6
30353 else
30354   ac_check_lib_save_LIBS=$LIBS
30355 LIBS="-lmspack  $LIBS"
30356 cat >conftest.$ac_ext <<_ACEOF
30357 /* confdefs.h.  */
30358 _ACEOF
30359 cat confdefs.h >>conftest.$ac_ext
30360 cat >>conftest.$ac_ext <<_ACEOF
30361 /* end confdefs.h.  */
30362
30363 /* Override any GCC internal prototype to avoid an error.
30364    Use char because int might match the return type of a GCC
30365    builtin and then its argument prototype would still apply.  */
30366 #ifdef __cplusplus
30367 extern "C"
30368 #endif
30369 char mspack_create_chm_decompressor ();
30370 int
30371 main ()
30372 {
30373 return mspack_create_chm_decompressor ();
30374   ;
30375   return 0;
30376 }
30377 _ACEOF
30378 rm -f conftest.$ac_objext conftest$ac_exeext
30379 if { (ac_try="$ac_link"
30380 case "(($ac_try" in
30381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382   *) ac_try_echo=$ac_try;;
30383 esac
30384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385   (eval "$ac_link") 2>conftest.er1
30386   ac_status=$?
30387   grep -v '^ *+' conftest.er1 >conftest.err
30388   rm -f conftest.er1
30389   cat conftest.err >&5
30390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391   (exit $ac_status); } && {
30392          test -z "$ac_c_werror_flag" ||
30393          test ! -s conftest.err
30394        } && test -s conftest$ac_exeext &&
30395        $as_test_x conftest$ac_exeext; then
30396   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
30397 else
30398   echo "$as_me: failed program was:" >&5
30399 sed 's/^/| /' conftest.$ac_ext >&5
30400
30401         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
30402 fi
30403
30404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30405       conftest$ac_exeext conftest.$ac_ext
30406 LIBS=$ac_check_lib_save_LIBS
30407 fi
30408 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
30409 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
30410 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
30411   MSPACK_LINK=" -lmspack"
30412 fi
30413
30414     fi
30415     if test "x$MSPACK_LINK" = "x" ; then
30416         wxUSE_LIBMSPACK=no
30417     fi
30418 fi
30419
30420 if test "$wxUSE_LIBMSPACK" != "no"; then
30421     cat >>confdefs.h <<\_ACEOF
30422 #define wxUSE_LIBMSPACK 1
30423 _ACEOF
30424
30425 fi
30426
30427
30428
30429 AFMINSTALL=
30430 WIN32INSTALL=
30431
30432 TOOLKIT=
30433 TOOLKIT_INCLUDE=
30434 WIDGET_SET=
30435
30436 if test "$USE_WIN32" = 1 ; then
30437
30438 for ac_header in w32api.h
30439 do
30440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30444   echo $ECHO_N "(cached) $ECHO_C" >&6
30445 else
30446   cat >conftest.$ac_ext <<_ACEOF
30447 /* confdefs.h.  */
30448 _ACEOF
30449 cat confdefs.h >>conftest.$ac_ext
30450 cat >>conftest.$ac_ext <<_ACEOF
30451 /* end confdefs.h.  */
30452
30453
30454 #include <$ac_header>
30455 _ACEOF
30456 rm -f conftest.$ac_objext
30457 if { (ac_try="$ac_compile"
30458 case "(($ac_try" in
30459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460   *) ac_try_echo=$ac_try;;
30461 esac
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463   (eval "$ac_compile") 2>conftest.er1
30464   ac_status=$?
30465   grep -v '^ *+' conftest.er1 >conftest.err
30466   rm -f conftest.er1
30467   cat conftest.err >&5
30468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); } && {
30470          test -z "$ac_c_werror_flag" ||
30471          test ! -s conftest.err
30472        } && test -s conftest.$ac_objext; then
30473   eval "$as_ac_Header=yes"
30474 else
30475   echo "$as_me: failed program was:" >&5
30476 sed 's/^/| /' conftest.$ac_ext >&5
30477
30478         eval "$as_ac_Header=no"
30479 fi
30480
30481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30482 fi
30483 ac_res=`eval echo '${'$as_ac_Header'}'`
30484                { echo "$as_me:$LINENO: result: $ac_res" >&5
30485 echo "${ECHO_T}$ac_res" >&6; }
30486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30487   cat >>confdefs.h <<_ACEOF
30488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30489 _ACEOF
30490
30491 fi
30492
30493 done
30494
30495     { echo "$as_me:$LINENO: checking for windows.h" >&5
30496 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30497 if test "${ac_cv_header_windows_h+set}" = set; then
30498   echo $ECHO_N "(cached) $ECHO_C" >&6
30499 else
30500   cat >conftest.$ac_ext <<_ACEOF
30501 /* confdefs.h.  */
30502 _ACEOF
30503 cat confdefs.h >>conftest.$ac_ext
30504 cat >>conftest.$ac_ext <<_ACEOF
30505 /* end confdefs.h.  */
30506
30507
30508 #include <windows.h>
30509 _ACEOF
30510 rm -f conftest.$ac_objext
30511 if { (ac_try="$ac_compile"
30512 case "(($ac_try" in
30513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514   *) ac_try_echo=$ac_try;;
30515 esac
30516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517   (eval "$ac_compile") 2>conftest.er1
30518   ac_status=$?
30519   grep -v '^ *+' conftest.er1 >conftest.err
30520   rm -f conftest.er1
30521   cat conftest.err >&5
30522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523   (exit $ac_status); } && {
30524          test -z "$ac_c_werror_flag" ||
30525          test ! -s conftest.err
30526        } && test -s conftest.$ac_objext; then
30527   ac_cv_header_windows_h=yes
30528 else
30529   echo "$as_me: failed program was:" >&5
30530 sed 's/^/| /' conftest.$ac_ext >&5
30531
30532         ac_cv_header_windows_h=no
30533 fi
30534
30535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30536 fi
30537 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30538 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30539 if test $ac_cv_header_windows_h = yes; then
30540   :
30541 else
30542
30543         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30544 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30545    { (exit 1); exit 1; }; }
30546
30547 fi
30548
30549
30550
30551             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30552
30553     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30554         LIBS="$LIBS -loleacc"
30555     fi
30556
30557     case "${host}" in
30558         *-*-cygwin* )
30559                         LIBS="$LIBS -lkernel32 -luser32"
30560     esac
30561
30562         if test "$wxUSE_ODBC" = "sys" ; then
30563         wxUSE_ODBC = "yes"
30564     fi
30565     if test "$wxUSE_ODBC" = "yes" ; then
30566         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
30567         cat >>confdefs.h <<\_ACEOF
30568 #define wxUSE_ODBC 1
30569 _ACEOF
30570
30571     fi
30572
30573         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30574     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30575
30576                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30577
30578         WIN32INSTALL=win32install
30579
30580         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30581 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30582 if test "${ac_cv_header_pbt_h+set}" = set; then
30583   echo $ECHO_N "(cached) $ECHO_C" >&6
30584 else
30585   cat >conftest.$ac_ext <<_ACEOF
30586 /* confdefs.h.  */
30587 _ACEOF
30588 cat confdefs.h >>conftest.$ac_ext
30589 cat >>conftest.$ac_ext <<_ACEOF
30590 /* end confdefs.h.  */
30591
30592
30593 #include <pbt.h>
30594 _ACEOF
30595 rm -f conftest.$ac_objext
30596 if { (ac_try="$ac_compile"
30597 case "(($ac_try" in
30598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599   *) ac_try_echo=$ac_try;;
30600 esac
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602   (eval "$ac_compile") 2>conftest.er1
30603   ac_status=$?
30604   grep -v '^ *+' conftest.er1 >conftest.err
30605   rm -f conftest.er1
30606   cat conftest.err >&5
30607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608   (exit $ac_status); } && {
30609          test -z "$ac_c_werror_flag" ||
30610          test ! -s conftest.err
30611        } && test -s conftest.$ac_objext; then
30612   ac_cv_header_pbt_h=yes
30613 else
30614   echo "$as_me: failed program was:" >&5
30615 sed 's/^/| /' conftest.$ac_ext >&5
30616
30617         ac_cv_header_pbt_h=no
30618 fi
30619
30620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30621 fi
30622 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30623 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30624 if test $ac_cv_header_pbt_h = yes; then
30625   :
30626 else
30627   cat >>confdefs.h <<\_ACEOF
30628 #define NEED_PBT_H 1
30629 _ACEOF
30630
30631 fi
30632
30633
30634 fi
30635
30636 if test "$wxUSE_GUI" = "yes"; then
30637     USE_GUI=1
30638
30639     GUI_TK_LIBRARY=
30640
30641     WXGTK12=
30642     WXGTK127=
30643     WXGTK20=
30644     WXGPE=
30645
30646     if test "$wxUSE_COCOA" = 1 ; then
30647         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30648             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30649 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30650             wxUSE_PRINTING_ARCHITECTURE=no
30651         fi
30652         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30653             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30654 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30655             wxUSE_DRAG_AND_DROP=no
30656         fi
30657         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30658             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30659 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30660             wxUSE_DRAGIMAGE=no
30661         fi
30662     fi
30663
30664     if test "$wxUSE_MSW" = 1 ; then
30665         TOOLKIT=MSW
30666         GUIDIST=MSW_DIST
30667
30668                 case "${host}" in
30669             *-*-mingw32* )
30670                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30671         esac
30672     fi
30673
30674     if test "$wxUSE_GTK" = 1; then
30675                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30676 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30677
30678         gtk_version_cached=1
30679         if test "${wx_cv_lib_gtk+set}" = set; then
30680   echo $ECHO_N "(cached) $ECHO_C" >&6
30681 else
30682
30683                                                 gtk_version_cached=0
30684                 { echo "$as_me:$LINENO: result: " >&5
30685 echo "${ECHO_T}" >&6; }
30686
30687                                                 GTK_MODULES=
30688                 if test "$wxUSE_THREADS" = "yes"; then
30689                     GTK_MODULES=gthread
30690                 fi
30691
30692                                 wx_cv_lib_gtk=
30693                 if test "x$wxGTK_VERSION" != "x1"
30694                 then
30695                                                                                 case "${host}" in
30696                         *-*-solaris2* )
30697                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30698                                 enable_gtktest=no
30699                             fi
30700                     esac
30701
30702                     # Check whether --enable-gtktest was given.
30703 if test "${enable_gtktest+set}" = set; then
30704   enableval=$enable_gtktest;
30705 else
30706   enable_gtktest=yes
30707 fi
30708
30709
30710   pkg_config_args=gtk+-2.0
30711   for module in . $GTK_MODULES
30712   do
30713       case "$module" in
30714          gthread)
30715              pkg_config_args="$pkg_config_args gthread-2.0"
30716          ;;
30717       esac
30718   done
30719
30720   no_gtk=""
30721
30722   # Extract the first word of "pkg-config", so it can be a program name with args.
30723 set dummy pkg-config; ac_word=$2
30724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30727   echo $ECHO_N "(cached) $ECHO_C" >&6
30728 else
30729   case $PKG_CONFIG in
30730   [\\/]* | ?:[\\/]*)
30731   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30732   ;;
30733   *)
30734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30735 for as_dir in $PATH
30736 do
30737   IFS=$as_save_IFS
30738   test -z "$as_dir" && as_dir=.
30739   for ac_exec_ext in '' $ac_executable_extensions; do
30740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30741     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30743     break 2
30744   fi
30745 done
30746 done
30747 IFS=$as_save_IFS
30748
30749   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30750   ;;
30751 esac
30752 fi
30753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30754 if test -n "$PKG_CONFIG"; then
30755   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30756 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30757 else
30758   { echo "$as_me:$LINENO: result: no" >&5
30759 echo "${ECHO_T}no" >&6; }
30760 fi
30761
30762
30763
30764   if test x$PKG_CONFIG != xno ; then
30765     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30766       :
30767     else
30768       echo "*** pkg-config too old; version 0.7 or better required."
30769       no_gtk=yes
30770       PKG_CONFIG=no
30771     fi
30772   else
30773     no_gtk=yes
30774   fi
30775
30776   min_gtk_version=2.0.0
30777   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30778 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30779
30780   if test x$PKG_CONFIG != xno ; then
30781     ## don't try to run the test against uninstalled libtool libs
30782     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30783           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30784           enable_gtktest=no
30785     fi
30786
30787     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30788           :
30789     else
30790           no_gtk=yes
30791     fi
30792   fi
30793
30794   if test x"$no_gtk" = x ; then
30795     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30796     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30797     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30798            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30799     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30800            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30801     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30802            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30803     if test "x$enable_gtktest" = "xyes" ; then
30804       ac_save_CFLAGS="$CFLAGS"
30805       ac_save_LIBS="$LIBS"
30806       CFLAGS="$CFLAGS $GTK_CFLAGS"
30807       LIBS="$GTK_LIBS $LIBS"
30808       rm -f conf.gtktest
30809       if test "$cross_compiling" = yes; then
30810   echo $ac_n "cross compiling; assumed OK... $ac_c"
30811 else
30812   cat >conftest.$ac_ext <<_ACEOF
30813 /* confdefs.h.  */
30814 _ACEOF
30815 cat confdefs.h >>conftest.$ac_ext
30816 cat >>conftest.$ac_ext <<_ACEOF
30817 /* end confdefs.h.  */
30818
30819 #include <gtk/gtk.h>
30820 #include <stdio.h>
30821 #include <stdlib.h>
30822
30823 int
30824 main ()
30825 {
30826   int major, minor, micro;
30827   char *tmp_version;
30828
30829   system ("touch conf.gtktest");
30830
30831   /* HP/UX 9 (%@#!) writes to sscanf strings */
30832   tmp_version = g_strdup("$min_gtk_version");
30833   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30834      printf("%s, bad version string\n", "$min_gtk_version");
30835      exit(1);
30836    }
30837
30838   if ((gtk_major_version != $gtk_config_major_version) ||
30839       (gtk_minor_version != $gtk_config_minor_version) ||
30840       (gtk_micro_version != $gtk_config_micro_version))
30841     {
30842       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30843              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30844              gtk_major_version, gtk_minor_version, gtk_micro_version);
30845       printf ("*** was found! If pkg-config was correct, then it is best\n");
30846       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30847       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30848       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30849       printf("*** required on your system.\n");
30850       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30851       printf("*** to point to the correct configuration files\n");
30852     }
30853   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30854            (gtk_minor_version != GTK_MINOR_VERSION) ||
30855            (gtk_micro_version != GTK_MICRO_VERSION))
30856     {
30857       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30858              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30859       printf("*** library (version %d.%d.%d)\n",
30860              gtk_major_version, gtk_minor_version, gtk_micro_version);
30861     }
30862   else
30863     {
30864       if ((gtk_major_version > major) ||
30865         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30866         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30867       {
30868         return 0;
30869        }
30870      else
30871       {
30872         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30873                gtk_major_version, gtk_minor_version, gtk_micro_version);
30874         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30875                major, minor, micro);
30876         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30877         printf("***\n");
30878         printf("*** If you have already installed a sufficiently new version, this error\n");
30879         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30880         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30881         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30882         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30883         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30884         printf("*** so that the correct libraries are found at run-time))\n");
30885       }
30886     }
30887   return 1;
30888 }
30889
30890 _ACEOF
30891 rm -f conftest$ac_exeext
30892 if { (ac_try="$ac_link"
30893 case "(($ac_try" in
30894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895   *) ac_try_echo=$ac_try;;
30896 esac
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898   (eval "$ac_link") 2>&5
30899   ac_status=$?
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
30908   ac_status=$?
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); }; }; then
30911   :
30912 else
30913   echo "$as_me: program exited with status $ac_status" >&5
30914 echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30916
30917 ( exit $ac_status )
30918 no_gtk=yes
30919 fi
30920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30921 fi
30922
30923
30924        CFLAGS="$ac_save_CFLAGS"
30925        LIBS="$ac_save_LIBS"
30926      fi
30927   fi
30928   if test "x$no_gtk" = x ; then
30929      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30930 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30931      wx_cv_lib_gtk=2.0
30932   else
30933      { echo "$as_me:$LINENO: result: no" >&5
30934 echo "${ECHO_T}no" >&6; }
30935      if test "$PKG_CONFIG" = "no" ; then
30936        echo "*** A new enough version of pkg-config was not found."
30937        echo "*** See http://pkgconfig.sourceforge.net"
30938      else
30939        if test -f conf.gtktest ; then
30940         :
30941        else
30942           echo "*** Could not run GTK+ test program, checking why..."
30943           ac_save_CFLAGS="$CFLAGS"
30944           ac_save_LIBS="$LIBS"
30945           CFLAGS="$CFLAGS $GTK_CFLAGS"
30946           LIBS="$LIBS $GTK_LIBS"
30947           cat >conftest.$ac_ext <<_ACEOF
30948 /* confdefs.h.  */
30949 _ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h.  */
30953
30954 #include <gtk/gtk.h>
30955 #include <stdio.h>
30956
30957 int
30958 main ()
30959 {
30960  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30961   ;
30962   return 0;
30963 }
30964 _ACEOF
30965 rm -f conftest.$ac_objext conftest$ac_exeext
30966 if { (ac_try="$ac_link"
30967 case "(($ac_try" in
30968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30969   *) ac_try_echo=$ac_try;;
30970 esac
30971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30972   (eval "$ac_link") 2>conftest.er1
30973   ac_status=$?
30974   grep -v '^ *+' conftest.er1 >conftest.err
30975   rm -f conftest.er1
30976   cat conftest.err >&5
30977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978   (exit $ac_status); } && {
30979          test -z "$ac_c_werror_flag" ||
30980          test ! -s conftest.err
30981        } && test -s conftest$ac_exeext &&
30982        $as_test_x conftest$ac_exeext; then
30983    echo "*** The test program compiled, but did not run. This usually means"
30984           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30985           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30986           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30987           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30988           echo "*** is required on your system"
30989           echo "***"
30990           echo "*** If you have an old version installed, it is best to remove it, although"
30991           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30992 else
30993   echo "$as_me: failed program was:" >&5
30994 sed 's/^/| /' conftest.$ac_ext >&5
30995
30996          echo "*** The test program failed to compile or link. See the file config.log for the"
30997           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30998 fi
30999
31000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31001       conftest$ac_exeext conftest.$ac_ext
31002           CFLAGS="$ac_save_CFLAGS"
31003           LIBS="$ac_save_LIBS"
31004        fi
31005      fi
31006      GTK_CFLAGS=""
31007      GTK_LIBS=""
31008      :
31009   fi
31010
31011
31012   rm -f conf.gtktest
31013
31014
31015                                         case "${host}" in
31016                         *-*-solaris2* )
31017                             if test "$wxUSE_SHARED" != "yes"; then
31018                                 GTK_LIBS="$GTK_LIBS -lX11"
31019                             fi
31020                     esac
31021                 fi
31022
31023                                 if test -z "$wx_cv_lib_gtk"; then
31024                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
31025
31026 # Check whether --with-gtk-prefix was given.
31027 if test "${with_gtk_prefix+set}" = set; then
31028   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31029 else
31030   gtk_config_prefix=""
31031 fi
31032
31033
31034 # Check whether --with-gtk-exec-prefix was given.
31035 if test "${with_gtk_exec_prefix+set}" = set; then
31036   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31037 else
31038   gtk_config_exec_prefix=""
31039 fi
31040
31041 # Check whether --enable-gtktest was given.
31042 if test "${enable_gtktest+set}" = set; then
31043   enableval=$enable_gtktest;
31044 else
31045   enable_gtktest=yes
31046 fi
31047
31048
31049   for module in . $GTK_MODULES
31050   do
31051       case "$module" in
31052          gthread)
31053              gtk_config_args="$gtk_config_args gthread"
31054          ;;
31055       esac
31056   done
31057
31058   if test x$gtk_config_exec_prefix != x ; then
31059      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31060      if test x${GTK_CONFIG+set} != xset ; then
31061         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31062      fi
31063   fi
31064   if test x$gtk_config_prefix != x ; then
31065      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31066      if test x${GTK_CONFIG+set} != xset ; then
31067         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31068      fi
31069   fi
31070
31071   # Extract the first word of "gtk-config", so it can be a program name with args.
31072 set dummy gtk-config; ac_word=$2
31073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31075 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31076   echo $ECHO_N "(cached) $ECHO_C" >&6
31077 else
31078   case $GTK_CONFIG in
31079   [\\/]* | ?:[\\/]*)
31080   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31081   ;;
31082   *)
31083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31084 for as_dir in $PATH
31085 do
31086   IFS=$as_save_IFS
31087   test -z "$as_dir" && as_dir=.
31088   for ac_exec_ext in '' $ac_executable_extensions; do
31089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31090     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31092     break 2
31093   fi
31094 done
31095 done
31096 IFS=$as_save_IFS
31097
31098   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31099   ;;
31100 esac
31101 fi
31102 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31103 if test -n "$GTK_CONFIG"; then
31104   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31105 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31106 else
31107   { echo "$as_me:$LINENO: result: no" >&5
31108 echo "${ECHO_T}no" >&6; }
31109 fi
31110
31111
31112   min_gtk_version=1.2.7
31113   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31114 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31115   no_gtk=""
31116   if test "$GTK_CONFIG" = "no" ; then
31117     no_gtk=yes
31118   else
31119     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31120     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31121     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31122            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31123     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31124            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31125     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31126            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31127     if test "x$enable_gtktest" = "xyes" ; then
31128       ac_save_CFLAGS="$CFLAGS"
31129       ac_save_LIBS="$LIBS"
31130       CFLAGS="$CFLAGS $GTK_CFLAGS"
31131       LIBS="$GTK_LIBS $LIBS"
31132       rm -f conf.gtktest
31133       if test "$cross_compiling" = yes; then
31134   echo $ac_n "cross compiling; assumed OK... $ac_c"
31135 else
31136   cat >conftest.$ac_ext <<_ACEOF
31137 /* confdefs.h.  */
31138 _ACEOF
31139 cat confdefs.h >>conftest.$ac_ext
31140 cat >>conftest.$ac_ext <<_ACEOF
31141 /* end confdefs.h.  */
31142
31143 #include <gtk/gtk.h>
31144 #include <stdio.h>
31145 #include <stdlib.h>
31146
31147 int
31148 main ()
31149 {
31150   int major, minor, micro;
31151   char *tmp_version;
31152
31153   system ("touch conf.gtktest");
31154
31155   /* HP/UX 9 (%@#!) writes to sscanf strings */
31156   tmp_version = g_strdup("$min_gtk_version");
31157   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31158      printf("%s, bad version string\n", "$min_gtk_version");
31159      exit(1);
31160    }
31161
31162   if ((gtk_major_version != $gtk_config_major_version) ||
31163       (gtk_minor_version != $gtk_config_minor_version) ||
31164       (gtk_micro_version != $gtk_config_micro_version))
31165     {
31166       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31167              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31168              gtk_major_version, gtk_minor_version, gtk_micro_version);
31169       printf ("*** was found! If gtk-config was correct, then it is best\n");
31170       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31171       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31172       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31173       printf("*** required on your system.\n");
31174       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31175       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31176       printf("*** before re-running configure\n");
31177     }
31178 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31179   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31180            (gtk_minor_version != GTK_MINOR_VERSION) ||
31181            (gtk_micro_version != GTK_MICRO_VERSION))
31182     {
31183       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31184              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31185       printf("*** library (version %d.%d.%d)\n",
31186              gtk_major_version, gtk_minor_version, gtk_micro_version);
31187     }
31188 #endif /* defined (GTK_MAJOR_VERSION) ... */
31189   else
31190     {
31191       if ((gtk_major_version > major) ||
31192         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31193         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31194       {
31195         return 0;
31196        }
31197      else
31198       {
31199         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31200                gtk_major_version, gtk_minor_version, gtk_micro_version);
31201         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31202                major, minor, micro);
31203         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31204         printf("***\n");
31205         printf("*** If you have already installed a sufficiently new version, this error\n");
31206         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31207         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31208         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31209         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31210         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31211         printf("*** so that the correct libraries are found at run-time))\n");
31212       }
31213     }
31214   return 1;
31215 }
31216
31217 _ACEOF
31218 rm -f conftest$ac_exeext
31219 if { (ac_try="$ac_link"
31220 case "(($ac_try" in
31221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31222   *) ac_try_echo=$ac_try;;
31223 esac
31224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31225   (eval "$ac_link") 2>&5
31226   ac_status=$?
31227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
31235   ac_status=$?
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); }; }; then
31238   :
31239 else
31240   echo "$as_me: program exited with status $ac_status" >&5
31241 echo "$as_me: failed program was:" >&5
31242 sed 's/^/| /' conftest.$ac_ext >&5
31243
31244 ( exit $ac_status )
31245 no_gtk=yes
31246 fi
31247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31248 fi
31249
31250
31251        CFLAGS="$ac_save_CFLAGS"
31252        LIBS="$ac_save_LIBS"
31253      fi
31254   fi
31255   if test "x$no_gtk" = x ; then
31256      { echo "$as_me:$LINENO: result: yes" >&5
31257 echo "${ECHO_T}yes" >&6; }
31258      wx_cv_lib_gtk=1.2.7
31259   else
31260      { echo "$as_me:$LINENO: result: no" >&5
31261 echo "${ECHO_T}no" >&6; }
31262      if test "$GTK_CONFIG" = "no" ; then
31263        echo "*** The gtk-config script installed by GTK could not be found"
31264        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31265        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31266        echo "*** full path to gtk-config."
31267      else
31268        if test -f conf.gtktest ; then
31269         :
31270        else
31271           echo "*** Could not run GTK test program, checking why..."
31272           CFLAGS="$CFLAGS $GTK_CFLAGS"
31273           LIBS="$LIBS $GTK_LIBS"
31274           cat >conftest.$ac_ext <<_ACEOF
31275 /* confdefs.h.  */
31276 _ACEOF
31277 cat confdefs.h >>conftest.$ac_ext
31278 cat >>conftest.$ac_ext <<_ACEOF
31279 /* end confdefs.h.  */
31280
31281 #include <gtk/gtk.h>
31282 #include <stdio.h>
31283
31284 int
31285 main ()
31286 {
31287  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31288   ;
31289   return 0;
31290 }
31291 _ACEOF
31292 rm -f conftest.$ac_objext conftest$ac_exeext
31293 if { (ac_try="$ac_link"
31294 case "(($ac_try" in
31295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31296   *) ac_try_echo=$ac_try;;
31297 esac
31298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31299   (eval "$ac_link") 2>conftest.er1
31300   ac_status=$?
31301   grep -v '^ *+' conftest.er1 >conftest.err
31302   rm -f conftest.er1
31303   cat conftest.err >&5
31304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305   (exit $ac_status); } && {
31306          test -z "$ac_c_werror_flag" ||
31307          test ! -s conftest.err
31308        } && test -s conftest$ac_exeext &&
31309        $as_test_x conftest$ac_exeext; then
31310    echo "*** The test program compiled, but did not run. This usually means"
31311           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31312           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31313           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31314           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31315           echo "*** is required on your system"
31316           echo "***"
31317           echo "*** If you have an old version installed, it is best to remove it, although"
31318           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31319           echo "***"
31320           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31321           echo "*** came with the system with the command"
31322           echo "***"
31323           echo "***    rpm --erase --nodeps gtk gtk-devel"
31324 else
31325   echo "$as_me: failed program was:" >&5
31326 sed 's/^/| /' conftest.$ac_ext >&5
31327
31328          echo "*** The test program failed to compile or link. See the file config.log for the"
31329           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31330           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31331           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31332 fi
31333
31334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31335       conftest$ac_exeext conftest.$ac_ext
31336           CFLAGS="$ac_save_CFLAGS"
31337           LIBS="$ac_save_LIBS"
31338        fi
31339      fi
31340      GTK_CFLAGS=""
31341      GTK_LIBS=""
31342      :
31343   fi
31344
31345
31346   rm -f conf.gtktest
31347
31348
31349                         if test -z "$wx_cv_lib_gtk"; then
31350
31351 # Check whether --with-gtk-prefix was given.
31352 if test "${with_gtk_prefix+set}" = set; then
31353   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31354 else
31355   gtk_config_prefix=""
31356 fi
31357
31358
31359 # Check whether --with-gtk-exec-prefix was given.
31360 if test "${with_gtk_exec_prefix+set}" = set; then
31361   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31362 else
31363   gtk_config_exec_prefix=""
31364 fi
31365
31366 # Check whether --enable-gtktest was given.
31367 if test "${enable_gtktest+set}" = set; then
31368   enableval=$enable_gtktest;
31369 else
31370   enable_gtktest=yes
31371 fi
31372
31373
31374   for module in . $GTK_MODULES
31375   do
31376       case "$module" in
31377          gthread)
31378              gtk_config_args="$gtk_config_args gthread"
31379          ;;
31380       esac
31381   done
31382
31383   if test x$gtk_config_exec_prefix != x ; then
31384      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31385      if test x${GTK_CONFIG+set} != xset ; then
31386         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31387      fi
31388   fi
31389   if test x$gtk_config_prefix != x ; then
31390      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31391      if test x${GTK_CONFIG+set} != xset ; then
31392         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31393      fi
31394   fi
31395
31396   # Extract the first word of "gtk-config", so it can be a program name with args.
31397 set dummy gtk-config; ac_word=$2
31398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31400 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31401   echo $ECHO_N "(cached) $ECHO_C" >&6
31402 else
31403   case $GTK_CONFIG in
31404   [\\/]* | ?:[\\/]*)
31405   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31406   ;;
31407   *)
31408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31409 for as_dir in $PATH
31410 do
31411   IFS=$as_save_IFS
31412   test -z "$as_dir" && as_dir=.
31413   for ac_exec_ext in '' $ac_executable_extensions; do
31414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31415     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31417     break 2
31418   fi
31419 done
31420 done
31421 IFS=$as_save_IFS
31422
31423   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31424   ;;
31425 esac
31426 fi
31427 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31428 if test -n "$GTK_CONFIG"; then
31429   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31430 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31431 else
31432   { echo "$as_me:$LINENO: result: no" >&5
31433 echo "${ECHO_T}no" >&6; }
31434 fi
31435
31436
31437   min_gtk_version=1.2.3
31438   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31439 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31440   no_gtk=""
31441   if test "$GTK_CONFIG" = "no" ; then
31442     no_gtk=yes
31443   else
31444     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31445     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31446     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31447            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31448     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31449            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31450     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31451            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31452     if test "x$enable_gtktest" = "xyes" ; then
31453       ac_save_CFLAGS="$CFLAGS"
31454       ac_save_LIBS="$LIBS"
31455       CFLAGS="$CFLAGS $GTK_CFLAGS"
31456       LIBS="$GTK_LIBS $LIBS"
31457       rm -f conf.gtktest
31458       if test "$cross_compiling" = yes; then
31459   echo $ac_n "cross compiling; assumed OK... $ac_c"
31460 else
31461   cat >conftest.$ac_ext <<_ACEOF
31462 /* confdefs.h.  */
31463 _ACEOF
31464 cat confdefs.h >>conftest.$ac_ext
31465 cat >>conftest.$ac_ext <<_ACEOF
31466 /* end confdefs.h.  */
31467
31468 #include <gtk/gtk.h>
31469 #include <stdio.h>
31470 #include <stdlib.h>
31471
31472 int
31473 main ()
31474 {
31475   int major, minor, micro;
31476   char *tmp_version;
31477
31478   system ("touch conf.gtktest");
31479
31480   /* HP/UX 9 (%@#!) writes to sscanf strings */
31481   tmp_version = g_strdup("$min_gtk_version");
31482   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31483      printf("%s, bad version string\n", "$min_gtk_version");
31484      exit(1);
31485    }
31486
31487   if ((gtk_major_version != $gtk_config_major_version) ||
31488       (gtk_minor_version != $gtk_config_minor_version) ||
31489       (gtk_micro_version != $gtk_config_micro_version))
31490     {
31491       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31492              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31493              gtk_major_version, gtk_minor_version, gtk_micro_version);
31494       printf ("*** was found! If gtk-config was correct, then it is best\n");
31495       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31496       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31497       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31498       printf("*** required on your system.\n");
31499       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31500       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31501       printf("*** before re-running configure\n");
31502     }
31503 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31504   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31505            (gtk_minor_version != GTK_MINOR_VERSION) ||
31506            (gtk_micro_version != GTK_MICRO_VERSION))
31507     {
31508       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31509              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31510       printf("*** library (version %d.%d.%d)\n",
31511              gtk_major_version, gtk_minor_version, gtk_micro_version);
31512     }
31513 #endif /* defined (GTK_MAJOR_VERSION) ... */
31514   else
31515     {
31516       if ((gtk_major_version > major) ||
31517         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31518         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31519       {
31520         return 0;
31521        }
31522      else
31523       {
31524         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31525                gtk_major_version, gtk_minor_version, gtk_micro_version);
31526         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31527                major, minor, micro);
31528         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31529         printf("***\n");
31530         printf("*** If you have already installed a sufficiently new version, this error\n");
31531         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31532         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31533         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31534         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31535         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31536         printf("*** so that the correct libraries are found at run-time))\n");
31537       }
31538     }
31539   return 1;
31540 }
31541
31542 _ACEOF
31543 rm -f conftest$ac_exeext
31544 if { (ac_try="$ac_link"
31545 case "(($ac_try" in
31546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31547   *) ac_try_echo=$ac_try;;
31548 esac
31549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31550   (eval "$ac_link") 2>&5
31551   ac_status=$?
31552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
31560   ac_status=$?
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); }; }; then
31563   :
31564 else
31565   echo "$as_me: program exited with status $ac_status" >&5
31566 echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31568
31569 ( exit $ac_status )
31570 no_gtk=yes
31571 fi
31572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31573 fi
31574
31575
31576        CFLAGS="$ac_save_CFLAGS"
31577        LIBS="$ac_save_LIBS"
31578      fi
31579   fi
31580   if test "x$no_gtk" = x ; then
31581      { echo "$as_me:$LINENO: result: yes" >&5
31582 echo "${ECHO_T}yes" >&6; }
31583      wx_cv_lib_gtk=1.2.3
31584   else
31585      { echo "$as_me:$LINENO: result: no" >&5
31586 echo "${ECHO_T}no" >&6; }
31587      if test "$GTK_CONFIG" = "no" ; then
31588        echo "*** The gtk-config script installed by GTK could not be found"
31589        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31590        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31591        echo "*** full path to gtk-config."
31592      else
31593        if test -f conf.gtktest ; then
31594         :
31595        else
31596           echo "*** Could not run GTK test program, checking why..."
31597           CFLAGS="$CFLAGS $GTK_CFLAGS"
31598           LIBS="$LIBS $GTK_LIBS"
31599           cat >conftest.$ac_ext <<_ACEOF
31600 /* confdefs.h.  */
31601 _ACEOF
31602 cat confdefs.h >>conftest.$ac_ext
31603 cat >>conftest.$ac_ext <<_ACEOF
31604 /* end confdefs.h.  */
31605
31606 #include <gtk/gtk.h>
31607 #include <stdio.h>
31608
31609 int
31610 main ()
31611 {
31612  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31613   ;
31614   return 0;
31615 }
31616 _ACEOF
31617 rm -f conftest.$ac_objext conftest$ac_exeext
31618 if { (ac_try="$ac_link"
31619 case "(($ac_try" in
31620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621   *) ac_try_echo=$ac_try;;
31622 esac
31623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624   (eval "$ac_link") 2>conftest.er1
31625   ac_status=$?
31626   grep -v '^ *+' conftest.er1 >conftest.err
31627   rm -f conftest.er1
31628   cat conftest.err >&5
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); } && {
31631          test -z "$ac_c_werror_flag" ||
31632          test ! -s conftest.err
31633        } && test -s conftest$ac_exeext &&
31634        $as_test_x conftest$ac_exeext; then
31635    echo "*** The test program compiled, but did not run. This usually means"
31636           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31637           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31638           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31639           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31640           echo "*** is required on your system"
31641           echo "***"
31642           echo "*** If you have an old version installed, it is best to remove it, although"
31643           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31644           echo "***"
31645           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31646           echo "*** came with the system with the command"
31647           echo "***"
31648           echo "***    rpm --erase --nodeps gtk gtk-devel"
31649 else
31650   echo "$as_me: failed program was:" >&5
31651 sed 's/^/| /' conftest.$ac_ext >&5
31652
31653          echo "*** The test program failed to compile or link. See the file config.log for the"
31654           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31655           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31656           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31657 fi
31658
31659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31660       conftest$ac_exeext conftest.$ac_ext
31661           CFLAGS="$ac_save_CFLAGS"
31662           LIBS="$ac_save_LIBS"
31663        fi
31664      fi
31665      GTK_CFLAGS=""
31666      GTK_LIBS=""
31667      :
31668   fi
31669
31670
31671   rm -f conf.gtktest
31672
31673                         fi
31674                     fi
31675                 fi
31676
31677                 if test -z "$wx_cv_lib_gtk"; then
31678                                         wx_cv_lib_gtk=none
31679                 else
31680                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31681                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31682                 fi
31683
31684
31685 fi
31686
31687
31688                         if test "$gtk_version_cached" = 1; then
31689             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31690 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31691         fi
31692
31693         case "$wx_cv_lib_gtk" in
31694             2.0)    WXGTK20=1
31695                     TOOLKIT_VERSION=2
31696                     ;;
31697             1.2.7)  WXGTK127=1
31698                     WXGTK12=1
31699                     ;;
31700             1.2.3)  WXGTK12=1
31701                     ;;
31702             *)      { { echo "$as_me:$LINENO: error:
31703 The development files for GTK+ were not found. For GTK+ 2, please
31704 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31705 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31706 and that the version is 1.2.3 or above. Also check that the
31707 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31708 --libs' are in the LD_LIBRARY_PATH or equivalent.
31709                             " >&5
31710 echo "$as_me: error:
31711 The development files for GTK+ were not found. For GTK+ 2, please
31712 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31713 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31714 and that the version is 1.2.3 or above. Also check that the
31715 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31716 --libs' are in the LD_LIBRARY_PATH or equivalent.
31717                             " >&2;}
31718    { (exit 1); exit 1; }; }
31719                     ;;
31720         esac
31721
31722         if test "$WXGTK20" = 1; then
31723             save_CFLAGS="$CFLAGS"
31724             save_LIBS="$LIBS"
31725             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31726             LIBS="$LIBS $wx_cv_libs_gtk"
31727
31728                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31729 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31730 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31731   echo $ECHO_N "(cached) $ECHO_C" >&6
31732 else
31733   cat >conftest.$ac_ext <<_ACEOF
31734 /* confdefs.h.  */
31735 _ACEOF
31736 cat confdefs.h >>conftest.$ac_ext
31737 cat >>conftest.$ac_ext <<_ACEOF
31738 /* end confdefs.h.  */
31739 #include <gtk/gtk.h>
31740
31741 int
31742 main ()
31743 {
31744 #ifndef gtk_icon_size_lookup
31745   (void) gtk_icon_size_lookup;
31746 #endif
31747
31748   ;
31749   return 0;
31750 }
31751 _ACEOF
31752 rm -f conftest.$ac_objext
31753 if { (ac_try="$ac_compile"
31754 case "(($ac_try" in
31755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31756   *) ac_try_echo=$ac_try;;
31757 esac
31758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31759   (eval "$ac_compile") 2>conftest.er1
31760   ac_status=$?
31761   grep -v '^ *+' conftest.er1 >conftest.err
31762   rm -f conftest.er1
31763   cat conftest.err >&5
31764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765   (exit $ac_status); } && {
31766          test -z "$ac_c_werror_flag" ||
31767          test ! -s conftest.err
31768        } && test -s conftest.$ac_objext; then
31769   ac_cv_have_decl_gtk_icon_size_lookup=yes
31770 else
31771   echo "$as_me: failed program was:" >&5
31772 sed 's/^/| /' conftest.$ac_ext >&5
31773
31774         ac_cv_have_decl_gtk_icon_size_lookup=no
31775 fi
31776
31777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31778 fi
31779 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31780 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31781 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31782
31783 cat >>confdefs.h <<_ACEOF
31784 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31785 _ACEOF
31786
31787
31788 else
31789   cat >>confdefs.h <<_ACEOF
31790 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31791 _ACEOF
31792
31793 cat >>confdefs.h <<\_ACEOF
31794 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31795 _ACEOF
31796
31797 fi
31798
31799
31800
31801
31802                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31803 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31804             cat >conftest.$ac_ext <<_ACEOF
31805 /* confdefs.h.  */
31806 _ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h.  */
31810
31811                             #include <gtk/gtk.h>
31812
31813 int
31814 main ()
31815 {
31816
31817                             #if !GTK_CHECK_VERSION(2,10,0)
31818                             Not GTK+ 2.10
31819                             #endif
31820
31821   ;
31822   return 0;
31823 }
31824 _ACEOF
31825 rm -f conftest.$ac_objext
31826 if { (ac_try="$ac_compile"
31827 case "(($ac_try" in
31828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31829   *) ac_try_echo=$ac_try;;
31830 esac
31831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31832   (eval "$ac_compile") 2>conftest.er1
31833   ac_status=$?
31834   grep -v '^ *+' conftest.er1 >conftest.err
31835   rm -f conftest.er1
31836   cat conftest.err >&5
31837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); } && {
31839          test -z "$ac_c_werror_flag" ||
31840          test ! -s conftest.err
31841        } && test -s conftest.$ac_objext; then
31842
31843                             cat >>confdefs.h <<\_ACEOF
31844 #define __WXGTK210__ 1
31845 _ACEOF
31846
31847                             cat >>confdefs.h <<\_ACEOF
31848 #define __WXGTK26__ 1
31849 _ACEOF
31850
31851                             cat >>confdefs.h <<\_ACEOF
31852 #define __WXGTK24__ 1
31853 _ACEOF
31854
31855                             { echo "$as_me:$LINENO: result: yes" >&5
31856 echo "${ECHO_T}yes" >&6; }
31857                             ac_wxgtk210=1
31858
31859 else
31860   echo "$as_me: failed program was:" >&5
31861 sed 's/^/| /' conftest.$ac_ext >&5
31862
31863
31864                             { echo "$as_me:$LINENO: result: no" >&5
31865 echo "${ECHO_T}no" >&6; }
31866                             ac_wxgtk210=0
31867
31868 fi
31869
31870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31871
31872             if test "$ac_wxgtk210" = 0; then
31873                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31874 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31875                 cat >conftest.$ac_ext <<_ACEOF
31876 /* confdefs.h.  */
31877 _ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h.  */
31881
31882                                 #include <gtk/gtk.h>
31883
31884 int
31885 main ()
31886 {
31887
31888                                 #if !GTK_CHECK_VERSION(2,6,0)
31889                                 Not GTK+ 2.6
31890                                 #endif
31891
31892   ;
31893   return 0;
31894 }
31895 _ACEOF
31896 rm -f conftest.$ac_objext
31897 if { (ac_try="$ac_compile"
31898 case "(($ac_try" in
31899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900   *) ac_try_echo=$ac_try;;
31901 esac
31902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903   (eval "$ac_compile") 2>conftest.er1
31904   ac_status=$?
31905   grep -v '^ *+' conftest.er1 >conftest.err
31906   rm -f conftest.er1
31907   cat conftest.err >&5
31908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909   (exit $ac_status); } && {
31910          test -z "$ac_c_werror_flag" ||
31911          test ! -s conftest.err
31912        } && test -s conftest.$ac_objext; then
31913
31914                                 cat >>confdefs.h <<\_ACEOF
31915 #define __WXGTK26__ 1
31916 _ACEOF
31917
31918                                 cat >>confdefs.h <<\_ACEOF
31919 #define __WXGTK24__ 1
31920 _ACEOF
31921
31922                                 { echo "$as_me:$LINENO: result: yes" >&5
31923 echo "${ECHO_T}yes" >&6; }
31924                                 ac_wxgtk26=1
31925
31926 else
31927   echo "$as_me: failed program was:" >&5
31928 sed 's/^/| /' conftest.$ac_ext >&5
31929
31930
31931                                 { echo "$as_me:$LINENO: result: no" >&5
31932 echo "${ECHO_T}no" >&6; }
31933                                 ac_wxgtk26=0
31934
31935 fi
31936
31937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31938             fi
31939
31940             if test "$ac_wxgtk26" = 0; then
31941                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31942 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31943                 cat >conftest.$ac_ext <<_ACEOF
31944 /* confdefs.h.  */
31945 _ACEOF
31946 cat confdefs.h >>conftest.$ac_ext
31947 cat >>conftest.$ac_ext <<_ACEOF
31948 /* end confdefs.h.  */
31949
31950                                 #include <gtk/gtk.h>
31951
31952 int
31953 main ()
31954 {
31955
31956                                 #if !GTK_CHECK_VERSION(2,4,0)
31957                                 Not GTK+ 2.4
31958                                 #endif
31959
31960   ;
31961   return 0;
31962 }
31963 _ACEOF
31964 rm -f conftest.$ac_objext
31965 if { (ac_try="$ac_compile"
31966 case "(($ac_try" in
31967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968   *) ac_try_echo=$ac_try;;
31969 esac
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971   (eval "$ac_compile") 2>conftest.er1
31972   ac_status=$?
31973   grep -v '^ *+' conftest.er1 >conftest.err
31974   rm -f conftest.er1
31975   cat conftest.err >&5
31976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977   (exit $ac_status); } && {
31978          test -z "$ac_c_werror_flag" ||
31979          test ! -s conftest.err
31980        } && test -s conftest.$ac_objext; then
31981
31982                                 cat >>confdefs.h <<\_ACEOF
31983 #define __WXGTK24__ 1
31984 _ACEOF
31985
31986                                 { echo "$as_me:$LINENO: result: yes" >&5
31987 echo "${ECHO_T}yes" >&6; }
31988
31989 else
31990   echo "$as_me: failed program was:" >&5
31991 sed 's/^/| /' conftest.$ac_ext >&5
31992
31993
31994                                 { echo "$as_me:$LINENO: result: no" >&5
31995 echo "${ECHO_T}no" >&6; }
31996
31997 fi
31998
31999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32000             fi
32001
32002             CFLAGS="$save_CFLAGS"
32003             LIBS="$save_LIBS"
32004         else
32005             if test "$wxUSE_UNICODE" = "yes"; then
32006                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
32007 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
32008                 wxUSE_UNICODE=no
32009             fi
32010
32011                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
32012 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
32013 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
32014   echo $ECHO_N "(cached) $ECHO_C" >&6
32015 else
32016   ac_check_lib_save_LIBS=$LIBS
32017 LIBS="-lgdk  $LIBS"
32018 cat >conftest.$ac_ext <<_ACEOF
32019 /* confdefs.h.  */
32020 _ACEOF
32021 cat confdefs.h >>conftest.$ac_ext
32022 cat >>conftest.$ac_ext <<_ACEOF
32023 /* end confdefs.h.  */
32024
32025 /* Override any GCC internal prototype to avoid an error.
32026    Use char because int might match the return type of a GCC
32027    builtin and then its argument prototype would still apply.  */
32028 #ifdef __cplusplus
32029 extern "C"
32030 #endif
32031 char gdk_im_open ();
32032 int
32033 main ()
32034 {
32035 return gdk_im_open ();
32036   ;
32037   return 0;
32038 }
32039 _ACEOF
32040 rm -f conftest.$ac_objext conftest$ac_exeext
32041 if { (ac_try="$ac_link"
32042 case "(($ac_try" in
32043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044   *) ac_try_echo=$ac_try;;
32045 esac
32046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047   (eval "$ac_link") 2>conftest.er1
32048   ac_status=$?
32049   grep -v '^ *+' conftest.er1 >conftest.err
32050   rm -f conftest.er1
32051   cat conftest.err >&5
32052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053   (exit $ac_status); } && {
32054          test -z "$ac_c_werror_flag" ||
32055          test ! -s conftest.err
32056        } && test -s conftest$ac_exeext &&
32057        $as_test_x conftest$ac_exeext; then
32058   ac_cv_lib_gdk_gdk_im_open=yes
32059 else
32060   echo "$as_me: failed program was:" >&5
32061 sed 's/^/| /' conftest.$ac_ext >&5
32062
32063         ac_cv_lib_gdk_gdk_im_open=no
32064 fi
32065
32066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32067       conftest$ac_exeext conftest.$ac_ext
32068 LIBS=$ac_check_lib_save_LIBS
32069 fi
32070 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
32071 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
32072 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
32073   cat >>confdefs.h <<\_ACEOF
32074 #define HAVE_XIM 1
32075 _ACEOF
32076
32077 fi
32078
32079
32080                                     if test "$USE_DARWIN" != 1; then
32081
32082 for ac_func in poll
32083 do
32084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32088   echo $ECHO_N "(cached) $ECHO_C" >&6
32089 else
32090   cat >conftest.$ac_ext <<_ACEOF
32091 /* confdefs.h.  */
32092 _ACEOF
32093 cat confdefs.h >>conftest.$ac_ext
32094 cat >>conftest.$ac_ext <<_ACEOF
32095 /* end confdefs.h.  */
32096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32098 #define $ac_func innocuous_$ac_func
32099
32100 /* System header to define __stub macros and hopefully few prototypes,
32101     which can conflict with char $ac_func (); below.
32102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32103     <limits.h> exists even on freestanding compilers.  */
32104
32105 #ifdef __STDC__
32106 # include <limits.h>
32107 #else
32108 # include <assert.h>
32109 #endif
32110
32111 #undef $ac_func
32112
32113 /* Override any GCC internal prototype to avoid an error.
32114    Use char because int might match the return type of a GCC
32115    builtin and then its argument prototype would still apply.  */
32116 #ifdef __cplusplus
32117 extern "C"
32118 #endif
32119 char $ac_func ();
32120 /* The GNU C library defines this for functions which it implements
32121     to always fail with ENOSYS.  Some functions are actually named
32122     something starting with __ and the normal name is an alias.  */
32123 #if defined __stub_$ac_func || defined __stub___$ac_func
32124 choke me
32125 #endif
32126
32127 int
32128 main ()
32129 {
32130 return $ac_func ();
32131   ;
32132   return 0;
32133 }
32134 _ACEOF
32135 rm -f conftest.$ac_objext conftest$ac_exeext
32136 if { (ac_try="$ac_link"
32137 case "(($ac_try" in
32138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32139   *) ac_try_echo=$ac_try;;
32140 esac
32141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32142   (eval "$ac_link") 2>conftest.er1
32143   ac_status=$?
32144   grep -v '^ *+' conftest.er1 >conftest.err
32145   rm -f conftest.er1
32146   cat conftest.err >&5
32147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32148   (exit $ac_status); } && {
32149          test -z "$ac_c_werror_flag" ||
32150          test ! -s conftest.err
32151        } && test -s conftest$ac_exeext &&
32152        $as_test_x conftest$ac_exeext; then
32153   eval "$as_ac_var=yes"
32154 else
32155   echo "$as_me: failed program was:" >&5
32156 sed 's/^/| /' conftest.$ac_ext >&5
32157
32158         eval "$as_ac_var=no"
32159 fi
32160
32161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32162       conftest$ac_exeext conftest.$ac_ext
32163 fi
32164 ac_res=`eval echo '${'$as_ac_var'}'`
32165                { echo "$as_me:$LINENO: result: $ac_res" >&5
32166 echo "${ECHO_T}$ac_res" >&6; }
32167 if test `eval echo '${'$as_ac_var'}'` = yes; then
32168   cat >>confdefs.h <<_ACEOF
32169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32170 _ACEOF
32171
32172 fi
32173 done
32174
32175             fi
32176         fi
32177
32178         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
32179         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
32180
32181         AFMINSTALL=afminstall
32182         TOOLKIT=GTK
32183         GUIDIST=GTK_DIST
32184
32185                 if test "$wxUSE_GPE" = "yes"; then
32186             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
32187 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
32188
32189   ac_find_libraries=
32190   for ac_dir in $SEARCH_LIB;
32191   do
32192     for ac_extension in a so sl dylib dll.a; do
32193       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
32194         ac_find_libraries=$ac_dir
32195         break 2
32196       fi
32197     done
32198   done
32199
32200             if test "$ac_find_libraries" != "" ; then
32201
32202     if test "$ac_find_libraries" = "default location"; then
32203     ac_path_to_link=""
32204   else
32205     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32206     result=$?
32207     if test $result = 0; then
32208       ac_path_to_link=""
32209     else
32210       ac_path_to_link=" -L$ac_find_libraries"
32211     fi
32212   fi
32213
32214                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
32215                 WXGPE=1
32216                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32217 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32218             else
32219                 { echo "$as_me:$LINENO: result: not found" >&5
32220 echo "${ECHO_T}not found" >&6; }
32221             fi
32222
32223                                                                                                                     fi
32224     fi
32225
32226     if test "$wxUSE_MGL" = 1; then
32227        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
32228 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
32229         if test "x$MGL_ROOT" = x ; then
32230             { echo "$as_me:$LINENO: result: not found" >&5
32231 echo "${ECHO_T}not found" >&6; }
32232             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
32233 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
32234    { (exit 1); exit 1; }; }
32235         else
32236             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
32237 echo "${ECHO_T}$MGL_ROOT" >&6; }
32238         fi
32239
32240         { echo "$as_me:$LINENO: checking for libmgl location" >&5
32241 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
32242                                 case "${host}" in
32243             *-*-linux* )
32244                                           if test "x$wxUSE_SHARED" = xyes ; then
32245                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
32246               else
32247                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
32248               fi
32249               ;;
32250             *-pc-msdosdjgpp )
32251               mgl_os_candidates="dos32/dj2"
32252               ;;
32253             *)
32254               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
32255 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
32256    { (exit 1); exit 1; }; }
32257         esac
32258
32259         mgl_lib_type=""
32260         mgl_os=""
32261
32262         for mgl_os_i in $mgl_os_candidates ; do
32263             if test "x$mgl_os" = x ; then
32264                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
32265                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
32266                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
32267                         mgl_lib_type=debug
32268                         mgl_os=$mgl_os_i
32269                     fi
32270                 fi
32271                 if test "x$mgl_lib_type" = x ; then
32272                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
32273                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
32274                         mgl_lib_type=release
32275                         mgl_os=$mgl_os_i
32276                     fi
32277                 fi
32278             fi
32279         done
32280
32281         if test "x$mgl_os" = x ; then
32282             { echo "$as_me:$LINENO: result: not found" >&5
32283 echo "${ECHO_T}not found" >&6; }
32284             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
32285 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
32286    { (exit 1); exit 1; }; }
32287         fi
32288         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
32289 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
32290
32291         wxUSE_UNIVERSAL="yes"
32292
32293         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
32294         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
32295
32296         AFMINSTALL=afminstall
32297         TOOLKIT=MGL
32298         GUIDIST=MGL_DIST
32299     fi
32300
32301     if test "$wxUSE_DFB" = 1; then
32302
32303
32304 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32305         if test -n "$ac_tool_prefix"; then
32306   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32307 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32310 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32311   echo $ECHO_N "(cached) $ECHO_C" >&6
32312 else
32313   case $PKG_CONFIG in
32314   [\\/]* | ?:[\\/]*)
32315   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32316   ;;
32317   *)
32318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32319 for as_dir in $PATH
32320 do
32321   IFS=$as_save_IFS
32322   test -z "$as_dir" && as_dir=.
32323   for ac_exec_ext in '' $ac_executable_extensions; do
32324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32325     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32327     break 2
32328   fi
32329 done
32330 done
32331 IFS=$as_save_IFS
32332
32333   ;;
32334 esac
32335 fi
32336 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32337 if test -n "$PKG_CONFIG"; then
32338   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32339 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32340 else
32341   { echo "$as_me:$LINENO: result: no" >&5
32342 echo "${ECHO_T}no" >&6; }
32343 fi
32344
32345
32346 fi
32347 if test -z "$ac_cv_path_PKG_CONFIG"; then
32348   ac_pt_PKG_CONFIG=$PKG_CONFIG
32349   # Extract the first word of "pkg-config", so it can be a program name with args.
32350 set dummy pkg-config; ac_word=$2
32351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32353 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32354   echo $ECHO_N "(cached) $ECHO_C" >&6
32355 else
32356   case $ac_pt_PKG_CONFIG in
32357   [\\/]* | ?:[\\/]*)
32358   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32359   ;;
32360   *)
32361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32362 for as_dir in $PATH
32363 do
32364   IFS=$as_save_IFS
32365   test -z "$as_dir" && as_dir=.
32366   for ac_exec_ext in '' $ac_executable_extensions; do
32367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32368     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32370     break 2
32371   fi
32372 done
32373 done
32374 IFS=$as_save_IFS
32375
32376   ;;
32377 esac
32378 fi
32379 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32380 if test -n "$ac_pt_PKG_CONFIG"; then
32381   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32382 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32383 else
32384   { echo "$as_me:$LINENO: result: no" >&5
32385 echo "${ECHO_T}no" >&6; }
32386 fi
32387
32388   if test "x$ac_pt_PKG_CONFIG" = x; then
32389     PKG_CONFIG=""
32390   else
32391     case $cross_compiling:$ac_tool_warned in
32392 yes:)
32393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32394 whose name does not start with the host triplet.  If you think this
32395 configuration is useful to you, please write to autoconf@gnu.org." >&5
32396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32397 whose name does not start with the host triplet.  If you think this
32398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32399 ac_tool_warned=yes ;;
32400 esac
32401     PKG_CONFIG=$ac_pt_PKG_CONFIG
32402   fi
32403 else
32404   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32405 fi
32406
32407 fi
32408 if test -n "$PKG_CONFIG"; then
32409         _pkg_min_version=0.9.0
32410         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32411 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32412         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32413                 { echo "$as_me:$LINENO: result: yes" >&5
32414 echo "${ECHO_T}yes" >&6; }
32415         else
32416                 { echo "$as_me:$LINENO: result: no" >&5
32417 echo "${ECHO_T}no" >&6; }
32418                 PKG_CONFIG=""
32419         fi
32420
32421 fi
32422
32423
32424 pkg_failed=no
32425 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
32426 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
32427
32428 if test -n "$PKG_CONFIG"; then
32429     if test -n "$DIRECTFB_CFLAGS"; then
32430         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
32431     else
32432         if test -n "$PKG_CONFIG" && \
32433     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32434   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32435   ac_status=$?
32436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437   (exit $ac_status); }; then
32438   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
32439 else
32440   pkg_failed=yes
32441 fi
32442     fi
32443 else
32444         pkg_failed=untried
32445 fi
32446 if test -n "$PKG_CONFIG"; then
32447     if test -n "$DIRECTFB_LIBS"; then
32448         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32449     else
32450         if test -n "$PKG_CONFIG" && \
32451     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32452   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32453   ac_status=$?
32454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455   (exit $ac_status); }; then
32456   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
32457 else
32458   pkg_failed=yes
32459 fi
32460     fi
32461 else
32462         pkg_failed=untried
32463 fi
32464
32465
32466
32467 if test $pkg_failed = yes; then
32468
32469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32470         _pkg_short_errors_supported=yes
32471 else
32472         _pkg_short_errors_supported=no
32473 fi
32474         if test $_pkg_short_errors_supported = yes; then
32475                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32476         else
32477                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32478         fi
32479         # Put the nasty error message in config.log where it belongs
32480         echo "$DIRECTFB_PKG_ERRORS" >&5
32481
32482
32483                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32484 echo "$as_me: error: DirectFB not found." >&2;}
32485    { (exit 1); exit 1; }; }
32486
32487
32488 elif test $pkg_failed = untried; then
32489
32490                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32491 echo "$as_me: error: DirectFB not found." >&2;}
32492    { (exit 1); exit 1; }; }
32493
32494
32495 else
32496         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32497         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32498         { echo "$as_me:$LINENO: result: yes" >&5
32499 echo "${ECHO_T}yes" >&6; }
32500
32501                            wxUSE_UNIVERSAL="yes"
32502                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32503                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32504                            TOOLKIT=DFB
32505                            GUIDIST=DFB_DIST
32506
32507 fi
32508     fi
32509
32510     if test "$wxUSE_MICROWIN" = 1; then
32511         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32512 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32513         if test "x$MICROWINDOWS" = x ; then
32514             { echo "$as_me:$LINENO: result: not found" >&5
32515 echo "${ECHO_T}not found" >&6; }
32516             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32517 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32518    { (exit 1); exit 1; }; }
32519         else
32520             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32521 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32522         fi
32523
32524         if test -f $MICROWINDOWS/lib/libmwin.a; then
32525             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32526 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
32527         else
32528             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32529 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32530    { (exit 1); exit 1; }; }
32531         fi
32532
32533         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32534         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32535
32536         wxUSE_UNIVERSAL="yes"
32537
32538         AFMINSTALL=afminstall
32539         TOOLKIT=MICROWIN
32540         GUIDIST=MICROWIN_DIST
32541
32542         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32543     fi
32544
32545         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32546                                 { echo "$as_me:$LINENO: checking for X" >&5
32547 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32548
32549
32550 # Check whether --with-x was given.
32551 if test "${with_x+set}" = set; then
32552   withval=$with_x;
32553 fi
32554
32555 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32556 if test "x$with_x" = xno; then
32557   # The user explicitly disabled X.
32558   have_x=disabled
32559 else
32560   case $x_includes,$x_libraries in #(
32561     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32562 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32563    { (exit 1); exit 1; }; };; #(
32564     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32565   echo $ECHO_N "(cached) $ECHO_C" >&6
32566 else
32567   # One or both of the vars are not set, and there is no cached value.
32568 ac_x_includes=no ac_x_libraries=no
32569 rm -f -r conftest.dir
32570 if mkdir conftest.dir; then
32571   cd conftest.dir
32572   cat >Imakefile <<'_ACEOF'
32573 incroot:
32574         @echo incroot='${INCROOT}'
32575 usrlibdir:
32576         @echo usrlibdir='${USRLIBDIR}'
32577 libdir:
32578         @echo libdir='${LIBDIR}'
32579 _ACEOF
32580   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32581     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32582     for ac_var in incroot usrlibdir libdir; do
32583       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32584     done
32585     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32586     for ac_extension in a so sl; do
32587       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32588          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32589         ac_im_usrlibdir=$ac_im_libdir; break
32590       fi
32591     done
32592     # Screen out bogus values from the imake configuration.  They are
32593     # bogus both because they are the default anyway, and because
32594     # using them would break gcc on systems where it needs fixed includes.
32595     case $ac_im_incroot in
32596         /usr/include) ac_x_includes= ;;
32597         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32598     esac
32599     case $ac_im_usrlibdir in
32600         /usr/lib | /lib) ;;
32601         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32602     esac
32603   fi
32604   cd ..
32605   rm -f -r conftest.dir
32606 fi
32607
32608 # Standard set of common directories for X headers.
32609 # Check X11 before X11Rn because it is often a symlink to the current release.
32610 ac_x_header_dirs='
32611 /usr/X11/include
32612 /usr/X11R6/include
32613 /usr/X11R5/include
32614 /usr/X11R4/include
32615
32616 /usr/include/X11
32617 /usr/include/X11R6
32618 /usr/include/X11R5
32619 /usr/include/X11R4
32620
32621 /usr/local/X11/include
32622 /usr/local/X11R6/include
32623 /usr/local/X11R5/include
32624 /usr/local/X11R4/include
32625
32626 /usr/local/include/X11
32627 /usr/local/include/X11R6
32628 /usr/local/include/X11R5
32629 /usr/local/include/X11R4
32630
32631 /usr/X386/include
32632 /usr/x386/include
32633 /usr/XFree86/include/X11
32634
32635 /usr/include
32636 /usr/local/include
32637 /usr/unsupported/include
32638 /usr/athena/include
32639 /usr/local/x11r5/include
32640 /usr/lpp/Xamples/include
32641
32642 /usr/openwin/include
32643 /usr/openwin/share/include'
32644
32645 if test "$ac_x_includes" = no; then
32646   # Guess where to find include files, by looking for Xlib.h.
32647   # First, try using that file with no special directory specified.
32648   cat >conftest.$ac_ext <<_ACEOF
32649 /* confdefs.h.  */
32650 _ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h.  */
32654 #include <X11/Xlib.h>
32655 _ACEOF
32656 if { (ac_try="$ac_cpp conftest.$ac_ext"
32657 case "(($ac_try" in
32658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32659   *) ac_try_echo=$ac_try;;
32660 esac
32661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32663   ac_status=$?
32664   grep -v '^ *+' conftest.er1 >conftest.err
32665   rm -f conftest.er1
32666   cat conftest.err >&5
32667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668   (exit $ac_status); } >/dev/null && {
32669          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32670          test ! -s conftest.err
32671        }; then
32672   # We can compile using X headers with no special include directory.
32673 ac_x_includes=
32674 else
32675   echo "$as_me: failed program was:" >&5
32676 sed 's/^/| /' conftest.$ac_ext >&5
32677
32678   for ac_dir in $ac_x_header_dirs; do
32679   if test -r "$ac_dir/X11/Xlib.h"; then
32680     ac_x_includes=$ac_dir
32681     break
32682   fi
32683 done
32684 fi
32685
32686 rm -f conftest.err conftest.$ac_ext
32687 fi # $ac_x_includes = no
32688
32689 if test "$ac_x_libraries" = no; then
32690   # Check for the libraries.
32691   # See if we find them without any special options.
32692   # Don't add to $LIBS permanently.
32693   ac_save_LIBS=$LIBS
32694   LIBS="-lX11 $LIBS"
32695   cat >conftest.$ac_ext <<_ACEOF
32696 /* confdefs.h.  */
32697 _ACEOF
32698 cat confdefs.h >>conftest.$ac_ext
32699 cat >>conftest.$ac_ext <<_ACEOF
32700 /* end confdefs.h.  */
32701 #include <X11/Xlib.h>
32702 int
32703 main ()
32704 {
32705 XrmInitialize ()
32706   ;
32707   return 0;
32708 }
32709 _ACEOF
32710 rm -f conftest.$ac_objext conftest$ac_exeext
32711 if { (ac_try="$ac_link"
32712 case "(($ac_try" in
32713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714   *) ac_try_echo=$ac_try;;
32715 esac
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717   (eval "$ac_link") 2>conftest.er1
32718   ac_status=$?
32719   grep -v '^ *+' conftest.er1 >conftest.err
32720   rm -f conftest.er1
32721   cat conftest.err >&5
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); } && {
32724          test -z "$ac_c_werror_flag" ||
32725          test ! -s conftest.err
32726        } && test -s conftest$ac_exeext &&
32727        $as_test_x conftest$ac_exeext; then
32728   LIBS=$ac_save_LIBS
32729 # We can link X programs with no special library path.
32730 ac_x_libraries=
32731 else
32732   echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32734
32735         LIBS=$ac_save_LIBS
32736 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32737 do
32738   # Don't even attempt the hair of trying to link an X program!
32739   for ac_extension in a so sl; do
32740     if test -r "$ac_dir/libX11.$ac_extension"; then
32741       ac_x_libraries=$ac_dir
32742       break 2
32743     fi
32744   done
32745 done
32746 fi
32747
32748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32749       conftest$ac_exeext conftest.$ac_ext
32750 fi # $ac_x_libraries = no
32751
32752 case $ac_x_includes,$ac_x_libraries in #(
32753   no,* | *,no | *\'*)
32754     # Didn't find X, or a directory has "'" in its name.
32755     ac_cv_have_x="have_x=no";; #(
32756   *)
32757     # Record where we found X for the cache.
32758     ac_cv_have_x="have_x=yes\
32759         ac_x_includes='$ac_x_includes'\
32760         ac_x_libraries='$ac_x_libraries'"
32761 esac
32762 fi
32763 ;; #(
32764     *) have_x=yes;;
32765   esac
32766   eval "$ac_cv_have_x"
32767 fi # $with_x != no
32768
32769 if test "$have_x" != yes; then
32770   { echo "$as_me:$LINENO: result: $have_x" >&5
32771 echo "${ECHO_T}$have_x" >&6; }
32772   no_x=yes
32773 else
32774   # If each of the values was on the command line, it overrides each guess.
32775   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32776   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32777   # Update the cache value to reflect the command line values.
32778   ac_cv_have_x="have_x=yes\
32779         ac_x_includes='$x_includes'\
32780         ac_x_libraries='$x_libraries'"
32781   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32782 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32783 fi
32784
32785 if test "$no_x" = yes; then
32786   # Not all programs may use this symbol, but it does not hurt to define it.
32787
32788 cat >>confdefs.h <<\_ACEOF
32789 #define X_DISPLAY_MISSING 1
32790 _ACEOF
32791
32792   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32793 else
32794   if test -n "$x_includes"; then
32795     X_CFLAGS="$X_CFLAGS -I$x_includes"
32796   fi
32797
32798   # It would also be nice to do this for all -L options, not just this one.
32799   if test -n "$x_libraries"; then
32800     X_LIBS="$X_LIBS -L$x_libraries"
32801     # For Solaris; some versions of Sun CC require a space after -R and
32802     # others require no space.  Words are not sufficient . . . .
32803     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32804 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32805     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32806     ac_xsave_c_werror_flag=$ac_c_werror_flag
32807     ac_c_werror_flag=yes
32808     cat >conftest.$ac_ext <<_ACEOF
32809 /* confdefs.h.  */
32810 _ACEOF
32811 cat confdefs.h >>conftest.$ac_ext
32812 cat >>conftest.$ac_ext <<_ACEOF
32813 /* end confdefs.h.  */
32814
32815 int
32816 main ()
32817 {
32818
32819   ;
32820   return 0;
32821 }
32822 _ACEOF
32823 rm -f conftest.$ac_objext conftest$ac_exeext
32824 if { (ac_try="$ac_link"
32825 case "(($ac_try" in
32826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32827   *) ac_try_echo=$ac_try;;
32828 esac
32829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32830   (eval "$ac_link") 2>conftest.er1
32831   ac_status=$?
32832   grep -v '^ *+' conftest.er1 >conftest.err
32833   rm -f conftest.er1
32834   cat conftest.err >&5
32835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32836   (exit $ac_status); } && {
32837          test -z "$ac_c_werror_flag" ||
32838          test ! -s conftest.err
32839        } && test -s conftest$ac_exeext &&
32840        $as_test_x conftest$ac_exeext; then
32841   { echo "$as_me:$LINENO: result: no" >&5
32842 echo "${ECHO_T}no" >&6; }
32843        X_LIBS="$X_LIBS -R$x_libraries"
32844 else
32845   echo "$as_me: failed program was:" >&5
32846 sed 's/^/| /' conftest.$ac_ext >&5
32847
32848         LIBS="$ac_xsave_LIBS -R $x_libraries"
32849        cat >conftest.$ac_ext <<_ACEOF
32850 /* confdefs.h.  */
32851 _ACEOF
32852 cat confdefs.h >>conftest.$ac_ext
32853 cat >>conftest.$ac_ext <<_ACEOF
32854 /* end confdefs.h.  */
32855
32856 int
32857 main ()
32858 {
32859
32860   ;
32861   return 0;
32862 }
32863 _ACEOF
32864 rm -f conftest.$ac_objext conftest$ac_exeext
32865 if { (ac_try="$ac_link"
32866 case "(($ac_try" in
32867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32868   *) ac_try_echo=$ac_try;;
32869 esac
32870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32871   (eval "$ac_link") 2>conftest.er1
32872   ac_status=$?
32873   grep -v '^ *+' conftest.er1 >conftest.err
32874   rm -f conftest.er1
32875   cat conftest.err >&5
32876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877   (exit $ac_status); } && {
32878          test -z "$ac_c_werror_flag" ||
32879          test ! -s conftest.err
32880        } && test -s conftest$ac_exeext &&
32881        $as_test_x conftest$ac_exeext; then
32882   { echo "$as_me:$LINENO: result: yes" >&5
32883 echo "${ECHO_T}yes" >&6; }
32884           X_LIBS="$X_LIBS -R $x_libraries"
32885 else
32886   echo "$as_me: failed program was:" >&5
32887 sed 's/^/| /' conftest.$ac_ext >&5
32888
32889         { echo "$as_me:$LINENO: result: neither works" >&5
32890 echo "${ECHO_T}neither works" >&6; }
32891 fi
32892
32893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32894       conftest$ac_exeext conftest.$ac_ext
32895 fi
32896
32897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32898       conftest$ac_exeext conftest.$ac_ext
32899     ac_c_werror_flag=$ac_xsave_c_werror_flag
32900     LIBS=$ac_xsave_LIBS
32901   fi
32902
32903   # Check for system-dependent libraries X programs must link with.
32904   # Do this before checking for the system-independent R6 libraries
32905   # (-lICE), since we may need -lsocket or whatever for X linking.
32906
32907   if test "$ISC" = yes; then
32908     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32909   else
32910     # Martyn Johnson says this is needed for Ultrix, if the X
32911     # libraries were built with DECnet support.  And Karl Berry says
32912     # the Alpha needs dnet_stub (dnet does not exist).
32913     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32914     cat >conftest.$ac_ext <<_ACEOF
32915 /* confdefs.h.  */
32916 _ACEOF
32917 cat confdefs.h >>conftest.$ac_ext
32918 cat >>conftest.$ac_ext <<_ACEOF
32919 /* end confdefs.h.  */
32920
32921 /* Override any GCC internal prototype to avoid an error.
32922    Use char because int might match the return type of a GCC
32923    builtin and then its argument prototype would still apply.  */
32924 #ifdef __cplusplus
32925 extern "C"
32926 #endif
32927 char XOpenDisplay ();
32928 int
32929 main ()
32930 {
32931 return XOpenDisplay ();
32932   ;
32933   return 0;
32934 }
32935 _ACEOF
32936 rm -f conftest.$ac_objext conftest$ac_exeext
32937 if { (ac_try="$ac_link"
32938 case "(($ac_try" in
32939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940   *) ac_try_echo=$ac_try;;
32941 esac
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943   (eval "$ac_link") 2>conftest.er1
32944   ac_status=$?
32945   grep -v '^ *+' conftest.er1 >conftest.err
32946   rm -f conftest.er1
32947   cat conftest.err >&5
32948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949   (exit $ac_status); } && {
32950          test -z "$ac_c_werror_flag" ||
32951          test ! -s conftest.err
32952        } && test -s conftest$ac_exeext &&
32953        $as_test_x conftest$ac_exeext; then
32954   :
32955 else
32956   echo "$as_me: failed program was:" >&5
32957 sed 's/^/| /' conftest.$ac_ext >&5
32958
32959         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32960 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32961 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32962   echo $ECHO_N "(cached) $ECHO_C" >&6
32963 else
32964   ac_check_lib_save_LIBS=$LIBS
32965 LIBS="-ldnet  $LIBS"
32966 cat >conftest.$ac_ext <<_ACEOF
32967 /* confdefs.h.  */
32968 _ACEOF
32969 cat confdefs.h >>conftest.$ac_ext
32970 cat >>conftest.$ac_ext <<_ACEOF
32971 /* end confdefs.h.  */
32972
32973 /* Override any GCC internal prototype to avoid an error.
32974    Use char because int might match the return type of a GCC
32975    builtin and then its argument prototype would still apply.  */
32976 #ifdef __cplusplus
32977 extern "C"
32978 #endif
32979 char dnet_ntoa ();
32980 int
32981 main ()
32982 {
32983 return dnet_ntoa ();
32984   ;
32985   return 0;
32986 }
32987 _ACEOF
32988 rm -f conftest.$ac_objext conftest$ac_exeext
32989 if { (ac_try="$ac_link"
32990 case "(($ac_try" in
32991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992   *) ac_try_echo=$ac_try;;
32993 esac
32994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995   (eval "$ac_link") 2>conftest.er1
32996   ac_status=$?
32997   grep -v '^ *+' conftest.er1 >conftest.err
32998   rm -f conftest.er1
32999   cat conftest.err >&5
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); } && {
33002          test -z "$ac_c_werror_flag" ||
33003          test ! -s conftest.err
33004        } && test -s conftest$ac_exeext &&
33005        $as_test_x conftest$ac_exeext; then
33006   ac_cv_lib_dnet_dnet_ntoa=yes
33007 else
33008   echo "$as_me: failed program was:" >&5
33009 sed 's/^/| /' conftest.$ac_ext >&5
33010
33011         ac_cv_lib_dnet_dnet_ntoa=no
33012 fi
33013
33014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33015       conftest$ac_exeext conftest.$ac_ext
33016 LIBS=$ac_check_lib_save_LIBS
33017 fi
33018 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33019 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
33020 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
33021   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33022 fi
33023
33024     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
33025       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
33026 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
33027 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
33028   echo $ECHO_N "(cached) $ECHO_C" >&6
33029 else
33030   ac_check_lib_save_LIBS=$LIBS
33031 LIBS="-ldnet_stub  $LIBS"
33032 cat >conftest.$ac_ext <<_ACEOF
33033 /* confdefs.h.  */
33034 _ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h.  */
33038
33039 /* Override any GCC internal prototype to avoid an error.
33040    Use char because int might match the return type of a GCC
33041    builtin and then its argument prototype would still apply.  */
33042 #ifdef __cplusplus
33043 extern "C"
33044 #endif
33045 char dnet_ntoa ();
33046 int
33047 main ()
33048 {
33049 return dnet_ntoa ();
33050   ;
33051   return 0;
33052 }
33053 _ACEOF
33054 rm -f conftest.$ac_objext conftest$ac_exeext
33055 if { (ac_try="$ac_link"
33056 case "(($ac_try" in
33057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058   *) ac_try_echo=$ac_try;;
33059 esac
33060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061   (eval "$ac_link") 2>conftest.er1
33062   ac_status=$?
33063   grep -v '^ *+' conftest.er1 >conftest.err
33064   rm -f conftest.er1
33065   cat conftest.err >&5
33066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067   (exit $ac_status); } && {
33068          test -z "$ac_c_werror_flag" ||
33069          test ! -s conftest.err
33070        } && test -s conftest$ac_exeext &&
33071        $as_test_x conftest$ac_exeext; then
33072   ac_cv_lib_dnet_stub_dnet_ntoa=yes
33073 else
33074   echo "$as_me: failed program was:" >&5
33075 sed 's/^/| /' conftest.$ac_ext >&5
33076
33077         ac_cv_lib_dnet_stub_dnet_ntoa=no
33078 fi
33079
33080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33081       conftest$ac_exeext conftest.$ac_ext
33082 LIBS=$ac_check_lib_save_LIBS
33083 fi
33084 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
33085 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
33086 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
33087   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33088 fi
33089
33090     fi
33091 fi
33092
33093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33094       conftest$ac_exeext conftest.$ac_ext
33095     LIBS="$ac_xsave_LIBS"
33096
33097     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
33098     # to get the SysV transport functions.
33099     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33100     # needs -lnsl.
33101     # The nsl library prevents programs from opening the X display
33102     # on Irix 5.2, according to T.E. Dickey.
33103     # The functions gethostbyname, getservbyname, and inet_addr are
33104     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
33105     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
33106 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
33107 if test "${ac_cv_func_gethostbyname+set}" = set; then
33108   echo $ECHO_N "(cached) $ECHO_C" >&6
33109 else
33110   cat >conftest.$ac_ext <<_ACEOF
33111 /* confdefs.h.  */
33112 _ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h.  */
33116 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
33117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33118 #define gethostbyname innocuous_gethostbyname
33119
33120 /* System header to define __stub macros and hopefully few prototypes,
33121     which can conflict with char gethostbyname (); below.
33122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33123     <limits.h> exists even on freestanding compilers.  */
33124
33125 #ifdef __STDC__
33126 # include <limits.h>
33127 #else
33128 # include <assert.h>
33129 #endif
33130
33131 #undef gethostbyname
33132
33133 /* Override any GCC internal prototype to avoid an error.
33134    Use char because int might match the return type of a GCC
33135    builtin and then its argument prototype would still apply.  */
33136 #ifdef __cplusplus
33137 extern "C"
33138 #endif
33139 char gethostbyname ();
33140 /* The GNU C library defines this for functions which it implements
33141     to always fail with ENOSYS.  Some functions are actually named
33142     something starting with __ and the normal name is an alias.  */
33143 #if defined __stub_gethostbyname || defined __stub___gethostbyname
33144 choke me
33145 #endif
33146
33147 int
33148 main ()
33149 {
33150 return gethostbyname ();
33151   ;
33152   return 0;
33153 }
33154 _ACEOF
33155 rm -f conftest.$ac_objext conftest$ac_exeext
33156 if { (ac_try="$ac_link"
33157 case "(($ac_try" in
33158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33159   *) ac_try_echo=$ac_try;;
33160 esac
33161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33162   (eval "$ac_link") 2>conftest.er1
33163   ac_status=$?
33164   grep -v '^ *+' conftest.er1 >conftest.err
33165   rm -f conftest.er1
33166   cat conftest.err >&5
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); } && {
33169          test -z "$ac_c_werror_flag" ||
33170          test ! -s conftest.err
33171        } && test -s conftest$ac_exeext &&
33172        $as_test_x conftest$ac_exeext; then
33173   ac_cv_func_gethostbyname=yes
33174 else
33175   echo "$as_me: failed program was:" >&5
33176 sed 's/^/| /' conftest.$ac_ext >&5
33177
33178         ac_cv_func_gethostbyname=no
33179 fi
33180
33181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33182       conftest$ac_exeext conftest.$ac_ext
33183 fi
33184 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33185 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
33186
33187     if test $ac_cv_func_gethostbyname = no; then
33188       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33189 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
33190 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33191   echo $ECHO_N "(cached) $ECHO_C" >&6
33192 else
33193   ac_check_lib_save_LIBS=$LIBS
33194 LIBS="-lnsl  $LIBS"
33195 cat >conftest.$ac_ext <<_ACEOF
33196 /* confdefs.h.  */
33197 _ACEOF
33198 cat confdefs.h >>conftest.$ac_ext
33199 cat >>conftest.$ac_ext <<_ACEOF
33200 /* end confdefs.h.  */
33201
33202 /* Override any GCC internal prototype to avoid an error.
33203    Use char because int might match the return type of a GCC
33204    builtin and then its argument prototype would still apply.  */
33205 #ifdef __cplusplus
33206 extern "C"
33207 #endif
33208 char gethostbyname ();
33209 int
33210 main ()
33211 {
33212 return gethostbyname ();
33213   ;
33214   return 0;
33215 }
33216 _ACEOF
33217 rm -f conftest.$ac_objext conftest$ac_exeext
33218 if { (ac_try="$ac_link"
33219 case "(($ac_try" in
33220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33221   *) ac_try_echo=$ac_try;;
33222 esac
33223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33224   (eval "$ac_link") 2>conftest.er1
33225   ac_status=$?
33226   grep -v '^ *+' conftest.er1 >conftest.err
33227   rm -f conftest.er1
33228   cat conftest.err >&5
33229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230   (exit $ac_status); } && {
33231          test -z "$ac_c_werror_flag" ||
33232          test ! -s conftest.err
33233        } && test -s conftest$ac_exeext &&
33234        $as_test_x conftest$ac_exeext; then
33235   ac_cv_lib_nsl_gethostbyname=yes
33236 else
33237   echo "$as_me: failed program was:" >&5
33238 sed 's/^/| /' conftest.$ac_ext >&5
33239
33240         ac_cv_lib_nsl_gethostbyname=no
33241 fi
33242
33243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33244       conftest$ac_exeext conftest.$ac_ext
33245 LIBS=$ac_check_lib_save_LIBS
33246 fi
33247 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33248 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
33249 if test $ac_cv_lib_nsl_gethostbyname = yes; then
33250   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33251 fi
33252
33253       if test $ac_cv_lib_nsl_gethostbyname = no; then
33254         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33255 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
33256 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33257   echo $ECHO_N "(cached) $ECHO_C" >&6
33258 else
33259   ac_check_lib_save_LIBS=$LIBS
33260 LIBS="-lbsd  $LIBS"
33261 cat >conftest.$ac_ext <<_ACEOF
33262 /* confdefs.h.  */
33263 _ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h.  */
33267
33268 /* Override any GCC internal prototype to avoid an error.
33269    Use char because int might match the return type of a GCC
33270    builtin and then its argument prototype would still apply.  */
33271 #ifdef __cplusplus
33272 extern "C"
33273 #endif
33274 char gethostbyname ();
33275 int
33276 main ()
33277 {
33278 return gethostbyname ();
33279   ;
33280   return 0;
33281 }
33282 _ACEOF
33283 rm -f conftest.$ac_objext conftest$ac_exeext
33284 if { (ac_try="$ac_link"
33285 case "(($ac_try" in
33286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287   *) ac_try_echo=$ac_try;;
33288 esac
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290   (eval "$ac_link") 2>conftest.er1
33291   ac_status=$?
33292   grep -v '^ *+' conftest.er1 >conftest.err
33293   rm -f conftest.er1
33294   cat conftest.err >&5
33295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296   (exit $ac_status); } && {
33297          test -z "$ac_c_werror_flag" ||
33298          test ! -s conftest.err
33299        } && test -s conftest$ac_exeext &&
33300        $as_test_x conftest$ac_exeext; then
33301   ac_cv_lib_bsd_gethostbyname=yes
33302 else
33303   echo "$as_me: failed program was:" >&5
33304 sed 's/^/| /' conftest.$ac_ext >&5
33305
33306         ac_cv_lib_bsd_gethostbyname=no
33307 fi
33308
33309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33310       conftest$ac_exeext conftest.$ac_ext
33311 LIBS=$ac_check_lib_save_LIBS
33312 fi
33313 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
33314 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
33315 if test $ac_cv_lib_bsd_gethostbyname = yes; then
33316   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33317 fi
33318
33319       fi
33320     fi
33321
33322     # lieder@skyler.mavd.honeywell.com says without -lsocket,
33323     # socket/setsockopt and other routines are undefined under SCO ODT
33324     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
33325     # on later versions), says Simon Leinen: it contains gethostby*
33326     # variants that don't use the name server (or something).  -lsocket
33327     # must be given before -lnsl if both are needed.  We assume that
33328     # if connect needs -lnsl, so does gethostbyname.
33329     { echo "$as_me:$LINENO: checking for connect" >&5
33330 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
33331 if test "${ac_cv_func_connect+set}" = set; then
33332   echo $ECHO_N "(cached) $ECHO_C" >&6
33333 else
33334   cat >conftest.$ac_ext <<_ACEOF
33335 /* confdefs.h.  */
33336 _ACEOF
33337 cat confdefs.h >>conftest.$ac_ext
33338 cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h.  */
33340 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
33341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33342 #define connect innocuous_connect
33343
33344 /* System header to define __stub macros and hopefully few prototypes,
33345     which can conflict with char connect (); below.
33346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33347     <limits.h> exists even on freestanding compilers.  */
33348
33349 #ifdef __STDC__
33350 # include <limits.h>
33351 #else
33352 # include <assert.h>
33353 #endif
33354
33355 #undef connect
33356
33357 /* Override any GCC internal prototype to avoid an error.
33358    Use char because int might match the return type of a GCC
33359    builtin and then its argument prototype would still apply.  */
33360 #ifdef __cplusplus
33361 extern "C"
33362 #endif
33363 char connect ();
33364 /* The GNU C library defines this for functions which it implements
33365     to always fail with ENOSYS.  Some functions are actually named
33366     something starting with __ and the normal name is an alias.  */
33367 #if defined __stub_connect || defined __stub___connect
33368 choke me
33369 #endif
33370
33371 int
33372 main ()
33373 {
33374 return connect ();
33375   ;
33376   return 0;
33377 }
33378 _ACEOF
33379 rm -f conftest.$ac_objext conftest$ac_exeext
33380 if { (ac_try="$ac_link"
33381 case "(($ac_try" in
33382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33383   *) ac_try_echo=$ac_try;;
33384 esac
33385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33386   (eval "$ac_link") 2>conftest.er1
33387   ac_status=$?
33388   grep -v '^ *+' conftest.er1 >conftest.err
33389   rm -f conftest.er1
33390   cat conftest.err >&5
33391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392   (exit $ac_status); } && {
33393          test -z "$ac_c_werror_flag" ||
33394          test ! -s conftest.err
33395        } && test -s conftest$ac_exeext &&
33396        $as_test_x conftest$ac_exeext; then
33397   ac_cv_func_connect=yes
33398 else
33399   echo "$as_me: failed program was:" >&5
33400 sed 's/^/| /' conftest.$ac_ext >&5
33401
33402         ac_cv_func_connect=no
33403 fi
33404
33405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33406       conftest$ac_exeext conftest.$ac_ext
33407 fi
33408 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
33409 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
33410
33411     if test $ac_cv_func_connect = no; then
33412       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
33413 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
33414 if test "${ac_cv_lib_socket_connect+set}" = set; then
33415   echo $ECHO_N "(cached) $ECHO_C" >&6
33416 else
33417   ac_check_lib_save_LIBS=$LIBS
33418 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33419 cat >conftest.$ac_ext <<_ACEOF
33420 /* confdefs.h.  */
33421 _ACEOF
33422 cat confdefs.h >>conftest.$ac_ext
33423 cat >>conftest.$ac_ext <<_ACEOF
33424 /* end confdefs.h.  */
33425
33426 /* Override any GCC internal prototype to avoid an error.
33427    Use char because int might match the return type of a GCC
33428    builtin and then its argument prototype would still apply.  */
33429 #ifdef __cplusplus
33430 extern "C"
33431 #endif
33432 char connect ();
33433 int
33434 main ()
33435 {
33436 return connect ();
33437   ;
33438   return 0;
33439 }
33440 _ACEOF
33441 rm -f conftest.$ac_objext conftest$ac_exeext
33442 if { (ac_try="$ac_link"
33443 case "(($ac_try" in
33444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33445   *) ac_try_echo=$ac_try;;
33446 esac
33447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33448   (eval "$ac_link") 2>conftest.er1
33449   ac_status=$?
33450   grep -v '^ *+' conftest.er1 >conftest.err
33451   rm -f conftest.er1
33452   cat conftest.err >&5
33453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33454   (exit $ac_status); } && {
33455          test -z "$ac_c_werror_flag" ||
33456          test ! -s conftest.err
33457        } && test -s conftest$ac_exeext &&
33458        $as_test_x conftest$ac_exeext; then
33459   ac_cv_lib_socket_connect=yes
33460 else
33461   echo "$as_me: failed program was:" >&5
33462 sed 's/^/| /' conftest.$ac_ext >&5
33463
33464         ac_cv_lib_socket_connect=no
33465 fi
33466
33467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33468       conftest$ac_exeext conftest.$ac_ext
33469 LIBS=$ac_check_lib_save_LIBS
33470 fi
33471 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33472 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
33473 if test $ac_cv_lib_socket_connect = yes; then
33474   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33475 fi
33476
33477     fi
33478
33479     # Guillermo Gomez says -lposix is necessary on A/UX.
33480     { echo "$as_me:$LINENO: checking for remove" >&5
33481 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
33482 if test "${ac_cv_func_remove+set}" = set; then
33483   echo $ECHO_N "(cached) $ECHO_C" >&6
33484 else
33485   cat >conftest.$ac_ext <<_ACEOF
33486 /* confdefs.h.  */
33487 _ACEOF
33488 cat confdefs.h >>conftest.$ac_ext
33489 cat >>conftest.$ac_ext <<_ACEOF
33490 /* end confdefs.h.  */
33491 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33493 #define remove innocuous_remove
33494
33495 /* System header to define __stub macros and hopefully few prototypes,
33496     which can conflict with char remove (); below.
33497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33498     <limits.h> exists even on freestanding compilers.  */
33499
33500 #ifdef __STDC__
33501 # include <limits.h>
33502 #else
33503 # include <assert.h>
33504 #endif
33505
33506 #undef remove
33507
33508 /* Override any GCC internal prototype to avoid an error.
33509    Use char because int might match the return type of a GCC
33510    builtin and then its argument prototype would still apply.  */
33511 #ifdef __cplusplus
33512 extern "C"
33513 #endif
33514 char remove ();
33515 /* The GNU C library defines this for functions which it implements
33516     to always fail with ENOSYS.  Some functions are actually named
33517     something starting with __ and the normal name is an alias.  */
33518 #if defined __stub_remove || defined __stub___remove
33519 choke me
33520 #endif
33521
33522 int
33523 main ()
33524 {
33525 return remove ();
33526   ;
33527   return 0;
33528 }
33529 _ACEOF
33530 rm -f conftest.$ac_objext conftest$ac_exeext
33531 if { (ac_try="$ac_link"
33532 case "(($ac_try" in
33533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33534   *) ac_try_echo=$ac_try;;
33535 esac
33536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33537   (eval "$ac_link") 2>conftest.er1
33538   ac_status=$?
33539   grep -v '^ *+' conftest.er1 >conftest.err
33540   rm -f conftest.er1
33541   cat conftest.err >&5
33542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543   (exit $ac_status); } && {
33544          test -z "$ac_c_werror_flag" ||
33545          test ! -s conftest.err
33546        } && test -s conftest$ac_exeext &&
33547        $as_test_x conftest$ac_exeext; then
33548   ac_cv_func_remove=yes
33549 else
33550   echo "$as_me: failed program was:" >&5
33551 sed 's/^/| /' conftest.$ac_ext >&5
33552
33553         ac_cv_func_remove=no
33554 fi
33555
33556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33557       conftest$ac_exeext conftest.$ac_ext
33558 fi
33559 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33560 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33561
33562     if test $ac_cv_func_remove = no; then
33563       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33564 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33565 if test "${ac_cv_lib_posix_remove+set}" = set; then
33566   echo $ECHO_N "(cached) $ECHO_C" >&6
33567 else
33568   ac_check_lib_save_LIBS=$LIBS
33569 LIBS="-lposix  $LIBS"
33570 cat >conftest.$ac_ext <<_ACEOF
33571 /* confdefs.h.  */
33572 _ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h.  */
33576
33577 /* Override any GCC internal prototype to avoid an error.
33578    Use char because int might match the return type of a GCC
33579    builtin and then its argument prototype would still apply.  */
33580 #ifdef __cplusplus
33581 extern "C"
33582 #endif
33583 char remove ();
33584 int
33585 main ()
33586 {
33587 return remove ();
33588   ;
33589   return 0;
33590 }
33591 _ACEOF
33592 rm -f conftest.$ac_objext conftest$ac_exeext
33593 if { (ac_try="$ac_link"
33594 case "(($ac_try" in
33595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596   *) ac_try_echo=$ac_try;;
33597 esac
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599   (eval "$ac_link") 2>conftest.er1
33600   ac_status=$?
33601   grep -v '^ *+' conftest.er1 >conftest.err
33602   rm -f conftest.er1
33603   cat conftest.err >&5
33604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605   (exit $ac_status); } && {
33606          test -z "$ac_c_werror_flag" ||
33607          test ! -s conftest.err
33608        } && test -s conftest$ac_exeext &&
33609        $as_test_x conftest$ac_exeext; then
33610   ac_cv_lib_posix_remove=yes
33611 else
33612   echo "$as_me: failed program was:" >&5
33613 sed 's/^/| /' conftest.$ac_ext >&5
33614
33615         ac_cv_lib_posix_remove=no
33616 fi
33617
33618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33619       conftest$ac_exeext conftest.$ac_ext
33620 LIBS=$ac_check_lib_save_LIBS
33621 fi
33622 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33623 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33624 if test $ac_cv_lib_posix_remove = yes; then
33625   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33626 fi
33627
33628     fi
33629
33630     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33631     { echo "$as_me:$LINENO: checking for shmat" >&5
33632 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33633 if test "${ac_cv_func_shmat+set}" = set; then
33634   echo $ECHO_N "(cached) $ECHO_C" >&6
33635 else
33636   cat >conftest.$ac_ext <<_ACEOF
33637 /* confdefs.h.  */
33638 _ACEOF
33639 cat confdefs.h >>conftest.$ac_ext
33640 cat >>conftest.$ac_ext <<_ACEOF
33641 /* end confdefs.h.  */
33642 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33644 #define shmat innocuous_shmat
33645
33646 /* System header to define __stub macros and hopefully few prototypes,
33647     which can conflict with char shmat (); below.
33648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33649     <limits.h> exists even on freestanding compilers.  */
33650
33651 #ifdef __STDC__
33652 # include <limits.h>
33653 #else
33654 # include <assert.h>
33655 #endif
33656
33657 #undef shmat
33658
33659 /* Override any GCC internal prototype to avoid an error.
33660    Use char because int might match the return type of a GCC
33661    builtin and then its argument prototype would still apply.  */
33662 #ifdef __cplusplus
33663 extern "C"
33664 #endif
33665 char shmat ();
33666 /* The GNU C library defines this for functions which it implements
33667     to always fail with ENOSYS.  Some functions are actually named
33668     something starting with __ and the normal name is an alias.  */
33669 #if defined __stub_shmat || defined __stub___shmat
33670 choke me
33671 #endif
33672
33673 int
33674 main ()
33675 {
33676 return shmat ();
33677   ;
33678   return 0;
33679 }
33680 _ACEOF
33681 rm -f conftest.$ac_objext conftest$ac_exeext
33682 if { (ac_try="$ac_link"
33683 case "(($ac_try" in
33684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685   *) ac_try_echo=$ac_try;;
33686 esac
33687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688   (eval "$ac_link") 2>conftest.er1
33689   ac_status=$?
33690   grep -v '^ *+' conftest.er1 >conftest.err
33691   rm -f conftest.er1
33692   cat conftest.err >&5
33693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694   (exit $ac_status); } && {
33695          test -z "$ac_c_werror_flag" ||
33696          test ! -s conftest.err
33697        } && test -s conftest$ac_exeext &&
33698        $as_test_x conftest$ac_exeext; then
33699   ac_cv_func_shmat=yes
33700 else
33701   echo "$as_me: failed program was:" >&5
33702 sed 's/^/| /' conftest.$ac_ext >&5
33703
33704         ac_cv_func_shmat=no
33705 fi
33706
33707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33708       conftest$ac_exeext conftest.$ac_ext
33709 fi
33710 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33711 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33712
33713     if test $ac_cv_func_shmat = no; then
33714       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33715 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33716 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33717   echo $ECHO_N "(cached) $ECHO_C" >&6
33718 else
33719   ac_check_lib_save_LIBS=$LIBS
33720 LIBS="-lipc  $LIBS"
33721 cat >conftest.$ac_ext <<_ACEOF
33722 /* confdefs.h.  */
33723 _ACEOF
33724 cat confdefs.h >>conftest.$ac_ext
33725 cat >>conftest.$ac_ext <<_ACEOF
33726 /* end confdefs.h.  */
33727
33728 /* Override any GCC internal prototype to avoid an error.
33729    Use char because int might match the return type of a GCC
33730    builtin and then its argument prototype would still apply.  */
33731 #ifdef __cplusplus
33732 extern "C"
33733 #endif
33734 char shmat ();
33735 int
33736 main ()
33737 {
33738 return shmat ();
33739   ;
33740   return 0;
33741 }
33742 _ACEOF
33743 rm -f conftest.$ac_objext conftest$ac_exeext
33744 if { (ac_try="$ac_link"
33745 case "(($ac_try" in
33746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33747   *) ac_try_echo=$ac_try;;
33748 esac
33749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33750   (eval "$ac_link") 2>conftest.er1
33751   ac_status=$?
33752   grep -v '^ *+' conftest.er1 >conftest.err
33753   rm -f conftest.er1
33754   cat conftest.err >&5
33755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756   (exit $ac_status); } && {
33757          test -z "$ac_c_werror_flag" ||
33758          test ! -s conftest.err
33759        } && test -s conftest$ac_exeext &&
33760        $as_test_x conftest$ac_exeext; then
33761   ac_cv_lib_ipc_shmat=yes
33762 else
33763   echo "$as_me: failed program was:" >&5
33764 sed 's/^/| /' conftest.$ac_ext >&5
33765
33766         ac_cv_lib_ipc_shmat=no
33767 fi
33768
33769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33770       conftest$ac_exeext conftest.$ac_ext
33771 LIBS=$ac_check_lib_save_LIBS
33772 fi
33773 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33774 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33775 if test $ac_cv_lib_ipc_shmat = yes; then
33776   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33777 fi
33778
33779     fi
33780   fi
33781
33782   # Check for libraries that X11R6 Xt/Xaw programs need.
33783   ac_save_LDFLAGS=$LDFLAGS
33784   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33785   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33786   # check for ICE first), but we must link in the order -lSM -lICE or
33787   # we get undefined symbols.  So assume we have SM if we have ICE.
33788   # These have to be linked with before -lX11, unlike the other
33789   # libraries we check for below, so use a different variable.
33790   # John Interrante, Karl Berry
33791   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33792 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33793 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33794   echo $ECHO_N "(cached) $ECHO_C" >&6
33795 else
33796   ac_check_lib_save_LIBS=$LIBS
33797 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33798 cat >conftest.$ac_ext <<_ACEOF
33799 /* confdefs.h.  */
33800 _ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h.  */
33804
33805 /* Override any GCC internal prototype to avoid an error.
33806    Use char because int might match the return type of a GCC
33807    builtin and then its argument prototype would still apply.  */
33808 #ifdef __cplusplus
33809 extern "C"
33810 #endif
33811 char IceConnectionNumber ();
33812 int
33813 main ()
33814 {
33815 return IceConnectionNumber ();
33816   ;
33817   return 0;
33818 }
33819 _ACEOF
33820 rm -f conftest.$ac_objext conftest$ac_exeext
33821 if { (ac_try="$ac_link"
33822 case "(($ac_try" in
33823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824   *) ac_try_echo=$ac_try;;
33825 esac
33826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827   (eval "$ac_link") 2>conftest.er1
33828   ac_status=$?
33829   grep -v '^ *+' conftest.er1 >conftest.err
33830   rm -f conftest.er1
33831   cat conftest.err >&5
33832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833   (exit $ac_status); } && {
33834          test -z "$ac_c_werror_flag" ||
33835          test ! -s conftest.err
33836        } && test -s conftest$ac_exeext &&
33837        $as_test_x conftest$ac_exeext; then
33838   ac_cv_lib_ICE_IceConnectionNumber=yes
33839 else
33840   echo "$as_me: failed program was:" >&5
33841 sed 's/^/| /' conftest.$ac_ext >&5
33842
33843         ac_cv_lib_ICE_IceConnectionNumber=no
33844 fi
33845
33846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33847       conftest$ac_exeext conftest.$ac_ext
33848 LIBS=$ac_check_lib_save_LIBS
33849 fi
33850 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33851 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33852 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33853   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33854 fi
33855
33856   LDFLAGS=$ac_save_LDFLAGS
33857
33858 fi
33859
33860
33861         if test "$no_x" = "yes"; then
33862           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33863 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33864    { (exit 1); exit 1; }; }
33865         fi
33866
33867                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33868         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33869         AFMINSTALL=afminstall
33870         COMPILED_X_PROGRAM=0
33871
33872     fi
33873
33874     if test "$wxUSE_X11" = 1; then
33875         if test "$wxUSE_NANOX" = "yes"; then
33876             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33877 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33878             if test "x$MICROWIN" = x ; then
33879                 { echo "$as_me:$LINENO: result: not found" >&5
33880 echo "${ECHO_T}not found" >&6; }
33881                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33882 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33883    { (exit 1); exit 1; }; }
33884             else
33885                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33886 echo "${ECHO_T}$MICROWIN" >&6; }
33887                 cat >>confdefs.h <<\_ACEOF
33888 #define wxUSE_NANOX 1
33889 _ACEOF
33890
33891             fi
33892         fi
33893
33894         if test "$wxUSE_UNICODE" = "yes"; then
33895
33896
33897 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33898         if test -n "$ac_tool_prefix"; then
33899   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33900 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33903 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33904   echo $ECHO_N "(cached) $ECHO_C" >&6
33905 else
33906   case $PKG_CONFIG in
33907   [\\/]* | ?:[\\/]*)
33908   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33909   ;;
33910   *)
33911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33912 for as_dir in $PATH
33913 do
33914   IFS=$as_save_IFS
33915   test -z "$as_dir" && as_dir=.
33916   for ac_exec_ext in '' $ac_executable_extensions; do
33917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33918     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33920     break 2
33921   fi
33922 done
33923 done
33924 IFS=$as_save_IFS
33925
33926   ;;
33927 esac
33928 fi
33929 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33930 if test -n "$PKG_CONFIG"; then
33931   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33932 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33933 else
33934   { echo "$as_me:$LINENO: result: no" >&5
33935 echo "${ECHO_T}no" >&6; }
33936 fi
33937
33938
33939 fi
33940 if test -z "$ac_cv_path_PKG_CONFIG"; then
33941   ac_pt_PKG_CONFIG=$PKG_CONFIG
33942   # Extract the first word of "pkg-config", so it can be a program name with args.
33943 set dummy pkg-config; ac_word=$2
33944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33946 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33947   echo $ECHO_N "(cached) $ECHO_C" >&6
33948 else
33949   case $ac_pt_PKG_CONFIG in
33950   [\\/]* | ?:[\\/]*)
33951   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33952   ;;
33953   *)
33954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33955 for as_dir in $PATH
33956 do
33957   IFS=$as_save_IFS
33958   test -z "$as_dir" && as_dir=.
33959   for ac_exec_ext in '' $ac_executable_extensions; do
33960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33961     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33963     break 2
33964   fi
33965 done
33966 done
33967 IFS=$as_save_IFS
33968
33969   ;;
33970 esac
33971 fi
33972 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33973 if test -n "$ac_pt_PKG_CONFIG"; then
33974   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33975 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33976 else
33977   { echo "$as_me:$LINENO: result: no" >&5
33978 echo "${ECHO_T}no" >&6; }
33979 fi
33980
33981   if test "x$ac_pt_PKG_CONFIG" = x; then
33982     PKG_CONFIG=""
33983   else
33984     case $cross_compiling:$ac_tool_warned in
33985 yes:)
33986 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33987 whose name does not start with the host triplet.  If you think this
33988 configuration is useful to you, please write to autoconf@gnu.org." >&5
33989 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33990 whose name does not start with the host triplet.  If you think this
33991 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33992 ac_tool_warned=yes ;;
33993 esac
33994     PKG_CONFIG=$ac_pt_PKG_CONFIG
33995   fi
33996 else
33997   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33998 fi
33999
34000 fi
34001 if test -n "$PKG_CONFIG"; then
34002         _pkg_min_version=0.9.0
34003         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34004 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
34005         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
34006                 { echo "$as_me:$LINENO: result: yes" >&5
34007 echo "${ECHO_T}yes" >&6; }
34008         else
34009                 { echo "$as_me:$LINENO: result: no" >&5
34010 echo "${ECHO_T}no" >&6; }
34011                 PKG_CONFIG=""
34012         fi
34013
34014 fi
34015
34016
34017 pkg_failed=no
34018 { echo "$as_me:$LINENO: checking for PANGOX" >&5
34019 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
34020
34021 if test -n "$PKG_CONFIG"; then
34022     if test -n "$PANGOX_CFLAGS"; then
34023         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
34024     else
34025         if test -n "$PKG_CONFIG" && \
34026     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34027   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34028   ac_status=$?
34029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030   (exit $ac_status); }; then
34031   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
34032 else
34033   pkg_failed=yes
34034 fi
34035     fi
34036 else
34037         pkg_failed=untried
34038 fi
34039 if test -n "$PKG_CONFIG"; then
34040     if test -n "$PANGOX_LIBS"; then
34041         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
34042     else
34043         if test -n "$PKG_CONFIG" && \
34044     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34045   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34046   ac_status=$?
34047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048   (exit $ac_status); }; then
34049   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
34050 else
34051   pkg_failed=yes
34052 fi
34053     fi
34054 else
34055         pkg_failed=untried
34056 fi
34057
34058
34059
34060 if test $pkg_failed = yes; then
34061
34062 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34063         _pkg_short_errors_supported=yes
34064 else
34065         _pkg_short_errors_supported=no
34066 fi
34067         if test $_pkg_short_errors_supported = yes; then
34068                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
34069         else
34070                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
34071         fi
34072         # Put the nasty error message in config.log where it belongs
34073         echo "$PANGOX_PKG_ERRORS" >&5
34074
34075
34076                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34077 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34078    { (exit 1); exit 1; }; }
34079
34080
34081 elif test $pkg_failed = untried; then
34082
34083                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34084 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34085    { (exit 1); exit 1; }; }
34086
34087
34088 else
34089         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
34090         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
34091         { echo "$as_me:$LINENO: result: yes" >&5
34092 echo "${ECHO_T}yes" >&6; }
34093
34094                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
34095                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
34096                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
34097
34098 fi
34099
34100 pkg_failed=no
34101 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
34102 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
34103
34104 if test -n "$PKG_CONFIG"; then
34105     if test -n "$PANGOFT2_CFLAGS"; then
34106         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
34107     else
34108         if test -n "$PKG_CONFIG" && \
34109     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34110   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34111   ac_status=$?
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); }; then
34114   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
34115 else
34116   pkg_failed=yes
34117 fi
34118     fi
34119 else
34120         pkg_failed=untried
34121 fi
34122 if test -n "$PKG_CONFIG"; then
34123     if test -n "$PANGOFT2_LIBS"; then
34124         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
34125     else
34126         if test -n "$PKG_CONFIG" && \
34127     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34128   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34129   ac_status=$?
34130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34131   (exit $ac_status); }; then
34132   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
34133 else
34134   pkg_failed=yes
34135 fi
34136     fi
34137 else
34138         pkg_failed=untried
34139 fi
34140
34141
34142
34143 if test $pkg_failed = yes; then
34144
34145 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34146         _pkg_short_errors_supported=yes
34147 else
34148         _pkg_short_errors_supported=no
34149 fi
34150         if test $_pkg_short_errors_supported = yes; then
34151                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
34152         else
34153                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
34154         fi
34155         # Put the nasty error message in config.log where it belongs
34156         echo "$PANGOFT2_PKG_ERRORS" >&5
34157
34158
34159                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34160 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34161                     wxUSE_PRINTING_ARCHITECTURE="no"
34162
34163
34164 elif test $pkg_failed = untried; then
34165
34166                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34167 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34168                     wxUSE_PRINTING_ARCHITECTURE="no"
34169
34170
34171 else
34172         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
34173         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
34174         { echo "$as_me:$LINENO: result: yes" >&5
34175 echo "${ECHO_T}yes" >&6; }
34176
34177                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
34178                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
34179                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
34180
34181 fi
34182
34183 pkg_failed=no
34184 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
34185 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
34186
34187 if test -n "$PKG_CONFIG"; then
34188     if test -n "$PANGOXFT_CFLAGS"; then
34189         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
34190     else
34191         if test -n "$PKG_CONFIG" && \
34192     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34193   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34194   ac_status=$?
34195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34196   (exit $ac_status); }; then
34197   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
34198 else
34199   pkg_failed=yes
34200 fi
34201     fi
34202 else
34203         pkg_failed=untried
34204 fi
34205 if test -n "$PKG_CONFIG"; then
34206     if test -n "$PANGOXFT_LIBS"; then
34207         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
34208     else
34209         if test -n "$PKG_CONFIG" && \
34210     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34211   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34212   ac_status=$?
34213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214   (exit $ac_status); }; then
34215   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
34216 else
34217   pkg_failed=yes
34218 fi
34219     fi
34220 else
34221         pkg_failed=untried
34222 fi
34223
34224
34225
34226 if test $pkg_failed = yes; then
34227
34228 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34229         _pkg_short_errors_supported=yes
34230 else
34231         _pkg_short_errors_supported=no
34232 fi
34233         if test $_pkg_short_errors_supported = yes; then
34234                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
34235         else
34236                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
34237         fi
34238         # Put the nasty error message in config.log where it belongs
34239         echo "$PANGOXFT_PKG_ERRORS" >&5
34240
34241
34242                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34243 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34244
34245
34246 elif test $pkg_failed = untried; then
34247
34248                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34249 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34250
34251
34252 else
34253         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
34254         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
34255         { echo "$as_me:$LINENO: result: yes" >&5
34256 echo "${ECHO_T}yes" >&6; }
34257
34258                     cat >>confdefs.h <<\_ACEOF
34259 #define HAVE_PANGO_XFT 1
34260 _ACEOF
34261
34262                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
34263                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
34264                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
34265
34266 fi
34267             save_LIBS="$LIBS"
34268             LIBS="$LIBS $PANGOX_LIBS"
34269
34270 for ac_func in pango_font_family_is_monospace
34271 do
34272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34276   echo $ECHO_N "(cached) $ECHO_C" >&6
34277 else
34278   cat >conftest.$ac_ext <<_ACEOF
34279 /* confdefs.h.  */
34280 _ACEOF
34281 cat confdefs.h >>conftest.$ac_ext
34282 cat >>conftest.$ac_ext <<_ACEOF
34283 /* end confdefs.h.  */
34284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34286 #define $ac_func innocuous_$ac_func
34287
34288 /* System header to define __stub macros and hopefully few prototypes,
34289     which can conflict with char $ac_func (); below.
34290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34291     <limits.h> exists even on freestanding compilers.  */
34292
34293 #ifdef __STDC__
34294 # include <limits.h>
34295 #else
34296 # include <assert.h>
34297 #endif
34298
34299 #undef $ac_func
34300
34301 /* Override any GCC internal prototype to avoid an error.
34302    Use char because int might match the return type of a GCC
34303    builtin and then its argument prototype would still apply.  */
34304 #ifdef __cplusplus
34305 extern "C"
34306 #endif
34307 char $ac_func ();
34308 /* The GNU C library defines this for functions which it implements
34309     to always fail with ENOSYS.  Some functions are actually named
34310     something starting with __ and the normal name is an alias.  */
34311 #if defined __stub_$ac_func || defined __stub___$ac_func
34312 choke me
34313 #endif
34314
34315 int
34316 main ()
34317 {
34318 return $ac_func ();
34319   ;
34320   return 0;
34321 }
34322 _ACEOF
34323 rm -f conftest.$ac_objext conftest$ac_exeext
34324 if { (ac_try="$ac_link"
34325 case "(($ac_try" in
34326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34327   *) ac_try_echo=$ac_try;;
34328 esac
34329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34330   (eval "$ac_link") 2>conftest.er1
34331   ac_status=$?
34332   grep -v '^ *+' conftest.er1 >conftest.err
34333   rm -f conftest.er1
34334   cat conftest.err >&5
34335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336   (exit $ac_status); } && {
34337          test -z "$ac_c_werror_flag" ||
34338          test ! -s conftest.err
34339        } && test -s conftest$ac_exeext &&
34340        $as_test_x conftest$ac_exeext; then
34341   eval "$as_ac_var=yes"
34342 else
34343   echo "$as_me: failed program was:" >&5
34344 sed 's/^/| /' conftest.$ac_ext >&5
34345
34346         eval "$as_ac_var=no"
34347 fi
34348
34349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34350       conftest$ac_exeext conftest.$ac_ext
34351 fi
34352 ac_res=`eval echo '${'$as_ac_var'}'`
34353                { echo "$as_me:$LINENO: result: $ac_res" >&5
34354 echo "${ECHO_T}$ac_res" >&6; }
34355 if test `eval echo '${'$as_ac_var'}'` = yes; then
34356   cat >>confdefs.h <<_ACEOF
34357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34358 _ACEOF
34359
34360 fi
34361 done
34362
34363             LIBS="$save_LIBS"
34364         fi
34365
34366         wxUSE_UNIVERSAL="yes"
34367
34368         if test "$wxUSE_NANOX" = "yes"; then
34369             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
34370             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"
34371             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
34372         else
34373             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
34374         fi
34375
34376         TOOLKIT=X11
34377         GUIDIST=X11_DIST
34378     fi
34379
34380     if test "$wxUSE_MOTIF" = 1; then
34381         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
34382 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
34383
34384 ac_find_includes=
34385 for ac_dir in $SEARCH_INCLUDE /usr/include;
34386   do
34387     if test -f "$ac_dir/Xm/Xm.h"; then
34388       ac_find_includes=$ac_dir
34389       break
34390     fi
34391   done
34392
34393         if test "$ac_find_includes" != "" ; then
34394             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34395 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34396
34397     if test "x$ac_find_includes" = "x/usr/include"; then
34398     ac_path_to_include=""
34399   else
34400     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
34401     result=$?
34402     if test $result = 0; then
34403       ac_path_to_include=""
34404     else
34405       ac_path_to_include=" -I$ac_find_includes"
34406     fi
34407   fi
34408
34409             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
34410         else
34411             save_CFLAGS=$CFLAGS
34412             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34413
34414             cat >conftest.$ac_ext <<_ACEOF
34415 /* confdefs.h.  */
34416 _ACEOF
34417 cat confdefs.h >>conftest.$ac_ext
34418 cat >>conftest.$ac_ext <<_ACEOF
34419 /* end confdefs.h.  */
34420
34421                     #include <Xm/Xm.h>
34422
34423 int
34424 main ()
34425 {
34426
34427                     int version;
34428                     version = xmUseVersion;
34429
34430   ;
34431   return 0;
34432 }
34433 _ACEOF
34434 rm -f conftest.$ac_objext
34435 if { (ac_try="$ac_compile"
34436 case "(($ac_try" in
34437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34438   *) ac_try_echo=$ac_try;;
34439 esac
34440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34441   (eval "$ac_compile") 2>conftest.er1
34442   ac_status=$?
34443   grep -v '^ *+' conftest.er1 >conftest.err
34444   rm -f conftest.er1
34445   cat conftest.err >&5
34446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34447   (exit $ac_status); } && {
34448          test -z "$ac_c_werror_flag" ||
34449          test ! -s conftest.err
34450        } && test -s conftest.$ac_objext; then
34451
34452                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34453 echo "${ECHO_T}found in default search path" >&6; }
34454                     COMPILED_X_PROGRAM=1
34455
34456 else
34457   echo "$as_me: failed program was:" >&5
34458 sed 's/^/| /' conftest.$ac_ext >&5
34459
34460
34461                     { echo "$as_me:$LINENO: result: no" >&5
34462 echo "${ECHO_T}no" >&6; }
34463                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34464 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
34465    { (exit 1); exit 1; }; }
34466
34467
34468 fi
34469
34470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34471
34472             CFLAGS=$save_CFLAGS
34473         fi
34474
34475
34476         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34477 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
34478
34479   ac_find_libraries=
34480   for ac_dir in $SEARCH_LIB;
34481   do
34482     for ac_extension in a so sl dylib dll.a; do
34483       if test -f "$ac_dir/libXm.$ac_extension"; then
34484         ac_find_libraries=$ac_dir
34485         break 2
34486       fi
34487     done
34488   done
34489
34490
34491         if test "x$ac_find_libraries" != "x" ; then
34492             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34493 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34494
34495
34496     if test "$ac_find_libraries" = "default location"; then
34497     ac_path_to_link=""
34498   else
34499     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34500     result=$?
34501     if test $result = 0; then
34502       ac_path_to_link=""
34503     else
34504       ac_path_to_link=" -L$ac_find_libraries"
34505     fi
34506   fi
34507
34508             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34509         else
34510                                                 save_CFLAGS=$CFLAGS
34511             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34512             save_LIBS="$LIBS"
34513             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34514
34515             cat >conftest.$ac_ext <<_ACEOF
34516 /* confdefs.h.  */
34517 _ACEOF
34518 cat confdefs.h >>conftest.$ac_ext
34519 cat >>conftest.$ac_ext <<_ACEOF
34520 /* end confdefs.h.  */
34521
34522                     #include <Xm/Xm.h>
34523
34524 int
34525 main ()
34526 {
34527
34528                     int version;
34529                     version = xmUseVersion;
34530
34531   ;
34532   return 0;
34533 }
34534 _ACEOF
34535 rm -f conftest.$ac_objext conftest$ac_exeext
34536 if { (ac_try="$ac_link"
34537 case "(($ac_try" in
34538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34539   *) ac_try_echo=$ac_try;;
34540 esac
34541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34542   (eval "$ac_link") 2>conftest.er1
34543   ac_status=$?
34544   grep -v '^ *+' conftest.er1 >conftest.err
34545   rm -f conftest.er1
34546   cat conftest.err >&5
34547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548   (exit $ac_status); } && {
34549          test -z "$ac_c_werror_flag" ||
34550          test ! -s conftest.err
34551        } && test -s conftest$ac_exeext &&
34552        $as_test_x conftest$ac_exeext; then
34553
34554                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34555 echo "${ECHO_T}found in default search path" >&6; }
34556                     COMPILED_X_PROGRAM=1
34557
34558 else
34559   echo "$as_me: failed program was:" >&5
34560 sed 's/^/| /' conftest.$ac_ext >&5
34561
34562
34563                     { echo "$as_me:$LINENO: result: no" >&5
34564 echo "${ECHO_T}no" >&6; }
34565                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34566 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34567    { (exit 1); exit 1; }; }
34568
34569
34570 fi
34571
34572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34573       conftest$ac_exeext conftest.$ac_ext
34574
34575             CFLAGS=$save_CFLAGS
34576             LIBS="$save_LIBS"
34577         fi
34578
34579         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34580 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34581         libp_link=""
34582         libsm_ice_link=""
34583         libs_found=0
34584         for libp in "" " -lXp"; do
34585             if test "$libs_found" = "0"; then
34586                 for libsm_ice in "" " -lSM -lICE"; do
34587                     if test "$libs_found" = "0"; then
34588                         save_LIBS="$LIBS"
34589                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34590                         save_CFLAGS=$CFLAGS
34591                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34592
34593                         cat >conftest.$ac_ext <<_ACEOF
34594 /* confdefs.h.  */
34595 _ACEOF
34596 cat confdefs.h >>conftest.$ac_ext
34597 cat >>conftest.$ac_ext <<_ACEOF
34598 /* end confdefs.h.  */
34599
34600                                 #include <Xm/Xm.h>
34601                                 #include <Xm/List.h>
34602
34603 int
34604 main ()
34605 {
34606
34607                                 XmString string = NULL;
34608                                 Widget w = NULL;
34609                                 int position = 0;
34610                                 XmListAddItem(w, string, position);
34611
34612   ;
34613   return 0;
34614 }
34615 _ACEOF
34616 rm -f conftest.$ac_objext conftest$ac_exeext
34617 if { (ac_try="$ac_link"
34618 case "(($ac_try" in
34619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34620   *) ac_try_echo=$ac_try;;
34621 esac
34622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34623   (eval "$ac_link") 2>conftest.er1
34624   ac_status=$?
34625   grep -v '^ *+' conftest.er1 >conftest.err
34626   rm -f conftest.er1
34627   cat conftest.err >&5
34628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629   (exit $ac_status); } && {
34630          test -z "$ac_c_werror_flag" ||
34631          test ! -s conftest.err
34632        } && test -s conftest$ac_exeext &&
34633        $as_test_x conftest$ac_exeext; then
34634
34635                                 libp_link="$libp"
34636                                 libsm_ice_link="$libsm_ice"
34637                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34638 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34639                                 libs_found=1
34640
34641 else
34642   echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34644
34645
34646
34647 fi
34648
34649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34650       conftest$ac_exeext conftest.$ac_ext
34651
34652                         LIBS="$save_LIBS"
34653                         CFLAGS=$save_CFLAGS
34654                     fi
34655                 done
34656             fi
34657         done
34658
34659         if test "$libs_found" = "0"; then
34660             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34661 echo "${ECHO_T}can't find the right libraries" >&6; }
34662             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34663 echo "$as_me: error: can't link a simple motif program" >&2;}
34664    { (exit 1); exit 1; }; }
34665         fi
34666
34667                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34668 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34669 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34670   echo $ECHO_N "(cached) $ECHO_C" >&6
34671 else
34672   ac_check_lib_save_LIBS=$LIBS
34673 LIBS="-lSgm  $LIBS"
34674 cat >conftest.$ac_ext <<_ACEOF
34675 /* confdefs.h.  */
34676 _ACEOF
34677 cat confdefs.h >>conftest.$ac_ext
34678 cat >>conftest.$ac_ext <<_ACEOF
34679 /* end confdefs.h.  */
34680
34681 /* Override any GCC internal prototype to avoid an error.
34682    Use char because int might match the return type of a GCC
34683    builtin and then its argument prototype would still apply.  */
34684 #ifdef __cplusplus
34685 extern "C"
34686 #endif
34687 char SgCreateList ();
34688 int
34689 main ()
34690 {
34691 return SgCreateList ();
34692   ;
34693   return 0;
34694 }
34695 _ACEOF
34696 rm -f conftest.$ac_objext conftest$ac_exeext
34697 if { (ac_try="$ac_link"
34698 case "(($ac_try" in
34699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34700   *) ac_try_echo=$ac_try;;
34701 esac
34702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34703   (eval "$ac_link") 2>conftest.er1
34704   ac_status=$?
34705   grep -v '^ *+' conftest.er1 >conftest.err
34706   rm -f conftest.er1
34707   cat conftest.err >&5
34708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709   (exit $ac_status); } && {
34710          test -z "$ac_c_werror_flag" ||
34711          test ! -s conftest.err
34712        } && test -s conftest$ac_exeext &&
34713        $as_test_x conftest$ac_exeext; then
34714   ac_cv_lib_Sgm_SgCreateList=yes
34715 else
34716   echo "$as_me: failed program was:" >&5
34717 sed 's/^/| /' conftest.$ac_ext >&5
34718
34719         ac_cv_lib_Sgm_SgCreateList=no
34720 fi
34721
34722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34723       conftest$ac_exeext conftest.$ac_ext
34724 LIBS=$ac_check_lib_save_LIBS
34725 fi
34726 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34727 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34728 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34729   libsgm_link=" -lSgm"
34730 fi
34731
34732
34733         save_CFLAGS=$CFLAGS
34734         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34735
34736         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34737 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34738 if test "${wx_cv_lib_motif2+set}" = set; then
34739   echo $ECHO_N "(cached) $ECHO_C" >&6
34740 else
34741   cat >conftest.$ac_ext <<_ACEOF
34742 /* confdefs.h.  */
34743 _ACEOF
34744 cat confdefs.h >>conftest.$ac_ext
34745 cat >>conftest.$ac_ext <<_ACEOF
34746 /* end confdefs.h.  */
34747
34748                             #include <Xm/Xm.h>
34749
34750 int
34751 main ()
34752 {
34753
34754                             #if XmVersion < 2000
34755                             Not Motif 2
34756                             #endif
34757
34758   ;
34759   return 0;
34760 }
34761 _ACEOF
34762 rm -f conftest.$ac_objext
34763 if { (ac_try="$ac_compile"
34764 case "(($ac_try" in
34765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766   *) ac_try_echo=$ac_try;;
34767 esac
34768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34769   (eval "$ac_compile") 2>conftest.er1
34770   ac_status=$?
34771   grep -v '^ *+' conftest.er1 >conftest.err
34772   rm -f conftest.er1
34773   cat conftest.err >&5
34774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775   (exit $ac_status); } && {
34776          test -z "$ac_c_werror_flag" ||
34777          test ! -s conftest.err
34778        } && test -s conftest.$ac_objext; then
34779   wx_cv_lib_motif2="yes"
34780 else
34781   echo "$as_me: failed program was:" >&5
34782 sed 's/^/| /' conftest.$ac_ext >&5
34783
34784         wx_cv_lib_motif2="no"
34785 fi
34786
34787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34788 fi
34789 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34790 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34791         if test "$wx_cv_lib_motif2" = "yes"; then
34792             cat >>confdefs.h <<\_ACEOF
34793 #define __WXMOTIF20__ 1
34794 _ACEOF
34795
34796         else
34797             cat >>confdefs.h <<\_ACEOF
34798 #define __WXMOTIF20__ 0
34799 _ACEOF
34800
34801         fi
34802
34803         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34804 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34805 if test "${wx_cv_lib_lesstif+set}" = set; then
34806   echo $ECHO_N "(cached) $ECHO_C" >&6
34807 else
34808   cat >conftest.$ac_ext <<_ACEOF
34809 /* confdefs.h.  */
34810 _ACEOF
34811 cat confdefs.h >>conftest.$ac_ext
34812 cat >>conftest.$ac_ext <<_ACEOF
34813 /* end confdefs.h.  */
34814
34815                             #include <Xm/Xm.h>
34816
34817 int
34818 main ()
34819 {
34820
34821                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34822                             Not Lesstif
34823                             #endif
34824
34825   ;
34826   return 0;
34827 }
34828 _ACEOF
34829 rm -f conftest.$ac_objext
34830 if { (ac_try="$ac_compile"
34831 case "(($ac_try" in
34832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34833   *) ac_try_echo=$ac_try;;
34834 esac
34835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34836   (eval "$ac_compile") 2>conftest.er1
34837   ac_status=$?
34838   grep -v '^ *+' conftest.er1 >conftest.err
34839   rm -f conftest.er1
34840   cat conftest.err >&5
34841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842   (exit $ac_status); } && {
34843          test -z "$ac_c_werror_flag" ||
34844          test ! -s conftest.err
34845        } && test -s conftest.$ac_objext; then
34846   wx_cv_lib_lesstif="yes"
34847 else
34848   echo "$as_me: failed program was:" >&5
34849 sed 's/^/| /' conftest.$ac_ext >&5
34850
34851         wx_cv_lib_lesstif="no"
34852 fi
34853
34854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34855
34856 fi
34857 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34858 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34859         if test "$wx_cv_lib_lesstif" = "yes"; then
34860             cat >>confdefs.h <<\_ACEOF
34861 #define __WXLESSTIF__ 1
34862 _ACEOF
34863
34864         else
34865             cat >>confdefs.h <<\_ACEOF
34866 #define __WXLESSTIF__ 0
34867 _ACEOF
34868
34869         fi
34870
34871         CFLAGS=$save_CFLAGS
34872
34873         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34874         TOOLKIT=MOTIF
34875         GUIDIST=MOTIF_DIST
34876     fi
34877
34878         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34879                 if test "$wxUSE_LIBXPM" = "sys"; then
34880             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34881 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34882
34883   ac_find_libraries=
34884   for ac_dir in $SEARCH_LIB;
34885   do
34886     for ac_extension in a so sl dylib dll.a; do
34887       if test -f "$ac_dir/libXpm.$ac_extension"; then
34888         ac_find_libraries=$ac_dir
34889         break 2
34890       fi
34891     done
34892   done
34893
34894             if test "$ac_find_libraries" != "" ; then
34895
34896     if test "$ac_find_libraries" = "default location"; then
34897     ac_path_to_link=""
34898   else
34899     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34900     result=$?
34901     if test $result = 0; then
34902       ac_path_to_link=""
34903     else
34904       ac_path_to_link=" -L$ac_find_libraries"
34905     fi
34906   fi
34907
34908                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34909                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34910 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34911
34912                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34913 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34914 if test "${wx_cv_x11_xpm_h+set}" = set; then
34915   echo $ECHO_N "(cached) $ECHO_C" >&6
34916 else
34917
34918                         save_CFLAGS=$CFLAGS
34919                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34920
34921                         cat >conftest.$ac_ext <<_ACEOF
34922 /* confdefs.h.  */
34923 _ACEOF
34924 cat confdefs.h >>conftest.$ac_ext
34925 cat >>conftest.$ac_ext <<_ACEOF
34926 /* end confdefs.h.  */
34927
34928                                 #include <X11/xpm.h>
34929
34930 int
34931 main ()
34932 {
34933
34934                                 int version;
34935                                 version = XpmLibraryVersion();
34936
34937   ;
34938   return 0;
34939 }
34940 _ACEOF
34941 rm -f conftest.$ac_objext
34942 if { (ac_try="$ac_compile"
34943 case "(($ac_try" in
34944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34945   *) ac_try_echo=$ac_try;;
34946 esac
34947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34948   (eval "$ac_compile") 2>conftest.er1
34949   ac_status=$?
34950   grep -v '^ *+' conftest.er1 >conftest.err
34951   rm -f conftest.er1
34952   cat conftest.err >&5
34953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954   (exit $ac_status); } && {
34955          test -z "$ac_c_werror_flag" ||
34956          test ! -s conftest.err
34957        } && test -s conftest.$ac_objext; then
34958   wx_cv_x11_xpm_h=yes
34959 else
34960   echo "$as_me: failed program was:" >&5
34961 sed 's/^/| /' conftest.$ac_ext >&5
34962
34963         wx_cv_x11_xpm_h=no
34964
34965 fi
34966
34967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34968
34969                         CFLAGS=$save_CFLAGS
34970
34971
34972 fi
34973 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34974 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34975
34976                 if test $wx_cv_x11_xpm_h = "yes"; then
34977                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34978                     cat >>confdefs.h <<\_ACEOF
34979 #define wxHAVE_LIB_XPM 1
34980 _ACEOF
34981
34982                 else
34983                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34984 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34985                 fi
34986             fi
34987
34988         fi
34989
34990                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34991 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34992 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34993   echo $ECHO_N "(cached) $ECHO_C" >&6
34994 else
34995   ac_check_lib_save_LIBS=$LIBS
34996 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34997 cat >conftest.$ac_ext <<_ACEOF
34998 /* confdefs.h.  */
34999 _ACEOF
35000 cat confdefs.h >>conftest.$ac_ext
35001 cat >>conftest.$ac_ext <<_ACEOF
35002 /* end confdefs.h.  */
35003
35004 /* Override any GCC internal prototype to avoid an error.
35005    Use char because int might match the return type of a GCC
35006    builtin and then its argument prototype would still apply.  */
35007 #ifdef __cplusplus
35008 extern "C"
35009 #endif
35010 char XShapeQueryExtension ();
35011 int
35012 main ()
35013 {
35014 return XShapeQueryExtension ();
35015   ;
35016   return 0;
35017 }
35018 _ACEOF
35019 rm -f conftest.$ac_objext conftest$ac_exeext
35020 if { (ac_try="$ac_link"
35021 case "(($ac_try" in
35022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023   *) ac_try_echo=$ac_try;;
35024 esac
35025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026   (eval "$ac_link") 2>conftest.er1
35027   ac_status=$?
35028   grep -v '^ *+' conftest.er1 >conftest.err
35029   rm -f conftest.er1
35030   cat conftest.err >&5
35031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032   (exit $ac_status); } && {
35033          test -z "$ac_c_werror_flag" ||
35034          test ! -s conftest.err
35035        } && test -s conftest$ac_exeext &&
35036        $as_test_x conftest$ac_exeext; then
35037   ac_cv_lib_Xext_XShapeQueryExtension=yes
35038 else
35039   echo "$as_me: failed program was:" >&5
35040 sed 's/^/| /' conftest.$ac_ext >&5
35041
35042         ac_cv_lib_Xext_XShapeQueryExtension=no
35043 fi
35044
35045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35046       conftest$ac_exeext conftest.$ac_ext
35047 LIBS=$ac_check_lib_save_LIBS
35048 fi
35049 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
35050 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
35051 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
35052
35053                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
35054                       wxHAVE_XEXT_LIB=1
35055
35056 fi
35057
35058
35059         if test "$wxHAVE_XEXT_LIB" = 1; then
35060             save_CFLAGS="$CFLAGS"
35061             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35062
35063             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
35064 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
35065             cat >conftest.$ac_ext <<_ACEOF
35066 /* confdefs.h.  */
35067 _ACEOF
35068 cat confdefs.h >>conftest.$ac_ext
35069 cat >>conftest.$ac_ext <<_ACEOF
35070 /* end confdefs.h.  */
35071
35072                             #include <X11/Xlib.h>
35073                             #include <X11/extensions/shape.h>
35074
35075 int
35076 main ()
35077 {
35078
35079                             int dummy1, dummy2;
35080                             XShapeQueryExtension((Display*)NULL,
35081                                                  (int*)NULL, (int*)NULL);
35082
35083   ;
35084   return 0;
35085 }
35086 _ACEOF
35087 rm -f conftest.$ac_objext
35088 if { (ac_try="$ac_compile"
35089 case "(($ac_try" in
35090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35091   *) ac_try_echo=$ac_try;;
35092 esac
35093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35094   (eval "$ac_compile") 2>conftest.er1
35095   ac_status=$?
35096   grep -v '^ *+' conftest.er1 >conftest.err
35097   rm -f conftest.er1
35098   cat conftest.err >&5
35099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100   (exit $ac_status); } && {
35101          test -z "$ac_c_werror_flag" ||
35102          test ! -s conftest.err
35103        } && test -s conftest.$ac_objext; then
35104
35105                             cat >>confdefs.h <<\_ACEOF
35106 #define HAVE_XSHAPE 1
35107 _ACEOF
35108
35109                             { echo "$as_me:$LINENO: result: found" >&5
35110 echo "${ECHO_T}found" >&6; }
35111
35112 else
35113   echo "$as_me: failed program was:" >&5
35114 sed 's/^/| /' conftest.$ac_ext >&5
35115
35116
35117                             { echo "$as_me:$LINENO: result: not found" >&5
35118 echo "${ECHO_T}not found" >&6; }
35119
35120 fi
35121
35122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35123             CFLAGS="$save_CFLAGS"
35124
35125         fi
35126     fi
35127
35128     if test "$wxUSE_MAC" = 1; then
35129         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
35130 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
35131         if test "$GCC" = yes; then
35132             { echo "$as_me:$LINENO: result: gcc" >&5
35133 echo "${ECHO_T}gcc" >&6; }
35134             CPPFLAGS_PASCAL="-fpascal-strings"
35135         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
35136             { echo "$as_me:$LINENO: result: xlc" >&5
35137 echo "${ECHO_T}xlc" >&6; }
35138             CPPFLAGS_PASCAL="-qmacpstr"
35139         else
35140             { echo "$as_me:$LINENO: result: none" >&5
35141 echo "${ECHO_T}none" >&6; }
35142         fi
35143
35144         if test "x$wxUSE_UNIX" = "xyes"; then
35145             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
35146         else
35147                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
35148         fi
35149
35150         TOOLKIT=MAC
35151                 GUIDIST=MACX_DIST
35152                         WXBASEPORT="_carbon"
35153     fi
35154
35155     if test "$wxUSE_COCOA" = 1; then
35156         TOOLKIT=COCOA
35157         GUIDIST=COCOA_DIST
35158     fi
35159
35160     if test "$wxUSE_PM" = 1; then
35161         TOOLKIT=PM
35162         GUIDIST=PM_DIST
35163         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
35164 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
35165 if test "${wx_cv_spbcdata+set}" = set; then
35166   echo $ECHO_N "(cached) $ECHO_C" >&6
35167 else
35168
35169                 cat >conftest.$ac_ext <<_ACEOF
35170 /* confdefs.h.  */
35171 _ACEOF
35172 cat confdefs.h >>conftest.$ac_ext
35173 cat >>conftest.$ac_ext <<_ACEOF
35174 /* end confdefs.h.  */
35175
35176                         #define INCL_PM
35177                         #include <os2.h>
35178
35179 int
35180 main ()
35181 {
35182
35183                         SPBCDATA test;
35184
35185   ;
35186   return 0;
35187 }
35188 _ACEOF
35189 rm -f conftest.$ac_objext
35190 if { (ac_try="$ac_compile"
35191 case "(($ac_try" in
35192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35193   *) ac_try_echo=$ac_try;;
35194 esac
35195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35196   (eval "$ac_compile") 2>conftest.er1
35197   ac_status=$?
35198   grep -v '^ *+' conftest.er1 >conftest.err
35199   rm -f conftest.er1
35200   cat conftest.err >&5
35201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202   (exit $ac_status); } && {
35203          test -z "$ac_c_werror_flag" ||
35204          test ! -s conftest.err
35205        } && test -s conftest.$ac_objext; then
35206   wx_cv_spbcdata=yes
35207 else
35208   echo "$as_me: failed program was:" >&5
35209 sed 's/^/| /' conftest.$ac_ext >&5
35210
35211         wx_cv_spbcdata=no
35212
35213 fi
35214
35215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35216
35217
35218 fi
35219 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
35220 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
35221
35222         if test $wx_cv_spbcdata = "yes"; then
35223             cat >>confdefs.h <<\_ACEOF
35224 #define HAVE_SPBCDATA 1
35225 _ACEOF
35226
35227         fi
35228     fi
35229
35230         if test "$TOOLKIT" = "PM" ; then
35231         TOOLKIT_DIR="os2"
35232     else
35233         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
35234     fi
35235
35236     if test "$wxUSE_UNIVERSAL" = "yes"; then
35237         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
35238         WIDGET_SET=univ
35239     fi
35240
35241         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
35242     DISTDIR="wx\$(TOOLKIT)"
35243 else
35244     USE_GUI=0
35245
35246             TOOLKIT_DIR="base"
35247
35248         if test "$USE_WIN32" = 1 ; then
35249                         TOOLKIT="MSW"
35250     fi
35251
35252         GUIDIST="BASE_DIST"
35253     DISTDIR="wxBase"
35254 fi
35255
35256
35257
35258 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
35259     if test "$USE_UNIX" = "1" -a "$wxUSE_DARWIN" != "1" ; then
35260         wxUSE_UNICODE_UTF8=yes
35261     elif test "$USE_OS2" = "1" ; then
35262                                 wxUSE_UNICODE_UTF8=yes
35263     else
35264         wxUSE_UNICODE_UTF8=no
35265     fi
35266 fi
35267
35268
35269 if test "$wxUSE_GUI" = "yes"; then
35270     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
35271
35272 for ac_header in X11/Xlib.h
35273 do
35274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35278   echo $ECHO_N "(cached) $ECHO_C" >&6
35279 else
35280   cat >conftest.$ac_ext <<_ACEOF
35281 /* confdefs.h.  */
35282 _ACEOF
35283 cat confdefs.h >>conftest.$ac_ext
35284 cat >>conftest.$ac_ext <<_ACEOF
35285 /* end confdefs.h.  */
35286
35287
35288 #include <$ac_header>
35289 _ACEOF
35290 rm -f conftest.$ac_objext
35291 if { (ac_try="$ac_compile"
35292 case "(($ac_try" in
35293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35294   *) ac_try_echo=$ac_try;;
35295 esac
35296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35297   (eval "$ac_compile") 2>conftest.er1
35298   ac_status=$?
35299   grep -v '^ *+' conftest.er1 >conftest.err
35300   rm -f conftest.er1
35301   cat conftest.err >&5
35302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35303   (exit $ac_status); } && {
35304          test -z "$ac_c_werror_flag" ||
35305          test ! -s conftest.err
35306        } && test -s conftest.$ac_objext; then
35307   eval "$as_ac_Header=yes"
35308 else
35309   echo "$as_me: failed program was:" >&5
35310 sed 's/^/| /' conftest.$ac_ext >&5
35311
35312         eval "$as_ac_Header=no"
35313 fi
35314
35315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35316 fi
35317 ac_res=`eval echo '${'$as_ac_Header'}'`
35318                { echo "$as_me:$LINENO: result: $ac_res" >&5
35319 echo "${ECHO_T}$ac_res" >&6; }
35320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35321   cat >>confdefs.h <<_ACEOF
35322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35323 _ACEOF
35324
35325 fi
35326
35327 done
35328
35329
35330 for ac_header in X11/XKBlib.h
35331 do
35332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35336   echo $ECHO_N "(cached) $ECHO_C" >&6
35337 else
35338   cat >conftest.$ac_ext <<_ACEOF
35339 /* confdefs.h.  */
35340 _ACEOF
35341 cat confdefs.h >>conftest.$ac_ext
35342 cat >>conftest.$ac_ext <<_ACEOF
35343 /* end confdefs.h.  */
35344
35345                           #if HAVE_X11_XLIB_H
35346                             #include <X11/Xlib.h>
35347                           #endif
35348
35349
35350 #include <$ac_header>
35351 _ACEOF
35352 rm -f conftest.$ac_objext
35353 if { (ac_try="$ac_compile"
35354 case "(($ac_try" in
35355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35356   *) ac_try_echo=$ac_try;;
35357 esac
35358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35359   (eval "$ac_compile") 2>conftest.er1
35360   ac_status=$?
35361   grep -v '^ *+' conftest.er1 >conftest.err
35362   rm -f conftest.er1
35363   cat conftest.err >&5
35364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365   (exit $ac_status); } && {
35366          test -z "$ac_c_werror_flag" ||
35367          test ! -s conftest.err
35368        } && test -s conftest.$ac_objext; then
35369   eval "$as_ac_Header=yes"
35370 else
35371   echo "$as_me: failed program was:" >&5
35372 sed 's/^/| /' conftest.$ac_ext >&5
35373
35374         eval "$as_ac_Header=no"
35375 fi
35376
35377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35378 fi
35379 ac_res=`eval echo '${'$as_ac_Header'}'`
35380                { echo "$as_me:$LINENO: result: $ac_res" >&5
35381 echo "${ECHO_T}$ac_res" >&6; }
35382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35383   cat >>confdefs.h <<_ACEOF
35384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35385 _ACEOF
35386
35387 fi
35388
35389 done
35390
35391     fi
35392 fi
35393
35394
35395
35396 IODBC_C_SRC=""
35397
35398
35399 if test "$TOOLKIT" != "MSW" ; then
35400
35401     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
35402
35403         { echo "$as_me:$LINENO: checking for sql.h" >&5
35404 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35405 if test "${ac_cv_header_sql_h+set}" = set; then
35406   echo $ECHO_N "(cached) $ECHO_C" >&6
35407 else
35408   cat >conftest.$ac_ext <<_ACEOF
35409 /* confdefs.h.  */
35410 _ACEOF
35411 cat confdefs.h >>conftest.$ac_ext
35412 cat >>conftest.$ac_ext <<_ACEOF
35413 /* end confdefs.h.  */
35414
35415
35416 #include <sql.h>
35417 _ACEOF
35418 rm -f conftest.$ac_objext
35419 if { (ac_try="$ac_compile"
35420 case "(($ac_try" in
35421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35422   *) ac_try_echo=$ac_try;;
35423 esac
35424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35425   (eval "$ac_compile") 2>conftest.er1
35426   ac_status=$?
35427   grep -v '^ *+' conftest.er1 >conftest.err
35428   rm -f conftest.er1
35429   cat conftest.err >&5
35430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431   (exit $ac_status); } && {
35432          test -z "$ac_c_werror_flag" ||
35433          test ! -s conftest.err
35434        } && test -s conftest.$ac_objext; then
35435   ac_cv_header_sql_h=yes
35436 else
35437   echo "$as_me: failed program was:" >&5
35438 sed 's/^/| /' conftest.$ac_ext >&5
35439
35440         ac_cv_header_sql_h=no
35441 fi
35442
35443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35444 fi
35445 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35446 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35447 if test $ac_cv_header_sql_h = yes; then
35448   found_sql_h=1
35449 fi
35450
35451
35452         if test "x$found_sql_h" = "x1" ; then
35453             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
35454 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
35455 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
35456   echo $ECHO_N "(cached) $ECHO_C" >&6
35457 else
35458   ac_check_lib_save_LIBS=$LIBS
35459 LIBS="-liodbc  $LIBS"
35460 cat >conftest.$ac_ext <<_ACEOF
35461 /* confdefs.h.  */
35462 _ACEOF
35463 cat confdefs.h >>conftest.$ac_ext
35464 cat >>conftest.$ac_ext <<_ACEOF
35465 /* end confdefs.h.  */
35466
35467 /* Override any GCC internal prototype to avoid an error.
35468    Use char because int might match the return type of a GCC
35469    builtin and then its argument prototype would still apply.  */
35470 #ifdef __cplusplus
35471 extern "C"
35472 #endif
35473 char SQLAllocEnv ();
35474 int
35475 main ()
35476 {
35477 return SQLAllocEnv ();
35478   ;
35479   return 0;
35480 }
35481 _ACEOF
35482 rm -f conftest.$ac_objext conftest$ac_exeext
35483 if { (ac_try="$ac_link"
35484 case "(($ac_try" in
35485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35486   *) ac_try_echo=$ac_try;;
35487 esac
35488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35489   (eval "$ac_link") 2>conftest.er1
35490   ac_status=$?
35491   grep -v '^ *+' conftest.er1 >conftest.err
35492   rm -f conftest.er1
35493   cat conftest.err >&5
35494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495   (exit $ac_status); } && {
35496          test -z "$ac_c_werror_flag" ||
35497          test ! -s conftest.err
35498        } && test -s conftest$ac_exeext &&
35499        $as_test_x conftest$ac_exeext; then
35500   ac_cv_lib_iodbc_SQLAllocEnv=yes
35501 else
35502   echo "$as_me: failed program was:" >&5
35503 sed 's/^/| /' conftest.$ac_ext >&5
35504
35505         ac_cv_lib_iodbc_SQLAllocEnv=no
35506 fi
35507
35508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35509       conftest$ac_exeext conftest.$ac_ext
35510 LIBS=$ac_check_lib_save_LIBS
35511 fi
35512 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
35513 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
35514 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
35515   ODBC_LINK=" -liodbc"
35516 else
35517
35518                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
35519 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
35520 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
35521   echo $ECHO_N "(cached) $ECHO_C" >&6
35522 else
35523   ac_check_lib_save_LIBS=$LIBS
35524 LIBS="-lunixodbc  $LIBS"
35525 cat >conftest.$ac_ext <<_ACEOF
35526 /* confdefs.h.  */
35527 _ACEOF
35528 cat confdefs.h >>conftest.$ac_ext
35529 cat >>conftest.$ac_ext <<_ACEOF
35530 /* end confdefs.h.  */
35531
35532 /* Override any GCC internal prototype to avoid an error.
35533    Use char because int might match the return type of a GCC
35534    builtin and then its argument prototype would still apply.  */
35535 #ifdef __cplusplus
35536 extern "C"
35537 #endif
35538 char SQLAllocEnv ();
35539 int
35540 main ()
35541 {
35542 return SQLAllocEnv ();
35543   ;
35544   return 0;
35545 }
35546 _ACEOF
35547 rm -f conftest.$ac_objext conftest$ac_exeext
35548 if { (ac_try="$ac_link"
35549 case "(($ac_try" in
35550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35551   *) ac_try_echo=$ac_try;;
35552 esac
35553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35554   (eval "$ac_link") 2>conftest.er1
35555   ac_status=$?
35556   grep -v '^ *+' conftest.er1 >conftest.err
35557   rm -f conftest.er1
35558   cat conftest.err >&5
35559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35560   (exit $ac_status); } && {
35561          test -z "$ac_c_werror_flag" ||
35562          test ! -s conftest.err
35563        } && test -s conftest$ac_exeext &&
35564        $as_test_x conftest$ac_exeext; then
35565   ac_cv_lib_unixodbc_SQLAllocEnv=yes
35566 else
35567   echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.$ac_ext >&5
35569
35570         ac_cv_lib_unixodbc_SQLAllocEnv=no
35571 fi
35572
35573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35574       conftest$ac_exeext conftest.$ac_ext
35575 LIBS=$ac_check_lib_save_LIBS
35576 fi
35577 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
35578 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
35579 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
35580   ODBC_LINK=" -lunixodbc"
35581 else
35582
35583                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
35584 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
35585 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
35586   echo $ECHO_N "(cached) $ECHO_C" >&6
35587 else
35588   ac_check_lib_save_LIBS=$LIBS
35589 LIBS="-lodbc  $LIBS"
35590 cat >conftest.$ac_ext <<_ACEOF
35591 /* confdefs.h.  */
35592 _ACEOF
35593 cat confdefs.h >>conftest.$ac_ext
35594 cat >>conftest.$ac_ext <<_ACEOF
35595 /* end confdefs.h.  */
35596
35597 /* Override any GCC internal prototype to avoid an error.
35598    Use char because int might match the return type of a GCC
35599    builtin and then its argument prototype would still apply.  */
35600 #ifdef __cplusplus
35601 extern "C"
35602 #endif
35603 char SQLAllocEnv ();
35604 int
35605 main ()
35606 {
35607 return SQLAllocEnv ();
35608   ;
35609   return 0;
35610 }
35611 _ACEOF
35612 rm -f conftest.$ac_objext conftest$ac_exeext
35613 if { (ac_try="$ac_link"
35614 case "(($ac_try" in
35615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35616   *) ac_try_echo=$ac_try;;
35617 esac
35618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35619   (eval "$ac_link") 2>conftest.er1
35620   ac_status=$?
35621   grep -v '^ *+' conftest.er1 >conftest.err
35622   rm -f conftest.er1
35623   cat conftest.err >&5
35624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625   (exit $ac_status); } && {
35626          test -z "$ac_c_werror_flag" ||
35627          test ! -s conftest.err
35628        } && test -s conftest$ac_exeext &&
35629        $as_test_x conftest$ac_exeext; then
35630   ac_cv_lib_odbc_SQLAllocEnv=yes
35631 else
35632   echo "$as_me: failed program was:" >&5
35633 sed 's/^/| /' conftest.$ac_ext >&5
35634
35635         ac_cv_lib_odbc_SQLAllocEnv=no
35636 fi
35637
35638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35639       conftest$ac_exeext conftest.$ac_ext
35640 LIBS=$ac_check_lib_save_LIBS
35641 fi
35642 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
35643 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
35644 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
35645   ODBC_LINK=" -lodbc"
35646 fi
35647
35648
35649 fi
35650
35651
35652 fi
35653
35654         fi
35655         if test "x$ODBC_LINK" = "x" ; then
35656             if test "$wxUSE_ODBC" = "sys" ; then
35657                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
35658 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
35659    { (exit 1); exit 1; }; }
35660             else
35661                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
35662 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
35663                 wxUSE_ODBC=builtin
35664             fi
35665         else
35666                         wxUSE_ODBC=sys
35667         fi
35668     fi
35669
35670     if test "$wxUSE_ODBC" = "builtin" ; then
35671         cat >>confdefs.h <<\_ACEOF
35672 #define wxUSE_BUILTIN_IODBC 1
35673 _ACEOF
35674
35675     fi
35676 fi
35677
35678 if test "$wxUSE_ODBC" != "no" ; then
35679     cat >>confdefs.h <<\_ACEOF
35680 #define wxUSE_ODBC 1
35681 _ACEOF
35682
35683     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
35684
35685         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
35686 fi
35687
35688
35689 if test "$wxUSE_DISPLAY" = "yes"; then
35690     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35691         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35692 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35693
35694   ac_find_libraries=
35695   for ac_dir in $SEARCH_LIB;
35696   do
35697     for ac_extension in a so sl dylib dll.a; do
35698       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35699         ac_find_libraries=$ac_dir
35700         break 2
35701       fi
35702     done
35703   done
35704
35705         if test "$ac_find_libraries" != "" ; then
35706
35707     if test "$ac_find_libraries" = "default location"; then
35708     ac_path_to_link=""
35709   else
35710     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35711     result=$?
35712     if test $result = 0; then
35713       ac_path_to_link=""
35714     else
35715       ac_path_to_link=" -L$ac_find_libraries"
35716     fi
35717   fi
35718
35719             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35720                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35721             fi
35722             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35723             { echo "$as_me:$LINENO: result: yes" >&5
35724 echo "${ECHO_T}yes" >&6; }
35725
35726             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35727 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35728
35729   ac_find_libraries=
35730   for ac_dir in $SEARCH_LIB;
35731   do
35732     for ac_extension in a so sl dylib dll.a; do
35733       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35734         ac_find_libraries=$ac_dir
35735         break 2
35736       fi
35737     done
35738   done
35739
35740             if test "$ac_find_libraries" != "" ; then
35741                 { echo "$as_me:$LINENO: result: yes" >&5
35742 echo "${ECHO_T}yes" >&6; }
35743
35744 for ac_header in X11/extensions/xf86vmode.h
35745 do
35746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35750   echo $ECHO_N "(cached) $ECHO_C" >&6
35751 else
35752   cat >conftest.$ac_ext <<_ACEOF
35753 /* confdefs.h.  */
35754 _ACEOF
35755 cat confdefs.h >>conftest.$ac_ext
35756 cat >>conftest.$ac_ext <<_ACEOF
35757 /* end confdefs.h.  */
35758
35759                                       #if HAVE_X11_XLIB_H
35760                                         #include <X11/Xlib.h>
35761                                       #endif
35762
35763
35764 #include <$ac_header>
35765 _ACEOF
35766 rm -f conftest.$ac_objext
35767 if { (ac_try="$ac_compile"
35768 case "(($ac_try" in
35769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35770   *) ac_try_echo=$ac_try;;
35771 esac
35772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35773   (eval "$ac_compile") 2>conftest.er1
35774   ac_status=$?
35775   grep -v '^ *+' conftest.er1 >conftest.err
35776   rm -f conftest.er1
35777   cat conftest.err >&5
35778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779   (exit $ac_status); } && {
35780          test -z "$ac_c_werror_flag" ||
35781          test ! -s conftest.err
35782        } && test -s conftest.$ac_objext; then
35783   eval "$as_ac_Header=yes"
35784 else
35785   echo "$as_me: failed program was:" >&5
35786 sed 's/^/| /' conftest.$ac_ext >&5
35787
35788         eval "$as_ac_Header=no"
35789 fi
35790
35791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35792 fi
35793 ac_res=`eval echo '${'$as_ac_Header'}'`
35794                { echo "$as_me:$LINENO: result: $ac_res" >&5
35795 echo "${ECHO_T}$ac_res" >&6; }
35796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35797   cat >>confdefs.h <<_ACEOF
35798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35799 _ACEOF
35800
35801                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35802
35803 fi
35804
35805 done
35806
35807             else
35808                 { echo "$as_me:$LINENO: result: no" >&5
35809 echo "${ECHO_T}no" >&6; }
35810             fi
35811
35812         else
35813             { echo "$as_me:$LINENO: result: no" >&5
35814 echo "${ECHO_T}no" >&6; }
35815             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35816 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35817             wxUSE_DISPLAY="no"
35818         fi
35819     elif test "$wxUSE_MSW" = 1; then
35820         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35821 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35822 if test "${ac_cv_header_ddraw_h+set}" = set; then
35823   echo $ECHO_N "(cached) $ECHO_C" >&6
35824 else
35825   cat >conftest.$ac_ext <<_ACEOF
35826 /* confdefs.h.  */
35827 _ACEOF
35828 cat confdefs.h >>conftest.$ac_ext
35829 cat >>conftest.$ac_ext <<_ACEOF
35830 /* end confdefs.h.  */
35831 #include <windows.h>
35832
35833 #include <ddraw.h>
35834 _ACEOF
35835 rm -f conftest.$ac_objext
35836 if { (ac_try="$ac_compile"
35837 case "(($ac_try" in
35838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35839   *) ac_try_echo=$ac_try;;
35840 esac
35841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35842   (eval "$ac_compile") 2>conftest.er1
35843   ac_status=$?
35844   grep -v '^ *+' conftest.er1 >conftest.err
35845   rm -f conftest.er1
35846   cat conftest.err >&5
35847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35848   (exit $ac_status); } && {
35849          test -z "$ac_c_werror_flag" ||
35850          test ! -s conftest.err
35851        } && test -s conftest.$ac_objext; then
35852   ac_cv_header_ddraw_h=yes
35853 else
35854   echo "$as_me: failed program was:" >&5
35855 sed 's/^/| /' conftest.$ac_ext >&5
35856
35857         ac_cv_header_ddraw_h=no
35858 fi
35859
35860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35861 fi
35862 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35863 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35864
35865
35866     fi
35867 fi
35868
35869 if test "$wxUSE_DETECT_SM" = "yes"; then
35870     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35871         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35872 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35873
35874   ac_find_libraries=
35875   for ac_dir in $SEARCH_LIB;
35876   do
35877     for ac_extension in a so sl dylib dll.a; do
35878       if test -f "$ac_dir/libSM.$ac_extension"; then
35879         ac_find_libraries=$ac_dir
35880         break 2
35881       fi
35882     done
35883   done
35884
35885         if test "$ac_find_libraries" != "" ; then
35886
35887     if test "$ac_find_libraries" = "default location"; then
35888     ac_path_to_link=""
35889   else
35890     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35891     result=$?
35892     if test $result = 0; then
35893       ac_path_to_link=""
35894     else
35895       ac_path_to_link=" -L$ac_find_libraries"
35896     fi
35897   fi
35898
35899             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35900                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35901             fi
35902             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35903             { echo "$as_me:$LINENO: result: yes" >&5
35904 echo "${ECHO_T}yes" >&6; }
35905         else
35906             { echo "$as_me:$LINENO: result: no" >&5
35907 echo "${ECHO_T}no" >&6; }
35908             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35909 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35910             wxUSE_DETECT_SM="no"
35911         fi
35912     else
35913         wxUSE_DETECT_SM="no"
35914     fi
35915 fi
35916
35917
35918
35919 USE_OPENGL=0
35920 if test "$wxUSE_OPENGL" = "yes"; then
35921     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35922         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35923 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35924         wxUSE_OPENGL="no"
35925     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35926         OPENGL_LIBS="-framework OpenGL -framework AGL"
35927     elif test "$wxUSE_MSW" = 1; then
35928         OPENGL_LIBS="-lopengl32 -lglu32"
35929     else
35930                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35931 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35932
35933 ac_find_includes=
35934 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35935   do
35936     if test -f "$ac_dir/GL/gl.h"; then
35937       ac_find_includes=$ac_dir
35938       break
35939     fi
35940   done
35941
35942         if test "$ac_find_includes" != "" ; then
35943             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35944 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35945
35946     if test "x$ac_find_includes" = "x/usr/include"; then
35947     ac_path_to_include=""
35948   else
35949     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35950     result=$?
35951     if test $result = 0; then
35952       ac_path_to_include=""
35953     else
35954       ac_path_to_include=" -I$ac_find_includes"
35955     fi
35956   fi
35957
35958             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35959         else
35960             { echo "$as_me:$LINENO: result: not found" >&5
35961 echo "${ECHO_T}not found" >&6; }
35962         fi
35963
35964         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35965 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35966 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35967   echo $ECHO_N "(cached) $ECHO_C" >&6
35968 else
35969   cat >conftest.$ac_ext <<_ACEOF
35970 /* confdefs.h.  */
35971 _ACEOF
35972 cat confdefs.h >>conftest.$ac_ext
35973 cat >>conftest.$ac_ext <<_ACEOF
35974 /* end confdefs.h.  */
35975
35976
35977 #include <GL/gl.h>
35978 _ACEOF
35979 rm -f conftest.$ac_objext
35980 if { (ac_try="$ac_compile"
35981 case "(($ac_try" in
35982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35983   *) ac_try_echo=$ac_try;;
35984 esac
35985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35986   (eval "$ac_compile") 2>conftest.er1
35987   ac_status=$?
35988   grep -v '^ *+' conftest.er1 >conftest.err
35989   rm -f conftest.er1
35990   cat conftest.err >&5
35991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35992   (exit $ac_status); } && {
35993          test -z "$ac_c_werror_flag" ||
35994          test ! -s conftest.err
35995        } && test -s conftest.$ac_objext; then
35996   ac_cv_header_GL_gl_h=yes
35997 else
35998   echo "$as_me: failed program was:" >&5
35999 sed 's/^/| /' conftest.$ac_ext >&5
36000
36001         ac_cv_header_GL_gl_h=no
36002 fi
36003
36004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36005 fi
36006 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
36007 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
36008 if test $ac_cv_header_GL_gl_h = yes; then
36009
36010             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36011 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36012 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36013   echo $ECHO_N "(cached) $ECHO_C" >&6
36014 else
36015   cat >conftest.$ac_ext <<_ACEOF
36016 /* confdefs.h.  */
36017 _ACEOF
36018 cat confdefs.h >>conftest.$ac_ext
36019 cat >>conftest.$ac_ext <<_ACEOF
36020 /* end confdefs.h.  */
36021
36022
36023 #include <GL/glu.h>
36024 _ACEOF
36025 rm -f conftest.$ac_objext
36026 if { (ac_try="$ac_compile"
36027 case "(($ac_try" in
36028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36029   *) ac_try_echo=$ac_try;;
36030 esac
36031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36032   (eval "$ac_compile") 2>conftest.er1
36033   ac_status=$?
36034   grep -v '^ *+' conftest.er1 >conftest.err
36035   rm -f conftest.er1
36036   cat conftest.err >&5
36037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36038   (exit $ac_status); } && {
36039          test -z "$ac_c_werror_flag" ||
36040          test ! -s conftest.err
36041        } && test -s conftest.$ac_objext; then
36042   ac_cv_header_GL_glu_h=yes
36043 else
36044   echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36046
36047         ac_cv_header_GL_glu_h=no
36048 fi
36049
36050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36051 fi
36052 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36053 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36054 if test $ac_cv_header_GL_glu_h = yes; then
36055
36056                 found_gl=0
36057
36058                 { echo "$as_me:$LINENO: checking for -lGL" >&5
36059 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
36060
36061   ac_find_libraries=
36062   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
36063   do
36064     for ac_extension in a so sl dylib dll.a; do
36065       if test -f "$ac_dir/libGL.$ac_extension"; then
36066         ac_find_libraries=$ac_dir
36067         break 2
36068       fi
36069     done
36070   done
36071
36072                 if test "$ac_find_libraries" != "" ; then
36073                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
36074 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
36075
36076
36077     if test "$ac_find_libraries" = "default location"; then
36078     ac_path_to_link=""
36079   else
36080     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36081     result=$?
36082     if test $result = 0; then
36083       ac_path_to_link=""
36084     else
36085       ac_path_to_link=" -L$ac_find_libraries"
36086     fi
36087   fi
36088
36089                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
36090                         LDFLAGS_GL="$ac_path_to_link"
36091                     fi
36092
36093                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
36094 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
36095
36096   ac_find_libraries=
36097   for ac_dir in $SEARCH_LIB;
36098   do
36099     for ac_extension in a so sl dylib dll.a; do
36100       if test -f "$ac_dir/libGLU.$ac_extension"; then
36101         ac_find_libraries=$ac_dir
36102         break 2
36103       fi
36104     done
36105   done
36106
36107                     if test "$ac_find_libraries" != "" ; then
36108
36109     if test "$ac_find_libraries" = "default location"; then
36110     ac_path_to_link=""
36111   else
36112     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36113     result=$?
36114     if test $result = 0; then
36115       ac_path_to_link=""
36116     else
36117       ac_path_to_link=" -L$ac_find_libraries"
36118     fi
36119   fi
36120
36121                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
36122                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
36123                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36124                         fi
36125
36126                         found_gl=1
36127                         OPENGL_LIBS="-lGL -lGLU"
36128                         { echo "$as_me:$LINENO: result: yes" >&5
36129 echo "${ECHO_T}yes" >&6; }
36130                     else
36131                         { echo "$as_me:$LINENO: result: no" >&5
36132 echo "${ECHO_T}no" >&6; }
36133                     fi
36134                 else
36135                     { echo "$as_me:$LINENO: result: no" >&5
36136 echo "${ECHO_T}no" >&6; }
36137                 fi
36138
36139                 if test "$found_gl" != 1; then
36140                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
36141 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
36142
36143   ac_find_libraries=
36144   for ac_dir in $SEARCH_LIB;
36145   do
36146     for ac_extension in a so sl dylib dll.a; do
36147       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
36148         ac_find_libraries=$ac_dir
36149         break 2
36150       fi
36151     done
36152   done
36153
36154                     if test "$ac_find_libraries" != "" ; then
36155
36156     if test "$ac_find_libraries" = "default location"; then
36157     ac_path_to_link=""
36158   else
36159     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36160     result=$?
36161     if test $result = 0; then
36162       ac_path_to_link=""
36163     else
36164       ac_path_to_link=" -L$ac_find_libraries"
36165     fi
36166   fi
36167
36168                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
36169                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
36170                         { echo "$as_me:$LINENO: result: yes" >&5
36171 echo "${ECHO_T}yes" >&6; }
36172                     else
36173                         { echo "$as_me:$LINENO: result: no" >&5
36174 echo "${ECHO_T}no" >&6; }
36175                     fi
36176                 fi
36177
36178 fi
36179
36180
36181
36182 fi
36183
36184
36185
36186         if test "x$OPENGL_LIBS" = "x"; then
36187                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
36188 echo "$as_me: error: OpenGL libraries not available" >&2;}
36189    { (exit 1); exit 1; }; }
36190         fi
36191     fi
36192
36193     if test "$wxUSE_OPENGL" = "yes"; then
36194         USE_OPENGL=1
36195         cat >>confdefs.h <<\_ACEOF
36196 #define wxUSE_OPENGL 1
36197 _ACEOF
36198
36199         cat >>confdefs.h <<\_ACEOF
36200 #define wxUSE_GLCANVAS 1
36201 _ACEOF
36202
36203         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
36204     fi
36205 fi
36206
36207
36208 if test -n "$TOOLKIT" ; then
36209     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
36210 fi
36211
36212
36213
36214 if test "$wxUSE_SHARED" = "yes"; then
36215     case "${host}" in
36216       *-pc-msdosdjgpp )
36217                 wxUSE_SHARED=no
36218         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
36219 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
36220       ;;
36221     esac
36222 fi
36223
36224 if test "$wxUSE_SHARED" = "yes"; then
36225
36226
36227     case "${host}" in
36228         *-*-cygwin* | *-*-mingw* )
36229                                                                                                 wx_cv_version_script=no
36230             ;;
36231
36232         *)
36233             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
36234 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
36235 if test "${wx_cv_version_script+set}" = set; then
36236   echo $ECHO_N "(cached) $ECHO_C" >&6
36237 else
36238
36239                 echo "VER_1 { *; };" >conftest.sym
36240                 echo "int main() { return 0; }" >conftest.cpp
36241
36242                 if { ac_try='
36243                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36244                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
36245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246   (eval $ac_try) 2>&5
36247   ac_status=$?
36248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249   (exit $ac_status); }; } ; then
36250                   if test -s conftest.stderr ; then
36251                       wx_cv_version_script=no
36252                   else
36253                       wx_cv_version_script=yes
36254                   fi
36255                 else
36256                   wx_cv_version_script=no
36257                 fi
36258
36259                                                                                                                                                                                                 if test $wx_cv_version_script = yes
36260                 then
36261                   echo "struct B { virtual ~B() { } }; \
36262                         struct D : public B { }; \
36263                         void F() { D d; }" > conftest.cpp
36264
36265                   if { ac_try='
36266                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36267                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
36268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36269   (eval $ac_try) 2>&5
36270   ac_status=$?
36271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272   (exit $ac_status); }; } &&
36273                      { ac_try='
36274                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36275                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
36276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36277   (eval $ac_try) 2>&5
36278   ac_status=$?
36279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36280   (exit $ac_status); }; }
36281                   then
36282                     if { ac_try='
36283                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36284                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
36285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36286   (eval $ac_try) 2>&5
36287   ac_status=$?
36288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36289   (exit $ac_status); }; }
36290                     then
36291                       wx_cv_version_script=yes
36292                     else
36293                       wx_cv_version_script=no
36294                     fi
36295                   fi
36296                 fi
36297
36298                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
36299                 rm -f conftest1.output conftest2.output conftest3.output
36300
36301 fi
36302 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
36303 echo "${ECHO_T}$wx_cv_version_script" >&6; }
36304
36305             if test $wx_cv_version_script = yes ; then
36306                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
36307             fi
36308             ;;
36309     esac
36310
36311
36312             if test "$wxUSE_VISIBILITY" != "no"; then
36313
36314
36315   if test -n "$GCC"; then
36316     CFLAGS_VISIBILITY="-fvisibility=hidden"
36317     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
36318     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
36319 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
36320     if test "${wx_cv_cc_visibility+set}" = set; then
36321   echo $ECHO_N "(cached) $ECHO_C" >&6
36322 else
36323
36324       wx_save_CXXFLAGS="$CXXFLAGS"
36325       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36326       ac_ext=cpp
36327 ac_cpp='$CXXCPP $CPPFLAGS'
36328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36331
36332       cat >conftest.$ac_ext <<_ACEOF
36333 /* confdefs.h.  */
36334 _ACEOF
36335 cat confdefs.h >>conftest.$ac_ext
36336 cat >>conftest.$ac_ext <<_ACEOF
36337 /* end confdefs.h.  */
36338
36339          /* we need gcc >= 4.0, older versions with visibility support
36340             didn't have class visibility: */
36341          #if defined(__GNUC__) && __GNUC__ < 4
36342          error this gcc is too old;
36343          #endif
36344
36345          /* visibility only makes sense for ELF shared libs: */
36346          #if !defined(__ELF__) && !defined(__APPLE__)
36347          error this platform has no visibility;
36348          #endif
36349
36350          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
36351          extern __attribute__((__visibility__("default"))) int exportedvar;
36352          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
36353          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
36354          class __attribute__((__visibility__("default"))) Foo {
36355            Foo() {}
36356          };
36357
36358 int
36359 main ()
36360 {
36361
36362   ;
36363   return 0;
36364 }
36365 _ACEOF
36366 rm -f conftest.$ac_objext
36367 if { (ac_try="$ac_compile"
36368 case "(($ac_try" in
36369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36370   *) ac_try_echo=$ac_try;;
36371 esac
36372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36373   (eval "$ac_compile") 2>conftest.er1
36374   ac_status=$?
36375   grep -v '^ *+' conftest.er1 >conftest.err
36376   rm -f conftest.er1
36377   cat conftest.err >&5
36378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379   (exit $ac_status); } && {
36380          test -z "$ac_cxx_werror_flag" ||
36381          test ! -s conftest.err
36382        } && test -s conftest.$ac_objext; then
36383   wx_cv_cc_visibility=yes
36384 else
36385   echo "$as_me: failed program was:" >&5
36386 sed 's/^/| /' conftest.$ac_ext >&5
36387
36388         wx_cv_cc_visibility=no
36389 fi
36390
36391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36392       ac_ext=c
36393 ac_cpp='$CPP $CPPFLAGS'
36394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36397
36398       CXXFLAGS="$wx_save_CXXFLAGS"
36399 fi
36400
36401     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
36402 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
36403     if test $wx_cv_cc_visibility = yes; then
36404                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
36405 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
36406       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
36407   echo $ECHO_N "(cached) $ECHO_C" >&6
36408 else
36409
36410         wx_save_CXXFLAGS="$CXXFLAGS"
36411         wx_save_LDFLAGS="$LDFLAGS"
36412         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36413         LDFLAGS="$LDFLAGS -shared -fPIC"
36414         ac_ext=cpp
36415 ac_cpp='$CXXCPP $CPPFLAGS'
36416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36419
36420         cat >conftest.$ac_ext <<_ACEOF
36421 /* confdefs.h.  */
36422 _ACEOF
36423 cat confdefs.h >>conftest.$ac_ext
36424 cat >>conftest.$ac_ext <<_ACEOF
36425 /* end confdefs.h.  */
36426
36427             #include <string>
36428
36429 int
36430 main ()
36431 {
36432
36433             std::string s("hello");
36434             return s.length();
36435
36436   ;
36437   return 0;
36438 }
36439 _ACEOF
36440 rm -f conftest.$ac_objext conftest$ac_exeext
36441 if { (ac_try="$ac_link"
36442 case "(($ac_try" in
36443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36444   *) ac_try_echo=$ac_try;;
36445 esac
36446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36447   (eval "$ac_link") 2>conftest.er1
36448   ac_status=$?
36449   grep -v '^ *+' conftest.er1 >conftest.err
36450   rm -f conftest.er1
36451   cat conftest.err >&5
36452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453   (exit $ac_status); } && {
36454          test -z "$ac_cxx_werror_flag" ||
36455          test ! -s conftest.err
36456        } && test -s conftest$ac_exeext &&
36457        $as_test_x conftest$ac_exeext; then
36458   wx_cv_cc_broken_libstdcxx_visibility=no
36459 else
36460   echo "$as_me: failed program was:" >&5
36461 sed 's/^/| /' conftest.$ac_ext >&5
36462
36463         wx_cv_cc_broken_libstdcxx_visibility=yes
36464 fi
36465
36466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36467       conftest$ac_exeext conftest.$ac_ext
36468         ac_ext=c
36469 ac_cpp='$CPP $CPPFLAGS'
36470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36473
36474         CXXFLAGS="$wx_save_CXXFLAGS"
36475         LDFLAGS="$wx_save_LDFLAGS"
36476 fi
36477
36478       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
36479 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
36480
36481       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36482         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
36483 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
36484         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
36485   echo $ECHO_N "(cached) $ECHO_C" >&6
36486 else
36487
36488           ac_ext=cpp
36489 ac_cpp='$CXXCPP $CPPFLAGS'
36490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36493
36494           cat >conftest.$ac_ext <<_ACEOF
36495 /* confdefs.h.  */
36496 _ACEOF
36497 cat confdefs.h >>conftest.$ac_ext
36498 cat >>conftest.$ac_ext <<_ACEOF
36499 /* end confdefs.h.  */
36500
36501               #pragma GCC visibility push(default)
36502               #include <string>
36503               #pragma GCC visibility pop
36504
36505 int
36506 main ()
36507 {
36508
36509               std::string s("hello");
36510               return s.length();
36511
36512   ;
36513   return 0;
36514 }
36515 _ACEOF
36516 rm -f conftest.$ac_objext conftest$ac_exeext
36517 if { (ac_try="$ac_link"
36518 case "(($ac_try" in
36519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36520   *) ac_try_echo=$ac_try;;
36521 esac
36522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36523   (eval "$ac_link") 2>conftest.er1
36524   ac_status=$?
36525   grep -v '^ *+' conftest.er1 >conftest.err
36526   rm -f conftest.er1
36527   cat conftest.err >&5
36528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529   (exit $ac_status); } && {
36530          test -z "$ac_cxx_werror_flag" ||
36531          test ! -s conftest.err
36532        } && test -s conftest$ac_exeext &&
36533        $as_test_x conftest$ac_exeext; then
36534   wx_cv_cc_visibility_workaround=no
36535 else
36536   echo "$as_me: failed program was:" >&5
36537 sed 's/^/| /' conftest.$ac_ext >&5
36538
36539         wx_cv_cc_visibility_workaround=yes
36540 fi
36541
36542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36543       conftest$ac_exeext conftest.$ac_ext
36544           ac_ext=c
36545 ac_cpp='$CPP $CPPFLAGS'
36546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36549
36550
36551 fi
36552
36553         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
36554 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
36555
36556         if test $wx_cv_cc_visibility_workaround = no; then
36557                     wx_cv_cc_visibility=no
36558         fi
36559       fi
36560     fi
36561
36562     if test $wx_cv_cc_visibility = yes; then
36563       cat >>confdefs.h <<\_ACEOF
36564 #define HAVE_VISIBILITY 1
36565 _ACEOF
36566
36567       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36568         cat >>confdefs.h <<\_ACEOF
36569 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
36570 _ACEOF
36571
36572       fi
36573     else
36574       CFLAGS_VISIBILITY=""
36575       CXXFLAGS_VISIBILITY=""
36576     fi
36577
36578
36579   fi
36580
36581     fi
36582
36583         if test "x$SUNCXX" = xyes; then
36584         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36585         WXCONFIG_RPATH="-R\$libdir"
36586     else
36587     case "${host}" in
36588       *-*-linux* | *-*-gnu* )
36589         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36590         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36591         ;;
36592
36593       *-*-solaris2* )
36594
36595                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36596
36597                         saveLdflags="$LDFLAGS"
36598         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36599         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36600 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36601         cat >conftest.$ac_ext <<_ACEOF
36602 /* confdefs.h.  */
36603 _ACEOF
36604 cat confdefs.h >>conftest.$ac_ext
36605 cat >>conftest.$ac_ext <<_ACEOF
36606 /* end confdefs.h.  */
36607
36608 int
36609 main ()
36610 {
36611
36612   ;
36613   return 0;
36614 }
36615 _ACEOF
36616 rm -f conftest.$ac_objext conftest$ac_exeext
36617 if { (ac_try="$ac_link"
36618 case "(($ac_try" in
36619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36620   *) ac_try_echo=$ac_try;;
36621 esac
36622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36623   (eval "$ac_link") 2>conftest.er1
36624   ac_status=$?
36625   grep -v '^ *+' conftest.er1 >conftest.err
36626   rm -f conftest.er1
36627   cat conftest.err >&5
36628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629   (exit $ac_status); } && {
36630          test -z "$ac_c_werror_flag" ||
36631          test ! -s conftest.err
36632        } && test -s conftest$ac_exeext &&
36633        $as_test_x conftest$ac_exeext; then
36634
36635                 { echo "$as_me:$LINENO: result: yes" >&5
36636 echo "${ECHO_T}yes" >&6; }
36637                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36638                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36639
36640 else
36641   echo "$as_me: failed program was:" >&5
36642 sed 's/^/| /' conftest.$ac_ext >&5
36643
36644
36645                 { echo "$as_me:$LINENO: result: no" >&5
36646 echo "${ECHO_T}no" >&6; }
36647                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36648 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
36649                 LDFLAGS="$saveLdflags -Wl,-R,/"
36650                 cat >conftest.$ac_ext <<_ACEOF
36651 /* confdefs.h.  */
36652 _ACEOF
36653 cat confdefs.h >>conftest.$ac_ext
36654 cat >>conftest.$ac_ext <<_ACEOF
36655 /* end confdefs.h.  */
36656
36657 int
36658 main ()
36659 {
36660
36661   ;
36662   return 0;
36663 }
36664 _ACEOF
36665 rm -f conftest.$ac_objext conftest$ac_exeext
36666 if { (ac_try="$ac_link"
36667 case "(($ac_try" in
36668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36669   *) ac_try_echo=$ac_try;;
36670 esac
36671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36672   (eval "$ac_link") 2>conftest.er1
36673   ac_status=$?
36674   grep -v '^ *+' conftest.er1 >conftest.err
36675   rm -f conftest.er1
36676   cat conftest.err >&5
36677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678   (exit $ac_status); } && {
36679          test -z "$ac_c_werror_flag" ||
36680          test ! -s conftest.err
36681        } && test -s conftest$ac_exeext &&
36682        $as_test_x conftest$ac_exeext; then
36683
36684                         { echo "$as_me:$LINENO: result: yes" >&5
36685 echo "${ECHO_T}yes" >&6; }
36686                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36687                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36688
36689 else
36690   echo "$as_me: failed program was:" >&5
36691 sed 's/^/| /' conftest.$ac_ext >&5
36692
36693
36694                         { echo "$as_me:$LINENO: result: no" >&5
36695 echo "${ECHO_T}no" >&6; }
36696
36697 fi
36698
36699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36700       conftest$ac_exeext conftest.$ac_ext
36701
36702 fi
36703
36704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36705       conftest$ac_exeext conftest.$ac_ext
36706         LDFLAGS="$saveLdflags"
36707       ;;
36708
36709       *-*-darwin* )
36710         install_name_tool=`which install_name_tool`
36711         if test "$install_name_tool" -a -x "$install_name_tool"; then
36712             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36713             cat <<EOF >change-install-names
36714 #!/bin/sh
36715 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36716 inst_cmd="install_name_tool "
36717 for i in \${libnames} ; do
36718     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36719 done
36720 \${inst_cmd} \${3}
36721 EOF
36722             chmod +x change-install-names
36723         fi
36724       ;;
36725
36726       *-*-cygwin* | *-*-mingw32* )
36727         ;;
36728
36729       *-*-hpux* )
36730         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36731         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36732         ;;
36733
36734     esac
36735     fi
36736
36737             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36738
36739     if test $wxUSE_RPATH = "no"; then
36740         SAMPLES_RPATH_FLAG=''
36741         SAMPLES_RPATH_POSTLINK=''
36742         WXCONFIG_RPATH=''
36743     fi
36744
36745     SHARED=1
36746
36747 else
36748
36749     config_linkage_component="-static"
36750     SHARED=0
36751
36752 fi
36753
36754
36755 UNICODE=0
36756 lib_unicode_suffix=
36757 WX_CHARTYPE="ansi"
36758 if test "$wxUSE_UNICODE" = "yes"; then
36759     lib_unicode_suffix=u
36760     WX_CHARTYPE="unicode"
36761     UNICODE=1
36762 fi
36763
36764 lib_debug_suffix=
36765 WX_DEBUGTYPE="release"
36766 DEBUG_FLAG=0
36767 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36768     lib_debug_suffix=d
36769     WX_DEBUGTYPE="debug"
36770     DEBUG_FLAG=1
36771 fi
36772
36773 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36774 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36775
36776 DEBUG_INFO=0
36777 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36778     DEBUG_INFO=1
36779 fi
36780
36781 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
36782
36783 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36784
36785 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36786
36787 if test "$cross_compiling" = "yes"; then
36788     HOST_SUFFIX="-$host_alias"
36789     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36790     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36791 fi
36792
36793 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36794 if test "${TOOLKIT_DIR}" = "os2"; then
36795     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36796 else
36797     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36798 fi
36799
36800
36801
36802 if test "$wxUSE_COCOA" = 1; then
36803
36804     ac_ext=c
36805 ac_cpp='$CPP $CPPFLAGS'
36806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36809
36810 ac_ext=m
36811
36812     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36813 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36814     cat >conftest.$ac_ext <<_ACEOF
36815 /* confdefs.h.  */
36816 _ACEOF
36817 cat confdefs.h >>conftest.$ac_ext
36818 cat >>conftest.$ac_ext <<_ACEOF
36819 /* end confdefs.h.  */
36820 #include <AppKit/NSEvent.h>
36821 #include <CoreFoundation/CoreFoundation.h>
36822
36823 int
36824 main ()
36825 {
36826
36827   ;
36828   return 0;
36829 }
36830 _ACEOF
36831 rm -f conftest.$ac_objext
36832 if { (ac_try="$ac_compile"
36833 case "(($ac_try" in
36834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36835   *) ac_try_echo=$ac_try;;
36836 esac
36837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36838   (eval "$ac_compile") 2>conftest.er1
36839   ac_status=$?
36840   grep -v '^ *+' conftest.er1 >conftest.err
36841   rm -f conftest.er1
36842   cat conftest.err >&5
36843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36844   (exit $ac_status); } && {
36845          test -z "$ac_c_werror_flag" ||
36846          test ! -s conftest.err
36847        } && test -s conftest.$ac_objext; then
36848   { echo "$as_me:$LINENO: result: no" >&5
36849 echo "${ECHO_T}no" >&6; }
36850 else
36851   echo "$as_me: failed program was:" >&5
36852 sed 's/^/| /' conftest.$ac_ext >&5
36853
36854         { echo "$as_me:$LINENO: result: yes" >&5
36855 echo "${ECHO_T}yes" >&6; }
36856         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36857 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36858         cat >conftest.$ac_ext <<_ACEOF
36859 /* confdefs.h.  */
36860 _ACEOF
36861 cat confdefs.h >>conftest.$ac_ext
36862 cat >>conftest.$ac_ext <<_ACEOF
36863 /* end confdefs.h.  */
36864 #define __Point__ 1
36865 #include <AppKit/NSEvent.h>
36866 #include <CoreFoundation/CoreFoundation.h>
36867
36868 int
36869 main ()
36870 {
36871
36872   ;
36873   return 0;
36874 }
36875 _ACEOF
36876 rm -f conftest.$ac_objext
36877 if { (ac_try="$ac_compile"
36878 case "(($ac_try" in
36879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36880   *) ac_try_echo=$ac_try;;
36881 esac
36882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36883   (eval "$ac_compile") 2>conftest.er1
36884   ac_status=$?
36885   grep -v '^ *+' conftest.er1 >conftest.err
36886   rm -f conftest.er1
36887   cat conftest.err >&5
36888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36889   (exit $ac_status); } && {
36890          test -z "$ac_c_werror_flag" ||
36891          test ! -s conftest.err
36892        } && test -s conftest.$ac_objext; then
36893   { echo "$as_me:$LINENO: result: yes" >&5
36894 echo "${ECHO_T}yes" >&6; }
36895             cat >>confdefs.h <<\_ACEOF
36896 #define __Point__ 1
36897 _ACEOF
36898
36899
36900 else
36901   echo "$as_me: failed program was:" >&5
36902 sed 's/^/| /' conftest.$ac_ext >&5
36903
36904         { { echo "$as_me:$LINENO: error: no
36905 See \`config.log' for more details." >&5
36906 echo "$as_me: error: no
36907 See \`config.log' for more details." >&2;}
36908    { (exit 1); exit 1; }; }
36909
36910 fi
36911
36912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36913
36914 fi
36915
36916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36917     ac_ext=c
36918 ac_cpp='$CPP $CPPFLAGS'
36919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36922
36923 fi
36924
36925
36926 { echo "$as_me:$LINENO: checking for mode_t" >&5
36927 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36928 if test "${ac_cv_type_mode_t+set}" = set; then
36929   echo $ECHO_N "(cached) $ECHO_C" >&6
36930 else
36931   cat >conftest.$ac_ext <<_ACEOF
36932 /* confdefs.h.  */
36933 _ACEOF
36934 cat confdefs.h >>conftest.$ac_ext
36935 cat >>conftest.$ac_ext <<_ACEOF
36936 /* end confdefs.h.  */
36937 $ac_includes_default
36938 typedef mode_t ac__type_new_;
36939 int
36940 main ()
36941 {
36942 if ((ac__type_new_ *) 0)
36943   return 0;
36944 if (sizeof (ac__type_new_))
36945   return 0;
36946   ;
36947   return 0;
36948 }
36949 _ACEOF
36950 rm -f conftest.$ac_objext
36951 if { (ac_try="$ac_compile"
36952 case "(($ac_try" in
36953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36954   *) ac_try_echo=$ac_try;;
36955 esac
36956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36957   (eval "$ac_compile") 2>conftest.er1
36958   ac_status=$?
36959   grep -v '^ *+' conftest.er1 >conftest.err
36960   rm -f conftest.er1
36961   cat conftest.err >&5
36962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36963   (exit $ac_status); } && {
36964          test -z "$ac_c_werror_flag" ||
36965          test ! -s conftest.err
36966        } && test -s conftest.$ac_objext; then
36967   ac_cv_type_mode_t=yes
36968 else
36969   echo "$as_me: failed program was:" >&5
36970 sed 's/^/| /' conftest.$ac_ext >&5
36971
36972         ac_cv_type_mode_t=no
36973 fi
36974
36975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36976 fi
36977 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36978 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36979 if test $ac_cv_type_mode_t = yes; then
36980   :
36981 else
36982
36983 cat >>confdefs.h <<_ACEOF
36984 #define mode_t int
36985 _ACEOF
36986
36987 fi
36988
36989 { echo "$as_me:$LINENO: checking for off_t" >&5
36990 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36991 if test "${ac_cv_type_off_t+set}" = set; then
36992   echo $ECHO_N "(cached) $ECHO_C" >&6
36993 else
36994   cat >conftest.$ac_ext <<_ACEOF
36995 /* confdefs.h.  */
36996 _ACEOF
36997 cat confdefs.h >>conftest.$ac_ext
36998 cat >>conftest.$ac_ext <<_ACEOF
36999 /* end confdefs.h.  */
37000 $ac_includes_default
37001 typedef off_t ac__type_new_;
37002 int
37003 main ()
37004 {
37005 if ((ac__type_new_ *) 0)
37006   return 0;
37007 if (sizeof (ac__type_new_))
37008   return 0;
37009   ;
37010   return 0;
37011 }
37012 _ACEOF
37013 rm -f conftest.$ac_objext
37014 if { (ac_try="$ac_compile"
37015 case "(($ac_try" in
37016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37017   *) ac_try_echo=$ac_try;;
37018 esac
37019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37020   (eval "$ac_compile") 2>conftest.er1
37021   ac_status=$?
37022   grep -v '^ *+' conftest.er1 >conftest.err
37023   rm -f conftest.er1
37024   cat conftest.err >&5
37025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026   (exit $ac_status); } && {
37027          test -z "$ac_c_werror_flag" ||
37028          test ! -s conftest.err
37029        } && test -s conftest.$ac_objext; then
37030   ac_cv_type_off_t=yes
37031 else
37032   echo "$as_me: failed program was:" >&5
37033 sed 's/^/| /' conftest.$ac_ext >&5
37034
37035         ac_cv_type_off_t=no
37036 fi
37037
37038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37039 fi
37040 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37041 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
37042 if test $ac_cv_type_off_t = yes; then
37043   :
37044 else
37045
37046 cat >>confdefs.h <<_ACEOF
37047 #define off_t long int
37048 _ACEOF
37049
37050 fi
37051
37052 { echo "$as_me:$LINENO: checking for pid_t" >&5
37053 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
37054 if test "${ac_cv_type_pid_t+set}" = set; then
37055   echo $ECHO_N "(cached) $ECHO_C" >&6
37056 else
37057   cat >conftest.$ac_ext <<_ACEOF
37058 /* confdefs.h.  */
37059 _ACEOF
37060 cat confdefs.h >>conftest.$ac_ext
37061 cat >>conftest.$ac_ext <<_ACEOF
37062 /* end confdefs.h.  */
37063 $ac_includes_default
37064 typedef pid_t ac__type_new_;
37065 int
37066 main ()
37067 {
37068 if ((ac__type_new_ *) 0)
37069   return 0;
37070 if (sizeof (ac__type_new_))
37071   return 0;
37072   ;
37073   return 0;
37074 }
37075 _ACEOF
37076 rm -f conftest.$ac_objext
37077 if { (ac_try="$ac_compile"
37078 case "(($ac_try" in
37079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37080   *) ac_try_echo=$ac_try;;
37081 esac
37082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37083   (eval "$ac_compile") 2>conftest.er1
37084   ac_status=$?
37085   grep -v '^ *+' conftest.er1 >conftest.err
37086   rm -f conftest.er1
37087   cat conftest.err >&5
37088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089   (exit $ac_status); } && {
37090          test -z "$ac_c_werror_flag" ||
37091          test ! -s conftest.err
37092        } && test -s conftest.$ac_objext; then
37093   ac_cv_type_pid_t=yes
37094 else
37095   echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37097
37098         ac_cv_type_pid_t=no
37099 fi
37100
37101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37102 fi
37103 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37104 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
37105 if test $ac_cv_type_pid_t = yes; then
37106   :
37107 else
37108
37109 cat >>confdefs.h <<_ACEOF
37110 #define pid_t int
37111 _ACEOF
37112
37113 fi
37114
37115 { echo "$as_me:$LINENO: checking for size_t" >&5
37116 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
37117 if test "${ac_cv_type_size_t+set}" = set; then
37118   echo $ECHO_N "(cached) $ECHO_C" >&6
37119 else
37120   cat >conftest.$ac_ext <<_ACEOF
37121 /* confdefs.h.  */
37122 _ACEOF
37123 cat confdefs.h >>conftest.$ac_ext
37124 cat >>conftest.$ac_ext <<_ACEOF
37125 /* end confdefs.h.  */
37126 $ac_includes_default
37127 typedef size_t ac__type_new_;
37128 int
37129 main ()
37130 {
37131 if ((ac__type_new_ *) 0)
37132   return 0;
37133 if (sizeof (ac__type_new_))
37134   return 0;
37135   ;
37136   return 0;
37137 }
37138 _ACEOF
37139 rm -f conftest.$ac_objext
37140 if { (ac_try="$ac_compile"
37141 case "(($ac_try" in
37142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37143   *) ac_try_echo=$ac_try;;
37144 esac
37145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37146   (eval "$ac_compile") 2>conftest.er1
37147   ac_status=$?
37148   grep -v '^ *+' conftest.er1 >conftest.err
37149   rm -f conftest.er1
37150   cat conftest.err >&5
37151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152   (exit $ac_status); } && {
37153          test -z "$ac_c_werror_flag" ||
37154          test ! -s conftest.err
37155        } && test -s conftest.$ac_objext; then
37156   ac_cv_type_size_t=yes
37157 else
37158   echo "$as_me: failed program was:" >&5
37159 sed 's/^/| /' conftest.$ac_ext >&5
37160
37161         ac_cv_type_size_t=no
37162 fi
37163
37164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37165 fi
37166 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37167 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
37168 if test $ac_cv_type_size_t = yes; then
37169   :
37170 else
37171
37172 cat >>confdefs.h <<_ACEOF
37173 #define size_t unsigned int
37174 _ACEOF
37175
37176 fi
37177
37178 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37179 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
37180 if test "${ac_cv_type_uid_t+set}" = set; then
37181   echo $ECHO_N "(cached) $ECHO_C" >&6
37182 else
37183   cat >conftest.$ac_ext <<_ACEOF
37184 /* confdefs.h.  */
37185 _ACEOF
37186 cat confdefs.h >>conftest.$ac_ext
37187 cat >>conftest.$ac_ext <<_ACEOF
37188 /* end confdefs.h.  */
37189 #include <sys/types.h>
37190
37191 _ACEOF
37192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37193   $EGREP "uid_t" >/dev/null 2>&1; then
37194   ac_cv_type_uid_t=yes
37195 else
37196   ac_cv_type_uid_t=no
37197 fi
37198 rm -f conftest*
37199
37200 fi
37201 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37202 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
37203 if test $ac_cv_type_uid_t = no; then
37204
37205 cat >>confdefs.h <<\_ACEOF
37206 #define uid_t int
37207 _ACEOF
37208
37209
37210 cat >>confdefs.h <<\_ACEOF
37211 #define gid_t int
37212 _ACEOF
37213
37214 fi
37215
37216
37217 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37218 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37219 if test "${ac_cv_type_ssize_t+set}" = set; then
37220   echo $ECHO_N "(cached) $ECHO_C" >&6
37221 else
37222   cat >conftest.$ac_ext <<_ACEOF
37223 /* confdefs.h.  */
37224 _ACEOF
37225 cat confdefs.h >>conftest.$ac_ext
37226 cat >>conftest.$ac_ext <<_ACEOF
37227 /* end confdefs.h.  */
37228 $ac_includes_default
37229 typedef ssize_t ac__type_new_;
37230 int
37231 main ()
37232 {
37233 if ((ac__type_new_ *) 0)
37234   return 0;
37235 if (sizeof (ac__type_new_))
37236   return 0;
37237   ;
37238   return 0;
37239 }
37240 _ACEOF
37241 rm -f conftest.$ac_objext
37242 if { (ac_try="$ac_compile"
37243 case "(($ac_try" in
37244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37245   *) ac_try_echo=$ac_try;;
37246 esac
37247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37248   (eval "$ac_compile") 2>conftest.er1
37249   ac_status=$?
37250   grep -v '^ *+' conftest.er1 >conftest.err
37251   rm -f conftest.er1
37252   cat conftest.err >&5
37253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254   (exit $ac_status); } && {
37255          test -z "$ac_c_werror_flag" ||
37256          test ! -s conftest.err
37257        } && test -s conftest.$ac_objext; then
37258   ac_cv_type_ssize_t=yes
37259 else
37260   echo "$as_me: failed program was:" >&5
37261 sed 's/^/| /' conftest.$ac_ext >&5
37262
37263         ac_cv_type_ssize_t=no
37264 fi
37265
37266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37267 fi
37268 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37269 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37270 if test $ac_cv_type_ssize_t = yes; then
37271
37272 cat >>confdefs.h <<_ACEOF
37273 #define HAVE_SSIZE_T 1
37274 _ACEOF
37275
37276
37277 fi
37278
37279
37280 ac_ext=cpp
37281 ac_cpp='$CXXCPP $CPPFLAGS'
37282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37285  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
37286 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
37287 if test "${wx_cv_size_t_is_uint+set}" = set; then
37288   echo $ECHO_N "(cached) $ECHO_C" >&6
37289 else
37290
37291                             cat >conftest.$ac_ext <<_ACEOF
37292 /* confdefs.h.  */
37293 _ACEOF
37294 cat confdefs.h >>conftest.$ac_ext
37295 cat >>conftest.$ac_ext <<_ACEOF
37296 /* end confdefs.h.  */
37297 #include <stddef.h>
37298 int
37299 main ()
37300 {
37301
37302             return 0; }
37303
37304             struct Foo { void foo(size_t); void foo(unsigned int); };
37305
37306             int bar() {
37307
37308   ;
37309   return 0;
37310 }
37311 _ACEOF
37312 rm -f conftest.$ac_objext
37313 if { (ac_try="$ac_compile"
37314 case "(($ac_try" in
37315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37316   *) ac_try_echo=$ac_try;;
37317 esac
37318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37319   (eval "$ac_compile") 2>conftest.er1
37320   ac_status=$?
37321   grep -v '^ *+' conftest.er1 >conftest.err
37322   rm -f conftest.er1
37323   cat conftest.err >&5
37324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37325   (exit $ac_status); } && {
37326          test -z "$ac_cxx_werror_flag" ||
37327          test ! -s conftest.err
37328        } && test -s conftest.$ac_objext; then
37329   wx_cv_size_t_is_uint=no
37330 else
37331   echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37333
37334         wx_cv_size_t_is_uint=yes
37335
37336 fi
37337
37338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37339
37340
37341 fi
37342 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
37343 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
37344
37345 if test "$wx_cv_size_t_is_uint" = "yes"; then
37346     cat >>confdefs.h <<\_ACEOF
37347 #define wxSIZE_T_IS_UINT 1
37348 _ACEOF
37349
37350 else
37351     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
37352 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
37353 if test "${wx_cv_size_t_is_ulong+set}" = set; then
37354   echo $ECHO_N "(cached) $ECHO_C" >&6
37355 else
37356   cat >conftest.$ac_ext <<_ACEOF
37357 /* confdefs.h.  */
37358 _ACEOF
37359 cat confdefs.h >>conftest.$ac_ext
37360 cat >>conftest.$ac_ext <<_ACEOF
37361 /* end confdefs.h.  */
37362 #include <stddef.h>
37363 int
37364 main ()
37365 {
37366
37367                 return 0; }
37368
37369                 struct Foo { void foo(size_t); void foo(unsigned long); };
37370
37371                 int bar() {
37372
37373   ;
37374   return 0;
37375 }
37376 _ACEOF
37377 rm -f conftest.$ac_objext
37378 if { (ac_try="$ac_compile"
37379 case "(($ac_try" in
37380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37381   *) ac_try_echo=$ac_try;;
37382 esac
37383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37384   (eval "$ac_compile") 2>conftest.er1
37385   ac_status=$?
37386   grep -v '^ *+' conftest.er1 >conftest.err
37387   rm -f conftest.er1
37388   cat conftest.err >&5
37389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390   (exit $ac_status); } && {
37391          test -z "$ac_cxx_werror_flag" ||
37392          test ! -s conftest.err
37393        } && test -s conftest.$ac_objext; then
37394   wx_cv_size_t_is_ulong=no
37395 else
37396   echo "$as_me: failed program was:" >&5
37397 sed 's/^/| /' conftest.$ac_ext >&5
37398
37399         wx_cv_size_t_is_ulong=yes
37400
37401 fi
37402
37403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37404
37405 fi
37406 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
37407 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
37408
37409     if test "$wx_cv_size_t_is_ulong" = "yes"; then
37410         cat >>confdefs.h <<\_ACEOF
37411 #define wxSIZE_T_IS_ULONG 1
37412 _ACEOF
37413
37414     fi
37415 fi
37416
37417 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
37418 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
37419 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
37420   echo $ECHO_N "(cached) $ECHO_C" >&6
37421 else
37422   cat >conftest.$ac_ext <<_ACEOF
37423 /* confdefs.h.  */
37424 _ACEOF
37425 cat confdefs.h >>conftest.$ac_ext
37426 cat >>conftest.$ac_ext <<_ACEOF
37427 /* end confdefs.h.  */
37428 #include <wchar.h>
37429 int
37430 main ()
37431 {
37432
37433             return 0; }
37434
37435             struct Foo { void foo(wchar_t);
37436                          void foo(unsigned short);
37437                          void foo(unsigned int);
37438                          void foo(unsigned long); };
37439
37440             int bar() {
37441
37442   ;
37443   return 0;
37444 }
37445 _ACEOF
37446 rm -f conftest.$ac_objext
37447 if { (ac_try="$ac_compile"
37448 case "(($ac_try" in
37449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37450   *) ac_try_echo=$ac_try;;
37451 esac
37452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37453   (eval "$ac_compile") 2>conftest.er1
37454   ac_status=$?
37455   grep -v '^ *+' conftest.er1 >conftest.err
37456   rm -f conftest.er1
37457   cat conftest.err >&5
37458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459   (exit $ac_status); } && {
37460          test -z "$ac_cxx_werror_flag" ||
37461          test ! -s conftest.err
37462        } && test -s conftest.$ac_objext; then
37463   wx_cv_wchar_t_is_separate_type=yes
37464 else
37465   echo "$as_me: failed program was:" >&5
37466 sed 's/^/| /' conftest.$ac_ext >&5
37467
37468         wx_cv_wchar_t_is_separate_type=no
37469
37470 fi
37471
37472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37473
37474 fi
37475 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37476 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
37477
37478 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37479     cat >>confdefs.h <<\_ACEOF
37480 #define wxWCHAR_T_IS_REAL_TYPE 1
37481 _ACEOF
37482
37483 else
37484     cat >>confdefs.h <<\_ACEOF
37485 #define wxWCHAR_T_IS_REAL_TYPE 0
37486 _ACEOF
37487
37488 fi
37489
37490 ac_ext=c
37491 ac_cpp='$CPP $CPPFLAGS'
37492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37495
37496
37497 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37498 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
37499 if test "${wx_cv_struct_pw_gecos+set}" = set; then
37500   echo $ECHO_N "(cached) $ECHO_C" >&6
37501 else
37502
37503         cat >conftest.$ac_ext <<_ACEOF
37504 /* confdefs.h.  */
37505 _ACEOF
37506 cat confdefs.h >>conftest.$ac_ext
37507 cat >>conftest.$ac_ext <<_ACEOF
37508 /* end confdefs.h.  */
37509 #include <pwd.h>
37510 int
37511 main ()
37512 {
37513
37514                 char *p;
37515                 struct passwd *pw;
37516                 p = pw->pw_gecos;
37517
37518   ;
37519   return 0;
37520 }
37521 _ACEOF
37522 rm -f conftest.$ac_objext
37523 if { (ac_try="$ac_compile"
37524 case "(($ac_try" in
37525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37526   *) ac_try_echo=$ac_try;;
37527 esac
37528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37529   (eval "$ac_compile") 2>conftest.er1
37530   ac_status=$?
37531   grep -v '^ *+' conftest.er1 >conftest.err
37532   rm -f conftest.er1
37533   cat conftest.err >&5
37534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535   (exit $ac_status); } && {
37536          test -z "$ac_c_werror_flag" ||
37537          test ! -s conftest.err
37538        } && test -s conftest.$ac_objext; then
37539
37540                 wx_cv_struct_pw_gecos=yes
37541
37542 else
37543   echo "$as_me: failed program was:" >&5
37544 sed 's/^/| /' conftest.$ac_ext >&5
37545
37546
37547                 wx_cv_struct_pw_gecos=no
37548
37549
37550 fi
37551
37552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37553
37554
37555 fi
37556 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37557 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37558
37559 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37560     cat >>confdefs.h <<\_ACEOF
37561 #define HAVE_PW_GECOS 1
37562 _ACEOF
37563
37564 fi
37565
37566
37567 if test "$wxUSE_WCHAR_T" = "yes"; then
37568     cat >>confdefs.h <<\_ACEOF
37569 #define wxUSE_WCHAR_T 1
37570 _ACEOF
37571
37572
37573         WCSLEN_FOUND=0
37574     WCHAR_LINK=
37575
37576 for ac_func in wcslen
37577 do
37578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37582   echo $ECHO_N "(cached) $ECHO_C" >&6
37583 else
37584   cat >conftest.$ac_ext <<_ACEOF
37585 /* confdefs.h.  */
37586 _ACEOF
37587 cat confdefs.h >>conftest.$ac_ext
37588 cat >>conftest.$ac_ext <<_ACEOF
37589 /* end confdefs.h.  */
37590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37592 #define $ac_func innocuous_$ac_func
37593
37594 /* System header to define __stub macros and hopefully few prototypes,
37595     which can conflict with char $ac_func (); below.
37596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37597     <limits.h> exists even on freestanding compilers.  */
37598
37599 #ifdef __STDC__
37600 # include <limits.h>
37601 #else
37602 # include <assert.h>
37603 #endif
37604
37605 #undef $ac_func
37606
37607 /* Override any GCC internal prototype to avoid an error.
37608    Use char because int might match the return type of a GCC
37609    builtin and then its argument prototype would still apply.  */
37610 #ifdef __cplusplus
37611 extern "C"
37612 #endif
37613 char $ac_func ();
37614 /* The GNU C library defines this for functions which it implements
37615     to always fail with ENOSYS.  Some functions are actually named
37616     something starting with __ and the normal name is an alias.  */
37617 #if defined __stub_$ac_func || defined __stub___$ac_func
37618 choke me
37619 #endif
37620
37621 int
37622 main ()
37623 {
37624 return $ac_func ();
37625   ;
37626   return 0;
37627 }
37628 _ACEOF
37629 rm -f conftest.$ac_objext conftest$ac_exeext
37630 if { (ac_try="$ac_link"
37631 case "(($ac_try" in
37632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37633   *) ac_try_echo=$ac_try;;
37634 esac
37635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37636   (eval "$ac_link") 2>conftest.er1
37637   ac_status=$?
37638   grep -v '^ *+' conftest.er1 >conftest.err
37639   rm -f conftest.er1
37640   cat conftest.err >&5
37641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642   (exit $ac_status); } && {
37643          test -z "$ac_c_werror_flag" ||
37644          test ! -s conftest.err
37645        } && test -s conftest$ac_exeext &&
37646        $as_test_x conftest$ac_exeext; then
37647   eval "$as_ac_var=yes"
37648 else
37649   echo "$as_me: failed program was:" >&5
37650 sed 's/^/| /' conftest.$ac_ext >&5
37651
37652         eval "$as_ac_var=no"
37653 fi
37654
37655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37656       conftest$ac_exeext conftest.$ac_ext
37657 fi
37658 ac_res=`eval echo '${'$as_ac_var'}'`
37659                { echo "$as_me:$LINENO: result: $ac_res" >&5
37660 echo "${ECHO_T}$ac_res" >&6; }
37661 if test `eval echo '${'$as_ac_var'}'` = yes; then
37662   cat >>confdefs.h <<_ACEOF
37663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37664 _ACEOF
37665  WCSLEN_FOUND=1
37666 fi
37667 done
37668
37669
37670     if test "$WCSLEN_FOUND" = 0; then
37671         if test "$TOOLKIT" = "MSW"; then
37672             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37673 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37674 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37675   echo $ECHO_N "(cached) $ECHO_C" >&6
37676 else
37677   ac_check_lib_save_LIBS=$LIBS
37678 LIBS="-lmsvcrt  $LIBS"
37679 cat >conftest.$ac_ext <<_ACEOF
37680 /* confdefs.h.  */
37681 _ACEOF
37682 cat confdefs.h >>conftest.$ac_ext
37683 cat >>conftest.$ac_ext <<_ACEOF
37684 /* end confdefs.h.  */
37685
37686 /* Override any GCC internal prototype to avoid an error.
37687    Use char because int might match the return type of a GCC
37688    builtin and then its argument prototype would still apply.  */
37689 #ifdef __cplusplus
37690 extern "C"
37691 #endif
37692 char wcslen ();
37693 int
37694 main ()
37695 {
37696 return wcslen ();
37697   ;
37698   return 0;
37699 }
37700 _ACEOF
37701 rm -f conftest.$ac_objext conftest$ac_exeext
37702 if { (ac_try="$ac_link"
37703 case "(($ac_try" in
37704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37705   *) ac_try_echo=$ac_try;;
37706 esac
37707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37708   (eval "$ac_link") 2>conftest.er1
37709   ac_status=$?
37710   grep -v '^ *+' conftest.er1 >conftest.err
37711   rm -f conftest.er1
37712   cat conftest.err >&5
37713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37714   (exit $ac_status); } && {
37715          test -z "$ac_c_werror_flag" ||
37716          test ! -s conftest.err
37717        } && test -s conftest$ac_exeext &&
37718        $as_test_x conftest$ac_exeext; then
37719   ac_cv_lib_msvcrt_wcslen=yes
37720 else
37721   echo "$as_me: failed program was:" >&5
37722 sed 's/^/| /' conftest.$ac_ext >&5
37723
37724         ac_cv_lib_msvcrt_wcslen=no
37725 fi
37726
37727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37728       conftest$ac_exeext conftest.$ac_ext
37729 LIBS=$ac_check_lib_save_LIBS
37730 fi
37731 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37732 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37733 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37734   WCHAR_OK=1
37735 fi
37736
37737         else
37738             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37739 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37740 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37741   echo $ECHO_N "(cached) $ECHO_C" >&6
37742 else
37743   ac_check_lib_save_LIBS=$LIBS
37744 LIBS="-lw  $LIBS"
37745 cat >conftest.$ac_ext <<_ACEOF
37746 /* confdefs.h.  */
37747 _ACEOF
37748 cat confdefs.h >>conftest.$ac_ext
37749 cat >>conftest.$ac_ext <<_ACEOF
37750 /* end confdefs.h.  */
37751
37752 /* Override any GCC internal prototype to avoid an error.
37753    Use char because int might match the return type of a GCC
37754    builtin and then its argument prototype would still apply.  */
37755 #ifdef __cplusplus
37756 extern "C"
37757 #endif
37758 char wcslen ();
37759 int
37760 main ()
37761 {
37762 return wcslen ();
37763   ;
37764   return 0;
37765 }
37766 _ACEOF
37767 rm -f conftest.$ac_objext conftest$ac_exeext
37768 if { (ac_try="$ac_link"
37769 case "(($ac_try" in
37770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37771   *) ac_try_echo=$ac_try;;
37772 esac
37773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37774   (eval "$ac_link") 2>conftest.er1
37775   ac_status=$?
37776   grep -v '^ *+' conftest.er1 >conftest.err
37777   rm -f conftest.er1
37778   cat conftest.err >&5
37779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780   (exit $ac_status); } && {
37781          test -z "$ac_c_werror_flag" ||
37782          test ! -s conftest.err
37783        } && test -s conftest$ac_exeext &&
37784        $as_test_x conftest$ac_exeext; then
37785   ac_cv_lib_w_wcslen=yes
37786 else
37787   echo "$as_me: failed program was:" >&5
37788 sed 's/^/| /' conftest.$ac_ext >&5
37789
37790         ac_cv_lib_w_wcslen=no
37791 fi
37792
37793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37794       conftest$ac_exeext conftest.$ac_ext
37795 LIBS=$ac_check_lib_save_LIBS
37796 fi
37797 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37798 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37799 if test $ac_cv_lib_w_wcslen = yes; then
37800
37801                             WCHAR_LINK=" -lw"
37802                             WCSLEN_FOUND=1
37803
37804 fi
37805
37806         fi
37807     fi
37808
37809     if test "$WCSLEN_FOUND" = 1; then
37810         cat >>confdefs.h <<\_ACEOF
37811 #define HAVE_WCSLEN 1
37812 _ACEOF
37813
37814     fi
37815
37816
37817 for ac_func in wcsdup
37818 do
37819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37820 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37823   echo $ECHO_N "(cached) $ECHO_C" >&6
37824 else
37825   cat >conftest.$ac_ext <<_ACEOF
37826 /* confdefs.h.  */
37827 _ACEOF
37828 cat confdefs.h >>conftest.$ac_ext
37829 cat >>conftest.$ac_ext <<_ACEOF
37830 /* end confdefs.h.  */
37831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37833 #define $ac_func innocuous_$ac_func
37834
37835 /* System header to define __stub macros and hopefully few prototypes,
37836     which can conflict with char $ac_func (); below.
37837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37838     <limits.h> exists even on freestanding compilers.  */
37839
37840 #ifdef __STDC__
37841 # include <limits.h>
37842 #else
37843 # include <assert.h>
37844 #endif
37845
37846 #undef $ac_func
37847
37848 /* Override any GCC internal prototype to avoid an error.
37849    Use char because int might match the return type of a GCC
37850    builtin and then its argument prototype would still apply.  */
37851 #ifdef __cplusplus
37852 extern "C"
37853 #endif
37854 char $ac_func ();
37855 /* The GNU C library defines this for functions which it implements
37856     to always fail with ENOSYS.  Some functions are actually named
37857     something starting with __ and the normal name is an alias.  */
37858 #if defined __stub_$ac_func || defined __stub___$ac_func
37859 choke me
37860 #endif
37861
37862 int
37863 main ()
37864 {
37865 return $ac_func ();
37866   ;
37867   return 0;
37868 }
37869 _ACEOF
37870 rm -f conftest.$ac_objext conftest$ac_exeext
37871 if { (ac_try="$ac_link"
37872 case "(($ac_try" in
37873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37874   *) ac_try_echo=$ac_try;;
37875 esac
37876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37877   (eval "$ac_link") 2>conftest.er1
37878   ac_status=$?
37879   grep -v '^ *+' conftest.er1 >conftest.err
37880   rm -f conftest.er1
37881   cat conftest.err >&5
37882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883   (exit $ac_status); } && {
37884          test -z "$ac_c_werror_flag" ||
37885          test ! -s conftest.err
37886        } && test -s conftest$ac_exeext &&
37887        $as_test_x conftest$ac_exeext; then
37888   eval "$as_ac_var=yes"
37889 else
37890   echo "$as_me: failed program was:" >&5
37891 sed 's/^/| /' conftest.$ac_ext >&5
37892
37893         eval "$as_ac_var=no"
37894 fi
37895
37896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37897       conftest$ac_exeext conftest.$ac_ext
37898 fi
37899 ac_res=`eval echo '${'$as_ac_var'}'`
37900                { echo "$as_me:$LINENO: result: $ac_res" >&5
37901 echo "${ECHO_T}$ac_res" >&6; }
37902 if test `eval echo '${'$as_ac_var'}'` = yes; then
37903   cat >>confdefs.h <<_ACEOF
37904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37905 _ACEOF
37906
37907 fi
37908 done
37909
37910
37911                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
37912         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
37913     fi
37914
37915                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37916 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
37917 if test "${ac_cv_type_mbstate_t+set}" = set; then
37918   echo $ECHO_N "(cached) $ECHO_C" >&6
37919 else
37920   cat >conftest.$ac_ext <<_ACEOF
37921 /* confdefs.h.  */
37922 _ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h.  */
37926 #include <wchar.h>
37927
37928 typedef mbstate_t ac__type_new_;
37929 int
37930 main ()
37931 {
37932 if ((ac__type_new_ *) 0)
37933   return 0;
37934 if (sizeof (ac__type_new_))
37935   return 0;
37936   ;
37937   return 0;
37938 }
37939 _ACEOF
37940 rm -f conftest.$ac_objext
37941 if { (ac_try="$ac_compile"
37942 case "(($ac_try" in
37943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37944   *) ac_try_echo=$ac_try;;
37945 esac
37946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37947   (eval "$ac_compile") 2>conftest.er1
37948   ac_status=$?
37949   grep -v '^ *+' conftest.er1 >conftest.err
37950   rm -f conftest.er1
37951   cat conftest.err >&5
37952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953   (exit $ac_status); } && {
37954          test -z "$ac_c_werror_flag" ||
37955          test ! -s conftest.err
37956        } && test -s conftest.$ac_objext; then
37957   ac_cv_type_mbstate_t=yes
37958 else
37959   echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37961
37962         ac_cv_type_mbstate_t=no
37963 fi
37964
37965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37966 fi
37967 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
37968 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
37969 if test $ac_cv_type_mbstate_t = yes; then
37970
37971 cat >>confdefs.h <<_ACEOF
37972 #define HAVE_MBSTATE_T 1
37973 _ACEOF
37974
37975
37976 for ac_func in wcsrtombs
37977 do
37978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37982   echo $ECHO_N "(cached) $ECHO_C" >&6
37983 else
37984   cat >conftest.$ac_ext <<_ACEOF
37985 /* confdefs.h.  */
37986 _ACEOF
37987 cat confdefs.h >>conftest.$ac_ext
37988 cat >>conftest.$ac_ext <<_ACEOF
37989 /* end confdefs.h.  */
37990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37992 #define $ac_func innocuous_$ac_func
37993
37994 /* System header to define __stub macros and hopefully few prototypes,
37995     which can conflict with char $ac_func (); below.
37996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37997     <limits.h> exists even on freestanding compilers.  */
37998
37999 #ifdef __STDC__
38000 # include <limits.h>
38001 #else
38002 # include <assert.h>
38003 #endif
38004
38005 #undef $ac_func
38006
38007 /* Override any GCC internal prototype to avoid an error.
38008    Use char because int might match the return type of a GCC
38009    builtin and then its argument prototype would still apply.  */
38010 #ifdef __cplusplus
38011 extern "C"
38012 #endif
38013 char $ac_func ();
38014 /* The GNU C library defines this for functions which it implements
38015     to always fail with ENOSYS.  Some functions are actually named
38016     something starting with __ and the normal name is an alias.  */
38017 #if defined __stub_$ac_func || defined __stub___$ac_func
38018 choke me
38019 #endif
38020
38021 int
38022 main ()
38023 {
38024 return $ac_func ();
38025   ;
38026   return 0;
38027 }
38028 _ACEOF
38029 rm -f conftest.$ac_objext conftest$ac_exeext
38030 if { (ac_try="$ac_link"
38031 case "(($ac_try" in
38032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38033   *) ac_try_echo=$ac_try;;
38034 esac
38035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38036   (eval "$ac_link") 2>conftest.er1
38037   ac_status=$?
38038   grep -v '^ *+' conftest.er1 >conftest.err
38039   rm -f conftest.er1
38040   cat conftest.err >&5
38041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042   (exit $ac_status); } && {
38043          test -z "$ac_c_werror_flag" ||
38044          test ! -s conftest.err
38045        } && test -s conftest$ac_exeext &&
38046        $as_test_x conftest$ac_exeext; then
38047   eval "$as_ac_var=yes"
38048 else
38049   echo "$as_me: failed program was:" >&5
38050 sed 's/^/| /' conftest.$ac_ext >&5
38051
38052         eval "$as_ac_var=no"
38053 fi
38054
38055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38056       conftest$ac_exeext conftest.$ac_ext
38057 fi
38058 ac_res=`eval echo '${'$as_ac_var'}'`
38059                { echo "$as_me:$LINENO: result: $ac_res" >&5
38060 echo "${ECHO_T}$ac_res" >&6; }
38061 if test `eval echo '${'$as_ac_var'}'` = yes; then
38062   cat >>confdefs.h <<_ACEOF
38063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38064 _ACEOF
38065
38066 fi
38067 done
38068
38069 fi
38070
38071 else
38072     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
38073 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
38074 fi
38075
38076
38077
38078 for ac_func in snprintf vsnprintf
38079 do
38080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38084   echo $ECHO_N "(cached) $ECHO_C" >&6
38085 else
38086   cat >conftest.$ac_ext <<_ACEOF
38087 /* confdefs.h.  */
38088 _ACEOF
38089 cat confdefs.h >>conftest.$ac_ext
38090 cat >>conftest.$ac_ext <<_ACEOF
38091 /* end confdefs.h.  */
38092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38094 #define $ac_func innocuous_$ac_func
38095
38096 /* System header to define __stub macros and hopefully few prototypes,
38097     which can conflict with char $ac_func (); below.
38098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38099     <limits.h> exists even on freestanding compilers.  */
38100
38101 #ifdef __STDC__
38102 # include <limits.h>
38103 #else
38104 # include <assert.h>
38105 #endif
38106
38107 #undef $ac_func
38108
38109 /* Override any GCC internal prototype to avoid an error.
38110    Use char because int might match the return type of a GCC
38111    builtin and then its argument prototype would still apply.  */
38112 #ifdef __cplusplus
38113 extern "C"
38114 #endif
38115 char $ac_func ();
38116 /* The GNU C library defines this for functions which it implements
38117     to always fail with ENOSYS.  Some functions are actually named
38118     something starting with __ and the normal name is an alias.  */
38119 #if defined __stub_$ac_func || defined __stub___$ac_func
38120 choke me
38121 #endif
38122
38123 int
38124 main ()
38125 {
38126 return $ac_func ();
38127   ;
38128   return 0;
38129 }
38130 _ACEOF
38131 rm -f conftest.$ac_objext conftest$ac_exeext
38132 if { (ac_try="$ac_link"
38133 case "(($ac_try" in
38134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38135   *) ac_try_echo=$ac_try;;
38136 esac
38137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38138   (eval "$ac_link") 2>conftest.er1
38139   ac_status=$?
38140   grep -v '^ *+' conftest.er1 >conftest.err
38141   rm -f conftest.er1
38142   cat conftest.err >&5
38143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38144   (exit $ac_status); } && {
38145          test -z "$ac_c_werror_flag" ||
38146          test ! -s conftest.err
38147        } && test -s conftest$ac_exeext &&
38148        $as_test_x conftest$ac_exeext; then
38149   eval "$as_ac_var=yes"
38150 else
38151   echo "$as_me: failed program was:" >&5
38152 sed 's/^/| /' conftest.$ac_ext >&5
38153
38154         eval "$as_ac_var=no"
38155 fi
38156
38157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38158       conftest$ac_exeext conftest.$ac_ext
38159 fi
38160 ac_res=`eval echo '${'$as_ac_var'}'`
38161                { echo "$as_me:$LINENO: result: $ac_res" >&5
38162 echo "${ECHO_T}$ac_res" >&6; }
38163 if test `eval echo '${'$as_ac_var'}'` = yes; then
38164   cat >>confdefs.h <<_ACEOF
38165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38166 _ACEOF
38167
38168 fi
38169 done
38170
38171
38172 if test "$ac_cv_func_vsnprintf" = "yes"; then
38173         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
38174 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
38175 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
38176   echo $ECHO_N "(cached) $ECHO_C" >&6
38177 else
38178
38179                                                             cat >conftest.$ac_ext <<_ACEOF
38180 /* confdefs.h.  */
38181 _ACEOF
38182 cat confdefs.h >>conftest.$ac_ext
38183 cat >>conftest.$ac_ext <<_ACEOF
38184 /* end confdefs.h.  */
38185
38186                     #include <stdio.h>
38187                     #include <stdarg.h>
38188                     #ifdef __MSL__
38189                     #if __MSL__ >= 0x6000
38190                     namespace std {}
38191                     using namespace std;
38192                     #endif
38193                     #endif
38194
38195 int
38196 main ()
38197 {
38198
38199                     char *buf;
38200                     va_list ap;
38201                     vsnprintf(buf, 10u, "%s", ap);
38202
38203   ;
38204   return 0;
38205 }
38206 _ACEOF
38207 rm -f conftest.$ac_objext
38208 if { (ac_try="$ac_compile"
38209 case "(($ac_try" in
38210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38211   *) ac_try_echo=$ac_try;;
38212 esac
38213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38214   (eval "$ac_compile") 2>conftest.er1
38215   ac_status=$?
38216   grep -v '^ *+' conftest.er1 >conftest.err
38217   rm -f conftest.er1
38218   cat conftest.err >&5
38219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220   (exit $ac_status); } && {
38221          test -z "$ac_c_werror_flag" ||
38222          test ! -s conftest.err
38223        } && test -s conftest.$ac_objext; then
38224   wx_cv_func_vsnprintf_decl=yes
38225 else
38226   echo "$as_me: failed program was:" >&5
38227 sed 's/^/| /' conftest.$ac_ext >&5
38228
38229         wx_cv_func_vsnprintf_decl=no
38230
38231 fi
38232
38233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38234
38235
38236 fi
38237 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
38238 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
38239
38240     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
38241         cat >>confdefs.h <<\_ACEOF
38242 #define HAVE_VSNPRINTF_DECL 1
38243 _ACEOF
38244
38245
38246                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
38247 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
38248 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
38249   echo $ECHO_N "(cached) $ECHO_C" >&6
38250 else
38251
38252                 cat >conftest.$ac_ext <<_ACEOF
38253 /* confdefs.h.  */
38254 _ACEOF
38255 cat confdefs.h >>conftest.$ac_ext
38256 cat >>conftest.$ac_ext <<_ACEOF
38257 /* end confdefs.h.  */
38258
38259                         #include <stdio.h>
38260                         #include <stdarg.h>
38261                         #ifdef __MSL__
38262                         #if __MSL__ >= 0x6000
38263                         namespace std {}
38264                         using namespace std;
38265                         #endif
38266                         #endif
38267
38268 int
38269 main ()
38270 {
38271
38272                         char *buf;
38273                         va_list ap;
38274                         const char *fmt = "%s";
38275                         vsnprintf(buf, 10u, fmt, ap);
38276
38277   ;
38278   return 0;
38279 }
38280 _ACEOF
38281 rm -f conftest.$ac_objext
38282 if { (ac_try="$ac_compile"
38283 case "(($ac_try" in
38284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38285   *) ac_try_echo=$ac_try;;
38286 esac
38287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38288   (eval "$ac_compile") 2>conftest.er1
38289   ac_status=$?
38290   grep -v '^ *+' conftest.er1 >conftest.err
38291   rm -f conftest.er1
38292   cat conftest.err >&5
38293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294   (exit $ac_status); } && {
38295          test -z "$ac_c_werror_flag" ||
38296          test ! -s conftest.err
38297        } && test -s conftest.$ac_objext; then
38298   wx_cv_func_broken_vsnprintf_decl=no
38299 else
38300   echo "$as_me: failed program was:" >&5
38301 sed 's/^/| /' conftest.$ac_ext >&5
38302
38303         wx_cv_func_broken_vsnprintf_decl=yes
38304
38305 fi
38306
38307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38308
38309
38310 fi
38311 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
38312 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
38313
38314         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
38315             cat >>confdefs.h <<\_ACEOF
38316 #define HAVE_BROKEN_VSNPRINTF_DECL 1
38317 _ACEOF
38318
38319         fi
38320     fi
38321 fi
38322
38323 if test "$ac_cv_func_snprintf" = "yes"; then
38324     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
38325 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
38326 if test "${wx_cv_func_snprintf_decl+set}" = set; then
38327   echo $ECHO_N "(cached) $ECHO_C" >&6
38328 else
38329
38330             cat >conftest.$ac_ext <<_ACEOF
38331 /* confdefs.h.  */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h.  */
38336
38337                     #include <stdio.h>
38338                     #include <stdarg.h>
38339                     #ifdef __MSL__
38340                     #if __MSL__ >= 0x6000
38341                     namespace std {}
38342                     using namespace std;
38343                     #endif
38344                     #endif
38345
38346 int
38347 main ()
38348 {
38349
38350                     char *buf;
38351                     snprintf(buf, 10u, "%s", "wx");
38352
38353   ;
38354   return 0;
38355 }
38356 _ACEOF
38357 rm -f conftest.$ac_objext
38358 if { (ac_try="$ac_compile"
38359 case "(($ac_try" in
38360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38361   *) ac_try_echo=$ac_try;;
38362 esac
38363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38364   (eval "$ac_compile") 2>conftest.er1
38365   ac_status=$?
38366   grep -v '^ *+' conftest.er1 >conftest.err
38367   rm -f conftest.er1
38368   cat conftest.err >&5
38369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370   (exit $ac_status); } && {
38371          test -z "$ac_c_werror_flag" ||
38372          test ! -s conftest.err
38373        } && test -s conftest.$ac_objext; then
38374   wx_cv_func_snprintf_decl=yes
38375 else
38376   echo "$as_me: failed program was:" >&5
38377 sed 's/^/| /' conftest.$ac_ext >&5
38378
38379         wx_cv_func_snprintf_decl=no
38380
38381 fi
38382
38383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38384
38385
38386 fi
38387 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
38388 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
38389
38390     if test "$wx_cv_func_snprintf_decl" = "yes"; then
38391         cat >>confdefs.h <<\_ACEOF
38392 #define HAVE_SNPRINTF_DECL 1
38393 _ACEOF
38394
38395     fi
38396
38397     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
38398
38399                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
38400 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
38401 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
38402   echo $ECHO_N "(cached) $ECHO_C" >&6
38403 else
38404
38405                 if test "$cross_compiling" = yes; then
38406
38407                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
38408 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
38409 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
38410 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
38411                         wx_cv_func_snprintf_pos_params=no
38412
38413
38414 else
38415   cat >conftest.$ac_ext <<_ACEOF
38416 /* confdefs.h.  */
38417 _ACEOF
38418 cat confdefs.h >>conftest.$ac_ext
38419 cat >>conftest.$ac_ext <<_ACEOF
38420 /* end confdefs.h.  */
38421
38422                         #include <stdio.h>
38423
38424                         int main (void)
38425                         {
38426                             char buffer[128];
38427                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
38428                             if (strcmp ("2 3 1", buffer) == 0)
38429                                 exit (0);
38430                             exit (1);
38431                         }
38432
38433 _ACEOF
38434 rm -f conftest$ac_exeext
38435 if { (ac_try="$ac_link"
38436 case "(($ac_try" in
38437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38438   *) ac_try_echo=$ac_try;;
38439 esac
38440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38441   (eval "$ac_link") 2>&5
38442   ac_status=$?
38443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38445   { (case "(($ac_try" in
38446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447   *) ac_try_echo=$ac_try;;
38448 esac
38449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38450   (eval "$ac_try") 2>&5
38451   ac_status=$?
38452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453   (exit $ac_status); }; }; then
38454   wx_cv_func_snprintf_pos_params=no
38455 else
38456   echo "$as_me: program exited with status $ac_status" >&5
38457 echo "$as_me: failed program was:" >&5
38458 sed 's/^/| /' conftest.$ac_ext >&5
38459
38460 ( exit $ac_status )
38461 wx_cv_func_snprintf_pos_params=yes
38462 fi
38463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38464 fi
38465
38466
38467
38468
38469 fi
38470 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38471 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38472
38473         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38474             cat >>confdefs.h <<\_ACEOF
38475 #define HAVE_UNIX98_PRINTF 1
38476 _ACEOF
38477
38478         fi
38479     fi
38480 fi
38481
38482 if test "$wxUSE_UNICODE" = yes; then
38483
38484             wchar_headers="#include <stdio.h>
38485 #include <wchar.h>"
38486     case "${host}" in
38487         *-*-solaris2* )
38488
38489 for ac_header in widec.h
38490 do
38491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38495   echo $ECHO_N "(cached) $ECHO_C" >&6
38496 else
38497   cat >conftest.$ac_ext <<_ACEOF
38498 /* confdefs.h.  */
38499 _ACEOF
38500 cat confdefs.h >>conftest.$ac_ext
38501 cat >>conftest.$ac_ext <<_ACEOF
38502 /* end confdefs.h.  */
38503 $ac_includes_default
38504
38505 #include <$ac_header>
38506 _ACEOF
38507 rm -f conftest.$ac_objext
38508 if { (ac_try="$ac_compile"
38509 case "(($ac_try" in
38510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38511   *) ac_try_echo=$ac_try;;
38512 esac
38513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38514   (eval "$ac_compile") 2>conftest.er1
38515   ac_status=$?
38516   grep -v '^ *+' conftest.er1 >conftest.err
38517   rm -f conftest.er1
38518   cat conftest.err >&5
38519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520   (exit $ac_status); } && {
38521          test -z "$ac_c_werror_flag" ||
38522          test ! -s conftest.err
38523        } && test -s conftest.$ac_objext; then
38524   eval "$as_ac_Header=yes"
38525 else
38526   echo "$as_me: failed program was:" >&5
38527 sed 's/^/| /' conftest.$ac_ext >&5
38528
38529         eval "$as_ac_Header=no"
38530 fi
38531
38532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38533 fi
38534 ac_res=`eval echo '${'$as_ac_Header'}'`
38535                { echo "$as_me:$LINENO: result: $ac_res" >&5
38536 echo "${ECHO_T}$ac_res" >&6; }
38537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38538   cat >>confdefs.h <<_ACEOF
38539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38540 _ACEOF
38541
38542 fi
38543
38544 done
38545
38546             if test "$ac_cv_header_widec_h" = "yes"; then
38547                 wchar_headers="$wchar_headers
38548 #include <widec.h>"
38549             fi
38550     esac
38551
38552
38553   for wx_func in putws fputws wprintf vswprintf
38554   do
38555     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38556 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38557 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38558   echo $ECHO_N "(cached) $ECHO_C" >&6
38559 else
38560
38561         cat >conftest.$ac_ext <<_ACEOF
38562
38563             /* confdefs.h.  */
38564 _ACEOF
38565 cat confdefs.h >>conftest.$ac_ext
38566 cat >>conftest.$ac_ext <<_ACEOF
38567 /* end confdefs.h.  */
38568
38569                 $wchar_headers
38570                 $ac_includes_default
38571
38572 int
38573 main ()
38574 {
38575
38576                 #ifndef $wx_func
38577                   &$wx_func;
38578                 #endif
38579
38580
38581   ;
38582   return 0;
38583 }
38584
38585 _ACEOF
38586 rm -f conftest.$ac_objext conftest$ac_exeext
38587 if { (ac_try="$ac_link"
38588 case "(($ac_try" in
38589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38590   *) ac_try_echo=$ac_try;;
38591 esac
38592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38593   (eval "$ac_link") 2>conftest.er1
38594   ac_status=$?
38595   grep -v '^ *+' conftest.er1 >conftest.err
38596   rm -f conftest.er1
38597   cat conftest.err >&5
38598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38599   (exit $ac_status); } && {
38600          test -z "$ac_c_werror_flag" ||
38601          test ! -s conftest.err
38602        } && test -s conftest$ac_exeext &&
38603        $as_test_x conftest$ac_exeext; then
38604   eval wx_cv_func_$wx_func=yes
38605 else
38606   echo "$as_me: failed program was:" >&5
38607 sed 's/^/| /' conftest.$ac_ext >&5
38608
38609         eval wx_cv_func_$wx_func=no
38610 fi
38611
38612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38613       conftest$ac_exeext conftest.$ac_ext
38614
38615 fi
38616 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38617                { echo "$as_me:$LINENO: result: $ac_res" >&5
38618 echo "${ECHO_T}$ac_res" >&6; }
38619
38620     if eval test \$wx_cv_func_$wx_func = yes
38621     then
38622       cat >>confdefs.h <<_ACEOF
38623 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38624 _ACEOF
38625
38626
38627     else
38628       :
38629
38630     fi
38631   done
38632
38633
38634                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38635 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38636     cat >conftest.$ac_ext <<_ACEOF
38637 /* confdefs.h.  */
38638 _ACEOF
38639 cat confdefs.h >>conftest.$ac_ext
38640 cat >>conftest.$ac_ext <<_ACEOF
38641 /* end confdefs.h.  */
38642 #include <wchar.h>
38643 int
38644 main ()
38645 {
38646 &_vsnwprintf;
38647   ;
38648   return 0;
38649 }
38650 _ACEOF
38651 rm -f conftest.$ac_objext
38652 if { (ac_try="$ac_compile"
38653 case "(($ac_try" in
38654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38655   *) ac_try_echo=$ac_try;;
38656 esac
38657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38658   (eval "$ac_compile") 2>conftest.er1
38659   ac_status=$?
38660   grep -v '^ *+' conftest.er1 >conftest.err
38661   rm -f conftest.er1
38662   cat conftest.err >&5
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); } && {
38665          test -z "$ac_c_werror_flag" ||
38666          test ! -s conftest.err
38667        } && test -s conftest.$ac_objext; then
38668   { echo "$as_me:$LINENO: result: yes" >&5
38669 echo "${ECHO_T}yes" >&6; }
38670                     cat >>confdefs.h <<\_ACEOF
38671 #define HAVE__VSNWPRINTF 1
38672 _ACEOF
38673
38674 else
38675   echo "$as_me: failed program was:" >&5
38676 sed 's/^/| /' conftest.$ac_ext >&5
38677
38678         { echo "$as_me:$LINENO: result: no" >&5
38679 echo "${ECHO_T}no" >&6; }
38680 fi
38681
38682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
38683 fi
38684
38685 if test "$wxUSE_FILE" = "yes"; then
38686
38687   for wx_func in fsync
38688   do
38689     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38690 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38691 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38692   echo $ECHO_N "(cached) $ECHO_C" >&6
38693 else
38694
38695         cat >conftest.$ac_ext <<_ACEOF
38696
38697             /* confdefs.h.  */
38698 _ACEOF
38699 cat confdefs.h >>conftest.$ac_ext
38700 cat >>conftest.$ac_ext <<_ACEOF
38701 /* end confdefs.h.  */
38702
38703
38704                 $ac_includes_default
38705
38706 int
38707 main ()
38708 {
38709
38710                 #ifndef $wx_func
38711                   &$wx_func;
38712                 #endif
38713
38714
38715   ;
38716   return 0;
38717 }
38718
38719 _ACEOF
38720 rm -f conftest.$ac_objext conftest$ac_exeext
38721 if { (ac_try="$ac_link"
38722 case "(($ac_try" in
38723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38724   *) ac_try_echo=$ac_try;;
38725 esac
38726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38727   (eval "$ac_link") 2>conftest.er1
38728   ac_status=$?
38729   grep -v '^ *+' conftest.er1 >conftest.err
38730   rm -f conftest.er1
38731   cat conftest.err >&5
38732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38733   (exit $ac_status); } && {
38734          test -z "$ac_c_werror_flag" ||
38735          test ! -s conftest.err
38736        } && test -s conftest$ac_exeext &&
38737        $as_test_x conftest$ac_exeext; then
38738   eval wx_cv_func_$wx_func=yes
38739 else
38740   echo "$as_me: failed program was:" >&5
38741 sed 's/^/| /' conftest.$ac_ext >&5
38742
38743         eval wx_cv_func_$wx_func=no
38744 fi
38745
38746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38747       conftest$ac_exeext conftest.$ac_ext
38748
38749 fi
38750 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38751                { echo "$as_me:$LINENO: result: $ac_res" >&5
38752 echo "${ECHO_T}$ac_res" >&6; }
38753
38754     if eval test \$wx_cv_func_$wx_func = yes
38755     then
38756       cat >>confdefs.h <<_ACEOF
38757 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38758 _ACEOF
38759
38760
38761     else
38762       :
38763
38764     fi
38765   done
38766
38767 fi
38768
38769 ac_ext=cpp
38770 ac_cpp='$CXXCPP $CPPFLAGS'
38771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38774
38775
38776   for wx_func in round
38777   do
38778     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38779 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38780 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38781   echo $ECHO_N "(cached) $ECHO_C" >&6
38782 else
38783
38784         cat >conftest.$ac_ext <<_ACEOF
38785
38786             /* confdefs.h.  */
38787 _ACEOF
38788 cat confdefs.h >>conftest.$ac_ext
38789 cat >>conftest.$ac_ext <<_ACEOF
38790 /* end confdefs.h.  */
38791
38792                 #include <math.h>
38793                 $ac_includes_default
38794
38795 int
38796 main ()
38797 {
38798
38799                 #ifndef $wx_func
38800                   &$wx_func;
38801                 #endif
38802
38803
38804   ;
38805   return 0;
38806 }
38807
38808 _ACEOF
38809 rm -f conftest.$ac_objext conftest$ac_exeext
38810 if { (ac_try="$ac_link"
38811 case "(($ac_try" in
38812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38813   *) ac_try_echo=$ac_try;;
38814 esac
38815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38816   (eval "$ac_link") 2>conftest.er1
38817   ac_status=$?
38818   grep -v '^ *+' conftest.er1 >conftest.err
38819   rm -f conftest.er1
38820   cat conftest.err >&5
38821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38822   (exit $ac_status); } && {
38823          test -z "$ac_cxx_werror_flag" ||
38824          test ! -s conftest.err
38825        } && test -s conftest$ac_exeext &&
38826        $as_test_x conftest$ac_exeext; then
38827   eval wx_cv_func_$wx_func=yes
38828 else
38829   echo "$as_me: failed program was:" >&5
38830 sed 's/^/| /' conftest.$ac_ext >&5
38831
38832         eval wx_cv_func_$wx_func=no
38833 fi
38834
38835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38836       conftest$ac_exeext conftest.$ac_ext
38837
38838 fi
38839 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38840                { echo "$as_me:$LINENO: result: $ac_res" >&5
38841 echo "${ECHO_T}$ac_res" >&6; }
38842
38843     if eval test \$wx_cv_func_$wx_func = yes
38844     then
38845       cat >>confdefs.h <<_ACEOF
38846 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38847 _ACEOF
38848
38849
38850     else
38851       :
38852
38853     fi
38854   done
38855
38856 ac_ext=c
38857 ac_cpp='$CPP $CPPFLAGS'
38858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38861
38862
38863 if test "$TOOLKIT" != "MSW"; then
38864
38865
38866
38867
38868
38869 # Check whether --with-libiconv-prefix was given.
38870 if test "${with_libiconv_prefix+set}" = set; then
38871   withval=$with_libiconv_prefix;
38872     for dir in `echo "$withval" | tr : ' '`; do
38873       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
38874       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
38875     done
38876
38877 fi
38878
38879
38880   { echo "$as_me:$LINENO: checking for iconv" >&5
38881 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38882 if test "${am_cv_func_iconv+set}" = set; then
38883   echo $ECHO_N "(cached) $ECHO_C" >&6
38884 else
38885
38886     am_cv_func_iconv="no, consider installing GNU libiconv"
38887     am_cv_lib_iconv=no
38888     cat >conftest.$ac_ext <<_ACEOF
38889 /* confdefs.h.  */
38890 _ACEOF
38891 cat confdefs.h >>conftest.$ac_ext
38892 cat >>conftest.$ac_ext <<_ACEOF
38893 /* end confdefs.h.  */
38894 #include <stdlib.h>
38895 #include <iconv.h>
38896 int
38897 main ()
38898 {
38899 iconv_t cd = iconv_open("","");
38900        iconv(cd,NULL,NULL,NULL,NULL);
38901        iconv_close(cd);
38902   ;
38903   return 0;
38904 }
38905 _ACEOF
38906 rm -f conftest.$ac_objext conftest$ac_exeext
38907 if { (ac_try="$ac_link"
38908 case "(($ac_try" in
38909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38910   *) ac_try_echo=$ac_try;;
38911 esac
38912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38913   (eval "$ac_link") 2>conftest.er1
38914   ac_status=$?
38915   grep -v '^ *+' conftest.er1 >conftest.err
38916   rm -f conftest.er1
38917   cat conftest.err >&5
38918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919   (exit $ac_status); } && {
38920          test -z "$ac_c_werror_flag" ||
38921          test ! -s conftest.err
38922        } && test -s conftest$ac_exeext &&
38923        $as_test_x conftest$ac_exeext; then
38924   am_cv_func_iconv=yes
38925 else
38926   echo "$as_me: failed program was:" >&5
38927 sed 's/^/| /' conftest.$ac_ext >&5
38928
38929
38930 fi
38931
38932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38933       conftest$ac_exeext conftest.$ac_ext
38934     if test "$am_cv_func_iconv" != yes; then
38935       am_save_LIBS="$LIBS"
38936       LIBS="$LIBS -liconv"
38937       cat >conftest.$ac_ext <<_ACEOF
38938 /* confdefs.h.  */
38939 _ACEOF
38940 cat confdefs.h >>conftest.$ac_ext
38941 cat >>conftest.$ac_ext <<_ACEOF
38942 /* end confdefs.h.  */
38943 #include <stdlib.h>
38944 #include <iconv.h>
38945 int
38946 main ()
38947 {
38948 iconv_t cd = iconv_open("","");
38949          iconv(cd,NULL,NULL,NULL,NULL);
38950          iconv_close(cd);
38951   ;
38952   return 0;
38953 }
38954 _ACEOF
38955 rm -f conftest.$ac_objext conftest$ac_exeext
38956 if { (ac_try="$ac_link"
38957 case "(($ac_try" in
38958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38959   *) ac_try_echo=$ac_try;;
38960 esac
38961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38962   (eval "$ac_link") 2>conftest.er1
38963   ac_status=$?
38964   grep -v '^ *+' conftest.er1 >conftest.err
38965   rm -f conftest.er1
38966   cat conftest.err >&5
38967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968   (exit $ac_status); } && {
38969          test -z "$ac_c_werror_flag" ||
38970          test ! -s conftest.err
38971        } && test -s conftest$ac_exeext &&
38972        $as_test_x conftest$ac_exeext; then
38973   am_cv_lib_iconv=yes
38974         am_cv_func_iconv=yes
38975 else
38976   echo "$as_me: failed program was:" >&5
38977 sed 's/^/| /' conftest.$ac_ext >&5
38978
38979
38980 fi
38981
38982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38983       conftest$ac_exeext conftest.$ac_ext
38984       LIBS="$am_save_LIBS"
38985     fi
38986
38987 fi
38988 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38989 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38990   if test "$am_cv_func_iconv" = yes; then
38991
38992 cat >>confdefs.h <<\_ACEOF
38993 #define HAVE_ICONV 1
38994 _ACEOF
38995
38996     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38997 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38998 if test "${wx_cv_func_iconv_const+set}" = set; then
38999   echo $ECHO_N "(cached) $ECHO_C" >&6
39000 else
39001   cat >conftest.$ac_ext <<_ACEOF
39002 /* confdefs.h.  */
39003 _ACEOF
39004 cat confdefs.h >>conftest.$ac_ext
39005 cat >>conftest.$ac_ext <<_ACEOF
39006 /* end confdefs.h.  */
39007
39008 #include <stdlib.h>
39009 #include <iconv.h>
39010 extern
39011 #ifdef __cplusplus
39012 "C"
39013 #endif
39014 #if defined(__STDC__) || defined(__cplusplus)
39015 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
39016 #else
39017 size_t iconv();
39018 #endif
39019
39020 int
39021 main ()
39022 {
39023
39024   ;
39025   return 0;
39026 }
39027 _ACEOF
39028 rm -f conftest.$ac_objext
39029 if { (ac_try="$ac_compile"
39030 case "(($ac_try" in
39031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39032   *) ac_try_echo=$ac_try;;
39033 esac
39034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39035   (eval "$ac_compile") 2>conftest.er1
39036   ac_status=$?
39037   grep -v '^ *+' conftest.er1 >conftest.err
39038   rm -f conftest.er1
39039   cat conftest.err >&5
39040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041   (exit $ac_status); } && {
39042          test -z "$ac_c_werror_flag" ||
39043          test ! -s conftest.err
39044        } && test -s conftest.$ac_objext; then
39045   wx_cv_func_iconv_const="no"
39046 else
39047   echo "$as_me: failed program was:" >&5
39048 sed 's/^/| /' conftest.$ac_ext >&5
39049
39050         wx_cv_func_iconv_const="yes"
39051
39052 fi
39053
39054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39055
39056 fi
39057 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
39058 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
39059
39060     iconv_const=
39061     if test "x$wx_cv_func_iconv_const" = "xyes"; then
39062         iconv_const="const"
39063     fi
39064
39065
39066 cat >>confdefs.h <<_ACEOF
39067 #define ICONV_CONST $iconv_const
39068 _ACEOF
39069
39070   fi
39071   LIBICONV=
39072   if test "$am_cv_lib_iconv" = yes; then
39073     LIBICONV="-liconv"
39074   fi
39075
39076
39077 LIBS="$LIBICONV $LIBS"
39078
39079 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39080
39081 for ac_func in sigaction
39082 do
39083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39084 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39087   echo $ECHO_N "(cached) $ECHO_C" >&6
39088 else
39089   cat >conftest.$ac_ext <<_ACEOF
39090 /* confdefs.h.  */
39091 _ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h.  */
39095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39097 #define $ac_func innocuous_$ac_func
39098
39099 /* System header to define __stub macros and hopefully few prototypes,
39100     which can conflict with char $ac_func (); below.
39101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39102     <limits.h> exists even on freestanding compilers.  */
39103
39104 #ifdef __STDC__
39105 # include <limits.h>
39106 #else
39107 # include <assert.h>
39108 #endif
39109
39110 #undef $ac_func
39111
39112 /* Override any GCC internal prototype to avoid an error.
39113    Use char because int might match the return type of a GCC
39114    builtin and then its argument prototype would still apply.  */
39115 #ifdef __cplusplus
39116 extern "C"
39117 #endif
39118 char $ac_func ();
39119 /* The GNU C library defines this for functions which it implements
39120     to always fail with ENOSYS.  Some functions are actually named
39121     something starting with __ and the normal name is an alias.  */
39122 #if defined __stub_$ac_func || defined __stub___$ac_func
39123 choke me
39124 #endif
39125
39126 int
39127 main ()
39128 {
39129 return $ac_func ();
39130   ;
39131   return 0;
39132 }
39133 _ACEOF
39134 rm -f conftest.$ac_objext conftest$ac_exeext
39135 if { (ac_try="$ac_link"
39136 case "(($ac_try" in
39137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39138   *) ac_try_echo=$ac_try;;
39139 esac
39140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39141   (eval "$ac_link") 2>conftest.er1
39142   ac_status=$?
39143   grep -v '^ *+' conftest.er1 >conftest.err
39144   rm -f conftest.er1
39145   cat conftest.err >&5
39146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147   (exit $ac_status); } && {
39148          test -z "$ac_c_werror_flag" ||
39149          test ! -s conftest.err
39150        } && test -s conftest$ac_exeext &&
39151        $as_test_x conftest$ac_exeext; then
39152   eval "$as_ac_var=yes"
39153 else
39154   echo "$as_me: failed program was:" >&5
39155 sed 's/^/| /' conftest.$ac_ext >&5
39156
39157         eval "$as_ac_var=no"
39158 fi
39159
39160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39161       conftest$ac_exeext conftest.$ac_ext
39162 fi
39163 ac_res=`eval echo '${'$as_ac_var'}'`
39164                { echo "$as_me:$LINENO: result: $ac_res" >&5
39165 echo "${ECHO_T}$ac_res" >&6; }
39166 if test `eval echo '${'$as_ac_var'}'` = yes; then
39167   cat >>confdefs.h <<_ACEOF
39168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39169 _ACEOF
39170
39171 fi
39172 done
39173
39174
39175     if test "$ac_cv_func_sigaction" = "no"; then
39176         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
39177 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
39178         wxUSE_ON_FATAL_EXCEPTION=no
39179     fi
39180
39181     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39182       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
39183 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
39184 if test "${wx_cv_type_sa_handler+set}" = set; then
39185   echo $ECHO_N "(cached) $ECHO_C" >&6
39186 else
39187
39188                 ac_ext=cpp
39189 ac_cpp='$CXXCPP $CPPFLAGS'
39190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39193
39194         cat >conftest.$ac_ext <<_ACEOF
39195 /* confdefs.h.  */
39196 _ACEOF
39197 cat confdefs.h >>conftest.$ac_ext
39198 cat >>conftest.$ac_ext <<_ACEOF
39199 /* end confdefs.h.  */
39200 #include <signal.h>
39201 int
39202 main ()
39203 {
39204
39205                         extern void testSigHandler(int);
39206
39207                         struct sigaction sa;
39208                         sa.sa_handler = testSigHandler;
39209
39210   ;
39211   return 0;
39212 }
39213 _ACEOF
39214 rm -f conftest.$ac_objext
39215 if { (ac_try="$ac_compile"
39216 case "(($ac_try" in
39217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39218   *) ac_try_echo=$ac_try;;
39219 esac
39220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39221   (eval "$ac_compile") 2>conftest.er1
39222   ac_status=$?
39223   grep -v '^ *+' conftest.er1 >conftest.err
39224   rm -f conftest.er1
39225   cat conftest.err >&5
39226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227   (exit $ac_status); } && {
39228          test -z "$ac_cxx_werror_flag" ||
39229          test ! -s conftest.err
39230        } && test -s conftest.$ac_objext; then
39231
39232                         wx_cv_type_sa_handler=int
39233
39234 else
39235   echo "$as_me: failed program was:" >&5
39236 sed 's/^/| /' conftest.$ac_ext >&5
39237
39238
39239                         wx_cv_type_sa_handler=void
39240
39241 fi
39242
39243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39244         ac_ext=c
39245 ac_cpp='$CPP $CPPFLAGS'
39246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39249
39250
39251 fi
39252 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
39253 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
39254
39255       cat >>confdefs.h <<_ACEOF
39256 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
39257 _ACEOF
39258
39259     fi
39260 fi
39261
39262 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39263     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
39264 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
39265 if test "${wx_cv_func_backtrace+set}" = set; then
39266   echo $ECHO_N "(cached) $ECHO_C" >&6
39267 else
39268
39269             ac_ext=cpp
39270 ac_cpp='$CXXCPP $CPPFLAGS'
39271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39274
39275             cat >conftest.$ac_ext <<_ACEOF
39276 /* confdefs.h.  */
39277 _ACEOF
39278 cat confdefs.h >>conftest.$ac_ext
39279 cat >>conftest.$ac_ext <<_ACEOF
39280 /* end confdefs.h.  */
39281 #include <execinfo.h>
39282 int
39283 main ()
39284 {
39285
39286                     void *trace[1];
39287                     char **messages;
39288
39289                     backtrace(trace, 1);
39290                     messages = backtrace_symbols(trace, 1);
39291
39292   ;
39293   return 0;
39294 }
39295 _ACEOF
39296 rm -f conftest.$ac_objext
39297 if { (ac_try="$ac_compile"
39298 case "(($ac_try" in
39299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39300   *) ac_try_echo=$ac_try;;
39301 esac
39302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39303   (eval "$ac_compile") 2>conftest.er1
39304   ac_status=$?
39305   grep -v '^ *+' conftest.er1 >conftest.err
39306   rm -f conftest.er1
39307   cat conftest.err >&5
39308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39309   (exit $ac_status); } && {
39310          test -z "$ac_cxx_werror_flag" ||
39311          test ! -s conftest.err
39312        } && test -s conftest.$ac_objext; then
39313   wx_cv_func_backtrace=yes
39314 else
39315   echo "$as_me: failed program was:" >&5
39316 sed 's/^/| /' conftest.$ac_ext >&5
39317
39318         wx_cv_func_backtrace=no
39319
39320 fi
39321
39322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39323             ac_ext=c
39324 ac_cpp='$CPP $CPPFLAGS'
39325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39328
39329
39330
39331 fi
39332 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
39333 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
39334
39335
39336     if test "$wx_cv_func_backtrace" = "no"; then
39337         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39338 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39339         wxUSE_STACKWALKER=no
39340     else
39341         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39342 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
39343 if test "${wx_cv_func_cxa_demangle+set}" = set; then
39344   echo $ECHO_N "(cached) $ECHO_C" >&6
39345 else
39346
39347                 ac_ext=cpp
39348 ac_cpp='$CXXCPP $CPPFLAGS'
39349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39352
39353                 cat >conftest.$ac_ext <<_ACEOF
39354 /* confdefs.h.  */
39355 _ACEOF
39356 cat confdefs.h >>conftest.$ac_ext
39357 cat >>conftest.$ac_ext <<_ACEOF
39358 /* end confdefs.h.  */
39359 #include <cxxabi.h>
39360 int
39361 main ()
39362 {
39363
39364                         int rc;
39365                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39366
39367   ;
39368   return 0;
39369 }
39370 _ACEOF
39371 rm -f conftest.$ac_objext conftest$ac_exeext
39372 if { (ac_try="$ac_link"
39373 case "(($ac_try" in
39374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39375   *) ac_try_echo=$ac_try;;
39376 esac
39377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39378   (eval "$ac_link") 2>conftest.er1
39379   ac_status=$?
39380   grep -v '^ *+' conftest.er1 >conftest.err
39381   rm -f conftest.er1
39382   cat conftest.err >&5
39383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384   (exit $ac_status); } && {
39385          test -z "$ac_cxx_werror_flag" ||
39386          test ! -s conftest.err
39387        } && test -s conftest$ac_exeext &&
39388        $as_test_x conftest$ac_exeext; then
39389   wx_cv_func_cxa_demangle=yes
39390 else
39391   echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39393
39394         wx_cv_func_cxa_demangle=no
39395
39396 fi
39397
39398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39399       conftest$ac_exeext conftest.$ac_ext
39400                 ac_ext=c
39401 ac_cpp='$CPP $CPPFLAGS'
39402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39405
39406
39407
39408 fi
39409 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39410 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39411
39412         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39413             cat >>confdefs.h <<\_ACEOF
39414 #define HAVE_CXA_DEMANGLE 1
39415 _ACEOF
39416
39417         fi
39418     fi
39419 fi
39420
39421 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39422     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39423 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39424     wxUSE_STACKWALKER=no
39425 fi
39426
39427
39428
39429
39430 for ac_func in mkstemp mktemp
39431 do
39432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39436   echo $ECHO_N "(cached) $ECHO_C" >&6
39437 else
39438   cat >conftest.$ac_ext <<_ACEOF
39439 /* confdefs.h.  */
39440 _ACEOF
39441 cat confdefs.h >>conftest.$ac_ext
39442 cat >>conftest.$ac_ext <<_ACEOF
39443 /* end confdefs.h.  */
39444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39446 #define $ac_func innocuous_$ac_func
39447
39448 /* System header to define __stub macros and hopefully few prototypes,
39449     which can conflict with char $ac_func (); below.
39450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39451     <limits.h> exists even on freestanding compilers.  */
39452
39453 #ifdef __STDC__
39454 # include <limits.h>
39455 #else
39456 # include <assert.h>
39457 #endif
39458
39459 #undef $ac_func
39460
39461 /* Override any GCC internal prototype to avoid an error.
39462    Use char because int might match the return type of a GCC
39463    builtin and then its argument prototype would still apply.  */
39464 #ifdef __cplusplus
39465 extern "C"
39466 #endif
39467 char $ac_func ();
39468 /* The GNU C library defines this for functions which it implements
39469     to always fail with ENOSYS.  Some functions are actually named
39470     something starting with __ and the normal name is an alias.  */
39471 #if defined __stub_$ac_func || defined __stub___$ac_func
39472 choke me
39473 #endif
39474
39475 int
39476 main ()
39477 {
39478 return $ac_func ();
39479   ;
39480   return 0;
39481 }
39482 _ACEOF
39483 rm -f conftest.$ac_objext conftest$ac_exeext
39484 if { (ac_try="$ac_link"
39485 case "(($ac_try" in
39486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39487   *) ac_try_echo=$ac_try;;
39488 esac
39489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39490   (eval "$ac_link") 2>conftest.er1
39491   ac_status=$?
39492   grep -v '^ *+' conftest.er1 >conftest.err
39493   rm -f conftest.er1
39494   cat conftest.err >&5
39495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39496   (exit $ac_status); } && {
39497          test -z "$ac_c_werror_flag" ||
39498          test ! -s conftest.err
39499        } && test -s conftest$ac_exeext &&
39500        $as_test_x conftest$ac_exeext; then
39501   eval "$as_ac_var=yes"
39502 else
39503   echo "$as_me: failed program was:" >&5
39504 sed 's/^/| /' conftest.$ac_ext >&5
39505
39506         eval "$as_ac_var=no"
39507 fi
39508
39509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39510       conftest$ac_exeext conftest.$ac_ext
39511 fi
39512 ac_res=`eval echo '${'$as_ac_var'}'`
39513                { echo "$as_me:$LINENO: result: $ac_res" >&5
39514 echo "${ECHO_T}$ac_res" >&6; }
39515 if test `eval echo '${'$as_ac_var'}'` = yes; then
39516   cat >>confdefs.h <<_ACEOF
39517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39518 _ACEOF
39519  break
39520 fi
39521 done
39522
39523
39524 { echo "$as_me:$LINENO: checking for statfs" >&5
39525 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39526 if test "${wx_cv_func_statfs+set}" = set; then
39527   echo $ECHO_N "(cached) $ECHO_C" >&6
39528 else
39529   cat >conftest.$ac_ext <<_ACEOF
39530 /* confdefs.h.  */
39531 _ACEOF
39532 cat confdefs.h >>conftest.$ac_ext
39533 cat >>conftest.$ac_ext <<_ACEOF
39534 /* end confdefs.h.  */
39535
39536              #if defined(__BSD__)
39537              #include <sys/param.h>
39538              #include <sys/mount.h>
39539              #else
39540              #include <sys/vfs.h>
39541              #endif
39542
39543 int
39544 main ()
39545 {
39546
39547              long l;
39548              struct statfs fs;
39549              statfs("/", &fs);
39550              l = fs.f_bsize;
39551              l += fs.f_blocks;
39552              l += fs.f_bavail;
39553
39554   ;
39555   return 0;
39556 }
39557 _ACEOF
39558 rm -f conftest.$ac_objext
39559 if { (ac_try="$ac_compile"
39560 case "(($ac_try" in
39561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39562   *) ac_try_echo=$ac_try;;
39563 esac
39564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39565   (eval "$ac_compile") 2>conftest.er1
39566   ac_status=$?
39567   grep -v '^ *+' conftest.er1 >conftest.err
39568   rm -f conftest.er1
39569   cat conftest.err >&5
39570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39571   (exit $ac_status); } && {
39572          test -z "$ac_c_werror_flag" ||
39573          test ! -s conftest.err
39574        } && test -s conftest.$ac_objext; then
39575   wx_cv_func_statfs=yes
39576 else
39577   echo "$as_me: failed program was:" >&5
39578 sed 's/^/| /' conftest.$ac_ext >&5
39579
39580         wx_cv_func_statfs=no
39581
39582 fi
39583
39584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39585
39586 fi
39587 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39588 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
39589
39590 if test "$wx_cv_func_statfs" = "yes"; then
39591         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39592 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
39593 if test "${wx_cv_func_statfs_decl+set}" = set; then
39594   echo $ECHO_N "(cached) $ECHO_C" >&6
39595 else
39596   ac_ext=cpp
39597 ac_cpp='$CXXCPP $CPPFLAGS'
39598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39601
39602         cat >conftest.$ac_ext <<_ACEOF
39603 /* confdefs.h.  */
39604 _ACEOF
39605 cat confdefs.h >>conftest.$ac_ext
39606 cat >>conftest.$ac_ext <<_ACEOF
39607 /* end confdefs.h.  */
39608
39609                  #if defined(__BSD__)
39610                  #include <sys/param.h>
39611                  #include <sys/mount.h>
39612                  #else
39613                  #include <sys/vfs.h>
39614                  #endif
39615
39616 int
39617 main ()
39618 {
39619
39620                 struct statfs fs;
39621                 statfs("", &fs);
39622
39623   ;
39624   return 0;
39625 }
39626 _ACEOF
39627 rm -f conftest.$ac_objext
39628 if { (ac_try="$ac_compile"
39629 case "(($ac_try" in
39630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39631   *) ac_try_echo=$ac_try;;
39632 esac
39633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39634   (eval "$ac_compile") 2>conftest.er1
39635   ac_status=$?
39636   grep -v '^ *+' conftest.er1 >conftest.err
39637   rm -f conftest.er1
39638   cat conftest.err >&5
39639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39640   (exit $ac_status); } && {
39641          test -z "$ac_cxx_werror_flag" ||
39642          test ! -s conftest.err
39643        } && test -s conftest.$ac_objext; then
39644   wx_cv_func_statfs_decl=yes
39645 else
39646   echo "$as_me: failed program was:" >&5
39647 sed 's/^/| /' conftest.$ac_ext >&5
39648
39649         wx_cv_func_statfs_decl=no
39650
39651 fi
39652
39653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39654         ac_ext=c
39655 ac_cpp='$CPP $CPPFLAGS'
39656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39659
39660
39661 fi
39662 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
39663 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
39664
39665     if test "$wx_cv_func_statfs_decl" = "yes"; then
39666         cat >>confdefs.h <<\_ACEOF
39667 #define HAVE_STATFS_DECL 1
39668 _ACEOF
39669
39670     fi
39671
39672     wx_cv_type_statvfs_t="struct statfs"
39673     cat >>confdefs.h <<\_ACEOF
39674 #define HAVE_STATFS 1
39675 _ACEOF
39676
39677 else
39678     { echo "$as_me:$LINENO: checking for statvfs" >&5
39679 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
39680 if test "${wx_cv_func_statvfs+set}" = set; then
39681   echo $ECHO_N "(cached) $ECHO_C" >&6
39682 else
39683   cat >conftest.$ac_ext <<_ACEOF
39684 /* confdefs.h.  */
39685 _ACEOF
39686 cat confdefs.h >>conftest.$ac_ext
39687 cat >>conftest.$ac_ext <<_ACEOF
39688 /* end confdefs.h.  */
39689
39690                 #include <stddef.h>
39691                 #include <sys/statvfs.h>
39692
39693 int
39694 main ()
39695 {
39696
39697                 statvfs("/", NULL);
39698
39699   ;
39700   return 0;
39701 }
39702 _ACEOF
39703 rm -f conftest.$ac_objext
39704 if { (ac_try="$ac_compile"
39705 case "(($ac_try" in
39706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39707   *) ac_try_echo=$ac_try;;
39708 esac
39709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39710   (eval "$ac_compile") 2>conftest.er1
39711   ac_status=$?
39712   grep -v '^ *+' conftest.er1 >conftest.err
39713   rm -f conftest.er1
39714   cat conftest.err >&5
39715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39716   (exit $ac_status); } && {
39717          test -z "$ac_c_werror_flag" ||
39718          test ! -s conftest.err
39719        } && test -s conftest.$ac_objext; then
39720   wx_cv_func_statvfs=yes
39721 else
39722   echo "$as_me: failed program was:" >&5
39723 sed 's/^/| /' conftest.$ac_ext >&5
39724
39725         wx_cv_func_statvfs=no
39726
39727 fi
39728
39729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39730
39731 fi
39732 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
39733 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
39734
39735     if test "$wx_cv_func_statvfs" = "yes"; then
39736                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
39737 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
39738 if test "${wx_cv_type_statvfs_t+set}" = set; then
39739   echo $ECHO_N "(cached) $ECHO_C" >&6
39740 else
39741   ac_ext=cpp
39742 ac_cpp='$CXXCPP $CPPFLAGS'
39743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39746
39747             cat >conftest.$ac_ext <<_ACEOF
39748 /* confdefs.h.  */
39749 _ACEOF
39750 cat confdefs.h >>conftest.$ac_ext
39751 cat >>conftest.$ac_ext <<_ACEOF
39752 /* end confdefs.h.  */
39753
39754                     #include <sys/statvfs.h>
39755
39756 int
39757 main ()
39758 {
39759
39760                     long l;
39761                     statvfs_t fs;
39762                     statvfs("/", &fs);
39763                     l = fs.f_bsize;
39764                     l += fs.f_blocks;
39765                     l += fs.f_bavail;
39766
39767   ;
39768   return 0;
39769 }
39770 _ACEOF
39771 rm -f conftest.$ac_objext
39772 if { (ac_try="$ac_compile"
39773 case "(($ac_try" in
39774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39775   *) ac_try_echo=$ac_try;;
39776 esac
39777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39778   (eval "$ac_compile") 2>conftest.er1
39779   ac_status=$?
39780   grep -v '^ *+' conftest.er1 >conftest.err
39781   rm -f conftest.er1
39782   cat conftest.err >&5
39783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39784   (exit $ac_status); } && {
39785          test -z "$ac_cxx_werror_flag" ||
39786          test ! -s conftest.err
39787        } && test -s conftest.$ac_objext; then
39788   wx_cv_type_statvfs_t=statvfs_t
39789 else
39790   echo "$as_me: failed program was:" >&5
39791 sed 's/^/| /' conftest.$ac_ext >&5
39792
39793
39794                     cat >conftest.$ac_ext <<_ACEOF
39795 /* confdefs.h.  */
39796 _ACEOF
39797 cat confdefs.h >>conftest.$ac_ext
39798 cat >>conftest.$ac_ext <<_ACEOF
39799 /* end confdefs.h.  */
39800
39801                             #include <sys/statvfs.h>
39802
39803 int
39804 main ()
39805 {
39806
39807                             long l;
39808                             struct statvfs fs;
39809                             statvfs("/", &fs);
39810                             l = fs.f_bsize;
39811                             l += fs.f_blocks;
39812                             l += fs.f_bavail;
39813
39814   ;
39815   return 0;
39816 }
39817 _ACEOF
39818 rm -f conftest.$ac_objext
39819 if { (ac_try="$ac_compile"
39820 case "(($ac_try" in
39821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39822   *) ac_try_echo=$ac_try;;
39823 esac
39824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39825   (eval "$ac_compile") 2>conftest.er1
39826   ac_status=$?
39827   grep -v '^ *+' conftest.er1 >conftest.err
39828   rm -f conftest.er1
39829   cat conftest.err >&5
39830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39831   (exit $ac_status); } && {
39832          test -z "$ac_cxx_werror_flag" ||
39833          test ! -s conftest.err
39834        } && test -s conftest.$ac_objext; then
39835   wx_cv_type_statvfs_t="struct statvfs"
39836 else
39837   echo "$as_me: failed program was:" >&5
39838 sed 's/^/| /' conftest.$ac_ext >&5
39839
39840         wx_cv_type_statvfs_t="unknown"
39841
39842 fi
39843
39844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39845
39846
39847 fi
39848
39849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39850             ac_ext=c
39851 ac_cpp='$CPP $CPPFLAGS'
39852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39855
39856
39857 fi
39858 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
39859 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
39860
39861         if test "$wx_cv_type_statvfs_t" != "unknown"; then
39862             cat >>confdefs.h <<\_ACEOF
39863 #define HAVE_STATVFS 1
39864 _ACEOF
39865
39866         fi
39867     else
39868                 wx_cv_type_statvfs_t="unknown"
39869     fi
39870 fi
39871
39872 if test "$wx_cv_type_statvfs_t" != "unknown"; then
39873     cat >>confdefs.h <<_ACEOF
39874 #define WX_STATFS_T $wx_cv_type_statvfs_t
39875 _ACEOF
39876
39877 else
39878     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
39879 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
39880 fi
39881
39882 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39883
39884
39885 for ac_func in fcntl flock
39886 do
39887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39891   echo $ECHO_N "(cached) $ECHO_C" >&6
39892 else
39893   cat >conftest.$ac_ext <<_ACEOF
39894 /* confdefs.h.  */
39895 _ACEOF
39896 cat confdefs.h >>conftest.$ac_ext
39897 cat >>conftest.$ac_ext <<_ACEOF
39898 /* end confdefs.h.  */
39899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39901 #define $ac_func innocuous_$ac_func
39902
39903 /* System header to define __stub macros and hopefully few prototypes,
39904     which can conflict with char $ac_func (); below.
39905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39906     <limits.h> exists even on freestanding compilers.  */
39907
39908 #ifdef __STDC__
39909 # include <limits.h>
39910 #else
39911 # include <assert.h>
39912 #endif
39913
39914 #undef $ac_func
39915
39916 /* Override any GCC internal prototype to avoid an error.
39917    Use char because int might match the return type of a GCC
39918    builtin and then its argument prototype would still apply.  */
39919 #ifdef __cplusplus
39920 extern "C"
39921 #endif
39922 char $ac_func ();
39923 /* The GNU C library defines this for functions which it implements
39924     to always fail with ENOSYS.  Some functions are actually named
39925     something starting with __ and the normal name is an alias.  */
39926 #if defined __stub_$ac_func || defined __stub___$ac_func
39927 choke me
39928 #endif
39929
39930 int
39931 main ()
39932 {
39933 return $ac_func ();
39934   ;
39935   return 0;
39936 }
39937 _ACEOF
39938 rm -f conftest.$ac_objext conftest$ac_exeext
39939 if { (ac_try="$ac_link"
39940 case "(($ac_try" in
39941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39942   *) ac_try_echo=$ac_try;;
39943 esac
39944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39945   (eval "$ac_link") 2>conftest.er1
39946   ac_status=$?
39947   grep -v '^ *+' conftest.er1 >conftest.err
39948   rm -f conftest.er1
39949   cat conftest.err >&5
39950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39951   (exit $ac_status); } && {
39952          test -z "$ac_c_werror_flag" ||
39953          test ! -s conftest.err
39954        } && test -s conftest$ac_exeext &&
39955        $as_test_x conftest$ac_exeext; then
39956   eval "$as_ac_var=yes"
39957 else
39958   echo "$as_me: failed program was:" >&5
39959 sed 's/^/| /' conftest.$ac_ext >&5
39960
39961         eval "$as_ac_var=no"
39962 fi
39963
39964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39965       conftest$ac_exeext conftest.$ac_ext
39966 fi
39967 ac_res=`eval echo '${'$as_ac_var'}'`
39968                { echo "$as_me:$LINENO: result: $ac_res" >&5
39969 echo "${ECHO_T}$ac_res" >&6; }
39970 if test `eval echo '${'$as_ac_var'}'` = yes; then
39971   cat >>confdefs.h <<_ACEOF
39972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39973 _ACEOF
39974  break
39975 fi
39976 done
39977
39978
39979     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39980         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39981 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39982         wxUSE_SNGLINST_CHECKER=no
39983     fi
39984 fi
39985
39986
39987
39988 for ac_func in setenv putenv
39989 do
39990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39994   echo $ECHO_N "(cached) $ECHO_C" >&6
39995 else
39996   cat >conftest.$ac_ext <<_ACEOF
39997 /* confdefs.h.  */
39998 _ACEOF
39999 cat confdefs.h >>conftest.$ac_ext
40000 cat >>conftest.$ac_ext <<_ACEOF
40001 /* end confdefs.h.  */
40002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40004 #define $ac_func innocuous_$ac_func
40005
40006 /* System header to define __stub macros and hopefully few prototypes,
40007     which can conflict with char $ac_func (); below.
40008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40009     <limits.h> exists even on freestanding compilers.  */
40010
40011 #ifdef __STDC__
40012 # include <limits.h>
40013 #else
40014 # include <assert.h>
40015 #endif
40016
40017 #undef $ac_func
40018
40019 /* Override any GCC internal prototype to avoid an error.
40020    Use char because int might match the return type of a GCC
40021    builtin and then its argument prototype would still apply.  */
40022 #ifdef __cplusplus
40023 extern "C"
40024 #endif
40025 char $ac_func ();
40026 /* The GNU C library defines this for functions which it implements
40027     to always fail with ENOSYS.  Some functions are actually named
40028     something starting with __ and the normal name is an alias.  */
40029 #if defined __stub_$ac_func || defined __stub___$ac_func
40030 choke me
40031 #endif
40032
40033 int
40034 main ()
40035 {
40036 return $ac_func ();
40037   ;
40038   return 0;
40039 }
40040 _ACEOF
40041 rm -f conftest.$ac_objext conftest$ac_exeext
40042 if { (ac_try="$ac_link"
40043 case "(($ac_try" in
40044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40045   *) ac_try_echo=$ac_try;;
40046 esac
40047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40048   (eval "$ac_link") 2>conftest.er1
40049   ac_status=$?
40050   grep -v '^ *+' conftest.er1 >conftest.err
40051   rm -f conftest.er1
40052   cat conftest.err >&5
40053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054   (exit $ac_status); } && {
40055          test -z "$ac_c_werror_flag" ||
40056          test ! -s conftest.err
40057        } && test -s conftest$ac_exeext &&
40058        $as_test_x conftest$ac_exeext; then
40059   eval "$as_ac_var=yes"
40060 else
40061   echo "$as_me: failed program was:" >&5
40062 sed 's/^/| /' conftest.$ac_ext >&5
40063
40064         eval "$as_ac_var=no"
40065 fi
40066
40067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40068       conftest$ac_exeext conftest.$ac_ext
40069 fi
40070 ac_res=`eval echo '${'$as_ac_var'}'`
40071                { echo "$as_me:$LINENO: result: $ac_res" >&5
40072 echo "${ECHO_T}$ac_res" >&6; }
40073 if test `eval echo '${'$as_ac_var'}'` = yes; then
40074   cat >>confdefs.h <<_ACEOF
40075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40076 _ACEOF
40077  break
40078 fi
40079 done
40080
40081 if test "$ac_cv_func_setenv" = "yes"; then
40082
40083 for ac_func in unsetenv
40084 do
40085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40089   echo $ECHO_N "(cached) $ECHO_C" >&6
40090 else
40091   cat >conftest.$ac_ext <<_ACEOF
40092 /* confdefs.h.  */
40093 _ACEOF
40094 cat confdefs.h >>conftest.$ac_ext
40095 cat >>conftest.$ac_ext <<_ACEOF
40096 /* end confdefs.h.  */
40097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40099 #define $ac_func innocuous_$ac_func
40100
40101 /* System header to define __stub macros and hopefully few prototypes,
40102     which can conflict with char $ac_func (); below.
40103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40104     <limits.h> exists even on freestanding compilers.  */
40105
40106 #ifdef __STDC__
40107 # include <limits.h>
40108 #else
40109 # include <assert.h>
40110 #endif
40111
40112 #undef $ac_func
40113
40114 /* Override any GCC internal prototype to avoid an error.
40115    Use char because int might match the return type of a GCC
40116    builtin and then its argument prototype would still apply.  */
40117 #ifdef __cplusplus
40118 extern "C"
40119 #endif
40120 char $ac_func ();
40121 /* The GNU C library defines this for functions which it implements
40122     to always fail with ENOSYS.  Some functions are actually named
40123     something starting with __ and the normal name is an alias.  */
40124 #if defined __stub_$ac_func || defined __stub___$ac_func
40125 choke me
40126 #endif
40127
40128 int
40129 main ()
40130 {
40131 return $ac_func ();
40132   ;
40133   return 0;
40134 }
40135 _ACEOF
40136 rm -f conftest.$ac_objext conftest$ac_exeext
40137 if { (ac_try="$ac_link"
40138 case "(($ac_try" in
40139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40140   *) ac_try_echo=$ac_try;;
40141 esac
40142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40143   (eval "$ac_link") 2>conftest.er1
40144   ac_status=$?
40145   grep -v '^ *+' conftest.er1 >conftest.err
40146   rm -f conftest.er1
40147   cat conftest.err >&5
40148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149   (exit $ac_status); } && {
40150          test -z "$ac_c_werror_flag" ||
40151          test ! -s conftest.err
40152        } && test -s conftest$ac_exeext &&
40153        $as_test_x conftest$ac_exeext; then
40154   eval "$as_ac_var=yes"
40155 else
40156   echo "$as_me: failed program was:" >&5
40157 sed 's/^/| /' conftest.$ac_ext >&5
40158
40159         eval "$as_ac_var=no"
40160 fi
40161
40162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40163       conftest$ac_exeext conftest.$ac_ext
40164 fi
40165 ac_res=`eval echo '${'$as_ac_var'}'`
40166                { echo "$as_me:$LINENO: result: $ac_res" >&5
40167 echo "${ECHO_T}$ac_res" >&6; }
40168 if test `eval echo '${'$as_ac_var'}'` = yes; then
40169   cat >>confdefs.h <<_ACEOF
40170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40171 _ACEOF
40172
40173 fi
40174 done
40175
40176 fi
40177
40178 HAVE_SOME_SLEEP_FUNC=0
40179 if test "$USE_BEOS" = 1; then
40180             cat >>confdefs.h <<\_ACEOF
40181 #define HAVE_SLEEP 1
40182 _ACEOF
40183
40184     HAVE_SOME_SLEEP_FUNC=1
40185 fi
40186
40187 if test "$USE_DARWIN" = 1; then
40188             cat >>confdefs.h <<\_ACEOF
40189 #define HAVE_USLEEP 1
40190 _ACEOF
40191
40192     HAVE_SOME_SLEEP_FUNC=1
40193 fi
40194
40195 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
40196         POSIX4_LINK=
40197
40198 for ac_func in nanosleep
40199 do
40200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40204   echo $ECHO_N "(cached) $ECHO_C" >&6
40205 else
40206   cat >conftest.$ac_ext <<_ACEOF
40207 /* confdefs.h.  */
40208 _ACEOF
40209 cat confdefs.h >>conftest.$ac_ext
40210 cat >>conftest.$ac_ext <<_ACEOF
40211 /* end confdefs.h.  */
40212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40214 #define $ac_func innocuous_$ac_func
40215
40216 /* System header to define __stub macros and hopefully few prototypes,
40217     which can conflict with char $ac_func (); below.
40218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40219     <limits.h> exists even on freestanding compilers.  */
40220
40221 #ifdef __STDC__
40222 # include <limits.h>
40223 #else
40224 # include <assert.h>
40225 #endif
40226
40227 #undef $ac_func
40228
40229 /* Override any GCC internal prototype to avoid an error.
40230    Use char because int might match the return type of a GCC
40231    builtin and then its argument prototype would still apply.  */
40232 #ifdef __cplusplus
40233 extern "C"
40234 #endif
40235 char $ac_func ();
40236 /* The GNU C library defines this for functions which it implements
40237     to always fail with ENOSYS.  Some functions are actually named
40238     something starting with __ and the normal name is an alias.  */
40239 #if defined __stub_$ac_func || defined __stub___$ac_func
40240 choke me
40241 #endif
40242
40243 int
40244 main ()
40245 {
40246 return $ac_func ();
40247   ;
40248   return 0;
40249 }
40250 _ACEOF
40251 rm -f conftest.$ac_objext conftest$ac_exeext
40252 if { (ac_try="$ac_link"
40253 case "(($ac_try" in
40254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40255   *) ac_try_echo=$ac_try;;
40256 esac
40257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40258   (eval "$ac_link") 2>conftest.er1
40259   ac_status=$?
40260   grep -v '^ *+' conftest.er1 >conftest.err
40261   rm -f conftest.er1
40262   cat conftest.err >&5
40263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40264   (exit $ac_status); } && {
40265          test -z "$ac_c_werror_flag" ||
40266          test ! -s conftest.err
40267        } && test -s conftest$ac_exeext &&
40268        $as_test_x conftest$ac_exeext; then
40269   eval "$as_ac_var=yes"
40270 else
40271   echo "$as_me: failed program was:" >&5
40272 sed 's/^/| /' conftest.$ac_ext >&5
40273
40274         eval "$as_ac_var=no"
40275 fi
40276
40277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40278       conftest$ac_exeext conftest.$ac_ext
40279 fi
40280 ac_res=`eval echo '${'$as_ac_var'}'`
40281                { echo "$as_me:$LINENO: result: $ac_res" >&5
40282 echo "${ECHO_T}$ac_res" >&6; }
40283 if test `eval echo '${'$as_ac_var'}'` = yes; then
40284   cat >>confdefs.h <<_ACEOF
40285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40286 _ACEOF
40287  cat >>confdefs.h <<\_ACEOF
40288 #define HAVE_NANOSLEEP 1
40289 _ACEOF
40290
40291 else
40292
40293             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
40294 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
40295 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
40296   echo $ECHO_N "(cached) $ECHO_C" >&6
40297 else
40298   ac_check_lib_save_LIBS=$LIBS
40299 LIBS="-lposix4  $LIBS"
40300 cat >conftest.$ac_ext <<_ACEOF
40301 /* confdefs.h.  */
40302 _ACEOF
40303 cat confdefs.h >>conftest.$ac_ext
40304 cat >>conftest.$ac_ext <<_ACEOF
40305 /* end confdefs.h.  */
40306
40307 /* Override any GCC internal prototype to avoid an error.
40308    Use char because int might match the return type of a GCC
40309    builtin and then its argument prototype would still apply.  */
40310 #ifdef __cplusplus
40311 extern "C"
40312 #endif
40313 char nanosleep ();
40314 int
40315 main ()
40316 {
40317 return nanosleep ();
40318   ;
40319   return 0;
40320 }
40321 _ACEOF
40322 rm -f conftest.$ac_objext conftest$ac_exeext
40323 if { (ac_try="$ac_link"
40324 case "(($ac_try" in
40325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40326   *) ac_try_echo=$ac_try;;
40327 esac
40328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40329   (eval "$ac_link") 2>conftest.er1
40330   ac_status=$?
40331   grep -v '^ *+' conftest.er1 >conftest.err
40332   rm -f conftest.er1
40333   cat conftest.err >&5
40334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40335   (exit $ac_status); } && {
40336          test -z "$ac_c_werror_flag" ||
40337          test ! -s conftest.err
40338        } && test -s conftest$ac_exeext &&
40339        $as_test_x conftest$ac_exeext; then
40340   ac_cv_lib_posix4_nanosleep=yes
40341 else
40342   echo "$as_me: failed program was:" >&5
40343 sed 's/^/| /' conftest.$ac_ext >&5
40344
40345         ac_cv_lib_posix4_nanosleep=no
40346 fi
40347
40348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40349       conftest$ac_exeext conftest.$ac_ext
40350 LIBS=$ac_check_lib_save_LIBS
40351 fi
40352 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40353 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
40354 if test $ac_cv_lib_posix4_nanosleep = yes; then
40355
40356                     cat >>confdefs.h <<\_ACEOF
40357 #define HAVE_NANOSLEEP 1
40358 _ACEOF
40359
40360                     POSIX4_LINK=" -lposix4"
40361
40362 else
40363
40364
40365   for wx_func in usleep
40366   do
40367     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40368 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40369 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40370   echo $ECHO_N "(cached) $ECHO_C" >&6
40371 else
40372
40373         cat >conftest.$ac_ext <<_ACEOF
40374
40375             /* confdefs.h.  */
40376 _ACEOF
40377 cat confdefs.h >>conftest.$ac_ext
40378 cat >>conftest.$ac_ext <<_ACEOF
40379 /* end confdefs.h.  */
40380
40381
40382                 $ac_includes_default
40383
40384 int
40385 main ()
40386 {
40387
40388                 #ifndef $wx_func
40389                   &$wx_func;
40390                 #endif
40391
40392
40393   ;
40394   return 0;
40395 }
40396
40397 _ACEOF
40398 rm -f conftest.$ac_objext conftest$ac_exeext
40399 if { (ac_try="$ac_link"
40400 case "(($ac_try" in
40401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40402   *) ac_try_echo=$ac_try;;
40403 esac
40404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40405   (eval "$ac_link") 2>conftest.er1
40406   ac_status=$?
40407   grep -v '^ *+' conftest.er1 >conftest.err
40408   rm -f conftest.er1
40409   cat conftest.err >&5
40410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411   (exit $ac_status); } && {
40412          test -z "$ac_c_werror_flag" ||
40413          test ! -s conftest.err
40414        } && test -s conftest$ac_exeext &&
40415        $as_test_x conftest$ac_exeext; then
40416   eval wx_cv_func_$wx_func=yes
40417 else
40418   echo "$as_me: failed program was:" >&5
40419 sed 's/^/| /' conftest.$ac_ext >&5
40420
40421         eval wx_cv_func_$wx_func=no
40422 fi
40423
40424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40425       conftest$ac_exeext conftest.$ac_ext
40426
40427 fi
40428 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40429                { echo "$as_me:$LINENO: result: $ac_res" >&5
40430 echo "${ECHO_T}$ac_res" >&6; }
40431
40432     if eval test \$wx_cv_func_$wx_func = yes
40433     then
40434       cat >>confdefs.h <<_ACEOF
40435 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40436 _ACEOF
40437
40438
40439     else
40440       :
40441       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40442 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40443
40444     fi
40445   done
40446
40447
40448
40449 fi
40450
40451
40452
40453 fi
40454 done
40455
40456 fi
40457
40458
40459   for wx_func in uname
40460   do
40461     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40462 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40463 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40464   echo $ECHO_N "(cached) $ECHO_C" >&6
40465 else
40466
40467         cat >conftest.$ac_ext <<_ACEOF
40468
40469             /* confdefs.h.  */
40470 _ACEOF
40471 cat confdefs.h >>conftest.$ac_ext
40472 cat >>conftest.$ac_ext <<_ACEOF
40473 /* end confdefs.h.  */
40474
40475                 #include <sys/utsname.h>
40476                 $ac_includes_default
40477
40478 int
40479 main ()
40480 {
40481
40482                 #ifndef $wx_func
40483                   &$wx_func;
40484                 #endif
40485
40486
40487   ;
40488   return 0;
40489 }
40490
40491 _ACEOF
40492 rm -f conftest.$ac_objext conftest$ac_exeext
40493 if { (ac_try="$ac_link"
40494 case "(($ac_try" in
40495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40496   *) ac_try_echo=$ac_try;;
40497 esac
40498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40499   (eval "$ac_link") 2>conftest.er1
40500   ac_status=$?
40501   grep -v '^ *+' conftest.er1 >conftest.err
40502   rm -f conftest.er1
40503   cat conftest.err >&5
40504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505   (exit $ac_status); } && {
40506          test -z "$ac_c_werror_flag" ||
40507          test ! -s conftest.err
40508        } && test -s conftest$ac_exeext &&
40509        $as_test_x conftest$ac_exeext; then
40510   eval wx_cv_func_$wx_func=yes
40511 else
40512   echo "$as_me: failed program was:" >&5
40513 sed 's/^/| /' conftest.$ac_ext >&5
40514
40515         eval wx_cv_func_$wx_func=no
40516 fi
40517
40518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40519       conftest$ac_exeext conftest.$ac_ext
40520
40521 fi
40522 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40523                { echo "$as_me:$LINENO: result: $ac_res" >&5
40524 echo "${ECHO_T}$ac_res" >&6; }
40525
40526     if eval test \$wx_cv_func_$wx_func = yes
40527     then
40528       cat >>confdefs.h <<_ACEOF
40529 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40530 _ACEOF
40531
40532
40533     else
40534       :
40535
40536     fi
40537   done
40538
40539 if test "$wx_cv_func_uname" != yes; then
40540
40541   for wx_func in gethostname
40542   do
40543     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40544 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40545 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40546   echo $ECHO_N "(cached) $ECHO_C" >&6
40547 else
40548
40549         cat >conftest.$ac_ext <<_ACEOF
40550
40551             /* confdefs.h.  */
40552 _ACEOF
40553 cat confdefs.h >>conftest.$ac_ext
40554 cat >>conftest.$ac_ext <<_ACEOF
40555 /* end confdefs.h.  */
40556
40557
40558                 $ac_includes_default
40559
40560 int
40561 main ()
40562 {
40563
40564                 #ifndef $wx_func
40565                   &$wx_func;
40566                 #endif
40567
40568
40569   ;
40570   return 0;
40571 }
40572
40573 _ACEOF
40574 rm -f conftest.$ac_objext conftest$ac_exeext
40575 if { (ac_try="$ac_link"
40576 case "(($ac_try" in
40577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40578   *) ac_try_echo=$ac_try;;
40579 esac
40580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40581   (eval "$ac_link") 2>conftest.er1
40582   ac_status=$?
40583   grep -v '^ *+' conftest.er1 >conftest.err
40584   rm -f conftest.er1
40585   cat conftest.err >&5
40586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587   (exit $ac_status); } && {
40588          test -z "$ac_c_werror_flag" ||
40589          test ! -s conftest.err
40590        } && test -s conftest$ac_exeext &&
40591        $as_test_x conftest$ac_exeext; then
40592   eval wx_cv_func_$wx_func=yes
40593 else
40594   echo "$as_me: failed program was:" >&5
40595 sed 's/^/| /' conftest.$ac_ext >&5
40596
40597         eval wx_cv_func_$wx_func=no
40598 fi
40599
40600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40601       conftest$ac_exeext conftest.$ac_ext
40602
40603 fi
40604 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40605                { echo "$as_me:$LINENO: result: $ac_res" >&5
40606 echo "${ECHO_T}$ac_res" >&6; }
40607
40608     if eval test \$wx_cv_func_$wx_func = yes
40609     then
40610       cat >>confdefs.h <<_ACEOF
40611 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40612 _ACEOF
40613
40614
40615     else
40616       :
40617
40618     fi
40619   done
40620
40621 fi
40622
40623
40624   for wx_func in strtok_r
40625   do
40626     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40627 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40628 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40629   echo $ECHO_N "(cached) $ECHO_C" >&6
40630 else
40631
40632         cat >conftest.$ac_ext <<_ACEOF
40633
40634             /* confdefs.h.  */
40635 _ACEOF
40636 cat confdefs.h >>conftest.$ac_ext
40637 cat >>conftest.$ac_ext <<_ACEOF
40638 /* end confdefs.h.  */
40639
40640                 #define _REENTRANT
40641                 $ac_includes_default
40642
40643 int
40644 main ()
40645 {
40646
40647                 #ifndef $wx_func
40648                   &$wx_func;
40649                 #endif
40650
40651
40652   ;
40653   return 0;
40654 }
40655
40656 _ACEOF
40657 rm -f conftest.$ac_objext conftest$ac_exeext
40658 if { (ac_try="$ac_link"
40659 case "(($ac_try" in
40660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40661   *) ac_try_echo=$ac_try;;
40662 esac
40663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40664   (eval "$ac_link") 2>conftest.er1
40665   ac_status=$?
40666   grep -v '^ *+' conftest.er1 >conftest.err
40667   rm -f conftest.er1
40668   cat conftest.err >&5
40669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40670   (exit $ac_status); } && {
40671          test -z "$ac_c_werror_flag" ||
40672          test ! -s conftest.err
40673        } && test -s conftest$ac_exeext &&
40674        $as_test_x conftest$ac_exeext; then
40675   eval wx_cv_func_$wx_func=yes
40676 else
40677   echo "$as_me: failed program was:" >&5
40678 sed 's/^/| /' conftest.$ac_ext >&5
40679
40680         eval wx_cv_func_$wx_func=no
40681 fi
40682
40683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40684       conftest$ac_exeext conftest.$ac_ext
40685
40686 fi
40687 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40688                { echo "$as_me:$LINENO: result: $ac_res" >&5
40689 echo "${ECHO_T}$ac_res" >&6; }
40690
40691     if eval test \$wx_cv_func_$wx_func = yes
40692     then
40693       cat >>confdefs.h <<_ACEOF
40694 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40695 _ACEOF
40696
40697
40698     else
40699       :
40700
40701     fi
40702   done
40703
40704
40705 INET_LINK=
40706
40707 for ac_func in inet_addr
40708 do
40709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40713   echo $ECHO_N "(cached) $ECHO_C" >&6
40714 else
40715   cat >conftest.$ac_ext <<_ACEOF
40716 /* confdefs.h.  */
40717 _ACEOF
40718 cat confdefs.h >>conftest.$ac_ext
40719 cat >>conftest.$ac_ext <<_ACEOF
40720 /* end confdefs.h.  */
40721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40723 #define $ac_func innocuous_$ac_func
40724
40725 /* System header to define __stub macros and hopefully few prototypes,
40726     which can conflict with char $ac_func (); below.
40727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40728     <limits.h> exists even on freestanding compilers.  */
40729
40730 #ifdef __STDC__
40731 # include <limits.h>
40732 #else
40733 # include <assert.h>
40734 #endif
40735
40736 #undef $ac_func
40737
40738 /* Override any GCC internal prototype to avoid an error.
40739    Use char because int might match the return type of a GCC
40740    builtin and then its argument prototype would still apply.  */
40741 #ifdef __cplusplus
40742 extern "C"
40743 #endif
40744 char $ac_func ();
40745 /* The GNU C library defines this for functions which it implements
40746     to always fail with ENOSYS.  Some functions are actually named
40747     something starting with __ and the normal name is an alias.  */
40748 #if defined __stub_$ac_func || defined __stub___$ac_func
40749 choke me
40750 #endif
40751
40752 int
40753 main ()
40754 {
40755 return $ac_func ();
40756   ;
40757   return 0;
40758 }
40759 _ACEOF
40760 rm -f conftest.$ac_objext conftest$ac_exeext
40761 if { (ac_try="$ac_link"
40762 case "(($ac_try" in
40763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40764   *) ac_try_echo=$ac_try;;
40765 esac
40766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40767   (eval "$ac_link") 2>conftest.er1
40768   ac_status=$?
40769   grep -v '^ *+' conftest.er1 >conftest.err
40770   rm -f conftest.er1
40771   cat conftest.err >&5
40772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40773   (exit $ac_status); } && {
40774          test -z "$ac_c_werror_flag" ||
40775          test ! -s conftest.err
40776        } && test -s conftest$ac_exeext &&
40777        $as_test_x conftest$ac_exeext; then
40778   eval "$as_ac_var=yes"
40779 else
40780   echo "$as_me: failed program was:" >&5
40781 sed 's/^/| /' conftest.$ac_ext >&5
40782
40783         eval "$as_ac_var=no"
40784 fi
40785
40786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40787       conftest$ac_exeext conftest.$ac_ext
40788 fi
40789 ac_res=`eval echo '${'$as_ac_var'}'`
40790                { echo "$as_me:$LINENO: result: $ac_res" >&5
40791 echo "${ECHO_T}$ac_res" >&6; }
40792 if test `eval echo '${'$as_ac_var'}'` = yes; then
40793   cat >>confdefs.h <<_ACEOF
40794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40795 _ACEOF
40796  cat >>confdefs.h <<\_ACEOF
40797 #define HAVE_INET_ADDR 1
40798 _ACEOF
40799
40800 else
40801
40802         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
40803 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
40804 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
40805   echo $ECHO_N "(cached) $ECHO_C" >&6
40806 else
40807   ac_check_lib_save_LIBS=$LIBS
40808 LIBS="-lnsl  $LIBS"
40809 cat >conftest.$ac_ext <<_ACEOF
40810 /* confdefs.h.  */
40811 _ACEOF
40812 cat confdefs.h >>conftest.$ac_ext
40813 cat >>conftest.$ac_ext <<_ACEOF
40814 /* end confdefs.h.  */
40815
40816 /* Override any GCC internal prototype to avoid an error.
40817    Use char because int might match the return type of a GCC
40818    builtin and then its argument prototype would still apply.  */
40819 #ifdef __cplusplus
40820 extern "C"
40821 #endif
40822 char inet_addr ();
40823 int
40824 main ()
40825 {
40826 return inet_addr ();
40827   ;
40828   return 0;
40829 }
40830 _ACEOF
40831 rm -f conftest.$ac_objext conftest$ac_exeext
40832 if { (ac_try="$ac_link"
40833 case "(($ac_try" in
40834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40835   *) ac_try_echo=$ac_try;;
40836 esac
40837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40838   (eval "$ac_link") 2>conftest.er1
40839   ac_status=$?
40840   grep -v '^ *+' conftest.er1 >conftest.err
40841   rm -f conftest.er1
40842   cat conftest.err >&5
40843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40844   (exit $ac_status); } && {
40845          test -z "$ac_c_werror_flag" ||
40846          test ! -s conftest.err
40847        } && test -s conftest$ac_exeext &&
40848        $as_test_x conftest$ac_exeext; then
40849   ac_cv_lib_nsl_inet_addr=yes
40850 else
40851   echo "$as_me: failed program was:" >&5
40852 sed 's/^/| /' conftest.$ac_ext >&5
40853
40854         ac_cv_lib_nsl_inet_addr=no
40855 fi
40856
40857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40858       conftest$ac_exeext conftest.$ac_ext
40859 LIBS=$ac_check_lib_save_LIBS
40860 fi
40861 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
40862 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
40863 if test $ac_cv_lib_nsl_inet_addr = yes; then
40864   INET_LINK="nsl"
40865 else
40866
40867                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
40868 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
40869 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
40870   echo $ECHO_N "(cached) $ECHO_C" >&6
40871 else
40872   ac_check_lib_save_LIBS=$LIBS
40873 LIBS="-lresolv  $LIBS"
40874 cat >conftest.$ac_ext <<_ACEOF
40875 /* confdefs.h.  */
40876 _ACEOF
40877 cat confdefs.h >>conftest.$ac_ext
40878 cat >>conftest.$ac_ext <<_ACEOF
40879 /* end confdefs.h.  */
40880
40881 /* Override any GCC internal prototype to avoid an error.
40882    Use char because int might match the return type of a GCC
40883    builtin and then its argument prototype would still apply.  */
40884 #ifdef __cplusplus
40885 extern "C"
40886 #endif
40887 char inet_addr ();
40888 int
40889 main ()
40890 {
40891 return inet_addr ();
40892   ;
40893   return 0;
40894 }
40895 _ACEOF
40896 rm -f conftest.$ac_objext conftest$ac_exeext
40897 if { (ac_try="$ac_link"
40898 case "(($ac_try" in
40899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40900   *) ac_try_echo=$ac_try;;
40901 esac
40902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40903   (eval "$ac_link") 2>conftest.er1
40904   ac_status=$?
40905   grep -v '^ *+' conftest.er1 >conftest.err
40906   rm -f conftest.er1
40907   cat conftest.err >&5
40908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909   (exit $ac_status); } && {
40910          test -z "$ac_c_werror_flag" ||
40911          test ! -s conftest.err
40912        } && test -s conftest$ac_exeext &&
40913        $as_test_x conftest$ac_exeext; then
40914   ac_cv_lib_resolv_inet_addr=yes
40915 else
40916   echo "$as_me: failed program was:" >&5
40917 sed 's/^/| /' conftest.$ac_ext >&5
40918
40919         ac_cv_lib_resolv_inet_addr=no
40920 fi
40921
40922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40923       conftest$ac_exeext conftest.$ac_ext
40924 LIBS=$ac_check_lib_save_LIBS
40925 fi
40926 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
40927 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
40928 if test $ac_cv_lib_resolv_inet_addr = yes; then
40929   INET_LINK="resolv"
40930 else
40931
40932                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
40933 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
40934 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
40935   echo $ECHO_N "(cached) $ECHO_C" >&6
40936 else
40937   ac_check_lib_save_LIBS=$LIBS
40938 LIBS="-lsocket  $LIBS"
40939 cat >conftest.$ac_ext <<_ACEOF
40940 /* confdefs.h.  */
40941 _ACEOF
40942 cat confdefs.h >>conftest.$ac_ext
40943 cat >>conftest.$ac_ext <<_ACEOF
40944 /* end confdefs.h.  */
40945
40946 /* Override any GCC internal prototype to avoid an error.
40947    Use char because int might match the return type of a GCC
40948    builtin and then its argument prototype would still apply.  */
40949 #ifdef __cplusplus
40950 extern "C"
40951 #endif
40952 char inet_addr ();
40953 int
40954 main ()
40955 {
40956 return inet_addr ();
40957   ;
40958   return 0;
40959 }
40960 _ACEOF
40961 rm -f conftest.$ac_objext conftest$ac_exeext
40962 if { (ac_try="$ac_link"
40963 case "(($ac_try" in
40964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40965   *) ac_try_echo=$ac_try;;
40966 esac
40967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40968   (eval "$ac_link") 2>conftest.er1
40969   ac_status=$?
40970   grep -v '^ *+' conftest.er1 >conftest.err
40971   rm -f conftest.er1
40972   cat conftest.err >&5
40973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974   (exit $ac_status); } && {
40975          test -z "$ac_c_werror_flag" ||
40976          test ! -s conftest.err
40977        } && test -s conftest$ac_exeext &&
40978        $as_test_x conftest$ac_exeext; then
40979   ac_cv_lib_socket_inet_addr=yes
40980 else
40981   echo "$as_me: failed program was:" >&5
40982 sed 's/^/| /' conftest.$ac_ext >&5
40983
40984         ac_cv_lib_socket_inet_addr=no
40985 fi
40986
40987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40988       conftest$ac_exeext conftest.$ac_ext
40989 LIBS=$ac_check_lib_save_LIBS
40990 fi
40991 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40992 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40993 if test $ac_cv_lib_socket_inet_addr = yes; then
40994   INET_LINK="socket"
40995
40996 fi
40997
40998
40999
41000 fi
41001
41002
41003
41004 fi
41005
41006
41007
41008 fi
41009 done
41010
41011
41012
41013 for ac_func in inet_aton
41014 do
41015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41019   echo $ECHO_N "(cached) $ECHO_C" >&6
41020 else
41021   cat >conftest.$ac_ext <<_ACEOF
41022 /* confdefs.h.  */
41023 _ACEOF
41024 cat confdefs.h >>conftest.$ac_ext
41025 cat >>conftest.$ac_ext <<_ACEOF
41026 /* end confdefs.h.  */
41027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41029 #define $ac_func innocuous_$ac_func
41030
41031 /* System header to define __stub macros and hopefully few prototypes,
41032     which can conflict with char $ac_func (); below.
41033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41034     <limits.h> exists even on freestanding compilers.  */
41035
41036 #ifdef __STDC__
41037 # include <limits.h>
41038 #else
41039 # include <assert.h>
41040 #endif
41041
41042 #undef $ac_func
41043
41044 /* Override any GCC internal prototype to avoid an error.
41045    Use char because int might match the return type of a GCC
41046    builtin and then its argument prototype would still apply.  */
41047 #ifdef __cplusplus
41048 extern "C"
41049 #endif
41050 char $ac_func ();
41051 /* The GNU C library defines this for functions which it implements
41052     to always fail with ENOSYS.  Some functions are actually named
41053     something starting with __ and the normal name is an alias.  */
41054 #if defined __stub_$ac_func || defined __stub___$ac_func
41055 choke me
41056 #endif
41057
41058 int
41059 main ()
41060 {
41061 return $ac_func ();
41062   ;
41063   return 0;
41064 }
41065 _ACEOF
41066 rm -f conftest.$ac_objext conftest$ac_exeext
41067 if { (ac_try="$ac_link"
41068 case "(($ac_try" in
41069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41070   *) ac_try_echo=$ac_try;;
41071 esac
41072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41073   (eval "$ac_link") 2>conftest.er1
41074   ac_status=$?
41075   grep -v '^ *+' conftest.er1 >conftest.err
41076   rm -f conftest.er1
41077   cat conftest.err >&5
41078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41079   (exit $ac_status); } && {
41080          test -z "$ac_c_werror_flag" ||
41081          test ! -s conftest.err
41082        } && test -s conftest$ac_exeext &&
41083        $as_test_x conftest$ac_exeext; then
41084   eval "$as_ac_var=yes"
41085 else
41086   echo "$as_me: failed program was:" >&5
41087 sed 's/^/| /' conftest.$ac_ext >&5
41088
41089         eval "$as_ac_var=no"
41090 fi
41091
41092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41093       conftest$ac_exeext conftest.$ac_ext
41094 fi
41095 ac_res=`eval echo '${'$as_ac_var'}'`
41096                { echo "$as_me:$LINENO: result: $ac_res" >&5
41097 echo "${ECHO_T}$ac_res" >&6; }
41098 if test `eval echo '${'$as_ac_var'}'` = yes; then
41099   cat >>confdefs.h <<_ACEOF
41100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41101 _ACEOF
41102  cat >>confdefs.h <<\_ACEOF
41103 #define HAVE_INET_ATON 1
41104 _ACEOF
41105
41106 else
41107
41108                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
41109 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
41110 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
41111 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41112   echo $ECHO_N "(cached) $ECHO_C" >&6
41113 else
41114   ac_check_lib_save_LIBS=$LIBS
41115 LIBS="-l$INET_LINK  $LIBS"
41116 cat >conftest.$ac_ext <<_ACEOF
41117 /* confdefs.h.  */
41118 _ACEOF
41119 cat confdefs.h >>conftest.$ac_ext
41120 cat >>conftest.$ac_ext <<_ACEOF
41121 /* end confdefs.h.  */
41122
41123 /* Override any GCC internal prototype to avoid an error.
41124    Use char because int might match the return type of a GCC
41125    builtin and then its argument prototype would still apply.  */
41126 #ifdef __cplusplus
41127 extern "C"
41128 #endif
41129 char inet_aton ();
41130 int
41131 main ()
41132 {
41133 return inet_aton ();
41134   ;
41135   return 0;
41136 }
41137 _ACEOF
41138 rm -f conftest.$ac_objext conftest$ac_exeext
41139 if { (ac_try="$ac_link"
41140 case "(($ac_try" in
41141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41142   *) ac_try_echo=$ac_try;;
41143 esac
41144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41145   (eval "$ac_link") 2>conftest.er1
41146   ac_status=$?
41147   grep -v '^ *+' conftest.er1 >conftest.err
41148   rm -f conftest.er1
41149   cat conftest.err >&5
41150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41151   (exit $ac_status); } && {
41152          test -z "$ac_c_werror_flag" ||
41153          test ! -s conftest.err
41154        } && test -s conftest$ac_exeext &&
41155        $as_test_x conftest$ac_exeext; then
41156   eval "$as_ac_Lib=yes"
41157 else
41158   echo "$as_me: failed program was:" >&5
41159 sed 's/^/| /' conftest.$ac_ext >&5
41160
41161         eval "$as_ac_Lib=no"
41162 fi
41163
41164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41165       conftest$ac_exeext conftest.$ac_ext
41166 LIBS=$ac_check_lib_save_LIBS
41167 fi
41168 ac_res=`eval echo '${'$as_ac_Lib'}'`
41169                { echo "$as_me:$LINENO: result: $ac_res" >&5
41170 echo "${ECHO_T}$ac_res" >&6; }
41171 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41172   cat >>confdefs.h <<\_ACEOF
41173 #define HAVE_INET_ATON 1
41174 _ACEOF
41175
41176 fi
41177
41178
41179 fi
41180 done
41181
41182
41183 if test "x$INET_LINK" != "x"; then
41184     cat >>confdefs.h <<\_ACEOF
41185 #define HAVE_INET_ADDR 1
41186 _ACEOF
41187
41188     INET_LINK=" -l$INET_LINK"
41189 fi
41190
41191
41192   for wx_func in fdopen
41193   do
41194     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41195 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41196 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41197   echo $ECHO_N "(cached) $ECHO_C" >&6
41198 else
41199
41200         cat >conftest.$ac_ext <<_ACEOF
41201
41202             /* confdefs.h.  */
41203 _ACEOF
41204 cat confdefs.h >>conftest.$ac_ext
41205 cat >>conftest.$ac_ext <<_ACEOF
41206 /* end confdefs.h.  */
41207
41208
41209                 $ac_includes_default
41210
41211 int
41212 main ()
41213 {
41214
41215                 #ifndef $wx_func
41216                   &$wx_func;
41217                 #endif
41218
41219
41220   ;
41221   return 0;
41222 }
41223
41224 _ACEOF
41225 rm -f conftest.$ac_objext conftest$ac_exeext
41226 if { (ac_try="$ac_link"
41227 case "(($ac_try" in
41228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41229   *) ac_try_echo=$ac_try;;
41230 esac
41231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41232   (eval "$ac_link") 2>conftest.er1
41233   ac_status=$?
41234   grep -v '^ *+' conftest.er1 >conftest.err
41235   rm -f conftest.er1
41236   cat conftest.err >&5
41237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41238   (exit $ac_status); } && {
41239          test -z "$ac_c_werror_flag" ||
41240          test ! -s conftest.err
41241        } && test -s conftest$ac_exeext &&
41242        $as_test_x conftest$ac_exeext; then
41243   eval wx_cv_func_$wx_func=yes
41244 else
41245   echo "$as_me: failed program was:" >&5
41246 sed 's/^/| /' conftest.$ac_ext >&5
41247
41248         eval wx_cv_func_$wx_func=no
41249 fi
41250
41251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41252       conftest$ac_exeext conftest.$ac_ext
41253
41254 fi
41255 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41256                { echo "$as_me:$LINENO: result: $ac_res" >&5
41257 echo "${ECHO_T}$ac_res" >&6; }
41258
41259     if eval test \$wx_cv_func_$wx_func = yes
41260     then
41261       cat >>confdefs.h <<_ACEOF
41262 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41263 _ACEOF
41264
41265
41266     else
41267       :
41268
41269     fi
41270   done
41271
41272
41273 if test "$wxUSE_TARSTREAM" = "yes"; then
41274
41275   for wx_func in sysconf
41276   do
41277     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41278 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41279 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41280   echo $ECHO_N "(cached) $ECHO_C" >&6
41281 else
41282
41283         cat >conftest.$ac_ext <<_ACEOF
41284
41285             /* confdefs.h.  */
41286 _ACEOF
41287 cat confdefs.h >>conftest.$ac_ext
41288 cat >>conftest.$ac_ext <<_ACEOF
41289 /* end confdefs.h.  */
41290
41291
41292                 $ac_includes_default
41293
41294 int
41295 main ()
41296 {
41297
41298                 #ifndef $wx_func
41299                   &$wx_func;
41300                 #endif
41301
41302
41303   ;
41304   return 0;
41305 }
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   eval wx_cv_func_$wx_func=yes
41327 else
41328   echo "$as_me: failed program was:" >&5
41329 sed 's/^/| /' conftest.$ac_ext >&5
41330
41331         eval wx_cv_func_$wx_func=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
41337 fi
41338 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41339                { echo "$as_me:$LINENO: result: $ac_res" >&5
41340 echo "${ECHO_T}$ac_res" >&6; }
41341
41342     if eval test \$wx_cv_func_$wx_func = yes
41343     then
41344       cat >>confdefs.h <<_ACEOF
41345 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41346 _ACEOF
41347
41348
41349     else
41350       :
41351
41352     fi
41353   done
41354
41355
41356
41357   for wx_func in getpwuid_r
41358   do
41359     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41360 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41361 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41362   echo $ECHO_N "(cached) $ECHO_C" >&6
41363 else
41364
41365         cat >conftest.$ac_ext <<_ACEOF
41366
41367             /* confdefs.h.  */
41368 _ACEOF
41369 cat confdefs.h >>conftest.$ac_ext
41370 cat >>conftest.$ac_ext <<_ACEOF
41371 /* end confdefs.h.  */
41372
41373
41374                     #define _REENTRANT
41375                     #include <pwd.h>
41376
41377                 $ac_includes_default
41378
41379 int
41380 main ()
41381 {
41382
41383                 #ifndef $wx_func
41384                   &$wx_func;
41385                 #endif
41386
41387                     struct passwd pw, *ppw;
41388                     char buf[1024];
41389                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
41390
41391
41392   ;
41393   return 0;
41394 }
41395
41396 _ACEOF
41397 rm -f conftest.$ac_objext conftest$ac_exeext
41398 if { (ac_try="$ac_link"
41399 case "(($ac_try" in
41400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41401   *) ac_try_echo=$ac_try;;
41402 esac
41403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41404   (eval "$ac_link") 2>conftest.er1
41405   ac_status=$?
41406   grep -v '^ *+' conftest.er1 >conftest.err
41407   rm -f conftest.er1
41408   cat conftest.err >&5
41409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41410   (exit $ac_status); } && {
41411          test -z "$ac_c_werror_flag" ||
41412          test ! -s conftest.err
41413        } && test -s conftest$ac_exeext &&
41414        $as_test_x conftest$ac_exeext; then
41415   eval wx_cv_func_$wx_func=yes
41416 else
41417   echo "$as_me: failed program was:" >&5
41418 sed 's/^/| /' conftest.$ac_ext >&5
41419
41420         eval wx_cv_func_$wx_func=no
41421 fi
41422
41423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41424       conftest$ac_exeext conftest.$ac_ext
41425
41426 fi
41427 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41428                { echo "$as_me:$LINENO: result: $ac_res" >&5
41429 echo "${ECHO_T}$ac_res" >&6; }
41430
41431     if eval test \$wx_cv_func_$wx_func = yes
41432     then
41433       cat >>confdefs.h <<_ACEOF
41434 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41435 _ACEOF
41436
41437
41438     else
41439       :
41440
41441     fi
41442   done
41443
41444
41445
41446   for wx_func in getgrgid_r
41447   do
41448     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41449 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41450 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41451   echo $ECHO_N "(cached) $ECHO_C" >&6
41452 else
41453
41454         cat >conftest.$ac_ext <<_ACEOF
41455
41456             /* confdefs.h.  */
41457 _ACEOF
41458 cat confdefs.h >>conftest.$ac_ext
41459 cat >>conftest.$ac_ext <<_ACEOF
41460 /* end confdefs.h.  */
41461
41462
41463                     #define _REENTRANT
41464                     #include <grp.h>
41465
41466                 $ac_includes_default
41467
41468 int
41469 main ()
41470 {
41471
41472                 #ifndef $wx_func
41473                   &$wx_func;
41474                 #endif
41475
41476                     struct group grp, *pgrp;
41477                     char buf[1024];
41478                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
41479
41480
41481   ;
41482   return 0;
41483 }
41484
41485 _ACEOF
41486 rm -f conftest.$ac_objext conftest$ac_exeext
41487 if { (ac_try="$ac_link"
41488 case "(($ac_try" in
41489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41490   *) ac_try_echo=$ac_try;;
41491 esac
41492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41493   (eval "$ac_link") 2>conftest.er1
41494   ac_status=$?
41495   grep -v '^ *+' conftest.er1 >conftest.err
41496   rm -f conftest.er1
41497   cat conftest.err >&5
41498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41499   (exit $ac_status); } && {
41500          test -z "$ac_c_werror_flag" ||
41501          test ! -s conftest.err
41502        } && test -s conftest$ac_exeext &&
41503        $as_test_x conftest$ac_exeext; then
41504   eval wx_cv_func_$wx_func=yes
41505 else
41506   echo "$as_me: failed program was:" >&5
41507 sed 's/^/| /' conftest.$ac_ext >&5
41508
41509         eval wx_cv_func_$wx_func=no
41510 fi
41511
41512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41513       conftest$ac_exeext conftest.$ac_ext
41514
41515 fi
41516 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41517                { echo "$as_me:$LINENO: result: $ac_res" >&5
41518 echo "${ECHO_T}$ac_res" >&6; }
41519
41520     if eval test \$wx_cv_func_$wx_func = yes
41521     then
41522       cat >>confdefs.h <<_ACEOF
41523 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41524 _ACEOF
41525
41526
41527     else
41528       :
41529
41530     fi
41531   done
41532
41533 fi
41534
41535 fi
41536
41537
41538
41539 cat >confcache <<\_ACEOF
41540 # This file is a shell script that caches the results of configure
41541 # tests run on this system so they can be shared between configure
41542 # scripts and configure runs, see configure's option --config-cache.
41543 # It is not useful on other systems.  If it contains results you don't
41544 # want to keep, you may remove or edit it.
41545 #
41546 # config.status only pays attention to the cache file if you give it
41547 # the --recheck option to rerun configure.
41548 #
41549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41551 # following values.
41552
41553 _ACEOF
41554
41555 # The following way of writing the cache mishandles newlines in values,
41556 # but we know of no workaround that is simple, portable, and efficient.
41557 # So, we kill variables containing newlines.
41558 # Ultrix sh set writes to stderr and can't be redirected directly,
41559 # and sets the high bit in the cache file unless we assign to the vars.
41560 (
41561   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41562     eval ac_val=\$$ac_var
41563     case $ac_val in #(
41564     *${as_nl}*)
41565       case $ac_var in #(
41566       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41567 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41568       esac
41569       case $ac_var in #(
41570       _ | IFS | as_nl) ;; #(
41571       *) $as_unset $ac_var ;;
41572       esac ;;
41573     esac
41574   done
41575
41576   (set) 2>&1 |
41577     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41578     *${as_nl}ac_space=\ *)
41579       # `set' does not quote correctly, so add quotes (double-quote
41580       # substitution turns \\\\ into \\, and sed turns \\ into \).
41581       sed -n \
41582         "s/'/'\\\\''/g;
41583           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41584       ;; #(
41585     *)
41586       # `set' quotes correctly as required by POSIX, so do not add quotes.
41587       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41588       ;;
41589     esac |
41590     sort
41591 ) |
41592   sed '
41593      /^ac_cv_env_/b end
41594      t clear
41595      :clear
41596      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41597      t end
41598      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41599      :end' >>confcache
41600 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41601   if test -w "$cache_file"; then
41602     test "x$cache_file" != "x/dev/null" &&
41603       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41604 echo "$as_me: updating cache $cache_file" >&6;}
41605     cat confcache >$cache_file
41606   else
41607     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41608 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41609   fi
41610 fi
41611 rm -f confcache
41612
41613
41614 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41615
41616
41617     THREADS_LINK=
41618     THREADS_CFLAGS=
41619
41620     if test "$wxUSE_THREADS" = "yes" ; then
41621         if test "$USE_BEOS" = 1; then
41622             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41623 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41624             wxUSE_THREADS="no"
41625         fi
41626     fi
41627
41628     if test "$wxUSE_THREADS" = "yes" ; then
41629
41630
41631                                 THREAD_OPTS="-pthread"
41632         if test "x$SUNCXX" = xyes; then
41633             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41634         fi
41635
41636         case "${host}" in
41637           *-*-solaris2* | *-*-sunos4* )
41638                 if test "x$GCC" = "xyes"; then
41639                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41640                 fi
41641                 ;;
41642           *-*-freebsd*)
41643                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41644                 ;;
41645           *-*-darwin* | *-*-cygwin* )
41646                                                 THREAD_OPTS=""
41647                 ;;
41648           *-*-aix*)
41649                                 THREAD_OPTS="pthreads"
41650                 ;;
41651           *-hp-hpux* )
41652                 if test "x$GCC" = "xyes"; then
41653                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41654                         THREAD_OPTS=""
41655                 else
41656                                                             THREAD_OPTS="-mt"
41657                 fi
41658                 ;;
41659
41660           *-*-irix* )
41661                                                                 if test "x$GCC" = "xyes"; then
41662                     THREAD_OPTS=""
41663                 fi
41664                 ;;
41665
41666           *-*-*UnixWare*)
41667                                 if test "x$GCC" != "xyes"; then
41668                     THREAD_OPTS="-Ethread"
41669                 fi
41670                 ;;
41671         esac
41672
41673                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41674
41675                 THREADS_OK=no
41676         for flag in $THREAD_OPTS; do
41677             case $flag in
41678                 none)
41679                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41680 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41681                     ;;
41682
41683                 -*)
41684                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41685 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41686                     THREADS_CFLAGS="$flag"
41687                     ;;
41688
41689                 *)
41690                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41691 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41692                     THREADS_LINK="-l$flag"
41693                     ;;
41694               esac
41695
41696               save_LIBS="$LIBS"
41697               save_CFLAGS="$CFLAGS"
41698               LIBS="$THREADS_LINK $LIBS"
41699               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41700
41701               cat >conftest.$ac_ext <<_ACEOF
41702 /* confdefs.h.  */
41703 _ACEOF
41704 cat confdefs.h >>conftest.$ac_ext
41705 cat >>conftest.$ac_ext <<_ACEOF
41706 /* end confdefs.h.  */
41707 #include <pthread.h>
41708 int
41709 main ()
41710 {
41711 pthread_create(0,0,0,0);
41712   ;
41713   return 0;
41714 }
41715 _ACEOF
41716 rm -f conftest.$ac_objext conftest$ac_exeext
41717 if { (ac_try="$ac_link"
41718 case "(($ac_try" in
41719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41720   *) ac_try_echo=$ac_try;;
41721 esac
41722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41723   (eval "$ac_link") 2>conftest.er1
41724   ac_status=$?
41725   grep -v '^ *+' conftest.er1 >conftest.err
41726   rm -f conftest.er1
41727   cat conftest.err >&5
41728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41729   (exit $ac_status); } && {
41730          test -z "$ac_c_werror_flag" ||
41731          test ! -s conftest.err
41732        } && test -s conftest$ac_exeext &&
41733        $as_test_x conftest$ac_exeext; then
41734   THREADS_OK=yes
41735 else
41736   echo "$as_me: failed program was:" >&5
41737 sed 's/^/| /' conftest.$ac_ext >&5
41738
41739
41740 fi
41741
41742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41743       conftest$ac_exeext conftest.$ac_ext
41744
41745               LIBS="$save_LIBS"
41746               CFLAGS="$save_CFLAGS"
41747
41748               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41749 echo "${ECHO_T}$THREADS_OK" >&6; }
41750               if test "x$THREADS_OK" = "xyes"; then
41751                       break;
41752               fi
41753
41754               THREADS_LINK=""
41755               THREADS_CFLAGS=""
41756       done
41757
41758       if test "x$THREADS_OK" != "xyes"; then
41759           wxUSE_THREADS=no
41760           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41761 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41762       else
41763                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41764           LIBS="$THREADS_LINK $LIBS"
41765
41766           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41767 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41768           flag=no
41769           case "${host}" in
41770             *-aix*)
41771                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41772                 flag="-D_THREAD_SAFE"
41773                 ;;
41774             *-freebsd*)
41775                 flag="-D_THREAD_SAFE"
41776                 ;;
41777             *-hp-hpux* )
41778                 flag="-D_REENTRANT"
41779                 if test "x$GCC" != "xyes"; then
41780                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41781                 fi
41782                 ;;
41783             *solaris* | alpha*-osf*)
41784                 flag="-D_REENTRANT"
41785                 ;;
41786           esac
41787           { echo "$as_me:$LINENO: result: ${flag}" >&5
41788 echo "${ECHO_T}${flag}" >&6; }
41789           if test "x$flag" != xno; then
41790               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41791           fi
41792
41793                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41794       fi
41795     fi
41796
41797         if test "$wxUSE_THREADS" = "yes" ; then
41798
41799 for ac_func in thr_setconcurrency
41800 do
41801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41802 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41804 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41805   echo $ECHO_N "(cached) $ECHO_C" >&6
41806 else
41807   cat >conftest.$ac_ext <<_ACEOF
41808 /* confdefs.h.  */
41809 _ACEOF
41810 cat confdefs.h >>conftest.$ac_ext
41811 cat >>conftest.$ac_ext <<_ACEOF
41812 /* end confdefs.h.  */
41813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41815 #define $ac_func innocuous_$ac_func
41816
41817 /* System header to define __stub macros and hopefully few prototypes,
41818     which can conflict with char $ac_func (); below.
41819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41820     <limits.h> exists even on freestanding compilers.  */
41821
41822 #ifdef __STDC__
41823 # include <limits.h>
41824 #else
41825 # include <assert.h>
41826 #endif
41827
41828 #undef $ac_func
41829
41830 /* Override any GCC internal prototype to avoid an error.
41831    Use char because int might match the return type of a GCC
41832    builtin and then its argument prototype would still apply.  */
41833 #ifdef __cplusplus
41834 extern "C"
41835 #endif
41836 char $ac_func ();
41837 /* The GNU C library defines this for functions which it implements
41838     to always fail with ENOSYS.  Some functions are actually named
41839     something starting with __ and the normal name is an alias.  */
41840 #if defined __stub_$ac_func || defined __stub___$ac_func
41841 choke me
41842 #endif
41843
41844 int
41845 main ()
41846 {
41847 return $ac_func ();
41848   ;
41849   return 0;
41850 }
41851 _ACEOF
41852 rm -f conftest.$ac_objext conftest$ac_exeext
41853 if { (ac_try="$ac_link"
41854 case "(($ac_try" in
41855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41856   *) ac_try_echo=$ac_try;;
41857 esac
41858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41859   (eval "$ac_link") 2>conftest.er1
41860   ac_status=$?
41861   grep -v '^ *+' conftest.er1 >conftest.err
41862   rm -f conftest.er1
41863   cat conftest.err >&5
41864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41865   (exit $ac_status); } && {
41866          test -z "$ac_c_werror_flag" ||
41867          test ! -s conftest.err
41868        } && test -s conftest$ac_exeext &&
41869        $as_test_x conftest$ac_exeext; then
41870   eval "$as_ac_var=yes"
41871 else
41872   echo "$as_me: failed program was:" >&5
41873 sed 's/^/| /' conftest.$ac_ext >&5
41874
41875         eval "$as_ac_var=no"
41876 fi
41877
41878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41879       conftest$ac_exeext conftest.$ac_ext
41880 fi
41881 ac_res=`eval echo '${'$as_ac_var'}'`
41882                { echo "$as_me:$LINENO: result: $ac_res" >&5
41883 echo "${ECHO_T}$ac_res" >&6; }
41884 if test `eval echo '${'$as_ac_var'}'` = yes; then
41885   cat >>confdefs.h <<_ACEOF
41886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41887 _ACEOF
41888
41889 fi
41890 done
41891
41892
41893                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
41894 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
41895 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
41896   echo $ECHO_N "(cached) $ECHO_C" >&6
41897 else
41898
41899                                 ac_ext=cpp
41900 ac_cpp='$CXXCPP $CPPFLAGS'
41901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41904
41905         cat >conftest.$ac_ext <<_ACEOF
41906 /* confdefs.h.  */
41907 _ACEOF
41908 cat confdefs.h >>conftest.$ac_ext
41909 cat >>conftest.$ac_ext <<_ACEOF
41910 /* end confdefs.h.  */
41911 #include <pthread.h>
41912                void ThreadCleanupFunc(void *p);
41913
41914 int
41915 main ()
41916 {
41917
41918                 void *p;
41919                 pthread_cleanup_push(ThreadCleanupFunc, p);
41920                 pthread_cleanup_pop(0);
41921
41922   ;
41923   return 0;
41924 }
41925 _ACEOF
41926 rm -f conftest.$ac_objext
41927 if { (ac_try="$ac_compile"
41928 case "(($ac_try" in
41929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41930   *) ac_try_echo=$ac_try;;
41931 esac
41932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41933   (eval "$ac_compile") 2>conftest.er1
41934   ac_status=$?
41935   grep -v '^ *+' conftest.er1 >conftest.err
41936   rm -f conftest.er1
41937   cat conftest.err >&5
41938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41939   (exit $ac_status); } && {
41940          test -z "$ac_cxx_werror_flag" ||
41941          test ! -s conftest.err
41942        } && test -s conftest.$ac_objext; then
41943
41944                wx_cv_func_pthread_cleanup=yes
41945
41946 else
41947   echo "$as_me: failed program was:" >&5
41948 sed 's/^/| /' conftest.$ac_ext >&5
41949
41950
41951                wx_cv_func_pthread_cleanup=no
41952
41953
41954 fi
41955
41956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41957         ac_ext=c
41958 ac_cpp='$CPP $CPPFLAGS'
41959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41962
41963
41964 fi
41965 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41966 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41967       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41968         cat >>confdefs.h <<\_ACEOF
41969 #define wxHAVE_PTHREAD_CLEANUP 1
41970 _ACEOF
41971
41972       fi
41973
41974
41975 for ac_header in sched.h
41976 do
41977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41981   echo $ECHO_N "(cached) $ECHO_C" >&6
41982 else
41983   cat >conftest.$ac_ext <<_ACEOF
41984 /* confdefs.h.  */
41985 _ACEOF
41986 cat confdefs.h >>conftest.$ac_ext
41987 cat >>conftest.$ac_ext <<_ACEOF
41988 /* end confdefs.h.  */
41989 $ac_includes_default
41990
41991 #include <$ac_header>
41992 _ACEOF
41993 rm -f conftest.$ac_objext
41994 if { (ac_try="$ac_compile"
41995 case "(($ac_try" in
41996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41997   *) ac_try_echo=$ac_try;;
41998 esac
41999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42000   (eval "$ac_compile") 2>conftest.er1
42001   ac_status=$?
42002   grep -v '^ *+' conftest.er1 >conftest.err
42003   rm -f conftest.er1
42004   cat conftest.err >&5
42005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42006   (exit $ac_status); } && {
42007          test -z "$ac_c_werror_flag" ||
42008          test ! -s conftest.err
42009        } && test -s conftest.$ac_objext; then
42010   eval "$as_ac_Header=yes"
42011 else
42012   echo "$as_me: failed program was:" >&5
42013 sed 's/^/| /' conftest.$ac_ext >&5
42014
42015         eval "$as_ac_Header=no"
42016 fi
42017
42018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42019 fi
42020 ac_res=`eval echo '${'$as_ac_Header'}'`
42021                { echo "$as_me:$LINENO: result: $ac_res" >&5
42022 echo "${ECHO_T}$ac_res" >&6; }
42023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42024   cat >>confdefs.h <<_ACEOF
42025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42026 _ACEOF
42027
42028 fi
42029
42030 done
42031
42032       if test "$ac_cv_header_sched_h" = "yes"; then
42033           { echo "$as_me:$LINENO: checking for sched_yield" >&5
42034 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
42035 if test "${ac_cv_func_sched_yield+set}" = set; then
42036   echo $ECHO_N "(cached) $ECHO_C" >&6
42037 else
42038   cat >conftest.$ac_ext <<_ACEOF
42039 /* confdefs.h.  */
42040 _ACEOF
42041 cat confdefs.h >>conftest.$ac_ext
42042 cat >>conftest.$ac_ext <<_ACEOF
42043 /* end confdefs.h.  */
42044 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
42045    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42046 #define sched_yield innocuous_sched_yield
42047
42048 /* System header to define __stub macros and hopefully few prototypes,
42049     which can conflict with char sched_yield (); below.
42050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42051     <limits.h> exists even on freestanding compilers.  */
42052
42053 #ifdef __STDC__
42054 # include <limits.h>
42055 #else
42056 # include <assert.h>
42057 #endif
42058
42059 #undef sched_yield
42060
42061 /* Override any GCC internal prototype to avoid an error.
42062    Use char because int might match the return type of a GCC
42063    builtin and then its argument prototype would still apply.  */
42064 #ifdef __cplusplus
42065 extern "C"
42066 #endif
42067 char sched_yield ();
42068 /* The GNU C library defines this for functions which it implements
42069     to always fail with ENOSYS.  Some functions are actually named
42070     something starting with __ and the normal name is an alias.  */
42071 #if defined __stub_sched_yield || defined __stub___sched_yield
42072 choke me
42073 #endif
42074
42075 int
42076 main ()
42077 {
42078 return sched_yield ();
42079   ;
42080   return 0;
42081 }
42082 _ACEOF
42083 rm -f conftest.$ac_objext conftest$ac_exeext
42084 if { (ac_try="$ac_link"
42085 case "(($ac_try" in
42086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42087   *) ac_try_echo=$ac_try;;
42088 esac
42089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42090   (eval "$ac_link") 2>conftest.er1
42091   ac_status=$?
42092   grep -v '^ *+' conftest.er1 >conftest.err
42093   rm -f conftest.er1
42094   cat conftest.err >&5
42095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42096   (exit $ac_status); } && {
42097          test -z "$ac_c_werror_flag" ||
42098          test ! -s conftest.err
42099        } && test -s conftest$ac_exeext &&
42100        $as_test_x conftest$ac_exeext; then
42101   ac_cv_func_sched_yield=yes
42102 else
42103   echo "$as_me: failed program was:" >&5
42104 sed 's/^/| /' conftest.$ac_ext >&5
42105
42106         ac_cv_func_sched_yield=no
42107 fi
42108
42109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42110       conftest$ac_exeext conftest.$ac_ext
42111 fi
42112 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
42113 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
42114 if test $ac_cv_func_sched_yield = yes; then
42115   cat >>confdefs.h <<\_ACEOF
42116 #define HAVE_SCHED_YIELD 1
42117 _ACEOF
42118
42119 else
42120
42121                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
42122 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
42123 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
42124   echo $ECHO_N "(cached) $ECHO_C" >&6
42125 else
42126   ac_check_lib_save_LIBS=$LIBS
42127 LIBS="-lposix4  $LIBS"
42128 cat >conftest.$ac_ext <<_ACEOF
42129 /* confdefs.h.  */
42130 _ACEOF
42131 cat confdefs.h >>conftest.$ac_ext
42132 cat >>conftest.$ac_ext <<_ACEOF
42133 /* end confdefs.h.  */
42134
42135 /* Override any GCC internal prototype to avoid an error.
42136    Use char because int might match the return type of a GCC
42137    builtin and then its argument prototype would still apply.  */
42138 #ifdef __cplusplus
42139 extern "C"
42140 #endif
42141 char sched_yield ();
42142 int
42143 main ()
42144 {
42145 return sched_yield ();
42146   ;
42147   return 0;
42148 }
42149 _ACEOF
42150 rm -f conftest.$ac_objext conftest$ac_exeext
42151 if { (ac_try="$ac_link"
42152 case "(($ac_try" in
42153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42154   *) ac_try_echo=$ac_try;;
42155 esac
42156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42157   (eval "$ac_link") 2>conftest.er1
42158   ac_status=$?
42159   grep -v '^ *+' conftest.er1 >conftest.err
42160   rm -f conftest.er1
42161   cat conftest.err >&5
42162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42163   (exit $ac_status); } && {
42164          test -z "$ac_c_werror_flag" ||
42165          test ! -s conftest.err
42166        } && test -s conftest$ac_exeext &&
42167        $as_test_x conftest$ac_exeext; then
42168   ac_cv_lib_posix4_sched_yield=yes
42169 else
42170   echo "$as_me: failed program was:" >&5
42171 sed 's/^/| /' conftest.$ac_ext >&5
42172
42173         ac_cv_lib_posix4_sched_yield=no
42174 fi
42175
42176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42177       conftest$ac_exeext conftest.$ac_ext
42178 LIBS=$ac_check_lib_save_LIBS
42179 fi
42180 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
42181 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
42182 if test $ac_cv_lib_posix4_sched_yield = yes; then
42183   cat >>confdefs.h <<\_ACEOF
42184 #define HAVE_SCHED_YIELD 1
42185 _ACEOF
42186  POSIX4_LINK=" -lposix4"
42187 else
42188   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
42189 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
42190
42191 fi
42192
42193
42194
42195 fi
42196
42197       fi
42198
42199                                           HAVE_PRIOR_FUNCS=0
42200       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
42201 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
42202 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
42203   echo $ECHO_N "(cached) $ECHO_C" >&6
42204 else
42205   cat >conftest.$ac_ext <<_ACEOF
42206 /* confdefs.h.  */
42207 _ACEOF
42208 cat confdefs.h >>conftest.$ac_ext
42209 cat >>conftest.$ac_ext <<_ACEOF
42210 /* end confdefs.h.  */
42211 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
42212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42213 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
42214
42215 /* System header to define __stub macros and hopefully few prototypes,
42216     which can conflict with char pthread_attr_getschedpolicy (); below.
42217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42218     <limits.h> exists even on freestanding compilers.  */
42219
42220 #ifdef __STDC__
42221 # include <limits.h>
42222 #else
42223 # include <assert.h>
42224 #endif
42225
42226 #undef pthread_attr_getschedpolicy
42227
42228 /* Override any GCC internal prototype to avoid an error.
42229    Use char because int might match the return type of a GCC
42230    builtin and then its argument prototype would still apply.  */
42231 #ifdef __cplusplus
42232 extern "C"
42233 #endif
42234 char pthread_attr_getschedpolicy ();
42235 /* The GNU C library defines this for functions which it implements
42236     to always fail with ENOSYS.  Some functions are actually named
42237     something starting with __ and the normal name is an alias.  */
42238 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
42239 choke me
42240 #endif
42241
42242 int
42243 main ()
42244 {
42245 return pthread_attr_getschedpolicy ();
42246   ;
42247   return 0;
42248 }
42249 _ACEOF
42250 rm -f conftest.$ac_objext conftest$ac_exeext
42251 if { (ac_try="$ac_link"
42252 case "(($ac_try" in
42253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42254   *) ac_try_echo=$ac_try;;
42255 esac
42256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42257   (eval "$ac_link") 2>conftest.er1
42258   ac_status=$?
42259   grep -v '^ *+' conftest.er1 >conftest.err
42260   rm -f conftest.er1
42261   cat conftest.err >&5
42262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42263   (exit $ac_status); } && {
42264          test -z "$ac_c_werror_flag" ||
42265          test ! -s conftest.err
42266        } && test -s conftest$ac_exeext &&
42267        $as_test_x conftest$ac_exeext; then
42268   ac_cv_func_pthread_attr_getschedpolicy=yes
42269 else
42270   echo "$as_me: failed program was:" >&5
42271 sed 's/^/| /' conftest.$ac_ext >&5
42272
42273         ac_cv_func_pthread_attr_getschedpolicy=no
42274 fi
42275
42276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42277       conftest$ac_exeext conftest.$ac_ext
42278 fi
42279 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
42280 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
42281 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
42282   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
42283 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
42284 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
42285   echo $ECHO_N "(cached) $ECHO_C" >&6
42286 else
42287   cat >conftest.$ac_ext <<_ACEOF
42288 /* confdefs.h.  */
42289 _ACEOF
42290 cat confdefs.h >>conftest.$ac_ext
42291 cat >>conftest.$ac_ext <<_ACEOF
42292 /* end confdefs.h.  */
42293 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
42294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42295 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
42296
42297 /* System header to define __stub macros and hopefully few prototypes,
42298     which can conflict with char pthread_attr_setschedparam (); below.
42299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42300     <limits.h> exists even on freestanding compilers.  */
42301
42302 #ifdef __STDC__
42303 # include <limits.h>
42304 #else
42305 # include <assert.h>
42306 #endif
42307
42308 #undef pthread_attr_setschedparam
42309
42310 /* Override any GCC internal prototype to avoid an error.
42311    Use char because int might match the return type of a GCC
42312    builtin and then its argument prototype would still apply.  */
42313 #ifdef __cplusplus
42314 extern "C"
42315 #endif
42316 char pthread_attr_setschedparam ();
42317 /* The GNU C library defines this for functions which it implements
42318     to always fail with ENOSYS.  Some functions are actually named
42319     something starting with __ and the normal name is an alias.  */
42320 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
42321 choke me
42322 #endif
42323
42324 int
42325 main ()
42326 {
42327 return pthread_attr_setschedparam ();
42328   ;
42329   return 0;
42330 }
42331 _ACEOF
42332 rm -f conftest.$ac_objext conftest$ac_exeext
42333 if { (ac_try="$ac_link"
42334 case "(($ac_try" in
42335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42336   *) ac_try_echo=$ac_try;;
42337 esac
42338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42339   (eval "$ac_link") 2>conftest.er1
42340   ac_status=$?
42341   grep -v '^ *+' conftest.er1 >conftest.err
42342   rm -f conftest.er1
42343   cat conftest.err >&5
42344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42345   (exit $ac_status); } && {
42346          test -z "$ac_c_werror_flag" ||
42347          test ! -s conftest.err
42348        } && test -s conftest$ac_exeext &&
42349        $as_test_x conftest$ac_exeext; then
42350   ac_cv_func_pthread_attr_setschedparam=yes
42351 else
42352   echo "$as_me: failed program was:" >&5
42353 sed 's/^/| /' conftest.$ac_ext >&5
42354
42355         ac_cv_func_pthread_attr_setschedparam=no
42356 fi
42357
42358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42359       conftest$ac_exeext conftest.$ac_ext
42360 fi
42361 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
42362 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
42363 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
42364   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
42365 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
42366 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
42367   echo $ECHO_N "(cached) $ECHO_C" >&6
42368 else
42369   cat >conftest.$ac_ext <<_ACEOF
42370 /* confdefs.h.  */
42371 _ACEOF
42372 cat confdefs.h >>conftest.$ac_ext
42373 cat >>conftest.$ac_ext <<_ACEOF
42374 /* end confdefs.h.  */
42375 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
42376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42377 #define sched_get_priority_max innocuous_sched_get_priority_max
42378
42379 /* System header to define __stub macros and hopefully few prototypes,
42380     which can conflict with char sched_get_priority_max (); below.
42381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42382     <limits.h> exists even on freestanding compilers.  */
42383
42384 #ifdef __STDC__
42385 # include <limits.h>
42386 #else
42387 # include <assert.h>
42388 #endif
42389
42390 #undef sched_get_priority_max
42391
42392 /* Override any GCC internal prototype to avoid an error.
42393    Use char because int might match the return type of a GCC
42394    builtin and then its argument prototype would still apply.  */
42395 #ifdef __cplusplus
42396 extern "C"
42397 #endif
42398 char sched_get_priority_max ();
42399 /* The GNU C library defines this for functions which it implements
42400     to always fail with ENOSYS.  Some functions are actually named
42401     something starting with __ and the normal name is an alias.  */
42402 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
42403 choke me
42404 #endif
42405
42406 int
42407 main ()
42408 {
42409 return sched_get_priority_max ();
42410   ;
42411   return 0;
42412 }
42413 _ACEOF
42414 rm -f conftest.$ac_objext conftest$ac_exeext
42415 if { (ac_try="$ac_link"
42416 case "(($ac_try" in
42417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42418   *) ac_try_echo=$ac_try;;
42419 esac
42420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42421   (eval "$ac_link") 2>conftest.er1
42422   ac_status=$?
42423   grep -v '^ *+' conftest.er1 >conftest.err
42424   rm -f conftest.er1
42425   cat conftest.err >&5
42426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42427   (exit $ac_status); } && {
42428          test -z "$ac_c_werror_flag" ||
42429          test ! -s conftest.err
42430        } && test -s conftest$ac_exeext &&
42431        $as_test_x conftest$ac_exeext; then
42432   ac_cv_func_sched_get_priority_max=yes
42433 else
42434   echo "$as_me: failed program was:" >&5
42435 sed 's/^/| /' conftest.$ac_ext >&5
42436
42437         ac_cv_func_sched_get_priority_max=no
42438 fi
42439
42440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42441       conftest$ac_exeext conftest.$ac_ext
42442 fi
42443 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
42444 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
42445 if test $ac_cv_func_sched_get_priority_max = yes; then
42446   HAVE_PRIOR_FUNCS=1
42447 else
42448   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42449 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
42450 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42451   echo $ECHO_N "(cached) $ECHO_C" >&6
42452 else
42453   ac_check_lib_save_LIBS=$LIBS
42454 LIBS="-lposix4  $LIBS"
42455 cat >conftest.$ac_ext <<_ACEOF
42456 /* confdefs.h.  */
42457 _ACEOF
42458 cat confdefs.h >>conftest.$ac_ext
42459 cat >>conftest.$ac_ext <<_ACEOF
42460 /* end confdefs.h.  */
42461
42462 /* Override any GCC internal prototype to avoid an error.
42463    Use char because int might match the return type of a GCC
42464    builtin and then its argument prototype would still apply.  */
42465 #ifdef __cplusplus
42466 extern "C"
42467 #endif
42468 char sched_get_priority_max ();
42469 int
42470 main ()
42471 {
42472 return sched_get_priority_max ();
42473   ;
42474   return 0;
42475 }
42476 _ACEOF
42477 rm -f conftest.$ac_objext conftest$ac_exeext
42478 if { (ac_try="$ac_link"
42479 case "(($ac_try" in
42480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42481   *) ac_try_echo=$ac_try;;
42482 esac
42483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42484   (eval "$ac_link") 2>conftest.er1
42485   ac_status=$?
42486   grep -v '^ *+' conftest.er1 >conftest.err
42487   rm -f conftest.er1
42488   cat conftest.err >&5
42489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42490   (exit $ac_status); } && {
42491          test -z "$ac_c_werror_flag" ||
42492          test ! -s conftest.err
42493        } && test -s conftest$ac_exeext &&
42494        $as_test_x conftest$ac_exeext; then
42495   ac_cv_lib_posix4_sched_get_priority_max=yes
42496 else
42497   echo "$as_me: failed program was:" >&5
42498 sed 's/^/| /' conftest.$ac_ext >&5
42499
42500         ac_cv_lib_posix4_sched_get_priority_max=no
42501 fi
42502
42503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42504       conftest$ac_exeext conftest.$ac_ext
42505 LIBS=$ac_check_lib_save_LIBS
42506 fi
42507 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42508 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42509 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42510
42511                                 HAVE_PRIOR_FUNCS=1
42512                                 POSIX4_LINK=" -lposix4"
42513
42514 fi
42515
42516
42517 fi
42518
42519
42520 fi
42521
42522
42523 fi
42524
42525
42526       if test "$HAVE_PRIOR_FUNCS" = 1; then
42527         cat >>confdefs.h <<\_ACEOF
42528 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42529 _ACEOF
42530
42531       else
42532         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42533 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42534       fi
42535
42536       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42537 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42538 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42539   echo $ECHO_N "(cached) $ECHO_C" >&6
42540 else
42541   cat >conftest.$ac_ext <<_ACEOF
42542 /* confdefs.h.  */
42543 _ACEOF
42544 cat confdefs.h >>conftest.$ac_ext
42545 cat >>conftest.$ac_ext <<_ACEOF
42546 /* end confdefs.h.  */
42547 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42549 #define pthread_cancel innocuous_pthread_cancel
42550
42551 /* System header to define __stub macros and hopefully few prototypes,
42552     which can conflict with char pthread_cancel (); below.
42553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42554     <limits.h> exists even on freestanding compilers.  */
42555
42556 #ifdef __STDC__
42557 # include <limits.h>
42558 #else
42559 # include <assert.h>
42560 #endif
42561
42562 #undef pthread_cancel
42563
42564 /* Override any GCC internal prototype to avoid an error.
42565    Use char because int might match the return type of a GCC
42566    builtin and then its argument prototype would still apply.  */
42567 #ifdef __cplusplus
42568 extern "C"
42569 #endif
42570 char pthread_cancel ();
42571 /* The GNU C library defines this for functions which it implements
42572     to always fail with ENOSYS.  Some functions are actually named
42573     something starting with __ and the normal name is an alias.  */
42574 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42575 choke me
42576 #endif
42577
42578 int
42579 main ()
42580 {
42581 return pthread_cancel ();
42582   ;
42583   return 0;
42584 }
42585 _ACEOF
42586 rm -f conftest.$ac_objext conftest$ac_exeext
42587 if { (ac_try="$ac_link"
42588 case "(($ac_try" in
42589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42590   *) ac_try_echo=$ac_try;;
42591 esac
42592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42593   (eval "$ac_link") 2>conftest.er1
42594   ac_status=$?
42595   grep -v '^ *+' conftest.er1 >conftest.err
42596   rm -f conftest.er1
42597   cat conftest.err >&5
42598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42599   (exit $ac_status); } && {
42600          test -z "$ac_c_werror_flag" ||
42601          test ! -s conftest.err
42602        } && test -s conftest$ac_exeext &&
42603        $as_test_x conftest$ac_exeext; then
42604   ac_cv_func_pthread_cancel=yes
42605 else
42606   echo "$as_me: failed program was:" >&5
42607 sed 's/^/| /' conftest.$ac_ext >&5
42608
42609         ac_cv_func_pthread_cancel=no
42610 fi
42611
42612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42613       conftest$ac_exeext conftest.$ac_ext
42614 fi
42615 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42616 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42617 if test $ac_cv_func_pthread_cancel = yes; then
42618   cat >>confdefs.h <<\_ACEOF
42619 #define HAVE_PTHREAD_CANCEL 1
42620 _ACEOF
42621
42622 else
42623   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42624 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42625 fi
42626
42627
42628       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42629 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42630 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42631   echo $ECHO_N "(cached) $ECHO_C" >&6
42632 else
42633   cat >conftest.$ac_ext <<_ACEOF
42634 /* confdefs.h.  */
42635 _ACEOF
42636 cat confdefs.h >>conftest.$ac_ext
42637 cat >>conftest.$ac_ext <<_ACEOF
42638 /* end confdefs.h.  */
42639 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42641 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42642
42643 /* System header to define __stub macros and hopefully few prototypes,
42644     which can conflict with char pthread_mutex_timedlock (); below.
42645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42646     <limits.h> exists even on freestanding compilers.  */
42647
42648 #ifdef __STDC__
42649 # include <limits.h>
42650 #else
42651 # include <assert.h>
42652 #endif
42653
42654 #undef pthread_mutex_timedlock
42655
42656 /* Override any GCC internal prototype to avoid an error.
42657    Use char because int might match the return type of a GCC
42658    builtin and then its argument prototype would still apply.  */
42659 #ifdef __cplusplus
42660 extern "C"
42661 #endif
42662 char pthread_mutex_timedlock ();
42663 /* The GNU C library defines this for functions which it implements
42664     to always fail with ENOSYS.  Some functions are actually named
42665     something starting with __ and the normal name is an alias.  */
42666 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42667 choke me
42668 #endif
42669
42670 int
42671 main ()
42672 {
42673 return pthread_mutex_timedlock ();
42674   ;
42675   return 0;
42676 }
42677 _ACEOF
42678 rm -f conftest.$ac_objext conftest$ac_exeext
42679 if { (ac_try="$ac_link"
42680 case "(($ac_try" in
42681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42682   *) ac_try_echo=$ac_try;;
42683 esac
42684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42685   (eval "$ac_link") 2>conftest.er1
42686   ac_status=$?
42687   grep -v '^ *+' conftest.er1 >conftest.err
42688   rm -f conftest.er1
42689   cat conftest.err >&5
42690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691   (exit $ac_status); } && {
42692          test -z "$ac_c_werror_flag" ||
42693          test ! -s conftest.err
42694        } && test -s conftest$ac_exeext &&
42695        $as_test_x conftest$ac_exeext; then
42696   ac_cv_func_pthread_mutex_timedlock=yes
42697 else
42698   echo "$as_me: failed program was:" >&5
42699 sed 's/^/| /' conftest.$ac_ext >&5
42700
42701         ac_cv_func_pthread_mutex_timedlock=no
42702 fi
42703
42704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42705       conftest$ac_exeext conftest.$ac_ext
42706 fi
42707 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42708 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42709 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42710   cat >>confdefs.h <<\_ACEOF
42711 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42712 _ACEOF
42713
42714 else
42715   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42716 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42717 fi
42718
42719
42720       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42721 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42722 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42723   echo $ECHO_N "(cached) $ECHO_C" >&6
42724 else
42725   cat >conftest.$ac_ext <<_ACEOF
42726 /* confdefs.h.  */
42727 _ACEOF
42728 cat confdefs.h >>conftest.$ac_ext
42729 cat >>conftest.$ac_ext <<_ACEOF
42730 /* end confdefs.h.  */
42731 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42733 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42734
42735 /* System header to define __stub macros and hopefully few prototypes,
42736     which can conflict with char pthread_attr_setstacksize (); below.
42737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42738     <limits.h> exists even on freestanding compilers.  */
42739
42740 #ifdef __STDC__
42741 # include <limits.h>
42742 #else
42743 # include <assert.h>
42744 #endif
42745
42746 #undef pthread_attr_setstacksize
42747
42748 /* Override any GCC internal prototype to avoid an error.
42749    Use char because int might match the return type of a GCC
42750    builtin and then its argument prototype would still apply.  */
42751 #ifdef __cplusplus
42752 extern "C"
42753 #endif
42754 char pthread_attr_setstacksize ();
42755 /* The GNU C library defines this for functions which it implements
42756     to always fail with ENOSYS.  Some functions are actually named
42757     something starting with __ and the normal name is an alias.  */
42758 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42759 choke me
42760 #endif
42761
42762 int
42763 main ()
42764 {
42765 return pthread_attr_setstacksize ();
42766   ;
42767   return 0;
42768 }
42769 _ACEOF
42770 rm -f conftest.$ac_objext conftest$ac_exeext
42771 if { (ac_try="$ac_link"
42772 case "(($ac_try" in
42773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42774   *) ac_try_echo=$ac_try;;
42775 esac
42776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42777   (eval "$ac_link") 2>conftest.er1
42778   ac_status=$?
42779   grep -v '^ *+' conftest.er1 >conftest.err
42780   rm -f conftest.er1
42781   cat conftest.err >&5
42782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42783   (exit $ac_status); } && {
42784          test -z "$ac_c_werror_flag" ||
42785          test ! -s conftest.err
42786        } && test -s conftest$ac_exeext &&
42787        $as_test_x conftest$ac_exeext; then
42788   ac_cv_func_pthread_attr_setstacksize=yes
42789 else
42790   echo "$as_me: failed program was:" >&5
42791 sed 's/^/| /' conftest.$ac_ext >&5
42792
42793         ac_cv_func_pthread_attr_setstacksize=no
42794 fi
42795
42796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42797       conftest$ac_exeext conftest.$ac_ext
42798 fi
42799 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42800 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42801 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42802   cat >>confdefs.h <<\_ACEOF
42803 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42804 _ACEOF
42805
42806 fi
42807
42808
42809
42810       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42811 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42812 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42813   echo $ECHO_N "(cached) $ECHO_C" >&6
42814 else
42815
42816         cat >conftest.$ac_ext <<_ACEOF
42817 /* confdefs.h.  */
42818 _ACEOF
42819 cat confdefs.h >>conftest.$ac_ext
42820 cat >>conftest.$ac_ext <<_ACEOF
42821 /* end confdefs.h.  */
42822 #include <pthread.h>
42823 int
42824 main ()
42825 {
42826
42827                pthread_mutexattr_t attr;
42828                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42829
42830   ;
42831   return 0;
42832 }
42833 _ACEOF
42834 rm -f conftest.$ac_objext
42835 if { (ac_try="$ac_compile"
42836 case "(($ac_try" in
42837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42838   *) ac_try_echo=$ac_try;;
42839 esac
42840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42841   (eval "$ac_compile") 2>conftest.er1
42842   ac_status=$?
42843   grep -v '^ *+' conftest.er1 >conftest.err
42844   rm -f conftest.er1
42845   cat conftest.err >&5
42846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42847   (exit $ac_status); } && {
42848          test -z "$ac_c_werror_flag" ||
42849          test ! -s conftest.err
42850        } && test -s conftest.$ac_objext; then
42851   wx_cv_type_pthread_mutexattr_t=yes
42852 else
42853   echo "$as_me: failed program was:" >&5
42854 sed 's/^/| /' conftest.$ac_ext >&5
42855
42856         wx_cv_type_pthread_mutexattr_t=no
42857
42858 fi
42859
42860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42861
42862 fi
42863 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42864 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
42865
42866       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42867         cat >>confdefs.h <<\_ACEOF
42868 #define HAVE_PTHREAD_MUTEXATTR_T 1
42869 _ACEOF
42870
42871
42872                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
42873 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
42874 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
42875   echo $ECHO_N "(cached) $ECHO_C" >&6
42876 else
42877
42878                        cat >conftest.$ac_ext <<_ACEOF
42879 /* confdefs.h.  */
42880 _ACEOF
42881 cat confdefs.h >>conftest.$ac_ext
42882 cat >>conftest.$ac_ext <<_ACEOF
42883 /* end confdefs.h.  */
42884 #include <pthread.h>
42885 int
42886 main ()
42887 {
42888
42889                                pthread_mutexattr_t attr;
42890                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42891
42892   ;
42893   return 0;
42894 }
42895 _ACEOF
42896 rm -f conftest.$ac_objext
42897 if { (ac_try="$ac_compile"
42898 case "(($ac_try" in
42899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42900   *) ac_try_echo=$ac_try;;
42901 esac
42902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42903   (eval "$ac_compile") 2>conftest.er1
42904   ac_status=$?
42905   grep -v '^ *+' conftest.er1 >conftest.err
42906   rm -f conftest.er1
42907   cat conftest.err >&5
42908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42909   (exit $ac_status); } && {
42910          test -z "$ac_c_werror_flag" ||
42911          test ! -s conftest.err
42912        } && test -s conftest.$ac_objext; then
42913   wx_cv_func_pthread_mutexattr_settype_decl=yes
42914 else
42915   echo "$as_me: failed program was:" >&5
42916 sed 's/^/| /' conftest.$ac_ext >&5
42917
42918         wx_cv_func_pthread_mutexattr_settype_decl=no
42919
42920 fi
42921
42922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42923
42924 fi
42925 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
42926 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
42927         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
42928             cat >>confdefs.h <<\_ACEOF
42929 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
42930 _ACEOF
42931
42932         fi
42933       else
42934                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42935 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
42936 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42937   echo $ECHO_N "(cached) $ECHO_C" >&6
42938 else
42939
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 #include <pthread.h>
42947 int
42948 main ()
42949 {
42950
42951                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42952
42953   ;
42954   return 0;
42955 }
42956 _ACEOF
42957 rm -f conftest.$ac_objext
42958 if { (ac_try="$ac_compile"
42959 case "(($ac_try" in
42960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42961   *) ac_try_echo=$ac_try;;
42962 esac
42963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42964   (eval "$ac_compile") 2>conftest.er1
42965   ac_status=$?
42966   grep -v '^ *+' conftest.er1 >conftest.err
42967   rm -f conftest.er1
42968   cat conftest.err >&5
42969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42970   (exit $ac_status); } && {
42971          test -z "$ac_c_werror_flag" ||
42972          test ! -s conftest.err
42973        } && test -s conftest.$ac_objext; then
42974
42975                     wx_cv_type_pthread_rec_mutex_init=yes
42976
42977 else
42978   echo "$as_me: failed program was:" >&5
42979 sed 's/^/| /' conftest.$ac_ext >&5
42980
42981
42982                     wx_cv_type_pthread_rec_mutex_init=no
42983
42984
42985 fi
42986
42987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42988
42989 fi
42990 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42991 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42992         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42993           cat >>confdefs.h <<\_ACEOF
42994 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42995 _ACEOF
42996
42997         else
42998                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42999 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
43000         fi
43001       fi
43002     fi
43003
43004 else
43005     if test "$wxUSE_THREADS" = "yes" ; then
43006       case "${host}" in
43007         *-*-mingw32* )
43008                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
43009 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
43010 if test "${wx_cv_cflags_mthread+set}" = set; then
43011   echo $ECHO_N "(cached) $ECHO_C" >&6
43012 else
43013
43014                     CFLAGS_OLD="$CFLAGS"
43015                     CFLAGS="-mthreads $CFLAGS"
43016                     cat >conftest.$ac_ext <<_ACEOF
43017 /* confdefs.h.  */
43018 _ACEOF
43019 cat confdefs.h >>conftest.$ac_ext
43020 cat >>conftest.$ac_ext <<_ACEOF
43021 /* end confdefs.h.  */
43022
43023 int
43024 main ()
43025 {
43026
43027   ;
43028   return 0;
43029 }
43030 _ACEOF
43031 rm -f conftest.$ac_objext
43032 if { (ac_try="$ac_compile"
43033 case "(($ac_try" in
43034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43035   *) ac_try_echo=$ac_try;;
43036 esac
43037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43038   (eval "$ac_compile") 2>conftest.er1
43039   ac_status=$?
43040   grep -v '^ *+' conftest.er1 >conftest.err
43041   rm -f conftest.er1
43042   cat conftest.err >&5
43043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43044   (exit $ac_status); } && {
43045          test -z "$ac_c_werror_flag" ||
43046          test ! -s conftest.err
43047        } && test -s conftest.$ac_objext; then
43048   wx_cv_cflags_mthread=yes
43049 else
43050   echo "$as_me: failed program was:" >&5
43051 sed 's/^/| /' conftest.$ac_ext >&5
43052
43053         wx_cv_cflags_mthread=no
43054
43055 fi
43056
43057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43058
43059
43060 fi
43061 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
43062 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
43063
43064             if test "$wx_cv_cflags_mthread" = "yes"; then
43065                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
43066                 LDFLAGS="$LDFLAGS -mthreads"
43067             else
43068                                 CFLAGS="$CFLAGS_OLD"
43069             fi
43070         ;;
43071         *-pc-os2*emx )
43072             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
43073             LDFLAGS="$LDFLAGS -Zmt"
43074         ;;
43075       esac
43076     fi
43077 fi
43078
43079 { echo "$as_me:$LINENO: checking for localtime_r" >&5
43080 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
43081 if test "${ac_cv_func_localtime_r+set}" = set; then
43082   echo $ECHO_N "(cached) $ECHO_C" >&6
43083 else
43084   cat >conftest.$ac_ext <<_ACEOF
43085 /* confdefs.h.  */
43086 _ACEOF
43087 cat confdefs.h >>conftest.$ac_ext
43088 cat >>conftest.$ac_ext <<_ACEOF
43089 /* end confdefs.h.  */
43090 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
43091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43092 #define localtime_r innocuous_localtime_r
43093
43094 /* System header to define __stub macros and hopefully few prototypes,
43095     which can conflict with char localtime_r (); below.
43096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43097     <limits.h> exists even on freestanding compilers.  */
43098
43099 #ifdef __STDC__
43100 # include <limits.h>
43101 #else
43102 # include <assert.h>
43103 #endif
43104
43105 #undef localtime_r
43106
43107 /* Override any GCC internal prototype to avoid an error.
43108    Use char because int might match the return type of a GCC
43109    builtin and then its argument prototype would still apply.  */
43110 #ifdef __cplusplus
43111 extern "C"
43112 #endif
43113 char localtime_r ();
43114 /* The GNU C library defines this for functions which it implements
43115     to always fail with ENOSYS.  Some functions are actually named
43116     something starting with __ and the normal name is an alias.  */
43117 #if defined __stub_localtime_r || defined __stub___localtime_r
43118 choke me
43119 #endif
43120
43121 int
43122 main ()
43123 {
43124 return localtime_r ();
43125   ;
43126   return 0;
43127 }
43128 _ACEOF
43129 rm -f conftest.$ac_objext conftest$ac_exeext
43130 if { (ac_try="$ac_link"
43131 case "(($ac_try" in
43132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43133   *) ac_try_echo=$ac_try;;
43134 esac
43135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43136   (eval "$ac_link") 2>conftest.er1
43137   ac_status=$?
43138   grep -v '^ *+' conftest.er1 >conftest.err
43139   rm -f conftest.er1
43140   cat conftest.err >&5
43141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43142   (exit $ac_status); } && {
43143          test -z "$ac_c_werror_flag" ||
43144          test ! -s conftest.err
43145        } && test -s conftest$ac_exeext &&
43146        $as_test_x conftest$ac_exeext; then
43147   ac_cv_func_localtime_r=yes
43148 else
43149   echo "$as_me: failed program was:" >&5
43150 sed 's/^/| /' conftest.$ac_ext >&5
43151
43152         ac_cv_func_localtime_r=no
43153 fi
43154
43155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43156       conftest$ac_exeext conftest.$ac_ext
43157 fi
43158 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
43159 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
43160 if test $ac_cv_func_localtime_r = yes; then
43161    cat >>confdefs.h <<\_ACEOF
43162 #define HAVE_LOCALTIME_R 1
43163 _ACEOF
43164
43165 fi
43166
43167 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
43168 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
43169 if test "${ac_cv_func_gmtime_r+set}" = set; then
43170   echo $ECHO_N "(cached) $ECHO_C" >&6
43171 else
43172   cat >conftest.$ac_ext <<_ACEOF
43173 /* confdefs.h.  */
43174 _ACEOF
43175 cat confdefs.h >>conftest.$ac_ext
43176 cat >>conftest.$ac_ext <<_ACEOF
43177 /* end confdefs.h.  */
43178 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
43179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43180 #define gmtime_r innocuous_gmtime_r
43181
43182 /* System header to define __stub macros and hopefully few prototypes,
43183     which can conflict with char gmtime_r (); below.
43184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43185     <limits.h> exists even on freestanding compilers.  */
43186
43187 #ifdef __STDC__
43188 # include <limits.h>
43189 #else
43190 # include <assert.h>
43191 #endif
43192
43193 #undef gmtime_r
43194
43195 /* Override any GCC internal prototype to avoid an error.
43196    Use char because int might match the return type of a GCC
43197    builtin and then its argument prototype would still apply.  */
43198 #ifdef __cplusplus
43199 extern "C"
43200 #endif
43201 char gmtime_r ();
43202 /* The GNU C library defines this for functions which it implements
43203     to always fail with ENOSYS.  Some functions are actually named
43204     something starting with __ and the normal name is an alias.  */
43205 #if defined __stub_gmtime_r || defined __stub___gmtime_r
43206 choke me
43207 #endif
43208
43209 int
43210 main ()
43211 {
43212 return gmtime_r ();
43213   ;
43214   return 0;
43215 }
43216 _ACEOF
43217 rm -f conftest.$ac_objext conftest$ac_exeext
43218 if { (ac_try="$ac_link"
43219 case "(($ac_try" in
43220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43221   *) ac_try_echo=$ac_try;;
43222 esac
43223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43224   (eval "$ac_link") 2>conftest.er1
43225   ac_status=$?
43226   grep -v '^ *+' conftest.er1 >conftest.err
43227   rm -f conftest.er1
43228   cat conftest.err >&5
43229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230   (exit $ac_status); } && {
43231          test -z "$ac_c_werror_flag" ||
43232          test ! -s conftest.err
43233        } && test -s conftest$ac_exeext &&
43234        $as_test_x conftest$ac_exeext; then
43235   ac_cv_func_gmtime_r=yes
43236 else
43237   echo "$as_me: failed program was:" >&5
43238 sed 's/^/| /' conftest.$ac_ext >&5
43239
43240         ac_cv_func_gmtime_r=no
43241 fi
43242
43243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43244       conftest$ac_exeext conftest.$ac_ext
43245 fi
43246 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
43247 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
43248 if test $ac_cv_func_gmtime_r = yes; then
43249    cat >>confdefs.h <<\_ACEOF
43250 #define HAVE_GMTIME_R 1
43251 _ACEOF
43252
43253 fi
43254
43255
43256
43257
43258     ac_ext=c
43259 ac_cpp='$CPP $CPPFLAGS'
43260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43263
43264     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
43265 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
43266
43267     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
43268   echo $ECHO_N "(cached) $ECHO_C" >&6
43269 else
43270
43271
43272 ################################################################
43273
43274 ac_cv_func_which_gethostbyname_r=unknown
43275
43276 #
43277 # ONE ARGUMENT (sanity check)
43278 #
43279
43280 # This should fail, as there is no variant of gethostbyname_r() that takes
43281 # a single argument. If it actually compiles, then we can assume that
43282 # netdb.h is not declaring the function, and the compiler is thereby
43283 # assuming an implicit prototype. In which case, we're out of luck.
43284 #
43285 cat >conftest.$ac_ext <<_ACEOF
43286 /* confdefs.h.  */
43287 _ACEOF
43288 cat confdefs.h >>conftest.$ac_ext
43289 cat >>conftest.$ac_ext <<_ACEOF
43290 /* end confdefs.h.  */
43291 #include <netdb.h>
43292 int
43293 main ()
43294 {
43295
43296             char *name = "www.gnu.org";
43297             (void)gethostbyname_r(name) /* ; */
43298
43299   ;
43300   return 0;
43301 }
43302 _ACEOF
43303 rm -f conftest.$ac_objext
43304 if { (ac_try="$ac_compile"
43305 case "(($ac_try" in
43306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43307   *) ac_try_echo=$ac_try;;
43308 esac
43309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43310   (eval "$ac_compile") 2>conftest.er1
43311   ac_status=$?
43312   grep -v '^ *+' conftest.er1 >conftest.err
43313   rm -f conftest.er1
43314   cat conftest.err >&5
43315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316   (exit $ac_status); } && {
43317          test -z "$ac_c_werror_flag" ||
43318          test ! -s conftest.err
43319        } && test -s conftest.$ac_objext; then
43320   ac_cv_func_which_gethostbyname_r=no
43321 else
43322   echo "$as_me: failed program was:" >&5
43323 sed 's/^/| /' conftest.$ac_ext >&5
43324
43325
43326 fi
43327
43328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43329
43330 #
43331 # SIX ARGUMENTS
43332 # (e.g. Linux)
43333 #
43334
43335 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43336
43337 cat >conftest.$ac_ext <<_ACEOF
43338 /* confdefs.h.  */
43339 _ACEOF
43340 cat confdefs.h >>conftest.$ac_ext
43341 cat >>conftest.$ac_ext <<_ACEOF
43342 /* end confdefs.h.  */
43343 #include <netdb.h>
43344 int
43345 main ()
43346 {
43347
43348             char *name = "www.gnu.org";
43349             struct hostent ret, *retp;
43350             char buf[1024];
43351             int buflen = 1024;
43352             int my_h_errno;
43353             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
43354
43355   ;
43356   return 0;
43357 }
43358 _ACEOF
43359 rm -f conftest.$ac_objext
43360 if { (ac_try="$ac_compile"
43361 case "(($ac_try" in
43362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43363   *) ac_try_echo=$ac_try;;
43364 esac
43365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43366   (eval "$ac_compile") 2>conftest.er1
43367   ac_status=$?
43368   grep -v '^ *+' conftest.er1 >conftest.err
43369   rm -f conftest.er1
43370   cat conftest.err >&5
43371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43372   (exit $ac_status); } && {
43373          test -z "$ac_c_werror_flag" ||
43374          test ! -s conftest.err
43375        } && test -s conftest.$ac_objext; then
43376   ac_cv_func_which_gethostbyname_r=six
43377 else
43378   echo "$as_me: failed program was:" >&5
43379 sed 's/^/| /' conftest.$ac_ext >&5
43380
43381
43382 fi
43383
43384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43385
43386 fi
43387
43388 #
43389 # FIVE ARGUMENTS
43390 # (e.g. Solaris)
43391 #
43392
43393 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43394
43395 cat >conftest.$ac_ext <<_ACEOF
43396 /* confdefs.h.  */
43397 _ACEOF
43398 cat confdefs.h >>conftest.$ac_ext
43399 cat >>conftest.$ac_ext <<_ACEOF
43400 /* end confdefs.h.  */
43401 #include <netdb.h>
43402 int
43403 main ()
43404 {
43405
43406             char *name = "www.gnu.org";
43407             struct hostent ret;
43408             char buf[1024];
43409             int buflen = 1024;
43410             int my_h_errno;
43411             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43412
43413   ;
43414   return 0;
43415 }
43416 _ACEOF
43417 rm -f conftest.$ac_objext
43418 if { (ac_try="$ac_compile"
43419 case "(($ac_try" in
43420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43421   *) ac_try_echo=$ac_try;;
43422 esac
43423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43424   (eval "$ac_compile") 2>conftest.er1
43425   ac_status=$?
43426   grep -v '^ *+' conftest.er1 >conftest.err
43427   rm -f conftest.er1
43428   cat conftest.err >&5
43429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43430   (exit $ac_status); } && {
43431          test -z "$ac_c_werror_flag" ||
43432          test ! -s conftest.err
43433        } && test -s conftest.$ac_objext; then
43434   ac_cv_func_which_gethostbyname_r=five
43435 else
43436   echo "$as_me: failed program was:" >&5
43437 sed 's/^/| /' conftest.$ac_ext >&5
43438
43439
43440 fi
43441
43442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43443
43444 fi
43445
43446 #
43447 # THREE ARGUMENTS
43448 # (e.g. AIX, HP-UX, Tru64)
43449 #
43450
43451 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43452
43453 cat >conftest.$ac_ext <<_ACEOF
43454 /* confdefs.h.  */
43455 _ACEOF
43456 cat confdefs.h >>conftest.$ac_ext
43457 cat >>conftest.$ac_ext <<_ACEOF
43458 /* end confdefs.h.  */
43459 #include <netdb.h>
43460 int
43461 main ()
43462 {
43463
43464             char *name = "www.gnu.org";
43465             struct hostent ret;
43466             struct hostent_data data;
43467             (void)gethostbyname_r(name, &ret, &data) /* ; */
43468
43469   ;
43470   return 0;
43471 }
43472 _ACEOF
43473 rm -f conftest.$ac_objext
43474 if { (ac_try="$ac_compile"
43475 case "(($ac_try" in
43476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43477   *) ac_try_echo=$ac_try;;
43478 esac
43479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43480   (eval "$ac_compile") 2>conftest.er1
43481   ac_status=$?
43482   grep -v '^ *+' conftest.er1 >conftest.err
43483   rm -f conftest.er1
43484   cat conftest.err >&5
43485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486   (exit $ac_status); } && {
43487          test -z "$ac_c_werror_flag" ||
43488          test ! -s conftest.err
43489        } && test -s conftest.$ac_objext; then
43490   ac_cv_func_which_gethostbyname_r=three
43491 else
43492   echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43494
43495
43496 fi
43497
43498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43499
43500 fi
43501
43502 ################################################################
43503
43504
43505 fi
43506
43507 case "$ac_cv_func_which_gethostbyname_r" in
43508     three)
43509     { echo "$as_me:$LINENO: result: three" >&5
43510 echo "${ECHO_T}three" >&6; }
43511     cat >>confdefs.h <<\_ACEOF
43512 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43513 _ACEOF
43514
43515     ;;
43516
43517     five)
43518     { echo "$as_me:$LINENO: result: five" >&5
43519 echo "${ECHO_T}five" >&6; }
43520     cat >>confdefs.h <<\_ACEOF
43521 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43522 _ACEOF
43523
43524     ;;
43525
43526     six)
43527     { echo "$as_me:$LINENO: result: six" >&5
43528 echo "${ECHO_T}six" >&6; }
43529     cat >>confdefs.h <<\_ACEOF
43530 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43531 _ACEOF
43532
43533     ;;
43534
43535     no)
43536     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43537 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43538     ;;
43539
43540     unknown)
43541     { echo "$as_me:$LINENO: result: can't tell" >&5
43542 echo "${ECHO_T}can't tell" >&6; }
43543     ;;
43544
43545     *)
43546     { { echo "$as_me:$LINENO: error: internal error" >&5
43547 echo "$as_me: error: internal error" >&2;}
43548    { (exit 1); exit 1; }; }
43549     ;;
43550 esac
43551
43552 ac_ext=c
43553 ac_cpp='$CPP $CPPFLAGS'
43554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43557
43558
43559
43560       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43561               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43562           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43563 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43564 if test "${ac_cv_func_gethostbyname+set}" = set; then
43565   echo $ECHO_N "(cached) $ECHO_C" >&6
43566 else
43567   cat >conftest.$ac_ext <<_ACEOF
43568 /* confdefs.h.  */
43569 _ACEOF
43570 cat confdefs.h >>conftest.$ac_ext
43571 cat >>conftest.$ac_ext <<_ACEOF
43572 /* end confdefs.h.  */
43573 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43575 #define gethostbyname innocuous_gethostbyname
43576
43577 /* System header to define __stub macros and hopefully few prototypes,
43578     which can conflict with char gethostbyname (); below.
43579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43580     <limits.h> exists even on freestanding compilers.  */
43581
43582 #ifdef __STDC__
43583 # include <limits.h>
43584 #else
43585 # include <assert.h>
43586 #endif
43587
43588 #undef gethostbyname
43589
43590 /* Override any GCC internal prototype to avoid an error.
43591    Use char because int might match the return type of a GCC
43592    builtin and then its argument prototype would still apply.  */
43593 #ifdef __cplusplus
43594 extern "C"
43595 #endif
43596 char gethostbyname ();
43597 /* The GNU C library defines this for functions which it implements
43598     to always fail with ENOSYS.  Some functions are actually named
43599     something starting with __ and the normal name is an alias.  */
43600 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43601 choke me
43602 #endif
43603
43604 int
43605 main ()
43606 {
43607 return gethostbyname ();
43608   ;
43609   return 0;
43610 }
43611 _ACEOF
43612 rm -f conftest.$ac_objext conftest$ac_exeext
43613 if { (ac_try="$ac_link"
43614 case "(($ac_try" in
43615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43616   *) ac_try_echo=$ac_try;;
43617 esac
43618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43619   (eval "$ac_link") 2>conftest.er1
43620   ac_status=$?
43621   grep -v '^ *+' conftest.er1 >conftest.err
43622   rm -f conftest.er1
43623   cat conftest.err >&5
43624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43625   (exit $ac_status); } && {
43626          test -z "$ac_c_werror_flag" ||
43627          test ! -s conftest.err
43628        } && test -s conftest$ac_exeext &&
43629        $as_test_x conftest$ac_exeext; then
43630   ac_cv_func_gethostbyname=yes
43631 else
43632   echo "$as_me: failed program was:" >&5
43633 sed 's/^/| /' conftest.$ac_ext >&5
43634
43635         ac_cv_func_gethostbyname=no
43636 fi
43637
43638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43639       conftest$ac_exeext conftest.$ac_ext
43640 fi
43641 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43642 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43643 if test $ac_cv_func_gethostbyname = yes; then
43644    cat >>confdefs.h <<\_ACEOF
43645 #define HAVE_GETHOSTBYNAME 1
43646 _ACEOF
43647
43648 fi
43649
43650       fi
43651
43652 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43653 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43654 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43655   echo $ECHO_N "(cached) $ECHO_C" >&6
43656 else
43657
43658                 ac_ext=cpp
43659 ac_cpp='$CXXCPP $CPPFLAGS'
43660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43663
43664
43665         cat >conftest.$ac_ext <<_ACEOF
43666 /* confdefs.h.  */
43667 _ACEOF
43668 cat confdefs.h >>conftest.$ac_ext
43669 cat >>conftest.$ac_ext <<_ACEOF
43670 /* end confdefs.h.  */
43671 #include <netdb.h>
43672 int
43673 main ()
43674 {
43675
43676                 char *name;
43677                 char *proto;
43678                 struct servent *se, *res;
43679                 char buffer[2048];
43680                 int buflen = 2048;
43681                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43682
43683   ;
43684   return 0;
43685 }
43686 _ACEOF
43687 rm -f conftest.$ac_objext
43688 if { (ac_try="$ac_compile"
43689 case "(($ac_try" in
43690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43691   *) ac_try_echo=$ac_try;;
43692 esac
43693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43694   (eval "$ac_compile") 2>conftest.er1
43695   ac_status=$?
43696   grep -v '^ *+' conftest.er1 >conftest.err
43697   rm -f conftest.er1
43698   cat conftest.err >&5
43699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700   (exit $ac_status); } && {
43701          test -z "$ac_cxx_werror_flag" ||
43702          test ! -s conftest.err
43703        } && test -s conftest.$ac_objext; then
43704   ac_cv_func_which_getservbyname_r=six
43705 else
43706   echo "$as_me: failed program was:" >&5
43707 sed 's/^/| /' conftest.$ac_ext >&5
43708
43709
43710                 cat >conftest.$ac_ext <<_ACEOF
43711 /* confdefs.h.  */
43712 _ACEOF
43713 cat confdefs.h >>conftest.$ac_ext
43714 cat >>conftest.$ac_ext <<_ACEOF
43715 /* end confdefs.h.  */
43716 #include <netdb.h>
43717 int
43718 main ()
43719 {
43720
43721                         char *name;
43722                         char *proto;
43723                         struct servent *se;
43724                         char buffer[2048];
43725                         int buflen = 2048;
43726                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43727
43728   ;
43729   return 0;
43730 }
43731 _ACEOF
43732 rm -f conftest.$ac_objext
43733 if { (ac_try="$ac_compile"
43734 case "(($ac_try" in
43735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43736   *) ac_try_echo=$ac_try;;
43737 esac
43738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43739   (eval "$ac_compile") 2>conftest.er1
43740   ac_status=$?
43741   grep -v '^ *+' conftest.er1 >conftest.err
43742   rm -f conftest.er1
43743   cat conftest.err >&5
43744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745   (exit $ac_status); } && {
43746          test -z "$ac_cxx_werror_flag" ||
43747          test ! -s conftest.err
43748        } && test -s conftest.$ac_objext; then
43749   ac_cv_func_which_getservbyname_r=five
43750 else
43751   echo "$as_me: failed program was:" >&5
43752 sed 's/^/| /' conftest.$ac_ext >&5
43753
43754
43755                         cat >conftest.$ac_ext <<_ACEOF
43756 /* confdefs.h.  */
43757 _ACEOF
43758 cat confdefs.h >>conftest.$ac_ext
43759 cat >>conftest.$ac_ext <<_ACEOF
43760 /* end confdefs.h.  */
43761 #include <netdb.h>
43762 int
43763 main ()
43764 {
43765
43766                                 char *name;
43767                                 char *proto;
43768                                 struct servent *se;
43769                                 struct servent_data data;
43770                                 (void) getservbyname_r(name, proto, se, &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_cxx_werror_flag" ||
43791          test ! -s conftest.err
43792        } && test -s conftest.$ac_objext; then
43793   ac_cv_func_which_getservbyname_r=four
43794 else
43795   echo "$as_me: failed program was:" >&5
43796 sed 's/^/| /' conftest.$ac_ext >&5
43797
43798         ac_cv_func_which_getservbyname_r=no
43799
43800 fi
43801
43802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43803
43804
43805 fi
43806
43807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43808
43809
43810 fi
43811
43812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43813         ac_ext=c
43814 ac_cpp='$CPP $CPPFLAGS'
43815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43818
43819
43820
43821 fi
43822 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43823 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43824
43825 if test $ac_cv_func_which_getservbyname_r = six; then
43826   cat >>confdefs.h <<\_ACEOF
43827 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43828 _ACEOF
43829
43830 elif test $ac_cv_func_which_getservbyname_r = five; then
43831   cat >>confdefs.h <<\_ACEOF
43832 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43833 _ACEOF
43834
43835 elif test $ac_cv_func_which_getservbyname_r = four; then
43836   cat >>confdefs.h <<\_ACEOF
43837 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43838 _ACEOF
43839
43840 fi
43841
43842
43843       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43844               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43845
43846 for ac_func in getservbyname
43847 do
43848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43852   echo $ECHO_N "(cached) $ECHO_C" >&6
43853 else
43854   cat >conftest.$ac_ext <<_ACEOF
43855 /* confdefs.h.  */
43856 _ACEOF
43857 cat confdefs.h >>conftest.$ac_ext
43858 cat >>conftest.$ac_ext <<_ACEOF
43859 /* end confdefs.h.  */
43860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43862 #define $ac_func innocuous_$ac_func
43863
43864 /* System header to define __stub macros and hopefully few prototypes,
43865     which can conflict with char $ac_func (); below.
43866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43867     <limits.h> exists even on freestanding compilers.  */
43868
43869 #ifdef __STDC__
43870 # include <limits.h>
43871 #else
43872 # include <assert.h>
43873 #endif
43874
43875 #undef $ac_func
43876
43877 /* Override any GCC internal prototype to avoid an error.
43878    Use char because int might match the return type of a GCC
43879    builtin and then its argument prototype would still apply.  */
43880 #ifdef __cplusplus
43881 extern "C"
43882 #endif
43883 char $ac_func ();
43884 /* The GNU C library defines this for functions which it implements
43885     to always fail with ENOSYS.  Some functions are actually named
43886     something starting with __ and the normal name is an alias.  */
43887 #if defined __stub_$ac_func || defined __stub___$ac_func
43888 choke me
43889 #endif
43890
43891 int
43892 main ()
43893 {
43894 return $ac_func ();
43895   ;
43896   return 0;
43897 }
43898 _ACEOF
43899 rm -f conftest.$ac_objext conftest$ac_exeext
43900 if { (ac_try="$ac_link"
43901 case "(($ac_try" in
43902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43903   *) ac_try_echo=$ac_try;;
43904 esac
43905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43906   (eval "$ac_link") 2>conftest.er1
43907   ac_status=$?
43908   grep -v '^ *+' conftest.er1 >conftest.err
43909   rm -f conftest.er1
43910   cat conftest.err >&5
43911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43912   (exit $ac_status); } && {
43913          test -z "$ac_c_werror_flag" ||
43914          test ! -s conftest.err
43915        } && test -s conftest$ac_exeext &&
43916        $as_test_x conftest$ac_exeext; then
43917   eval "$as_ac_var=yes"
43918 else
43919   echo "$as_me: failed program was:" >&5
43920 sed 's/^/| /' conftest.$ac_ext >&5
43921
43922         eval "$as_ac_var=no"
43923 fi
43924
43925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43926       conftest$ac_exeext conftest.$ac_ext
43927 fi
43928 ac_res=`eval echo '${'$as_ac_var'}'`
43929                { echo "$as_me:$LINENO: result: $ac_res" >&5
43930 echo "${ECHO_T}$ac_res" >&6; }
43931 if test `eval echo '${'$as_ac_var'}'` = yes; then
43932   cat >>confdefs.h <<_ACEOF
43933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43934 _ACEOF
43935   cat >>confdefs.h <<\_ACEOF
43936 #define HAVE_GETSERVBYNAME 1
43937 _ACEOF
43938
43939 fi
43940 done
43941
43942       fi
43943
43944 if test "$wxUSE_THREADS" = "yes"; then
43945   cat >>confdefs.h <<\_ACEOF
43946 #define wxUSE_THREADS 1
43947 _ACEOF
43948
43949
43950   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43951 else
43952       if test "$wx_cv_func_strtok_r" = "yes"; then
43953     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43954 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43955     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43956         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43957         { echo "$as_me:$LINENO: result: yes" >&5
43958 echo "${ECHO_T}yes" >&6; }
43959     else
43960         { echo "$as_me:$LINENO: result: no" >&5
43961 echo "${ECHO_T}no" >&6; }
43962     fi
43963   fi
43964 fi
43965
43966 if test "$WXGTK20" = 1 ; then
43967   cat >>confdefs.h <<_ACEOF
43968 #define __WXGTK20__ $WXGTK20
43969 _ACEOF
43970
43971   WXGTK12=1
43972 fi
43973
43974 if test "$WXGTK12" = 1 ; then
43975   cat >>confdefs.h <<_ACEOF
43976 #define __WXGTK12__ $WXGTK12
43977 _ACEOF
43978
43979 fi
43980
43981 if test "$WXGTK127" = 1 ; then
43982   cat >>confdefs.h <<_ACEOF
43983 #define __WXGTK127__ $WXGTK127
43984 _ACEOF
43985
43986 fi
43987
43988 if test "$WXGPE" = 1 ; then
43989   cat >>confdefs.h <<_ACEOF
43990 #define __WXGPE__ $WXGPE
43991 _ACEOF
43992
43993 fi
43994
43995 DEBUG_CFLAGS=
43996 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
43997     DEBUG_CFLAGS="-g"
43998     wxUSE_OPTIMISE=no
43999 fi
44000
44001 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
44002     wxUSE_DEBUG_INFO=yes
44003     if test "$GCC" = yes; then
44004         DEBUG_CFLAGS="-ggdb"
44005     fi
44006 fi
44007
44008 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
44009     cat >>confdefs.h <<\_ACEOF
44010 #define WXDEBUG 1
44011 _ACEOF
44012
44013     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
44014 else
44015     if test "$wxUSE_GTK" = 1 ; then
44016         if test "x$wxGTK_VERSION" = "x1" ; then
44017             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
44018         fi
44019     fi
44020 fi
44021
44022 if test "$wxUSE_MEM_TRACING" = "yes" ; then
44023     cat >>confdefs.h <<\_ACEOF
44024 #define wxUSE_MEMORY_TRACING 1
44025 _ACEOF
44026
44027     cat >>confdefs.h <<\_ACEOF
44028 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
44029 _ACEOF
44030
44031     cat >>confdefs.h <<\_ACEOF
44032 #define wxUSE_DEBUG_NEW_ALWAYS 1
44033 _ACEOF
44034
44035     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
44036 fi
44037
44038 if test "$wxUSE_DMALLOC" = "yes" ; then
44039     DMALLOC_LIBS="-ldmallocthcxx"
44040 fi
44041
44042 PROFILE_FLAGS=
44043 if test "$wxUSE_PROFILE" = "yes" ; then
44044     PROFILE_FLAGS=" -pg"
44045 fi
44046
44047 if test "$GCC" = "yes" ; then
44048     if test "$wxUSE_NO_RTTI" = "yes" ; then
44049         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
44050     fi
44051     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44052         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
44053     fi
44054     if test "$wxUSE_PERMISSIVE" = "yes" ; then
44055         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
44056     fi
44057
44058                                                 case "${host}" in
44059       powerpc*-*-aix* )
44060         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
44061         ;;
44062       *-hppa* )
44063         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
44064         ;;
44065     esac
44066 fi
44067
44068 OPTIMISE_CFLAGS=
44069 if test "$wxUSE_OPTIMISE" = "no" ; then
44070     if test "$GCC" = yes ; then
44071                         OPTIMISE_CFLAGS="-O0"
44072     fi
44073 else
44074     if test "$GCC" = yes ; then
44075         case "${host}" in
44076             *-pc-os2_emx | *-pc-os2-emx )
44077                                                 OPTIMISE_CFLAGS="-O2"
44078             ;;
44079             *)
44080                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
44081             ;;
44082         esac
44083     else
44084         OPTIMISE_CFLAGS="-O"
44085     fi
44086 fi
44087
44088
44089 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
44090     cat >>confdefs.h <<\_ACEOF
44091 #define WXWIN_COMPATIBILITY_2_6 1
44092 _ACEOF
44093
44094
44095     WXWIN_COMPATIBILITY_2_8="yes"
44096 fi
44097
44098 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
44099     cat >>confdefs.h <<\_ACEOF
44100 #define WXWIN_COMPATIBILITY_2_8 1
44101 _ACEOF
44102
44103 fi
44104
44105
44106 if test "$wxUSE_GUI" = "yes"; then
44107     cat >>confdefs.h <<\_ACEOF
44108 #define wxUSE_GUI 1
44109 _ACEOF
44110
44111
44112                                             fi
44113
44114
44115 if test "$wxUSE_UNIX" = "yes"; then
44116   cat >>confdefs.h <<\_ACEOF
44117 #define wxUSE_UNIX 1
44118 _ACEOF
44119
44120 fi
44121
44122
44123 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
44124
44125     HAVE_DL_FUNCS=0
44126     HAVE_SHL_FUNCS=0
44127     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44128         if test "$USE_DARWIN" = 1; then
44129                         HAVE_DL_FUNCS=1
44130         elif test "$USE_DOS" = 1; then
44131             HAVE_DL_FUNCS=0
44132         else
44133
44134 for ac_func in dlopen
44135 do
44136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44140   echo $ECHO_N "(cached) $ECHO_C" >&6
44141 else
44142   cat >conftest.$ac_ext <<_ACEOF
44143 /* confdefs.h.  */
44144 _ACEOF
44145 cat confdefs.h >>conftest.$ac_ext
44146 cat >>conftest.$ac_ext <<_ACEOF
44147 /* end confdefs.h.  */
44148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44150 #define $ac_func innocuous_$ac_func
44151
44152 /* System header to define __stub macros and hopefully few prototypes,
44153     which can conflict with char $ac_func (); below.
44154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44155     <limits.h> exists even on freestanding compilers.  */
44156
44157 #ifdef __STDC__
44158 # include <limits.h>
44159 #else
44160 # include <assert.h>
44161 #endif
44162
44163 #undef $ac_func
44164
44165 /* Override any GCC internal prototype to avoid an error.
44166    Use char because int might match the return type of a GCC
44167    builtin and then its argument prototype would still apply.  */
44168 #ifdef __cplusplus
44169 extern "C"
44170 #endif
44171 char $ac_func ();
44172 /* The GNU C library defines this for functions which it implements
44173     to always fail with ENOSYS.  Some functions are actually named
44174     something starting with __ and the normal name is an alias.  */
44175 #if defined __stub_$ac_func || defined __stub___$ac_func
44176 choke me
44177 #endif
44178
44179 int
44180 main ()
44181 {
44182 return $ac_func ();
44183   ;
44184   return 0;
44185 }
44186 _ACEOF
44187 rm -f conftest.$ac_objext conftest$ac_exeext
44188 if { (ac_try="$ac_link"
44189 case "(($ac_try" in
44190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44191   *) ac_try_echo=$ac_try;;
44192 esac
44193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44194   (eval "$ac_link") 2>conftest.er1
44195   ac_status=$?
44196   grep -v '^ *+' conftest.er1 >conftest.err
44197   rm -f conftest.er1
44198   cat conftest.err >&5
44199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44200   (exit $ac_status); } && {
44201          test -z "$ac_c_werror_flag" ||
44202          test ! -s conftest.err
44203        } && test -s conftest$ac_exeext &&
44204        $as_test_x conftest$ac_exeext; then
44205   eval "$as_ac_var=yes"
44206 else
44207   echo "$as_me: failed program was:" >&5
44208 sed 's/^/| /' conftest.$ac_ext >&5
44209
44210         eval "$as_ac_var=no"
44211 fi
44212
44213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44214       conftest$ac_exeext conftest.$ac_ext
44215 fi
44216 ac_res=`eval echo '${'$as_ac_var'}'`
44217                { echo "$as_me:$LINENO: result: $ac_res" >&5
44218 echo "${ECHO_T}$ac_res" >&6; }
44219 if test `eval echo '${'$as_ac_var'}'` = yes; then
44220   cat >>confdefs.h <<_ACEOF
44221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44222 _ACEOF
44223
44224                 cat >>confdefs.h <<\_ACEOF
44225 #define HAVE_DLOPEN 1
44226 _ACEOF
44227
44228                 HAVE_DL_FUNCS=1
44229
44230 else
44231
44232                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
44233 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
44234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
44235   echo $ECHO_N "(cached) $ECHO_C" >&6
44236 else
44237   ac_check_lib_save_LIBS=$LIBS
44238 LIBS="-ldl  $LIBS"
44239 cat >conftest.$ac_ext <<_ACEOF
44240 /* confdefs.h.  */
44241 _ACEOF
44242 cat confdefs.h >>conftest.$ac_ext
44243 cat >>conftest.$ac_ext <<_ACEOF
44244 /* end confdefs.h.  */
44245
44246 /* Override any GCC internal prototype to avoid an error.
44247    Use char because int might match the return type of a GCC
44248    builtin and then its argument prototype would still apply.  */
44249 #ifdef __cplusplus
44250 extern "C"
44251 #endif
44252 char dlopen ();
44253 int
44254 main ()
44255 {
44256 return dlopen ();
44257   ;
44258   return 0;
44259 }
44260 _ACEOF
44261 rm -f conftest.$ac_objext conftest$ac_exeext
44262 if { (ac_try="$ac_link"
44263 case "(($ac_try" in
44264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44265   *) ac_try_echo=$ac_try;;
44266 esac
44267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44268   (eval "$ac_link") 2>conftest.er1
44269   ac_status=$?
44270   grep -v '^ *+' conftest.er1 >conftest.err
44271   rm -f conftest.er1
44272   cat conftest.err >&5
44273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44274   (exit $ac_status); } && {
44275          test -z "$ac_c_werror_flag" ||
44276          test ! -s conftest.err
44277        } && test -s conftest$ac_exeext &&
44278        $as_test_x conftest$ac_exeext; then
44279   ac_cv_lib_dl_dlopen=yes
44280 else
44281   echo "$as_me: failed program was:" >&5
44282 sed 's/^/| /' conftest.$ac_ext >&5
44283
44284         ac_cv_lib_dl_dlopen=no
44285 fi
44286
44287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44288       conftest$ac_exeext conftest.$ac_ext
44289 LIBS=$ac_check_lib_save_LIBS
44290 fi
44291 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
44292 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
44293 if test $ac_cv_lib_dl_dlopen = yes; then
44294
44295                                 cat >>confdefs.h <<\_ACEOF
44296 #define HAVE_DLOPEN 1
44297 _ACEOF
44298
44299                                 HAVE_DL_FUNCS=1
44300                                 DL_LINK=" -ldl$DL_LINK"
44301
44302 else
44303
44304
44305 for ac_func in shl_load
44306 do
44307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44311   echo $ECHO_N "(cached) $ECHO_C" >&6
44312 else
44313   cat >conftest.$ac_ext <<_ACEOF
44314 /* confdefs.h.  */
44315 _ACEOF
44316 cat confdefs.h >>conftest.$ac_ext
44317 cat >>conftest.$ac_ext <<_ACEOF
44318 /* end confdefs.h.  */
44319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44321 #define $ac_func innocuous_$ac_func
44322
44323 /* System header to define __stub macros and hopefully few prototypes,
44324     which can conflict with char $ac_func (); below.
44325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44326     <limits.h> exists even on freestanding compilers.  */
44327
44328 #ifdef __STDC__
44329 # include <limits.h>
44330 #else
44331 # include <assert.h>
44332 #endif
44333
44334 #undef $ac_func
44335
44336 /* Override any GCC internal prototype to avoid an error.
44337    Use char because int might match the return type of a GCC
44338    builtin and then its argument prototype would still apply.  */
44339 #ifdef __cplusplus
44340 extern "C"
44341 #endif
44342 char $ac_func ();
44343 /* The GNU C library defines this for functions which it implements
44344     to always fail with ENOSYS.  Some functions are actually named
44345     something starting with __ and the normal name is an alias.  */
44346 #if defined __stub_$ac_func || defined __stub___$ac_func
44347 choke me
44348 #endif
44349
44350 int
44351 main ()
44352 {
44353 return $ac_func ();
44354   ;
44355   return 0;
44356 }
44357 _ACEOF
44358 rm -f conftest.$ac_objext conftest$ac_exeext
44359 if { (ac_try="$ac_link"
44360 case "(($ac_try" in
44361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44362   *) ac_try_echo=$ac_try;;
44363 esac
44364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44365   (eval "$ac_link") 2>conftest.er1
44366   ac_status=$?
44367   grep -v '^ *+' conftest.er1 >conftest.err
44368   rm -f conftest.er1
44369   cat conftest.err >&5
44370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44371   (exit $ac_status); } && {
44372          test -z "$ac_c_werror_flag" ||
44373          test ! -s conftest.err
44374        } && test -s conftest$ac_exeext &&
44375        $as_test_x conftest$ac_exeext; then
44376   eval "$as_ac_var=yes"
44377 else
44378   echo "$as_me: failed program was:" >&5
44379 sed 's/^/| /' conftest.$ac_ext >&5
44380
44381         eval "$as_ac_var=no"
44382 fi
44383
44384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44385       conftest$ac_exeext conftest.$ac_ext
44386 fi
44387 ac_res=`eval echo '${'$as_ac_var'}'`
44388                { echo "$as_me:$LINENO: result: $ac_res" >&5
44389 echo "${ECHO_T}$ac_res" >&6; }
44390 if test `eval echo '${'$as_ac_var'}'` = yes; then
44391   cat >>confdefs.h <<_ACEOF
44392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44393 _ACEOF
44394
44395                                                 cat >>confdefs.h <<\_ACEOF
44396 #define HAVE_SHL_LOAD 1
44397 _ACEOF
44398
44399                                                 HAVE_SHL_FUNCS=1
44400
44401 else
44402
44403                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44404 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
44405 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44406   echo $ECHO_N "(cached) $ECHO_C" >&6
44407 else
44408   ac_check_lib_save_LIBS=$LIBS
44409 LIBS="-lshl_load  $LIBS"
44410 cat >conftest.$ac_ext <<_ACEOF
44411 /* confdefs.h.  */
44412 _ACEOF
44413 cat confdefs.h >>conftest.$ac_ext
44414 cat >>conftest.$ac_ext <<_ACEOF
44415 /* end confdefs.h.  */
44416
44417 /* Override any GCC internal prototype to avoid an error.
44418    Use char because int might match the return type of a GCC
44419    builtin and then its argument prototype would still apply.  */
44420 #ifdef __cplusplus
44421 extern "C"
44422 #endif
44423 char dld ();
44424 int
44425 main ()
44426 {
44427 return dld ();
44428   ;
44429   return 0;
44430 }
44431 _ACEOF
44432 rm -f conftest.$ac_objext conftest$ac_exeext
44433 if { (ac_try="$ac_link"
44434 case "(($ac_try" in
44435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44436   *) ac_try_echo=$ac_try;;
44437 esac
44438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44439   (eval "$ac_link") 2>conftest.er1
44440   ac_status=$?
44441   grep -v '^ *+' conftest.er1 >conftest.err
44442   rm -f conftest.er1
44443   cat conftest.err >&5
44444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44445   (exit $ac_status); } && {
44446          test -z "$ac_c_werror_flag" ||
44447          test ! -s conftest.err
44448        } && test -s conftest$ac_exeext &&
44449        $as_test_x conftest$ac_exeext; then
44450   ac_cv_lib_shl_load_dld=yes
44451 else
44452   echo "$as_me: failed program was:" >&5
44453 sed 's/^/| /' conftest.$ac_ext >&5
44454
44455         ac_cv_lib_shl_load_dld=no
44456 fi
44457
44458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44459       conftest$ac_exeext conftest.$ac_ext
44460 LIBS=$ac_check_lib_save_LIBS
44461 fi
44462 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44463 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44464 if test $ac_cv_lib_shl_load_dld = yes; then
44465
44466                                                                 HAVE_SHL_FUNCS=1
44467                                                                 DL_LINK=" -ldld$DL_LINK"
44468
44469 fi
44470
44471
44472 fi
44473 done
44474
44475
44476 fi
44477
44478
44479 fi
44480 done
44481
44482
44483                 if test "$HAVE_DL_FUNCS" = 1; then
44484
44485 for ac_func in dlerror
44486 do
44487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44491   echo $ECHO_N "(cached) $ECHO_C" >&6
44492 else
44493   cat >conftest.$ac_ext <<_ACEOF
44494 /* confdefs.h.  */
44495 _ACEOF
44496 cat confdefs.h >>conftest.$ac_ext
44497 cat >>conftest.$ac_ext <<_ACEOF
44498 /* end confdefs.h.  */
44499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44501 #define $ac_func innocuous_$ac_func
44502
44503 /* System header to define __stub macros and hopefully few prototypes,
44504     which can conflict with char $ac_func (); below.
44505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44506     <limits.h> exists even on freestanding compilers.  */
44507
44508 #ifdef __STDC__
44509 # include <limits.h>
44510 #else
44511 # include <assert.h>
44512 #endif
44513
44514 #undef $ac_func
44515
44516 /* Override any GCC internal prototype to avoid an error.
44517    Use char because int might match the return type of a GCC
44518    builtin and then its argument prototype would still apply.  */
44519 #ifdef __cplusplus
44520 extern "C"
44521 #endif
44522 char $ac_func ();
44523 /* The GNU C library defines this for functions which it implements
44524     to always fail with ENOSYS.  Some functions are actually named
44525     something starting with __ and the normal name is an alias.  */
44526 #if defined __stub_$ac_func || defined __stub___$ac_func
44527 choke me
44528 #endif
44529
44530 int
44531 main ()
44532 {
44533 return $ac_func ();
44534   ;
44535   return 0;
44536 }
44537 _ACEOF
44538 rm -f conftest.$ac_objext conftest$ac_exeext
44539 if { (ac_try="$ac_link"
44540 case "(($ac_try" in
44541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44542   *) ac_try_echo=$ac_try;;
44543 esac
44544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44545   (eval "$ac_link") 2>conftest.er1
44546   ac_status=$?
44547   grep -v '^ *+' conftest.er1 >conftest.err
44548   rm -f conftest.er1
44549   cat conftest.err >&5
44550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551   (exit $ac_status); } && {
44552          test -z "$ac_c_werror_flag" ||
44553          test ! -s conftest.err
44554        } && test -s conftest$ac_exeext &&
44555        $as_test_x conftest$ac_exeext; then
44556   eval "$as_ac_var=yes"
44557 else
44558   echo "$as_me: failed program was:" >&5
44559 sed 's/^/| /' conftest.$ac_ext >&5
44560
44561         eval "$as_ac_var=no"
44562 fi
44563
44564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44565       conftest$ac_exeext conftest.$ac_ext
44566 fi
44567 ac_res=`eval echo '${'$as_ac_var'}'`
44568                { echo "$as_me:$LINENO: result: $ac_res" >&5
44569 echo "${ECHO_T}$ac_res" >&6; }
44570 if test `eval echo '${'$as_ac_var'}'` = yes; then
44571   cat >>confdefs.h <<_ACEOF
44572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44573 _ACEOF
44574  cat >>confdefs.h <<\_ACEOF
44575 #define HAVE_DLERROR 1
44576 _ACEOF
44577
44578 else
44579
44580                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44581 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44582 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44583   echo $ECHO_N "(cached) $ECHO_C" >&6
44584 else
44585   ac_check_lib_save_LIBS=$LIBS
44586 LIBS="-ldl  $LIBS"
44587 cat >conftest.$ac_ext <<_ACEOF
44588 /* confdefs.h.  */
44589 _ACEOF
44590 cat confdefs.h >>conftest.$ac_ext
44591 cat >>conftest.$ac_ext <<_ACEOF
44592 /* end confdefs.h.  */
44593
44594 /* Override any GCC internal prototype to avoid an error.
44595    Use char because int might match the return type of a GCC
44596    builtin and then its argument prototype would still apply.  */
44597 #ifdef __cplusplus
44598 extern "C"
44599 #endif
44600 char dlerror ();
44601 int
44602 main ()
44603 {
44604 return dlerror ();
44605   ;
44606   return 0;
44607 }
44608 _ACEOF
44609 rm -f conftest.$ac_objext conftest$ac_exeext
44610 if { (ac_try="$ac_link"
44611 case "(($ac_try" in
44612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44613   *) ac_try_echo=$ac_try;;
44614 esac
44615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44616   (eval "$ac_link") 2>conftest.er1
44617   ac_status=$?
44618   grep -v '^ *+' conftest.er1 >conftest.err
44619   rm -f conftest.er1
44620   cat conftest.err >&5
44621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44622   (exit $ac_status); } && {
44623          test -z "$ac_c_werror_flag" ||
44624          test ! -s conftest.err
44625        } && test -s conftest$ac_exeext &&
44626        $as_test_x conftest$ac_exeext; then
44627   ac_cv_lib_dl_dlerror=yes
44628 else
44629   echo "$as_me: failed program was:" >&5
44630 sed 's/^/| /' conftest.$ac_ext >&5
44631
44632         ac_cv_lib_dl_dlerror=no
44633 fi
44634
44635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44636       conftest$ac_exeext conftest.$ac_ext
44637 LIBS=$ac_check_lib_save_LIBS
44638 fi
44639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44640 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44641 if test $ac_cv_lib_dl_dlerror = yes; then
44642   cat >>confdefs.h <<\_ACEOF
44643 #define HAVE_DLERROR 1
44644 _ACEOF
44645
44646 fi
44647
44648
44649
44650 fi
44651 done
44652
44653         fi
44654         fi
44655
44656         if test "$HAVE_DL_FUNCS" = 0; then
44657             if test "$HAVE_SHL_FUNCS" = 0; then
44658               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44659                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44660 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44661                   wxUSE_DYNAMIC_LOADER=no
44662                   wxUSE_DYNLIB_CLASS=no
44663               else
44664                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44665 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44666               fi
44667             fi
44668         fi
44669     fi
44670 fi
44671
44672 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44673     cat >>confdefs.h <<\_ACEOF
44674 #define wxUSE_DYNAMIC_LOADER 1
44675 _ACEOF
44676
44677 fi
44678 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44679     cat >>confdefs.h <<\_ACEOF
44680 #define wxUSE_DYNLIB_CLASS 1
44681 _ACEOF
44682
44683 fi
44684
44685
44686
44687 if test "$wxUSE_PLUGINS" = "yes" ; then
44688     if test "$wxUSE_SHARED" = "no" ; then
44689         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44690 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44691         wxUSE_PLUGINS=no
44692     fi
44693     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44694         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44695 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44696         wxUSE_PLUGINS=no
44697     fi
44698     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44699         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44700 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44701         wxUSE_PLUGINS=no
44702     fi
44703     if test "$wxUSE_PLUGINS" = "yes" ; then
44704         cat >>confdefs.h <<\_ACEOF
44705 #define wxUSE_PLUGINS 1
44706 _ACEOF
44707
44708     fi
44709 fi
44710
44711
44712 if test "$wxUSE_STL" = "yes"; then
44713   cat >>confdefs.h <<\_ACEOF
44714 #define wxUSE_STL 1
44715 _ACEOF
44716
44717 fi
44718
44719 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44720   cat >>confdefs.h <<\_ACEOF
44721 #define wxUSE_EXTENDED_RTTI 1
44722 _ACEOF
44723
44724 fi
44725
44726 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44727   cat >>confdefs.h <<\_ACEOF
44728 #define wxUSE_APPLE_IEEE 1
44729 _ACEOF
44730
44731 fi
44732
44733 if test "$wxUSE_TIMER" = "yes"; then
44734   cat >>confdefs.h <<\_ACEOF
44735 #define wxUSE_TIMER 1
44736 _ACEOF
44737
44738 fi
44739
44740 if test "$USE_UNIX" = "1" ; then
44741         if test "$wxUSE_MGL" != 1; then
44742                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44743 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44744 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44745   echo $ECHO_N "(cached) $ECHO_C" >&6
44746 else
44747
44748             cat >conftest.$ac_ext <<_ACEOF
44749 /* confdefs.h.  */
44750 _ACEOF
44751 cat confdefs.h >>conftest.$ac_ext
44752 cat >>conftest.$ac_ext <<_ACEOF
44753 /* end confdefs.h.  */
44754
44755                     #include <sys/ioctl.h>
44756                     #include <sys/soundcard.h>
44757
44758 int
44759 main ()
44760 {
44761
44762                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44763
44764   ;
44765   return 0;
44766 }
44767 _ACEOF
44768 rm -f conftest.$ac_objext conftest$ac_exeext
44769 if { (ac_try="$ac_link"
44770 case "(($ac_try" in
44771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44772   *) ac_try_echo=$ac_try;;
44773 esac
44774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44775   (eval "$ac_link") 2>conftest.er1
44776   ac_status=$?
44777   grep -v '^ *+' conftest.er1 >conftest.err
44778   rm -f conftest.er1
44779   cat conftest.err >&5
44780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44781   (exit $ac_status); } && {
44782          test -z "$ac_c_werror_flag" ||
44783          test ! -s conftest.err
44784        } && test -s conftest$ac_exeext &&
44785        $as_test_x conftest$ac_exeext; then
44786   ac_cv_header_sys_soundcard=yes
44787 else
44788   echo "$as_me: failed program was:" >&5
44789 sed 's/^/| /' conftest.$ac_ext >&5
44790
44791
44792                     saveLibs="$LIBS"
44793                     LIBS="$saveLibs -lossaudio"
44794                     cat >conftest.$ac_ext <<_ACEOF
44795 /* confdefs.h.  */
44796 _ACEOF
44797 cat confdefs.h >>conftest.$ac_ext
44798 cat >>conftest.$ac_ext <<_ACEOF
44799 /* end confdefs.h.  */
44800
44801                             #include <sys/ioctl.h>
44802                             #include <sys/soundcard.h>
44803
44804 int
44805 main ()
44806 {
44807
44808                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44809
44810   ;
44811   return 0;
44812 }
44813 _ACEOF
44814 rm -f conftest.$ac_objext conftest$ac_exeext
44815 if { (ac_try="$ac_link"
44816 case "(($ac_try" in
44817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44818   *) ac_try_echo=$ac_try;;
44819 esac
44820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44821   (eval "$ac_link") 2>conftest.er1
44822   ac_status=$?
44823   grep -v '^ *+' conftest.er1 >conftest.err
44824   rm -f conftest.er1
44825   cat conftest.err >&5
44826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44827   (exit $ac_status); } && {
44828          test -z "$ac_c_werror_flag" ||
44829          test ! -s conftest.err
44830        } && test -s conftest$ac_exeext &&
44831        $as_test_x conftest$ac_exeext; then
44832   ac_cv_header_sys_soundcard=yes
44833 else
44834   echo "$as_me: failed program was:" >&5
44835 sed 's/^/| /' conftest.$ac_ext >&5
44836
44837
44838                             LIBS="$saveLibs"
44839                             ac_cv_header_sys_soundcard=no
44840
44841
44842 fi
44843
44844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44845       conftest$ac_exeext conftest.$ac_ext
44846
44847
44848 fi
44849
44850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44851       conftest$ac_exeext conftest.$ac_ext
44852
44853 fi
44854 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44855 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44856     fi
44857
44858     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44859         cat >>confdefs.h <<\_ACEOF
44860 #define HAVE_SYS_SOUNDCARD_H 1
44861 _ACEOF
44862
44863     fi
44864 fi
44865
44866 WITH_PLUGIN_SDL=0
44867 if test "$wxUSE_SOUND" = "yes"; then
44868   if test "$USE_UNIX" = "1" ; then
44869     if test "$wxUSE_LIBSDL" != "no"; then
44870
44871 # Check whether --with-sdl-prefix was given.
44872 if test "${with_sdl_prefix+set}" = set; then
44873   withval=$with_sdl_prefix; sdl_prefix="$withval"
44874 else
44875   sdl_prefix=""
44876 fi
44877
44878
44879 # Check whether --with-sdl-exec-prefix was given.
44880 if test "${with_sdl_exec_prefix+set}" = set; then
44881   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44882 else
44883   sdl_exec_prefix=""
44884 fi
44885
44886 # Check whether --enable-sdltest was given.
44887 if test "${enable_sdltest+set}" = set; then
44888   enableval=$enable_sdltest;
44889 else
44890   enable_sdltest=yes
44891 fi
44892
44893
44894   if test x$sdl_exec_prefix != x ; then
44895     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44896     if test x${SDL_CONFIG+set} != xset ; then
44897       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44898     fi
44899   fi
44900   if test x$sdl_prefix != x ; then
44901     sdl_args="$sdl_args --prefix=$sdl_prefix"
44902     if test x${SDL_CONFIG+set} != xset ; then
44903       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44904     fi
44905   fi
44906
44907   if test "x$prefix" != xNONE; then
44908     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44909   fi
44910   # Extract the first word of "sdl-config", so it can be a program name with args.
44911 set dummy sdl-config; ac_word=$2
44912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44914 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44915   echo $ECHO_N "(cached) $ECHO_C" >&6
44916 else
44917   case $SDL_CONFIG in
44918   [\\/]* | ?:[\\/]*)
44919   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44920   ;;
44921   *)
44922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44923 for as_dir in $PATH
44924 do
44925   IFS=$as_save_IFS
44926   test -z "$as_dir" && as_dir=.
44927   for ac_exec_ext in '' $ac_executable_extensions; do
44928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44929     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44931     break 2
44932   fi
44933 done
44934 done
44935 IFS=$as_save_IFS
44936
44937   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44938   ;;
44939 esac
44940 fi
44941 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44942 if test -n "$SDL_CONFIG"; then
44943   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44944 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44945 else
44946   { echo "$as_me:$LINENO: result: no" >&5
44947 echo "${ECHO_T}no" >&6; }
44948 fi
44949
44950
44951   min_sdl_version=1.2.0
44952   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44953 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44954   no_sdl=""
44955   if test "$SDL_CONFIG" = "no" ; then
44956     no_sdl=yes
44957   else
44958     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44959     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44960
44961     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44962            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44963     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44964            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44965     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44966            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44967     if test "x$enable_sdltest" = "xyes" ; then
44968       ac_save_CFLAGS="$CFLAGS"
44969       ac_save_CXXFLAGS="$CXXFLAGS"
44970       ac_save_LIBS="$LIBS"
44971       CFLAGS="$CFLAGS $SDL_CFLAGS"
44972       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44973       LIBS="$LIBS $SDL_LIBS"
44974       rm -f conf.sdltest
44975       if test "$cross_compiling" = yes; then
44976   echo $ac_n "cross compiling; assumed OK... $ac_c"
44977 else
44978   cat >conftest.$ac_ext <<_ACEOF
44979 /* confdefs.h.  */
44980 _ACEOF
44981 cat confdefs.h >>conftest.$ac_ext
44982 cat >>conftest.$ac_ext <<_ACEOF
44983 /* end confdefs.h.  */
44984
44985 #include <stdio.h>
44986 #include <stdlib.h>
44987 #include <string.h>
44988 #include "SDL.h"
44989
44990 char*
44991 my_strdup (char *str)
44992 {
44993   char *new_str;
44994
44995   if (str)
44996     {
44997       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44998       strcpy (new_str, str);
44999     }
45000   else
45001     new_str = NULL;
45002
45003   return new_str;
45004 }
45005
45006 int main (int argc, char *argv[])
45007 {
45008   int major, minor, micro;
45009   char *tmp_version;
45010
45011   /* This hangs on some systems (?)
45012   system ("touch conf.sdltest");
45013   */
45014   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
45015
45016   /* HP/UX 9 (%@#!) writes to sscanf strings */
45017   tmp_version = my_strdup("$min_sdl_version");
45018   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
45019      printf("%s, bad version string\n", "$min_sdl_version");
45020      exit(1);
45021    }
45022
45023    if (($sdl_major_version > major) ||
45024       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
45025       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
45026     {
45027       return 0;
45028     }
45029   else
45030     {
45031       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
45032       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
45033       printf("*** best to upgrade to the required version.\n");
45034       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
45035       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
45036       printf("*** config.cache before re-running configure\n");
45037       return 1;
45038     }
45039 }
45040
45041
45042 _ACEOF
45043 rm -f conftest$ac_exeext
45044 if { (ac_try="$ac_link"
45045 case "(($ac_try" in
45046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45047   *) ac_try_echo=$ac_try;;
45048 esac
45049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45050   (eval "$ac_link") 2>&5
45051   ac_status=$?
45052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45054   { (case "(($ac_try" in
45055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45056   *) ac_try_echo=$ac_try;;
45057 esac
45058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45059   (eval "$ac_try") 2>&5
45060   ac_status=$?
45061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45062   (exit $ac_status); }; }; then
45063   :
45064 else
45065   echo "$as_me: program exited with status $ac_status" >&5
45066 echo "$as_me: failed program was:" >&5
45067 sed 's/^/| /' conftest.$ac_ext >&5
45068
45069 ( exit $ac_status )
45070 no_sdl=yes
45071 fi
45072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45073 fi
45074
45075
45076        CFLAGS="$ac_save_CFLAGS"
45077        CXXFLAGS="$ac_save_CXXFLAGS"
45078        LIBS="$ac_save_LIBS"
45079      fi
45080   fi
45081   if test "x$no_sdl" = x ; then
45082      { echo "$as_me:$LINENO: result: yes" >&5
45083 echo "${ECHO_T}yes" >&6; }
45084
45085                     EXTRALIBS_SDL="$SDL_LIBS"
45086                     CFLAGS="$SDL_CFLAGS $CFLAGS"
45087                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
45088                     cat >>confdefs.h <<\_ACEOF
45089 #define wxUSE_LIBSDL 1
45090 _ACEOF
45091
45092
45093   else
45094      { echo "$as_me:$LINENO: result: no" >&5
45095 echo "${ECHO_T}no" >&6; }
45096      if test "$SDL_CONFIG" = "no" ; then
45097        echo "*** The sdl-config script installed by SDL could not be found"
45098        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
45099        echo "*** your path, or set the SDL_CONFIG environment variable to the"
45100        echo "*** full path to sdl-config."
45101      else
45102        if test -f conf.sdltest ; then
45103         :
45104        else
45105           echo "*** Could not run SDL test program, checking why..."
45106           CFLAGS="$CFLAGS $SDL_CFLAGS"
45107           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45108           LIBS="$LIBS $SDL_LIBS"
45109           cat >conftest.$ac_ext <<_ACEOF
45110 /* confdefs.h.  */
45111 _ACEOF
45112 cat confdefs.h >>conftest.$ac_ext
45113 cat >>conftest.$ac_ext <<_ACEOF
45114 /* end confdefs.h.  */
45115
45116 #include <stdio.h>
45117 #include "SDL.h"
45118
45119 int main(int argc, char *argv[])
45120 { return 0; }
45121 #undef  main
45122 #define main K_and_R_C_main
45123
45124 int
45125 main ()
45126 {
45127  return 0;
45128   ;
45129   return 0;
45130 }
45131 _ACEOF
45132 rm -f conftest.$ac_objext conftest$ac_exeext
45133 if { (ac_try="$ac_link"
45134 case "(($ac_try" in
45135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45136   *) ac_try_echo=$ac_try;;
45137 esac
45138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45139   (eval "$ac_link") 2>conftest.er1
45140   ac_status=$?
45141   grep -v '^ *+' conftest.er1 >conftest.err
45142   rm -f conftest.er1
45143   cat conftest.err >&5
45144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45145   (exit $ac_status); } && {
45146          test -z "$ac_c_werror_flag" ||
45147          test ! -s conftest.err
45148        } && test -s conftest$ac_exeext &&
45149        $as_test_x conftest$ac_exeext; then
45150    echo "*** The test program compiled, but did not run. This usually means"
45151           echo "*** that the run-time linker is not finding SDL or finding the wrong"
45152           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
45153           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
45154           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
45155           echo "*** is required on your system"
45156           echo "***"
45157           echo "*** If you have an old version installed, it is best to remove it, although"
45158           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
45159 else
45160   echo "$as_me: failed program was:" >&5
45161 sed 's/^/| /' conftest.$ac_ext >&5
45162
45163          echo "*** The test program failed to compile or link. See the file config.log for the"
45164           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
45165           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
45166           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
45167 fi
45168
45169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45170       conftest$ac_exeext conftest.$ac_ext
45171           CFLAGS="$ac_save_CFLAGS"
45172           CXXFLAGS="$ac_save_CXXFLAGS"
45173           LIBS="$ac_save_LIBS"
45174        fi
45175      fi
45176      SDL_CFLAGS=""
45177      SDL_LIBS=""
45178      wxUSE_LIBSDL="no"
45179   fi
45180
45181
45182   rm -f conf.sdltest
45183
45184       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
45185         WITH_PLUGIN_SDL=1
45186       fi
45187     fi
45188   else
45189         if test "$wxUSE_MGL" = 1; then
45190         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
45191 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
45192         wxUSE_SOUND="no"
45193     fi
45194   fi
45195 fi
45196
45197 if test "$wxUSE_SOUND" = "yes"; then
45198   cat >>confdefs.h <<\_ACEOF
45199 #define wxUSE_SOUND 1
45200 _ACEOF
45201
45202   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
45203 fi
45204
45205 if test "$WXGTK20" = 1; then
45206
45207
45208 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45209         if test -n "$ac_tool_prefix"; then
45210   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45211 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45214 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45215   echo $ECHO_N "(cached) $ECHO_C" >&6
45216 else
45217   case $PKG_CONFIG in
45218   [\\/]* | ?:[\\/]*)
45219   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45220   ;;
45221   *)
45222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45223 for as_dir in $PATH
45224 do
45225   IFS=$as_save_IFS
45226   test -z "$as_dir" && as_dir=.
45227   for ac_exec_ext in '' $ac_executable_extensions; do
45228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45229     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45231     break 2
45232   fi
45233 done
45234 done
45235 IFS=$as_save_IFS
45236
45237   ;;
45238 esac
45239 fi
45240 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45241 if test -n "$PKG_CONFIG"; then
45242   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45243 echo "${ECHO_T}$PKG_CONFIG" >&6; }
45244 else
45245   { echo "$as_me:$LINENO: result: no" >&5
45246 echo "${ECHO_T}no" >&6; }
45247 fi
45248
45249
45250 fi
45251 if test -z "$ac_cv_path_PKG_CONFIG"; then
45252   ac_pt_PKG_CONFIG=$PKG_CONFIG
45253   # Extract the first word of "pkg-config", so it can be a program name with args.
45254 set dummy pkg-config; ac_word=$2
45255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45257 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
45258   echo $ECHO_N "(cached) $ECHO_C" >&6
45259 else
45260   case $ac_pt_PKG_CONFIG in
45261   [\\/]* | ?:[\\/]*)
45262   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45263   ;;
45264   *)
45265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45266 for as_dir in $PATH
45267 do
45268   IFS=$as_save_IFS
45269   test -z "$as_dir" && as_dir=.
45270   for ac_exec_ext in '' $ac_executable_extensions; do
45271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45272     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45274     break 2
45275   fi
45276 done
45277 done
45278 IFS=$as_save_IFS
45279
45280   ;;
45281 esac
45282 fi
45283 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45284 if test -n "$ac_pt_PKG_CONFIG"; then
45285   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
45286 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
45287 else
45288   { echo "$as_me:$LINENO: result: no" >&5
45289 echo "${ECHO_T}no" >&6; }
45290 fi
45291
45292   if test "x$ac_pt_PKG_CONFIG" = x; then
45293     PKG_CONFIG=""
45294   else
45295     case $cross_compiling:$ac_tool_warned in
45296 yes:)
45297 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45298 whose name does not start with the host triplet.  If you think this
45299 configuration is useful to you, please write to autoconf@gnu.org." >&5
45300 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45301 whose name does not start with the host triplet.  If you think this
45302 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45303 ac_tool_warned=yes ;;
45304 esac
45305     PKG_CONFIG=$ac_pt_PKG_CONFIG
45306   fi
45307 else
45308   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45309 fi
45310
45311 fi
45312 if test -n "$PKG_CONFIG"; then
45313         _pkg_min_version=0.9.0
45314         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
45315 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
45316         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
45317                 { echo "$as_me:$LINENO: result: yes" >&5
45318 echo "${ECHO_T}yes" >&6; }
45319         else
45320                 { echo "$as_me:$LINENO: result: no" >&5
45321 echo "${ECHO_T}no" >&6; }
45322                 PKG_CONFIG=""
45323         fi
45324
45325 fi
45326
45327     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45328
45329         if test "$wxUSE_GTKPRINT" = "yes" ; then
45330
45331
45332 pkg_failed=no
45333 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
45334 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
45335
45336 if test -n "$PKG_CONFIG"; then
45337     if test -n "$GTKPRINT_CFLAGS"; then
45338         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
45339     else
45340         if test -n "$PKG_CONFIG" && \
45341     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
45342   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
45343   ac_status=$?
45344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45345   (exit $ac_status); }; then
45346   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
45347 else
45348   pkg_failed=yes
45349 fi
45350     fi
45351 else
45352         pkg_failed=untried
45353 fi
45354 if test -n "$PKG_CONFIG"; then
45355     if test -n "$GTKPRINT_LIBS"; then
45356         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
45357     else
45358         if test -n "$PKG_CONFIG" && \
45359     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
45360   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
45361   ac_status=$?
45362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45363   (exit $ac_status); }; then
45364   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
45365 else
45366   pkg_failed=yes
45367 fi
45368     fi
45369 else
45370         pkg_failed=untried
45371 fi
45372
45373
45374
45375 if test $pkg_failed = yes; then
45376
45377 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45378         _pkg_short_errors_supported=yes
45379 else
45380         _pkg_short_errors_supported=no
45381 fi
45382         if test $_pkg_short_errors_supported = yes; then
45383                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
45384         else
45385                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
45386         fi
45387         # Put the nasty error message in config.log where it belongs
45388         echo "$GTKPRINT_PKG_ERRORS" >&5
45389
45390
45391                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
45392 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
45393                         wxUSE_GTKPRINT="no"
45394
45395
45396 elif test $pkg_failed = untried; then
45397
45398                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
45399 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
45400                         wxUSE_GTKPRINT="no"
45401
45402
45403 else
45404         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
45405         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
45406         { echo "$as_me:$LINENO: result: yes" >&5
45407 echo "${ECHO_T}yes" >&6; }
45408
45409                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
45410                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
45411                         cat >>confdefs.h <<\_ACEOF
45412 #define wxUSE_GTKPRINT 1
45413 _ACEOF
45414
45415
45416 fi
45417         fi
45418
45419         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45420
45421
45422 pkg_failed=no
45423 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
45424 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
45425
45426 if test -n "$PKG_CONFIG"; then
45427     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
45428         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
45429     else
45430         if test -n "$PKG_CONFIG" && \
45431     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45432   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45433   ac_status=$?
45434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45435   (exit $ac_status); }; then
45436   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45437 else
45438   pkg_failed=yes
45439 fi
45440     fi
45441 else
45442         pkg_failed=untried
45443 fi
45444 if test -n "$PKG_CONFIG"; then
45445     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
45446         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45447     else
45448         if test -n "$PKG_CONFIG" && \
45449     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45450   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45451   ac_status=$?
45452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45453   (exit $ac_status); }; then
45454   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45455 else
45456   pkg_failed=yes
45457 fi
45458     fi
45459 else
45460         pkg_failed=untried
45461 fi
45462
45463
45464
45465 if test $pkg_failed = yes; then
45466
45467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45468         _pkg_short_errors_supported=yes
45469 else
45470         _pkg_short_errors_supported=no
45471 fi
45472         if test $_pkg_short_errors_supported = yes; then
45473                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45474         else
45475                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45476         fi
45477         # Put the nasty error message in config.log where it belongs
45478         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45479
45480
45481                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45482 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45483                         wxUSE_LIBGNOMEPRINT="no"
45484
45485
45486 elif test $pkg_failed = untried; then
45487
45488                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45489 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45490                         wxUSE_LIBGNOMEPRINT="no"
45491
45492
45493 else
45494         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45495         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45496         { echo "$as_me:$LINENO: result: yes" >&5
45497 echo "${ECHO_T}yes" >&6; }
45498
45499                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45500                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45501                         cat >>confdefs.h <<\_ACEOF
45502 #define wxUSE_LIBGNOMEPRINT 1
45503 _ACEOF
45504
45505
45506 fi
45507         fi
45508     fi
45509
45510     if test "$wxUSE_MIMETYPE" = "yes" ; then
45511         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45512
45513
45514 pkg_failed=no
45515 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45516 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45517
45518 if test -n "$PKG_CONFIG"; then
45519     if test -n "$GNOMEVFS_CFLAGS"; then
45520         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45521     else
45522         if test -n "$PKG_CONFIG" && \
45523     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45524   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45525   ac_status=$?
45526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45527   (exit $ac_status); }; then
45528   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45529 else
45530   pkg_failed=yes
45531 fi
45532     fi
45533 else
45534         pkg_failed=untried
45535 fi
45536 if test -n "$PKG_CONFIG"; then
45537     if test -n "$GNOMEVFS_LIBS"; then
45538         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45539     else
45540         if test -n "$PKG_CONFIG" && \
45541     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45542   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45543   ac_status=$?
45544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45545   (exit $ac_status); }; then
45546   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45547 else
45548   pkg_failed=yes
45549 fi
45550     fi
45551 else
45552         pkg_failed=untried
45553 fi
45554
45555
45556
45557 if test $pkg_failed = yes; then
45558
45559 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45560         _pkg_short_errors_supported=yes
45561 else
45562         _pkg_short_errors_supported=no
45563 fi
45564         if test $_pkg_short_errors_supported = yes; then
45565                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45566         else
45567                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45568         fi
45569         # Put the nasty error message in config.log where it belongs
45570         echo "$GNOMEVFS_PKG_ERRORS" >&5
45571
45572
45573                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45574 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45575                         wxUSE_LIBGNOMEVFS="no"
45576
45577
45578 elif test $pkg_failed = untried; then
45579
45580                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45581 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45582                         wxUSE_LIBGNOMEVFS="no"
45583
45584
45585 else
45586         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45587         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45588         { echo "$as_me:$LINENO: result: yes" >&5
45589 echo "${ECHO_T}yes" >&6; }
45590
45591                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45592                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45593                         cat >>confdefs.h <<\_ACEOF
45594 #define wxUSE_LIBGNOMEVFS 1
45595 _ACEOF
45596
45597
45598 fi
45599         fi
45600     fi
45601
45602     if test "$wxUSE_LIBHILDON" = "yes" ; then
45603
45604 pkg_failed=no
45605 { echo "$as_me:$LINENO: checking for HILDON" >&5
45606 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45607
45608 if test -n "$PKG_CONFIG"; then
45609     if test -n "$HILDON_CFLAGS"; then
45610         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45611     else
45612         if test -n "$PKG_CONFIG" && \
45613     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45614   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45615   ac_status=$?
45616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45617   (exit $ac_status); }; then
45618   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45619 else
45620   pkg_failed=yes
45621 fi
45622     fi
45623 else
45624         pkg_failed=untried
45625 fi
45626 if test -n "$PKG_CONFIG"; then
45627     if test -n "$HILDON_LIBS"; then
45628         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45629     else
45630         if test -n "$PKG_CONFIG" && \
45631     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45632   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45633   ac_status=$?
45634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45635   (exit $ac_status); }; then
45636   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45637 else
45638   pkg_failed=yes
45639 fi
45640     fi
45641 else
45642         pkg_failed=untried
45643 fi
45644
45645
45646
45647 if test $pkg_failed = yes; then
45648
45649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45650         _pkg_short_errors_supported=yes
45651 else
45652         _pkg_short_errors_supported=no
45653 fi
45654         if test $_pkg_short_errors_supported = yes; then
45655                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45656         else
45657                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45658         fi
45659         # Put the nasty error message in config.log where it belongs
45660         echo "$HILDON_PKG_ERRORS" >&5
45661
45662
45663                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45664 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45665                         wxUSE_LIBHILDON="no"
45666
45667
45668 elif test $pkg_failed = untried; then
45669
45670                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45671 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45672                         wxUSE_LIBHILDON="no"
45673
45674
45675 else
45676         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45677         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45678         { echo "$as_me:$LINENO: result: yes" >&5
45679 echo "${ECHO_T}yes" >&6; }
45680
45681                 EXTRALIBS_HILDON="$HILDON_LIBS"
45682                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45683                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45684                 cat >>confdefs.h <<\_ACEOF
45685 #define wxUSE_LIBHILDON 1
45686 _ACEOF
45687
45688
45689 fi
45690     fi
45691 fi
45692
45693 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45694   cat >>confdefs.h <<\_ACEOF
45695 #define wxUSE_CMDLINE_PARSER 1
45696 _ACEOF
45697
45698 fi
45699
45700 if test "$wxUSE_STOPWATCH" = "yes"; then
45701   cat >>confdefs.h <<\_ACEOF
45702 #define wxUSE_STOPWATCH 1
45703 _ACEOF
45704
45705 fi
45706
45707 if test "$wxUSE_DATETIME" = "yes"; then
45708   cat >>confdefs.h <<\_ACEOF
45709 #define wxUSE_DATETIME 1
45710 _ACEOF
45711
45712 fi
45713
45714 if test "$wxUSE_FILE" = "yes"; then
45715   cat >>confdefs.h <<\_ACEOF
45716 #define wxUSE_FILE 1
45717 _ACEOF
45718
45719 fi
45720
45721 if test "$wxUSE_FFILE" = "yes"; then
45722   cat >>confdefs.h <<\_ACEOF
45723 #define wxUSE_FFILE 1
45724 _ACEOF
45725
45726 fi
45727
45728 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45729   if test "$wxUSE_STREAMS" != yes; then
45730     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45731 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45732     wxUSE_ARCHIVE_STREAMS=no
45733   else
45734     cat >>confdefs.h <<\_ACEOF
45735 #define wxUSE_ARCHIVE_STREAMS 1
45736 _ACEOF
45737
45738   fi
45739 fi
45740
45741 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45742   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45743     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45744 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45745   elif test "$wxUSE_ZLIB" = "no"; then
45746     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45747 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45748   else
45749     cat >>confdefs.h <<\_ACEOF
45750 #define wxUSE_ZIPSTREAM 1
45751 _ACEOF
45752
45753   fi
45754 fi
45755
45756 if test "$wxUSE_TARSTREAM" = "yes"; then
45757   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45758     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45759 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45760   else
45761     cat >>confdefs.h <<\_ACEOF
45762 #define wxUSE_TARSTREAM 1
45763 _ACEOF
45764
45765   fi
45766 fi
45767
45768 if test "$wxUSE_FILESYSTEM" = "yes"; then
45769   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45770     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45771 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45772     wxUSE_FILESYSTEM=no
45773   else
45774     cat >>confdefs.h <<\_ACEOF
45775 #define wxUSE_FILESYSTEM 1
45776 _ACEOF
45777
45778   fi
45779 fi
45780
45781 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45782   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45783     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45784 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45785   else
45786     cat >>confdefs.h <<\_ACEOF
45787 #define wxUSE_FS_ARCHIVE 1
45788 _ACEOF
45789
45790   fi
45791 fi
45792
45793 if test "$wxUSE_FS_ZIP" = "yes"; then
45794   if test "$wxUSE_FS_ARCHIVE" != yes; then
45795     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45796 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45797   else
45798     cat >>confdefs.h <<\_ACEOF
45799 #define wxUSE_FS_ZIP 1
45800 _ACEOF
45801
45802   fi
45803 fi
45804
45805 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45806   if test "$USE_UNIX" != 1; then
45807     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45808 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45809     wxUSE_ON_FATAL_EXCEPTION=no
45810   else
45811     cat >>confdefs.h <<\_ACEOF
45812 #define wxUSE_ON_FATAL_EXCEPTION 1
45813 _ACEOF
45814
45815   fi
45816 fi
45817
45818 if test "$wxUSE_STACKWALKER" = "yes"; then
45819     cat >>confdefs.h <<\_ACEOF
45820 #define wxUSE_STACKWALKER 1
45821 _ACEOF
45822
45823 fi
45824
45825 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45826     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45827         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45828 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45829         wxUSE_DEBUGREPORT=no
45830     else
45831         cat >>confdefs.h <<\_ACEOF
45832 #define wxUSE_DEBUGREPORT 1
45833 _ACEOF
45834
45835         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45836             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45837         fi
45838     fi
45839 fi
45840
45841 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45842   cat >>confdefs.h <<\_ACEOF
45843 #define wxUSE_SNGLINST_CHECKER 1
45844 _ACEOF
45845
45846 fi
45847
45848 if test "$wxUSE_BUSYINFO" = "yes"; then
45849   cat >>confdefs.h <<\_ACEOF
45850 #define wxUSE_BUSYINFO 1
45851 _ACEOF
45852
45853 fi
45854
45855 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45856   cat >>confdefs.h <<\_ACEOF
45857 #define wxUSE_STD_IOSTREAM 1
45858 _ACEOF
45859
45860 fi
45861
45862 if test "$wxUSE_STD_STRING" = "yes"; then
45863   cat >>confdefs.h <<\_ACEOF
45864 #define wxUSE_STD_STRING 1
45865 _ACEOF
45866
45867 fi
45868
45869 if test "$wxUSE_STDPATHS" = "yes"; then
45870   cat >>confdefs.h <<\_ACEOF
45871 #define wxUSE_STDPATHS 1
45872 _ACEOF
45873
45874 fi
45875
45876 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45877     cat >>confdefs.h <<\_ACEOF
45878 #define wxUSE_TEXTBUFFER 1
45879 _ACEOF
45880
45881 fi
45882
45883 if test "$wxUSE_TEXTFILE" = "yes"; then
45884   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45885     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45886 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45887   else
45888     cat >>confdefs.h <<\_ACEOF
45889 #define wxUSE_TEXTFILE 1
45890 _ACEOF
45891
45892   fi
45893 fi
45894
45895 if test "$wxUSE_CONFIG" = "yes" ; then
45896   if test "$wxUSE_TEXTFILE" != "yes"; then
45897     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45898 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45899   else
45900     cat >>confdefs.h <<\_ACEOF
45901 #define wxUSE_CONFIG 1
45902 _ACEOF
45903
45904     cat >>confdefs.h <<\_ACEOF
45905 #define wxUSE_CONFIG_NATIVE 1
45906 _ACEOF
45907
45908     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45909   fi
45910 fi
45911
45912 if test "$wxUSE_INTL" = "yes" ; then
45913   if test "$wxUSE_FILE" != "yes"; then
45914     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45915 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45916   else
45917     cat >>confdefs.h <<\_ACEOF
45918 #define wxUSE_INTL 1
45919 _ACEOF
45920
45921     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45922     GUIDIST="$GUIDIST INTL_DIST"
45923   fi
45924 fi
45925
45926 if test "$wxUSE_LOG" = "yes"; then
45927   cat >>confdefs.h <<\_ACEOF
45928 #define wxUSE_LOG 1
45929 _ACEOF
45930
45931
45932     if test "$wxUSE_LOGGUI" = "yes"; then
45933       cat >>confdefs.h <<\_ACEOF
45934 #define wxUSE_LOGGUI 1
45935 _ACEOF
45936
45937     fi
45938
45939     if test "$wxUSE_LOGWINDOW" = "yes"; then
45940       cat >>confdefs.h <<\_ACEOF
45941 #define wxUSE_LOGWINDOW 1
45942 _ACEOF
45943
45944     fi
45945
45946     if test "$wxUSE_LOGDIALOG" = "yes"; then
45947       cat >>confdefs.h <<\_ACEOF
45948 #define wxUSE_LOG_DIALOG 1
45949 _ACEOF
45950
45951     fi
45952
45953         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45954 fi
45955
45956 if test "$wxUSE_LONGLONG" = "yes"; then
45957   cat >>confdefs.h <<\_ACEOF
45958 #define wxUSE_LONGLONG 1
45959 _ACEOF
45960
45961 fi
45962
45963 if test "$wxUSE_GEOMETRY" = "yes"; then
45964   cat >>confdefs.h <<\_ACEOF
45965 #define wxUSE_GEOMETRY 1
45966 _ACEOF
45967
45968 fi
45969
45970 if test "$wxUSE_BASE64" = "yes"; then
45971   cat >>confdefs.h <<\_ACEOF
45972 #define wxUSE_BASE64 1
45973 _ACEOF
45974
45975 fi
45976
45977 if test "$wxUSE_STREAMS" = "yes" ; then
45978   cat >>confdefs.h <<\_ACEOF
45979 #define wxUSE_STREAMS 1
45980 _ACEOF
45981
45982 fi
45983
45984 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45985   cat >>confdefs.h <<\_ACEOF
45986 #define wxUSE_PRINTF_POS_PARAMS 1
45987 _ACEOF
45988
45989 fi
45990
45991 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45992   cat >>confdefs.h <<\_ACEOF
45993 #define wxUSE_OBJC_UNIQUIFYING 1
45994 _ACEOF
45995
45996 fi
45997
45998
45999 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
46000     cat >>confdefs.h <<\_ACEOF
46001 #define wxUSE_CONSOLE_EVENTLOOP 1
46002 _ACEOF
46003
46004
46005     if test "$wxUSE_UNIX" = "yes"; then
46006         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
46007             cat >>confdefs.h <<\_ACEOF
46008 #define wxUSE_SELECT_DISPATCHER 1
46009 _ACEOF
46010
46011         fi
46012
46013         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
46014
46015 for ac_header in sys/epoll.h
46016 do
46017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46021   echo $ECHO_N "(cached) $ECHO_C" >&6
46022 else
46023   cat >conftest.$ac_ext <<_ACEOF
46024 /* confdefs.h.  */
46025 _ACEOF
46026 cat confdefs.h >>conftest.$ac_ext
46027 cat >>conftest.$ac_ext <<_ACEOF
46028 /* end confdefs.h.  */
46029 $ac_includes_default
46030
46031 #include <$ac_header>
46032 _ACEOF
46033 rm -f conftest.$ac_objext
46034 if { (ac_try="$ac_compile"
46035 case "(($ac_try" in
46036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46037   *) ac_try_echo=$ac_try;;
46038 esac
46039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46040   (eval "$ac_compile") 2>conftest.er1
46041   ac_status=$?
46042   grep -v '^ *+' conftest.er1 >conftest.err
46043   rm -f conftest.er1
46044   cat conftest.err >&5
46045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46046   (exit $ac_status); } && {
46047          test -z "$ac_c_werror_flag" ||
46048          test ! -s conftest.err
46049        } && test -s conftest.$ac_objext; then
46050   eval "$as_ac_Header=yes"
46051 else
46052   echo "$as_me: failed program was:" >&5
46053 sed 's/^/| /' conftest.$ac_ext >&5
46054
46055         eval "$as_ac_Header=no"
46056 fi
46057
46058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46059 fi
46060 ac_res=`eval echo '${'$as_ac_Header'}'`
46061                { echo "$as_me:$LINENO: result: $ac_res" >&5
46062 echo "${ECHO_T}$ac_res" >&6; }
46063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46064   cat >>confdefs.h <<_ACEOF
46065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46066 _ACEOF
46067
46068 fi
46069
46070 done
46071
46072             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
46073                 cat >>confdefs.h <<\_ACEOF
46074 #define wxUSE_EPOLL_DISPATCHER 1
46075 _ACEOF
46076
46077             else
46078                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
46079 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
46080             fi
46081         fi
46082     fi
46083 fi
46084
46085
46086
46087
46088 for ac_func in gettimeofday ftime
46089 do
46090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46094   echo $ECHO_N "(cached) $ECHO_C" >&6
46095 else
46096   cat >conftest.$ac_ext <<_ACEOF
46097 /* confdefs.h.  */
46098 _ACEOF
46099 cat confdefs.h >>conftest.$ac_ext
46100 cat >>conftest.$ac_ext <<_ACEOF
46101 /* end confdefs.h.  */
46102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46104 #define $ac_func innocuous_$ac_func
46105
46106 /* System header to define __stub macros and hopefully few prototypes,
46107     which can conflict with char $ac_func (); below.
46108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46109     <limits.h> exists even on freestanding compilers.  */
46110
46111 #ifdef __STDC__
46112 # include <limits.h>
46113 #else
46114 # include <assert.h>
46115 #endif
46116
46117 #undef $ac_func
46118
46119 /* Override any GCC internal prototype to avoid an error.
46120    Use char because int might match the return type of a GCC
46121    builtin and then its argument prototype would still apply.  */
46122 #ifdef __cplusplus
46123 extern "C"
46124 #endif
46125 char $ac_func ();
46126 /* The GNU C library defines this for functions which it implements
46127     to always fail with ENOSYS.  Some functions are actually named
46128     something starting with __ and the normal name is an alias.  */
46129 #if defined __stub_$ac_func || defined __stub___$ac_func
46130 choke me
46131 #endif
46132
46133 int
46134 main ()
46135 {
46136 return $ac_func ();
46137   ;
46138   return 0;
46139 }
46140 _ACEOF
46141 rm -f conftest.$ac_objext conftest$ac_exeext
46142 if { (ac_try="$ac_link"
46143 case "(($ac_try" in
46144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46145   *) ac_try_echo=$ac_try;;
46146 esac
46147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46148   (eval "$ac_link") 2>conftest.er1
46149   ac_status=$?
46150   grep -v '^ *+' conftest.er1 >conftest.err
46151   rm -f conftest.er1
46152   cat conftest.err >&5
46153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46154   (exit $ac_status); } && {
46155          test -z "$ac_c_werror_flag" ||
46156          test ! -s conftest.err
46157        } && test -s conftest$ac_exeext &&
46158        $as_test_x conftest$ac_exeext; then
46159   eval "$as_ac_var=yes"
46160 else
46161   echo "$as_me: failed program was:" >&5
46162 sed 's/^/| /' conftest.$ac_ext >&5
46163
46164         eval "$as_ac_var=no"
46165 fi
46166
46167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46168       conftest$ac_exeext conftest.$ac_ext
46169 fi
46170 ac_res=`eval echo '${'$as_ac_var'}'`
46171                { echo "$as_me:$LINENO: result: $ac_res" >&5
46172 echo "${ECHO_T}$ac_res" >&6; }
46173 if test `eval echo '${'$as_ac_var'}'` = yes; then
46174   cat >>confdefs.h <<_ACEOF
46175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46176 _ACEOF
46177  break
46178 fi
46179 done
46180
46181
46182 if test "$ac_cv_func_gettimeofday" = "yes"; then
46183     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
46184 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
46185 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
46186   echo $ECHO_N "(cached) $ECHO_C" >&6
46187 else
46188
46189                 cat >conftest.$ac_ext <<_ACEOF
46190 /* confdefs.h.  */
46191 _ACEOF
46192 cat confdefs.h >>conftest.$ac_ext
46193 cat >>conftest.$ac_ext <<_ACEOF
46194 /* end confdefs.h.  */
46195
46196                 #include <sys/time.h>
46197                 #include <unistd.h>
46198
46199 int
46200 main ()
46201 {
46202
46203                 struct timeval tv;
46204                 gettimeofday(&tv, NULL);
46205
46206   ;
46207   return 0;
46208 }
46209 _ACEOF
46210 rm -f conftest.$ac_objext
46211 if { (ac_try="$ac_compile"
46212 case "(($ac_try" in
46213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46214   *) ac_try_echo=$ac_try;;
46215 esac
46216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46217   (eval "$ac_compile") 2>conftest.er1
46218   ac_status=$?
46219   grep -v '^ *+' conftest.er1 >conftest.err
46220   rm -f conftest.er1
46221   cat conftest.err >&5
46222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46223   (exit $ac_status); } && {
46224          test -z "$ac_c_werror_flag" ||
46225          test ! -s conftest.err
46226        } && test -s conftest.$ac_objext; then
46227   wx_cv_func_gettimeofday_has_2_args=yes
46228 else
46229   echo "$as_me: failed program was:" >&5
46230 sed 's/^/| /' conftest.$ac_ext >&5
46231
46232         cat >conftest.$ac_ext <<_ACEOF
46233 /* confdefs.h.  */
46234 _ACEOF
46235 cat confdefs.h >>conftest.$ac_ext
46236 cat >>conftest.$ac_ext <<_ACEOF
46237 /* end confdefs.h.  */
46238
46239                     #include <sys/time.h>
46240                     #include <unistd.h>
46241
46242 int
46243 main ()
46244 {
46245
46246                     struct timeval tv;
46247                     gettimeofday(&tv);
46248
46249   ;
46250   return 0;
46251 }
46252 _ACEOF
46253 rm -f conftest.$ac_objext
46254 if { (ac_try="$ac_compile"
46255 case "(($ac_try" in
46256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46257   *) ac_try_echo=$ac_try;;
46258 esac
46259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46260   (eval "$ac_compile") 2>conftest.er1
46261   ac_status=$?
46262   grep -v '^ *+' conftest.er1 >conftest.err
46263   rm -f conftest.er1
46264   cat conftest.err >&5
46265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46266   (exit $ac_status); } && {
46267          test -z "$ac_c_werror_flag" ||
46268          test ! -s conftest.err
46269        } && test -s conftest.$ac_objext; then
46270   wx_cv_func_gettimeofday_has_2_args=no
46271 else
46272   echo "$as_me: failed program was:" >&5
46273 sed 's/^/| /' conftest.$ac_ext >&5
46274
46275
46276                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
46277 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
46278                     wx_cv_func_gettimeofday_has_2_args=unknown
46279
46280
46281 fi
46282
46283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46284
46285 fi
46286
46287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46288
46289 fi
46290 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
46291 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
46292
46293     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
46294         cat >>confdefs.h <<\_ACEOF
46295 #define WX_GETTIMEOFDAY_NO_TZ 1
46296 _ACEOF
46297
46298     fi
46299 fi
46300
46301 if test "$wxUSE_DATETIME" = "yes"; then
46302         { echo "$as_me:$LINENO: checking for strptime" >&5
46303 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
46304 if test "${ac_cv_func_strptime+set}" = set; then
46305   echo $ECHO_N "(cached) $ECHO_C" >&6
46306 else
46307   cat >conftest.$ac_ext <<_ACEOF
46308 /* confdefs.h.  */
46309 _ACEOF
46310 cat confdefs.h >>conftest.$ac_ext
46311 cat >>conftest.$ac_ext <<_ACEOF
46312 /* end confdefs.h.  */
46313 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
46314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46315 #define strptime innocuous_strptime
46316
46317 /* System header to define __stub macros and hopefully few prototypes,
46318     which can conflict with char strptime (); below.
46319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46320     <limits.h> exists even on freestanding compilers.  */
46321
46322 #ifdef __STDC__
46323 # include <limits.h>
46324 #else
46325 # include <assert.h>
46326 #endif
46327
46328 #undef strptime
46329
46330 /* Override any GCC internal prototype to avoid an error.
46331    Use char because int might match the return type of a GCC
46332    builtin and then its argument prototype would still apply.  */
46333 #ifdef __cplusplus
46334 extern "C"
46335 #endif
46336 char strptime ();
46337 /* The GNU C library defines this for functions which it implements
46338     to always fail with ENOSYS.  Some functions are actually named
46339     something starting with __ and the normal name is an alias.  */
46340 #if defined __stub_strptime || defined __stub___strptime
46341 choke me
46342 #endif
46343
46344 int
46345 main ()
46346 {
46347 return strptime ();
46348   ;
46349   return 0;
46350 }
46351 _ACEOF
46352 rm -f conftest.$ac_objext conftest$ac_exeext
46353 if { (ac_try="$ac_link"
46354 case "(($ac_try" in
46355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46356   *) ac_try_echo=$ac_try;;
46357 esac
46358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46359   (eval "$ac_link") 2>conftest.er1
46360   ac_status=$?
46361   grep -v '^ *+' conftest.er1 >conftest.err
46362   rm -f conftest.er1
46363   cat conftest.err >&5
46364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365   (exit $ac_status); } && {
46366          test -z "$ac_c_werror_flag" ||
46367          test ! -s conftest.err
46368        } && test -s conftest$ac_exeext &&
46369        $as_test_x conftest$ac_exeext; then
46370   ac_cv_func_strptime=yes
46371 else
46372   echo "$as_me: failed program was:" >&5
46373 sed 's/^/| /' conftest.$ac_ext >&5
46374
46375         ac_cv_func_strptime=no
46376 fi
46377
46378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46379       conftest$ac_exeext conftest.$ac_ext
46380 fi
46381 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46382 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46383
46384     if test "$ac_cv_func_strptime" = "yes"; then
46385         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46386 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46387 if test "${wx_cv_func_strptime_decl+set}" = set; then
46388   echo $ECHO_N "(cached) $ECHO_C" >&6
46389 else
46390
46391                 ac_ext=cpp
46392 ac_cpp='$CXXCPP $CPPFLAGS'
46393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46396
46397                 cat >conftest.$ac_ext <<_ACEOF
46398 /* confdefs.h.  */
46399 _ACEOF
46400 cat confdefs.h >>conftest.$ac_ext
46401 cat >>conftest.$ac_ext <<_ACEOF
46402 /* end confdefs.h.  */
46403
46404                         #include <time.h>
46405
46406 int
46407 main ()
46408 {
46409
46410                         struct tm t;
46411                         strptime("foo", "bar", &t);
46412
46413   ;
46414   return 0;
46415 }
46416 _ACEOF
46417 rm -f conftest.$ac_objext
46418 if { (ac_try="$ac_compile"
46419 case "(($ac_try" in
46420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46421   *) ac_try_echo=$ac_try;;
46422 esac
46423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46424   (eval "$ac_compile") 2>conftest.er1
46425   ac_status=$?
46426   grep -v '^ *+' conftest.er1 >conftest.err
46427   rm -f conftest.er1
46428   cat conftest.err >&5
46429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46430   (exit $ac_status); } && {
46431          test -z "$ac_cxx_werror_flag" ||
46432          test ! -s conftest.err
46433        } && test -s conftest.$ac_objext; then
46434   wx_cv_func_strptime_decl=yes
46435 else
46436   echo "$as_me: failed program was:" >&5
46437 sed 's/^/| /' conftest.$ac_ext >&5
46438
46439         wx_cv_func_strptime_decl=no
46440
46441 fi
46442
46443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46444                 ac_ext=c
46445 ac_cpp='$CPP $CPPFLAGS'
46446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46449
46450
46451
46452 fi
46453 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46454 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46455     fi
46456     if test "$wx_cv_func_strptime_decl" = "yes"; then
46457         cat >>confdefs.h <<\_ACEOF
46458 #define HAVE_STRPTIME_DECL 1
46459 _ACEOF
46460
46461     else
46462         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46463     fi
46464     if test "$ac_cv_func_strptime" = "yes"; then
46465                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46466 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46467 if test "${wx_cv_func_strptime_ok+set}" = set; then
46468   echo $ECHO_N "(cached) $ECHO_C" >&6
46469 else
46470   if test "$cross_compiling" = yes; then
46471                   wx_cv_func_strptime_ok=no
46472
46473 else
46474   cat >conftest.$ac_ext <<_ACEOF
46475
46476                     #include <stdlib.h>
46477                     #include <time.h>
46478                     #include "confdefs.h"
46479
46480                     $wx_strptime_decl
46481
46482                     int main()
46483                     {
46484                         struct tm t;
46485                         return !!strptime("", "%x", &t);
46486                     }
46487
46488 _ACEOF
46489 rm -f conftest$ac_exeext
46490 if { (ac_try="$ac_link"
46491 case "(($ac_try" in
46492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46493   *) ac_try_echo=$ac_try;;
46494 esac
46495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46496   (eval "$ac_link") 2>&5
46497   ac_status=$?
46498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46500   { (case "(($ac_try" in
46501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46502   *) ac_try_echo=$ac_try;;
46503 esac
46504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46505   (eval "$ac_try") 2>&5
46506   ac_status=$?
46507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46508   (exit $ac_status); }; }; then
46509   wx_cv_func_strptime_ok=yes
46510 else
46511   echo "$as_me: program exited with status $ac_status" >&5
46512 echo "$as_me: failed program was:" >&5
46513 sed 's/^/| /' conftest.$ac_ext >&5
46514
46515 ( exit $ac_status )
46516 wx_cv_func_strptime_ok=no
46517 fi
46518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46519 fi
46520
46521
46522
46523 fi
46524 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46525 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46526
46527         if test "$wx_cv_func_strptime_ok" = "yes"; then
46528             cat >>confdefs.h <<\_ACEOF
46529 #define HAVE_STRPTIME 1
46530 _ACEOF
46531
46532         fi
46533     fi
46534
46535             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46536 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46537 if test "${wx_cv_var_timezone+set}" = set; then
46538   echo $ECHO_N "(cached) $ECHO_C" >&6
46539 else
46540
46541                         ac_ext=cpp
46542 ac_cpp='$CXXCPP $CPPFLAGS'
46543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46546
46547                         cat >conftest.$ac_ext <<_ACEOF
46548 /* confdefs.h.  */
46549 _ACEOF
46550 cat confdefs.h >>conftest.$ac_ext
46551 cat >>conftest.$ac_ext <<_ACEOF
46552 /* end confdefs.h.  */
46553
46554                                 #include <time.h>
46555
46556 int
46557 main ()
46558 {
46559
46560                                 int tz;
46561                                 tz = timezone;
46562
46563   ;
46564   return 0;
46565 }
46566 _ACEOF
46567 rm -f conftest.$ac_objext
46568 if { (ac_try="$ac_compile"
46569 case "(($ac_try" in
46570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46571   *) ac_try_echo=$ac_try;;
46572 esac
46573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46574   (eval "$ac_compile") 2>conftest.er1
46575   ac_status=$?
46576   grep -v '^ *+' conftest.er1 >conftest.err
46577   rm -f conftest.er1
46578   cat conftest.err >&5
46579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46580   (exit $ac_status); } && {
46581          test -z "$ac_cxx_werror_flag" ||
46582          test ! -s conftest.err
46583        } && test -s conftest.$ac_objext; then
46584
46585                                 wx_cv_var_timezone=timezone
46586
46587 else
46588   echo "$as_me: failed program was:" >&5
46589 sed 's/^/| /' conftest.$ac_ext >&5
46590
46591
46592                                 cat >conftest.$ac_ext <<_ACEOF
46593 /* confdefs.h.  */
46594 _ACEOF
46595 cat confdefs.h >>conftest.$ac_ext
46596 cat >>conftest.$ac_ext <<_ACEOF
46597 /* end confdefs.h.  */
46598
46599                                         #include <time.h>
46600
46601 int
46602 main ()
46603 {
46604
46605                                         int tz;
46606                                         tz = _timezone;
46607
46608   ;
46609   return 0;
46610 }
46611 _ACEOF
46612 rm -f conftest.$ac_objext
46613 if { (ac_try="$ac_compile"
46614 case "(($ac_try" in
46615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46616   *) ac_try_echo=$ac_try;;
46617 esac
46618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46619   (eval "$ac_compile") 2>conftest.er1
46620   ac_status=$?
46621   grep -v '^ *+' conftest.er1 >conftest.err
46622   rm -f conftest.er1
46623   cat conftest.err >&5
46624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46625   (exit $ac_status); } && {
46626          test -z "$ac_cxx_werror_flag" ||
46627          test ! -s conftest.err
46628        } && test -s conftest.$ac_objext; then
46629
46630                                         wx_cv_var_timezone=_timezone
46631
46632 else
46633   echo "$as_me: failed program was:" >&5
46634 sed 's/^/| /' conftest.$ac_ext >&5
46635
46636
46637                                         cat >conftest.$ac_ext <<_ACEOF
46638 /* confdefs.h.  */
46639 _ACEOF
46640 cat confdefs.h >>conftest.$ac_ext
46641 cat >>conftest.$ac_ext <<_ACEOF
46642 /* end confdefs.h.  */
46643
46644                                                 #include <time.h>
46645
46646 int
46647 main ()
46648 {
46649
46650                                                 int tz;
46651                                                 tz = __timezone;
46652
46653   ;
46654   return 0;
46655 }
46656 _ACEOF
46657 rm -f conftest.$ac_objext
46658 if { (ac_try="$ac_compile"
46659 case "(($ac_try" in
46660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46661   *) ac_try_echo=$ac_try;;
46662 esac
46663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46664   (eval "$ac_compile") 2>conftest.er1
46665   ac_status=$?
46666   grep -v '^ *+' conftest.er1 >conftest.err
46667   rm -f conftest.er1
46668   cat conftest.err >&5
46669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46670   (exit $ac_status); } && {
46671          test -z "$ac_cxx_werror_flag" ||
46672          test ! -s conftest.err
46673        } && test -s conftest.$ac_objext; then
46674
46675                                                 wx_cv_var_timezone=__timezone
46676
46677 else
46678   echo "$as_me: failed program was:" >&5
46679 sed 's/^/| /' conftest.$ac_ext >&5
46680
46681
46682                                                 if test "$USE_DOS" = 0 ; then
46683                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46684 echo "$as_me: WARNING: no timezone variable" >&2;}
46685                                                 fi
46686
46687
46688 fi
46689
46690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46691
46692
46693 fi
46694
46695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46696
46697
46698 fi
46699
46700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46701                         ac_ext=c
46702 ac_cpp='$CPP $CPPFLAGS'
46703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46706
46707
46708
46709 fi
46710 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46711 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46712
46713         if test "x$wx_cv_var_timezone" != x ; then
46714         cat >>confdefs.h <<_ACEOF
46715 #define WX_TIMEZONE $wx_cv_var_timezone
46716 _ACEOF
46717
46718     fi
46719
46720
46721 for ac_func in localtime
46722 do
46723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46727   echo $ECHO_N "(cached) $ECHO_C" >&6
46728 else
46729   cat >conftest.$ac_ext <<_ACEOF
46730 /* confdefs.h.  */
46731 _ACEOF
46732 cat confdefs.h >>conftest.$ac_ext
46733 cat >>conftest.$ac_ext <<_ACEOF
46734 /* end confdefs.h.  */
46735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46737 #define $ac_func innocuous_$ac_func
46738
46739 /* System header to define __stub macros and hopefully few prototypes,
46740     which can conflict with char $ac_func (); below.
46741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46742     <limits.h> exists even on freestanding compilers.  */
46743
46744 #ifdef __STDC__
46745 # include <limits.h>
46746 #else
46747 # include <assert.h>
46748 #endif
46749
46750 #undef $ac_func
46751
46752 /* Override any GCC internal prototype to avoid an error.
46753    Use char because int might match the return type of a GCC
46754    builtin and then its argument prototype would still apply.  */
46755 #ifdef __cplusplus
46756 extern "C"
46757 #endif
46758 char $ac_func ();
46759 /* The GNU C library defines this for functions which it implements
46760     to always fail with ENOSYS.  Some functions are actually named
46761     something starting with __ and the normal name is an alias.  */
46762 #if defined __stub_$ac_func || defined __stub___$ac_func
46763 choke me
46764 #endif
46765
46766 int
46767 main ()
46768 {
46769 return $ac_func ();
46770   ;
46771   return 0;
46772 }
46773 _ACEOF
46774 rm -f conftest.$ac_objext conftest$ac_exeext
46775 if { (ac_try="$ac_link"
46776 case "(($ac_try" in
46777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46778   *) ac_try_echo=$ac_try;;
46779 esac
46780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46781   (eval "$ac_link") 2>conftest.er1
46782   ac_status=$?
46783   grep -v '^ *+' conftest.er1 >conftest.err
46784   rm -f conftest.er1
46785   cat conftest.err >&5
46786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46787   (exit $ac_status); } && {
46788          test -z "$ac_c_werror_flag" ||
46789          test ! -s conftest.err
46790        } && test -s conftest$ac_exeext &&
46791        $as_test_x conftest$ac_exeext; then
46792   eval "$as_ac_var=yes"
46793 else
46794   echo "$as_me: failed program was:" >&5
46795 sed 's/^/| /' conftest.$ac_ext >&5
46796
46797         eval "$as_ac_var=no"
46798 fi
46799
46800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46801       conftest$ac_exeext conftest.$ac_ext
46802 fi
46803 ac_res=`eval echo '${'$as_ac_var'}'`
46804                { echo "$as_me:$LINENO: result: $ac_res" >&5
46805 echo "${ECHO_T}$ac_res" >&6; }
46806 if test `eval echo '${'$as_ac_var'}'` = yes; then
46807   cat >>confdefs.h <<_ACEOF
46808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46809 _ACEOF
46810
46811 fi
46812 done
46813
46814
46815     if test "$ac_cv_func_localtime" = "yes"; then
46816         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46817 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46818 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46819   echo $ECHO_N "(cached) $ECHO_C" >&6
46820 else
46821
46822             cat >conftest.$ac_ext <<_ACEOF
46823 /* confdefs.h.  */
46824 _ACEOF
46825 cat confdefs.h >>conftest.$ac_ext
46826 cat >>conftest.$ac_ext <<_ACEOF
46827 /* end confdefs.h.  */
46828
46829                     #include <time.h>
46830
46831 int
46832 main ()
46833 {
46834
46835                     struct tm tm;
46836                     tm.tm_gmtoff++;
46837
46838   ;
46839   return 0;
46840 }
46841 _ACEOF
46842 rm -f conftest.$ac_objext
46843 if { (ac_try="$ac_compile"
46844 case "(($ac_try" in
46845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46846   *) ac_try_echo=$ac_try;;
46847 esac
46848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46849   (eval "$ac_compile") 2>conftest.er1
46850   ac_status=$?
46851   grep -v '^ *+' conftest.er1 >conftest.err
46852   rm -f conftest.er1
46853   cat conftest.err >&5
46854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46855   (exit $ac_status); } && {
46856          test -z "$ac_c_werror_flag" ||
46857          test ! -s conftest.err
46858        } && test -s conftest.$ac_objext; then
46859
46860                     wx_cv_struct_tm_has_gmtoff=yes
46861
46862 else
46863   echo "$as_me: failed program was:" >&5
46864 sed 's/^/| /' conftest.$ac_ext >&5
46865
46866         wx_cv_struct_tm_has_gmtoff=no
46867
46868 fi
46869
46870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46871
46872 fi
46873 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46874 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46875     fi
46876
46877     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46878         cat >>confdefs.h <<\_ACEOF
46879 #define WX_GMTOFF_IN_TM 1
46880 _ACEOF
46881
46882     fi
46883
46884     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46885 fi
46886
46887
46888 if test "$wxUSE_SOCKETS" = "yes"; then
46889     if test "$wxUSE_MGL" = "1"; then
46890         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46891 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46892         wxUSE_SOCKETS="no"
46893     fi
46894 fi
46895
46896 if test "$wxUSE_SOCKETS" = "yes"; then
46897         if test "$TOOLKIT" != "MSW"; then
46898                 { echo "$as_me:$LINENO: checking for socket" >&5
46899 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46900 if test "${ac_cv_func_socket+set}" = set; then
46901   echo $ECHO_N "(cached) $ECHO_C" >&6
46902 else
46903   cat >conftest.$ac_ext <<_ACEOF
46904 /* confdefs.h.  */
46905 _ACEOF
46906 cat confdefs.h >>conftest.$ac_ext
46907 cat >>conftest.$ac_ext <<_ACEOF
46908 /* end confdefs.h.  */
46909 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46911 #define socket innocuous_socket
46912
46913 /* System header to define __stub macros and hopefully few prototypes,
46914     which can conflict with char socket (); below.
46915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46916     <limits.h> exists even on freestanding compilers.  */
46917
46918 #ifdef __STDC__
46919 # include <limits.h>
46920 #else
46921 # include <assert.h>
46922 #endif
46923
46924 #undef socket
46925
46926 /* Override any GCC internal prototype to avoid an error.
46927    Use char because int might match the return type of a GCC
46928    builtin and then its argument prototype would still apply.  */
46929 #ifdef __cplusplus
46930 extern "C"
46931 #endif
46932 char socket ();
46933 /* The GNU C library defines this for functions which it implements
46934     to always fail with ENOSYS.  Some functions are actually named
46935     something starting with __ and the normal name is an alias.  */
46936 #if defined __stub_socket || defined __stub___socket
46937 choke me
46938 #endif
46939
46940 int
46941 main ()
46942 {
46943 return socket ();
46944   ;
46945   return 0;
46946 }
46947 _ACEOF
46948 rm -f conftest.$ac_objext conftest$ac_exeext
46949 if { (ac_try="$ac_link"
46950 case "(($ac_try" in
46951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46952   *) ac_try_echo=$ac_try;;
46953 esac
46954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46955   (eval "$ac_link") 2>conftest.er1
46956   ac_status=$?
46957   grep -v '^ *+' conftest.er1 >conftest.err
46958   rm -f conftest.er1
46959   cat conftest.err >&5
46960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46961   (exit $ac_status); } && {
46962          test -z "$ac_c_werror_flag" ||
46963          test ! -s conftest.err
46964        } && test -s conftest$ac_exeext &&
46965        $as_test_x conftest$ac_exeext; then
46966   ac_cv_func_socket=yes
46967 else
46968   echo "$as_me: failed program was:" >&5
46969 sed 's/^/| /' conftest.$ac_ext >&5
46970
46971         ac_cv_func_socket=no
46972 fi
46973
46974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46975       conftest$ac_exeext conftest.$ac_ext
46976 fi
46977 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46978 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46979 if test $ac_cv_func_socket = yes; then
46980   :
46981 else
46982
46983                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46984 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46985 if test "${ac_cv_lib_socket_socket+set}" = set; then
46986   echo $ECHO_N "(cached) $ECHO_C" >&6
46987 else
46988   ac_check_lib_save_LIBS=$LIBS
46989 LIBS="-lsocket  $LIBS"
46990 cat >conftest.$ac_ext <<_ACEOF
46991 /* confdefs.h.  */
46992 _ACEOF
46993 cat confdefs.h >>conftest.$ac_ext
46994 cat >>conftest.$ac_ext <<_ACEOF
46995 /* end confdefs.h.  */
46996
46997 /* Override any GCC internal prototype to avoid an error.
46998    Use char because int might match the return type of a GCC
46999    builtin and then its argument prototype would still apply.  */
47000 #ifdef __cplusplus
47001 extern "C"
47002 #endif
47003 char socket ();
47004 int
47005 main ()
47006 {
47007 return socket ();
47008   ;
47009   return 0;
47010 }
47011 _ACEOF
47012 rm -f conftest.$ac_objext conftest$ac_exeext
47013 if { (ac_try="$ac_link"
47014 case "(($ac_try" in
47015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47016   *) ac_try_echo=$ac_try;;
47017 esac
47018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47019   (eval "$ac_link") 2>conftest.er1
47020   ac_status=$?
47021   grep -v '^ *+' conftest.er1 >conftest.err
47022   rm -f conftest.er1
47023   cat conftest.err >&5
47024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47025   (exit $ac_status); } && {
47026          test -z "$ac_c_werror_flag" ||
47027          test ! -s conftest.err
47028        } && test -s conftest$ac_exeext &&
47029        $as_test_x conftest$ac_exeext; then
47030   ac_cv_lib_socket_socket=yes
47031 else
47032   echo "$as_me: failed program was:" >&5
47033 sed 's/^/| /' conftest.$ac_ext >&5
47034
47035         ac_cv_lib_socket_socket=no
47036 fi
47037
47038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47039       conftest$ac_exeext conftest.$ac_ext
47040 LIBS=$ac_check_lib_save_LIBS
47041 fi
47042 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
47043 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
47044 if test $ac_cv_lib_socket_socket = yes; then
47045   if test "$INET_LINK" != " -lsocket"; then
47046                         INET_LINK="$INET_LINK -lsocket"
47047                     fi
47048 else
47049
47050                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
47051 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
47052                         wxUSE_SOCKETS=no
47053
47054
47055 fi
47056
47057
47058
47059 fi
47060
47061     fi
47062 fi
47063
47064 if test "$wxUSE_SOCKETS" = "yes" ; then
47065                 if test "$TOOLKIT" != "MSW"; then
47066                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
47067 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
47068 if test "${wx_cv_type_getsockname3+set}" = set; then
47069   echo $ECHO_N "(cached) $ECHO_C" >&6
47070 else
47071
47072                 ac_ext=cpp
47073 ac_cpp='$CXXCPP $CPPFLAGS'
47074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47077
47078                 cat >conftest.$ac_ext <<_ACEOF
47079 /* confdefs.h.  */
47080 _ACEOF
47081 cat confdefs.h >>conftest.$ac_ext
47082 cat >>conftest.$ac_ext <<_ACEOF
47083 /* end confdefs.h.  */
47084
47085                         #include <sys/types.h>
47086                         #include <sys/socket.h>
47087
47088 int
47089 main ()
47090 {
47091
47092                         socklen_t len;
47093                         getsockname(0, 0, &len);
47094
47095   ;
47096   return 0;
47097 }
47098 _ACEOF
47099 rm -f conftest.$ac_objext
47100 if { (ac_try="$ac_compile"
47101 case "(($ac_try" in
47102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47103   *) ac_try_echo=$ac_try;;
47104 esac
47105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47106   (eval "$ac_compile") 2>conftest.er1
47107   ac_status=$?
47108   grep -v '^ *+' conftest.er1 >conftest.err
47109   rm -f conftest.er1
47110   cat conftest.err >&5
47111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47112   (exit $ac_status); } && {
47113          test -z "$ac_cxx_werror_flag" ||
47114          test ! -s conftest.err
47115        } && test -s conftest.$ac_objext; then
47116   wx_cv_type_getsockname3=socklen_t
47117 else
47118   echo "$as_me: failed program was:" >&5
47119 sed 's/^/| /' conftest.$ac_ext >&5
47120
47121
47122                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
47123                         if test "$GCC" = yes ; then
47124                             CFLAGS="-Werror $CFLAGS"
47125                         fi
47126
47127                         cat >conftest.$ac_ext <<_ACEOF
47128 /* confdefs.h.  */
47129 _ACEOF
47130 cat confdefs.h >>conftest.$ac_ext
47131 cat >>conftest.$ac_ext <<_ACEOF
47132 /* end confdefs.h.  */
47133
47134                                 #include <sys/types.h>
47135                                 #include <sys/socket.h>
47136
47137 int
47138 main ()
47139 {
47140
47141                                 size_t len;
47142                                 getsockname(0, 0, &len);
47143
47144   ;
47145   return 0;
47146 }
47147 _ACEOF
47148 rm -f conftest.$ac_objext
47149 if { (ac_try="$ac_compile"
47150 case "(($ac_try" in
47151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47152   *) ac_try_echo=$ac_try;;
47153 esac
47154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47155   (eval "$ac_compile") 2>conftest.er1
47156   ac_status=$?
47157   grep -v '^ *+' conftest.er1 >conftest.err
47158   rm -f conftest.er1
47159   cat conftest.err >&5
47160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47161   (exit $ac_status); } && {
47162          test -z "$ac_cxx_werror_flag" ||
47163          test ! -s conftest.err
47164        } && test -s conftest.$ac_objext; then
47165   wx_cv_type_getsockname3=size_t
47166 else
47167   echo "$as_me: failed program was:" >&5
47168 sed 's/^/| /' conftest.$ac_ext >&5
47169
47170         cat >conftest.$ac_ext <<_ACEOF
47171 /* confdefs.h.  */
47172 _ACEOF
47173 cat confdefs.h >>conftest.$ac_ext
47174 cat >>conftest.$ac_ext <<_ACEOF
47175 /* end confdefs.h.  */
47176
47177                                     #include <sys/types.h>
47178                                     #include <sys/socket.h>
47179
47180 int
47181 main ()
47182 {
47183
47184                                     int len;
47185                                     getsockname(0, 0, &len);
47186
47187   ;
47188   return 0;
47189 }
47190 _ACEOF
47191 rm -f conftest.$ac_objext
47192 if { (ac_try="$ac_compile"
47193 case "(($ac_try" in
47194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47195   *) ac_try_echo=$ac_try;;
47196 esac
47197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47198   (eval "$ac_compile") 2>conftest.er1
47199   ac_status=$?
47200   grep -v '^ *+' conftest.er1 >conftest.err
47201   rm -f conftest.er1
47202   cat conftest.err >&5
47203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47204   (exit $ac_status); } && {
47205          test -z "$ac_cxx_werror_flag" ||
47206          test ! -s conftest.err
47207        } && test -s conftest.$ac_objext; then
47208   wx_cv_type_getsockname3=int
47209 else
47210   echo "$as_me: failed program was:" >&5
47211 sed 's/^/| /' conftest.$ac_ext >&5
47212
47213         wx_cv_type_getsockname3=unknown
47214
47215 fi
47216
47217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47218
47219 fi
47220
47221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47222
47223                         CFLAGS="$CFLAGS_OLD"
47224
47225
47226 fi
47227
47228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47229                 ac_ext=c
47230 ac_cpp='$CPP $CPPFLAGS'
47231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47234
47235
47236 fi
47237 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
47238 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
47239
47240         if test "$wx_cv_type_getsockname3" = "unknown"; then
47241             wxUSE_SOCKETS=no
47242             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47243 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47244         else
47245             cat >>confdefs.h <<_ACEOF
47246 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
47247 _ACEOF
47248
47249         fi
47250                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
47251 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
47252 if test "${wx_cv_type_getsockopt5+set}" = set; then
47253   echo $ECHO_N "(cached) $ECHO_C" >&6
47254 else
47255
47256                                                                                                 ac_ext=cpp
47257 ac_cpp='$CXXCPP $CPPFLAGS'
47258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47261
47262                 cat >conftest.$ac_ext <<_ACEOF
47263 /* confdefs.h.  */
47264 _ACEOF
47265 cat confdefs.h >>conftest.$ac_ext
47266 cat >>conftest.$ac_ext <<_ACEOF
47267 /* end confdefs.h.  */
47268
47269                         #include <sys/types.h>
47270                         #include <sys/socket.h>
47271
47272 int
47273 main ()
47274 {
47275
47276                         socklen_t len;
47277                         getsockopt(0, 0, 0, 0, &len);
47278
47279   ;
47280   return 0;
47281 }
47282 _ACEOF
47283 rm -f conftest.$ac_objext
47284 if { (ac_try="$ac_compile"
47285 case "(($ac_try" in
47286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47287   *) ac_try_echo=$ac_try;;
47288 esac
47289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47290   (eval "$ac_compile") 2>conftest.er1
47291   ac_status=$?
47292   grep -v '^ *+' conftest.er1 >conftest.err
47293   rm -f conftest.er1
47294   cat conftest.err >&5
47295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47296   (exit $ac_status); } && {
47297          test -z "$ac_cxx_werror_flag" ||
47298          test ! -s conftest.err
47299        } && test -s conftest.$ac_objext; then
47300   wx_cv_type_getsockopt5=socklen_t
47301 else
47302   echo "$as_me: failed program was:" >&5
47303 sed 's/^/| /' conftest.$ac_ext >&5
47304
47305
47306                         cat >conftest.$ac_ext <<_ACEOF
47307 /* confdefs.h.  */
47308 _ACEOF
47309 cat confdefs.h >>conftest.$ac_ext
47310 cat >>conftest.$ac_ext <<_ACEOF
47311 /* end confdefs.h.  */
47312
47313                                 #include <sys/types.h>
47314                                 #include <sys/socket.h>
47315
47316 int
47317 main ()
47318 {
47319
47320                                 size_t len;
47321                                 getsockopt(0, 0, 0, 0, &len);
47322
47323   ;
47324   return 0;
47325 }
47326 _ACEOF
47327 rm -f conftest.$ac_objext
47328 if { (ac_try="$ac_compile"
47329 case "(($ac_try" in
47330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47331   *) ac_try_echo=$ac_try;;
47332 esac
47333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47334   (eval "$ac_compile") 2>conftest.er1
47335   ac_status=$?
47336   grep -v '^ *+' conftest.er1 >conftest.err
47337   rm -f conftest.er1
47338   cat conftest.err >&5
47339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47340   (exit $ac_status); } && {
47341          test -z "$ac_cxx_werror_flag" ||
47342          test ! -s conftest.err
47343        } && test -s conftest.$ac_objext; then
47344   wx_cv_type_getsockopt5=size_t
47345 else
47346   echo "$as_me: failed program was:" >&5
47347 sed 's/^/| /' conftest.$ac_ext >&5
47348
47349         cat >conftest.$ac_ext <<_ACEOF
47350 /* confdefs.h.  */
47351 _ACEOF
47352 cat confdefs.h >>conftest.$ac_ext
47353 cat >>conftest.$ac_ext <<_ACEOF
47354 /* end confdefs.h.  */
47355
47356                                     #include <sys/types.h>
47357                                     #include <sys/socket.h>
47358
47359 int
47360 main ()
47361 {
47362
47363                                     int len;
47364                                     getsockopt(0, 0, 0, 0, &len);
47365
47366   ;
47367   return 0;
47368 }
47369 _ACEOF
47370 rm -f conftest.$ac_objext
47371 if { (ac_try="$ac_compile"
47372 case "(($ac_try" in
47373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47374   *) ac_try_echo=$ac_try;;
47375 esac
47376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47377   (eval "$ac_compile") 2>conftest.er1
47378   ac_status=$?
47379   grep -v '^ *+' conftest.er1 >conftest.err
47380   rm -f conftest.er1
47381   cat conftest.err >&5
47382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47383   (exit $ac_status); } && {
47384          test -z "$ac_cxx_werror_flag" ||
47385          test ! -s conftest.err
47386        } && test -s conftest.$ac_objext; then
47387   wx_cv_type_getsockopt5=int
47388 else
47389   echo "$as_me: failed program was:" >&5
47390 sed 's/^/| /' conftest.$ac_ext >&5
47391
47392         wx_cv_type_getsockopt5=unknown
47393
47394 fi
47395
47396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47397
47398 fi
47399
47400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47401
47402
47403 fi
47404
47405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47406                 ac_ext=c
47407 ac_cpp='$CPP $CPPFLAGS'
47408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47411
47412
47413 fi
47414 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47415 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
47416
47417         if test "$wx_cv_type_getsockopt5" = "unknown"; then
47418             wxUSE_SOCKETS=no
47419             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47420 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47421         else
47422             cat >>confdefs.h <<_ACEOF
47423 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
47424 _ACEOF
47425
47426         fi
47427     fi
47428 fi
47429
47430 if test "$wxUSE_SOCKETS" = "yes" ; then
47431     cat >>confdefs.h <<\_ACEOF
47432 #define wxUSE_SOCKETS 1
47433 _ACEOF
47434
47435     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47436 fi
47437
47438 if test "$wxUSE_PROTOCOL" = "yes"; then
47439     if test "$wxUSE_SOCKETS" != "yes"; then
47440         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47441 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47442         wxUSE_PROTOCOL=no
47443     fi
47444 fi
47445
47446 if test "$wxUSE_PROTOCOL" = "yes"; then
47447     cat >>confdefs.h <<\_ACEOF
47448 #define wxUSE_PROTOCOL 1
47449 _ACEOF
47450
47451
47452     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47453         cat >>confdefs.h <<\_ACEOF
47454 #define wxUSE_PROTOCOL_HTTP 1
47455 _ACEOF
47456
47457     fi
47458     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47459         cat >>confdefs.h <<\_ACEOF
47460 #define wxUSE_PROTOCOL_FTP 1
47461 _ACEOF
47462
47463     fi
47464     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47465         cat >>confdefs.h <<\_ACEOF
47466 #define wxUSE_PROTOCOL_FILE 1
47467 _ACEOF
47468
47469     fi
47470 else
47471     if test "$wxUSE_FS_INET" = "yes"; then
47472         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47473 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47474         wxUSE_FS_INET="no"
47475     fi
47476 fi
47477
47478 if test "$wxUSE_URL" = "yes"; then
47479     if test "$wxUSE_PROTOCOL" != "yes"; then
47480         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47481 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47482         wxUSE_URL=no
47483     fi
47484     if test "$wxUSE_URL" = "yes"; then
47485         cat >>confdefs.h <<\_ACEOF
47486 #define wxUSE_URL 1
47487 _ACEOF
47488
47489     fi
47490 fi
47491
47492 if test "$wxUSE_VARIANT" = "yes"; then
47493     cat >>confdefs.h <<\_ACEOF
47494 #define wxUSE_VARIANT 1
47495 _ACEOF
47496
47497 fi
47498
47499 if test "$wxUSE_FS_INET" = "yes"; then
47500   cat >>confdefs.h <<\_ACEOF
47501 #define wxUSE_FS_INET 1
47502 _ACEOF
47503
47504 fi
47505
47506
47507 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47508     wxUSE_JOYSTICK=no
47509
47510         if test "$TOOLKIT" = "MSW"; then
47511         wxUSE_JOYSTICK=yes
47512
47513         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47514         if test "$USE_DARWIN" = 1; then
47515                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47516 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47517             ac_ext=cpp
47518 ac_cpp='$CXXCPP $CPPFLAGS'
47519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47522
47523             cat >conftest.$ac_ext <<_ACEOF
47524 /* confdefs.h.  */
47525 _ACEOF
47526 cat confdefs.h >>conftest.$ac_ext
47527 cat >>conftest.$ac_ext <<_ACEOF
47528 /* end confdefs.h.  */
47529  #include <IOKit/hid/IOHIDLib.h>
47530 int
47531 main ()
47532 {
47533  IOHIDQueueInterface *qi = NULL;
47534                               IOHIDCallbackFunction cb = NULL;
47535                               qi->setEventCallout(NULL, cb, NULL, NULL);
47536   ;
47537   return 0;
47538 }
47539 _ACEOF
47540 rm -f conftest.$ac_objext
47541 if { (ac_try="$ac_compile"
47542 case "(($ac_try" in
47543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47544   *) ac_try_echo=$ac_try;;
47545 esac
47546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47547   (eval "$ac_compile") 2>conftest.er1
47548   ac_status=$?
47549   grep -v '^ *+' conftest.er1 >conftest.err
47550   rm -f conftest.er1
47551   cat conftest.err >&5
47552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47553   (exit $ac_status); } && {
47554          test -z "$ac_cxx_werror_flag" ||
47555          test ! -s conftest.err
47556        } && test -s conftest.$ac_objext; then
47557    wxUSE_JOYSTICK=yes
47558
47559 else
47560   echo "$as_me: failed program was:" >&5
47561 sed 's/^/| /' conftest.$ac_ext >&5
47562
47563
47564 fi
47565
47566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47567             ac_ext=c
47568 ac_cpp='$CPP $CPPFLAGS'
47569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47572
47573             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47574 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47575         fi
47576
47577         else
47578                 if test "$wxUSE_MGL" != "1"; then
47579
47580 for ac_header in linux/joystick.h
47581 do
47582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47586   echo $ECHO_N "(cached) $ECHO_C" >&6
47587 else
47588   cat >conftest.$ac_ext <<_ACEOF
47589 /* confdefs.h.  */
47590 _ACEOF
47591 cat confdefs.h >>conftest.$ac_ext
47592 cat >>conftest.$ac_ext <<_ACEOF
47593 /* end confdefs.h.  */
47594 $ac_includes_default
47595
47596 #include <$ac_header>
47597 _ACEOF
47598 rm -f conftest.$ac_objext
47599 if { (ac_try="$ac_compile"
47600 case "(($ac_try" in
47601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47602   *) ac_try_echo=$ac_try;;
47603 esac
47604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47605   (eval "$ac_compile") 2>conftest.er1
47606   ac_status=$?
47607   grep -v '^ *+' conftest.er1 >conftest.err
47608   rm -f conftest.er1
47609   cat conftest.err >&5
47610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47611   (exit $ac_status); } && {
47612          test -z "$ac_c_werror_flag" ||
47613          test ! -s conftest.err
47614        } && test -s conftest.$ac_objext; then
47615   eval "$as_ac_Header=yes"
47616 else
47617   echo "$as_me: failed program was:" >&5
47618 sed 's/^/| /' conftest.$ac_ext >&5
47619
47620         eval "$as_ac_Header=no"
47621 fi
47622
47623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47624 fi
47625 ac_res=`eval echo '${'$as_ac_Header'}'`
47626                { echo "$as_me:$LINENO: result: $ac_res" >&5
47627 echo "${ECHO_T}$ac_res" >&6; }
47628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47629   cat >>confdefs.h <<_ACEOF
47630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47631 _ACEOF
47632  wxUSE_JOYSTICK=yes
47633 fi
47634
47635 done
47636
47637         fi
47638     fi
47639
47640     if test "$wxUSE_JOYSTICK" = "yes"; then
47641         cat >>confdefs.h <<\_ACEOF
47642 #define wxUSE_JOYSTICK 1
47643 _ACEOF
47644
47645         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47646     else
47647         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47648 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47649     fi
47650 fi
47651
47652
47653
47654 if test "$wxUSE_FONTENUM" = "yes" ; then
47655   cat >>confdefs.h <<\_ACEOF
47656 #define wxUSE_FONTENUM 1
47657 _ACEOF
47658
47659 fi
47660
47661 if test "$wxUSE_FONTMAP" = "yes" ; then
47662   cat >>confdefs.h <<\_ACEOF
47663 #define wxUSE_FONTMAP 1
47664 _ACEOF
47665
47666 fi
47667
47668 if test "$wxUSE_UNICODE" = "yes" ; then
47669   cat >>confdefs.h <<\_ACEOF
47670 #define wxUSE_UNICODE 1
47671 _ACEOF
47672
47673
47674   if test "$USE_WIN32" != 1; then
47675       wxUSE_UNICODE_MSLU=no
47676   fi
47677
47678   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47679         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47680 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47681 if test "${ac_cv_lib_unicows_main+set}" = set; then
47682   echo $ECHO_N "(cached) $ECHO_C" >&6
47683 else
47684   ac_check_lib_save_LIBS=$LIBS
47685 LIBS="-lunicows  $LIBS"
47686 cat >conftest.$ac_ext <<_ACEOF
47687 /* confdefs.h.  */
47688 _ACEOF
47689 cat confdefs.h >>conftest.$ac_ext
47690 cat >>conftest.$ac_ext <<_ACEOF
47691 /* end confdefs.h.  */
47692
47693
47694 int
47695 main ()
47696 {
47697 return main ();
47698   ;
47699   return 0;
47700 }
47701 _ACEOF
47702 rm -f conftest.$ac_objext conftest$ac_exeext
47703 if { (ac_try="$ac_link"
47704 case "(($ac_try" in
47705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47706   *) ac_try_echo=$ac_try;;
47707 esac
47708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47709   (eval "$ac_link") 2>conftest.er1
47710   ac_status=$?
47711   grep -v '^ *+' conftest.er1 >conftest.err
47712   rm -f conftest.er1
47713   cat conftest.err >&5
47714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47715   (exit $ac_status); } && {
47716          test -z "$ac_c_werror_flag" ||
47717          test ! -s conftest.err
47718        } && test -s conftest$ac_exeext &&
47719        $as_test_x conftest$ac_exeext; then
47720   ac_cv_lib_unicows_main=yes
47721 else
47722   echo "$as_me: failed program was:" >&5
47723 sed 's/^/| /' conftest.$ac_ext >&5
47724
47725         ac_cv_lib_unicows_main=no
47726 fi
47727
47728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47729       conftest$ac_exeext conftest.$ac_ext
47730 LIBS=$ac_check_lib_save_LIBS
47731 fi
47732 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47733 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47734 if test $ac_cv_lib_unicows_main = yes; then
47735
47736                 cat >>confdefs.h <<\_ACEOF
47737 #define wxUSE_UNICODE_MSLU 1
47738 _ACEOF
47739
47740
47741 else
47742
47743                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47744                              Applications will only run on Windows NT/2000/XP!" >&5
47745 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47746                              Applications will only run on Windows NT/2000/XP!" >&2;}
47747                 wxUSE_UNICODE_MSLU=no
47748
47749 fi
47750
47751     fi
47752 fi
47753
47754 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47755     cat >>confdefs.h <<\_ACEOF
47756 #define wxUSE_UNICODE_UTF8 1
47757 _ACEOF
47758
47759
47760     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47761         cat >>confdefs.h <<\_ACEOF
47762 #define wxUSE_UTF8_LOCALE_ONLY 1
47763 _ACEOF
47764
47765     fi
47766 fi
47767
47768
47769 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47770     cat >>confdefs.h <<\_ACEOF
47771 #define wxUSE_CONSTRAINTS 1
47772 _ACEOF
47773
47774     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47775 fi
47776
47777 if test "$wxUSE_MDI" = "yes"; then
47778     cat >>confdefs.h <<\_ACEOF
47779 #define wxUSE_MDI 1
47780 _ACEOF
47781
47782
47783     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47784         cat >>confdefs.h <<\_ACEOF
47785 #define wxUSE_MDI_ARCHITECTURE 1
47786 _ACEOF
47787
47788         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47789     fi
47790 fi
47791
47792 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47793     cat >>confdefs.h <<\_ACEOF
47794 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47795 _ACEOF
47796
47797     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47798     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47799         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47800     fi
47801 fi
47802
47803 if test "$wxUSE_HELP" = "yes"; then
47804     cat >>confdefs.h <<\_ACEOF
47805 #define wxUSE_HELP 1
47806 _ACEOF
47807
47808     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47809
47810     if test "$wxUSE_MSW" = 1; then
47811       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47812         cat >>confdefs.h <<\_ACEOF
47813 #define wxUSE_MS_HTML_HELP 1
47814 _ACEOF
47815
47816       fi
47817     fi
47818
47819     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47820       if test "$wxUSE_HTML" = "yes"; then
47821         cat >>confdefs.h <<\_ACEOF
47822 #define wxUSE_WXHTML_HELP 1
47823 _ACEOF
47824
47825       else
47826         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47827 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47828         wxUSE_WXHTML_HELP=no
47829       fi
47830     fi
47831 fi
47832
47833 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47834     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47835         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47836 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47837     else
47838         cat >>confdefs.h <<\_ACEOF
47839 #define wxUSE_PRINTING_ARCHITECTURE 1
47840 _ACEOF
47841
47842     fi
47843     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47844 fi
47845
47846 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47847   cat >>confdefs.h <<\_ACEOF
47848 #define wxUSE_POSTSCRIPT 1
47849 _ACEOF
47850
47851 fi
47852
47853 cat >>confdefs.h <<\_ACEOF
47854 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47855 _ACEOF
47856
47857
47858 if test "$wxUSE_SVG" = "yes"; then
47859     cat >>confdefs.h <<\_ACEOF
47860 #define wxUSE_SVG 1
47861 _ACEOF
47862
47863 fi
47864
47865
47866 if test "$wxUSE_METAFILE" = "yes"; then
47867     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47868         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47869 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47870         wxUSE_METAFILE=no
47871     fi
47872 fi
47873
47874
47875 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47876                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47877                           -o "$wxUSE_OLE"     = "yes" \
47878                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47879     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47880 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47881 if test "${ac_cv_header_ole2_h+set}" = set; then
47882   echo $ECHO_N "(cached) $ECHO_C" >&6
47883 else
47884   cat >conftest.$ac_ext <<_ACEOF
47885 /* confdefs.h.  */
47886 _ACEOF
47887 cat confdefs.h >>conftest.$ac_ext
47888 cat >>conftest.$ac_ext <<_ACEOF
47889 /* end confdefs.h.  */
47890
47891
47892 #include <ole2.h>
47893 _ACEOF
47894 rm -f conftest.$ac_objext
47895 if { (ac_try="$ac_compile"
47896 case "(($ac_try" in
47897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47898   *) ac_try_echo=$ac_try;;
47899 esac
47900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47901   (eval "$ac_compile") 2>conftest.er1
47902   ac_status=$?
47903   grep -v '^ *+' conftest.er1 >conftest.err
47904   rm -f conftest.er1
47905   cat conftest.err >&5
47906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47907   (exit $ac_status); } && {
47908          test -z "$ac_c_werror_flag" ||
47909          test ! -s conftest.err
47910        } && test -s conftest.$ac_objext; then
47911   ac_cv_header_ole2_h=yes
47912 else
47913   echo "$as_me: failed program was:" >&5
47914 sed 's/^/| /' conftest.$ac_ext >&5
47915
47916         ac_cv_header_ole2_h=no
47917 fi
47918
47919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47920 fi
47921 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47922 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47923
47924
47925
47926     if test "$ac_cv_header_ole2_h" = "yes" ; then
47927         if test "$GCC" = yes ; then
47928             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47929 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47930             cat >conftest.$ac_ext <<_ACEOF
47931 /* confdefs.h.  */
47932 _ACEOF
47933 cat confdefs.h >>conftest.$ac_ext
47934 cat >>conftest.$ac_ext <<_ACEOF
47935 /* end confdefs.h.  */
47936 #include <windows.h>
47937                             #include <ole2.h>
47938 int
47939 main ()
47940 {
47941
47942   ;
47943   return 0;
47944 }
47945 _ACEOF
47946 rm -f conftest.$ac_objext
47947 if { (ac_try="$ac_compile"
47948 case "(($ac_try" in
47949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47950   *) ac_try_echo=$ac_try;;
47951 esac
47952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47953   (eval "$ac_compile") 2>conftest.er1
47954   ac_status=$?
47955   grep -v '^ *+' conftest.er1 >conftest.err
47956   rm -f conftest.er1
47957   cat conftest.err >&5
47958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47959   (exit $ac_status); } && {
47960          test -z "$ac_c_werror_flag" ||
47961          test ! -s conftest.err
47962        } && test -s conftest.$ac_objext; then
47963   { echo "$as_me:$LINENO: result: no" >&5
47964 echo "${ECHO_T}no" >&6; }
47965 else
47966   echo "$as_me: failed program was:" >&5
47967 sed 's/^/| /' conftest.$ac_ext >&5
47968
47969         { echo "$as_me:$LINENO: result: yes" >&5
47970 echo "${ECHO_T}yes" >&6; }
47971                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47972 fi
47973
47974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47975             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47976             if test "$wxUSE_OLE" = "yes" ; then
47977                 cat >>confdefs.h <<\_ACEOF
47978 #define wxUSE_OLE 1
47979 _ACEOF
47980
47981                 cat >>confdefs.h <<\_ACEOF
47982 #define wxUSE_OLE_AUTOMATION 1
47983 _ACEOF
47984
47985                 cat >>confdefs.h <<\_ACEOF
47986 #define wxUSE_ACTIVEX 1
47987 _ACEOF
47988
47989                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47990             fi
47991         fi
47992
47993                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47994             cat >>confdefs.h <<\_ACEOF
47995 #define wxUSE_DATAOBJ 1
47996 _ACEOF
47997
47998         fi
47999     else
48000         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
48001 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
48002
48003         wxUSE_CLIPBOARD=no
48004         wxUSE_DRAG_AND_DROP=no
48005         wxUSE_DATAOBJ=no
48006         wxUSE_OLE=no
48007     fi
48008
48009     if test "$wxUSE_METAFILE" = "yes"; then
48010         cat >>confdefs.h <<\_ACEOF
48011 #define wxUSE_METAFILE 1
48012 _ACEOF
48013
48014
48015                 cat >>confdefs.h <<\_ACEOF
48016 #define wxUSE_ENH_METAFILE 1
48017 _ACEOF
48018
48019     fi
48020 fi
48021
48022 if test "$wxUSE_IPC" = "yes"; then
48023     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
48024         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
48025 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
48026         wxUSE_IPC=no
48027     fi
48028
48029     if test "$wxUSE_IPC" = "yes"; then
48030         cat >>confdefs.h <<\_ACEOF
48031 #define wxUSE_IPC 1
48032 _ACEOF
48033
48034         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48035     fi
48036 fi
48037
48038 if test "$wxUSE_DATAOBJ" = "yes"; then
48039     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48040         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
48041 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
48042         wxUSE_DATAOBJ=no
48043     else
48044         cat >>confdefs.h <<\_ACEOF
48045 #define wxUSE_DATAOBJ 1
48046 _ACEOF
48047
48048     fi
48049 else
48050     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
48051 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
48052     wxUSE_CLIPBOARD=no
48053     wxUSE_DRAG_AND_DROP=no
48054 fi
48055
48056 if test "$wxUSE_CLIPBOARD" = "yes"; then
48057     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48058         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
48059 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
48060         wxUSE_CLIPBOARD=no
48061     fi
48062
48063     if test "$wxUSE_CLIPBOARD" = "yes"; then
48064         cat >>confdefs.h <<\_ACEOF
48065 #define wxUSE_CLIPBOARD 1
48066 _ACEOF
48067
48068     fi
48069 fi
48070
48071 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
48072     if test "$wxUSE_GTK" = 1; then
48073         if test "$WXGTK12" != 1; then
48074             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
48075 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
48076             wxUSE_DRAG_AND_DROP=no
48077         fi
48078     fi
48079
48080     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
48081             "$wxUSE_DFB" = 1; then
48082         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
48083 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
48084         wxUSE_DRAG_AND_DROP=no
48085     fi
48086
48087     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
48088         cat >>confdefs.h <<\_ACEOF
48089 #define wxUSE_DRAG_AND_DROP 1
48090 _ACEOF
48091
48092     fi
48093
48094 fi
48095
48096 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
48097     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
48098 fi
48099
48100 if test "$wxUSE_SPLINES" = "yes" ; then
48101   cat >>confdefs.h <<\_ACEOF
48102 #define wxUSE_SPLINES 1
48103 _ACEOF
48104
48105 fi
48106
48107 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
48108   cat >>confdefs.h <<\_ACEOF
48109 #define wxUSE_MOUSEWHEEL 1
48110 _ACEOF
48111
48112 fi
48113
48114
48115 USES_CONTROLS=0
48116 if test "$wxUSE_CONTROLS" = "yes"; then
48117   USES_CONTROLS=1
48118 fi
48119
48120 if test "$wxUSE_ACCEL" = "yes"; then
48121   cat >>confdefs.h <<\_ACEOF
48122 #define wxUSE_ACCEL 1
48123 _ACEOF
48124
48125   USES_CONTROLS=1
48126 fi
48127
48128 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
48129   cat >>confdefs.h <<\_ACEOF
48130 #define wxUSE_ANIMATIONCTRL 1
48131 _ACEOF
48132
48133   USES_CONTROLS=1
48134   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
48135 fi
48136
48137 if test "$wxUSE_BUTTON" = "yes"; then
48138   cat >>confdefs.h <<\_ACEOF
48139 #define wxUSE_BUTTON 1
48140 _ACEOF
48141
48142   USES_CONTROLS=1
48143 fi
48144
48145 if test "$wxUSE_BMPBUTTON" = "yes"; then
48146   cat >>confdefs.h <<\_ACEOF
48147 #define wxUSE_BMPBUTTON 1
48148 _ACEOF
48149
48150   USES_CONTROLS=1
48151 fi
48152
48153 if test "$wxUSE_CALCTRL" = "yes"; then
48154   cat >>confdefs.h <<\_ACEOF
48155 #define wxUSE_CALENDARCTRL 1
48156 _ACEOF
48157
48158   USES_CONTROLS=1
48159   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
48160 fi
48161
48162 if test "$wxUSE_CARET" = "yes"; then
48163   cat >>confdefs.h <<\_ACEOF
48164 #define wxUSE_CARET 1
48165 _ACEOF
48166
48167   USES_CONTROLS=1
48168   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
48169 fi
48170
48171 if test "$wxUSE_COLLPANE" = "yes"; then
48172     cat >>confdefs.h <<\_ACEOF
48173 #define wxUSE_COLLPANE 1
48174 _ACEOF
48175
48176     USES_CONTROLS=1
48177     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
48178 fi
48179
48180 if test "$wxUSE_COMBOBOX" = "yes"; then
48181   cat >>confdefs.h <<\_ACEOF
48182 #define wxUSE_COMBOBOX 1
48183 _ACEOF
48184
48185   USES_CONTROLS=1
48186 fi
48187
48188 if test "$wxUSE_COMBOCTRL" = "yes"; then
48189   cat >>confdefs.h <<\_ACEOF
48190 #define wxUSE_COMBOCTRL 1
48191 _ACEOF
48192
48193   USES_CONTROLS=1
48194 fi
48195
48196 if test "$wxUSE_CHOICE" = "yes"; then
48197   cat >>confdefs.h <<\_ACEOF
48198 #define wxUSE_CHOICE 1
48199 _ACEOF
48200
48201   USES_CONTROLS=1
48202 fi
48203
48204 if test "$wxUSE_CHOICEBOOK" = "yes"; then
48205     cat >>confdefs.h <<\_ACEOF
48206 #define wxUSE_CHOICEBOOK 1
48207 _ACEOF
48208
48209     USES_CONTROLS=1
48210 fi
48211
48212 if test "$wxUSE_CHECKBOX" = "yes"; then
48213   cat >>confdefs.h <<\_ACEOF
48214 #define wxUSE_CHECKBOX 1
48215 _ACEOF
48216
48217   USES_CONTROLS=1
48218 fi
48219
48220 if test "$wxUSE_CHECKLST" = "yes"; then
48221   cat >>confdefs.h <<\_ACEOF
48222 #define wxUSE_CHECKLISTBOX 1
48223 _ACEOF
48224
48225   USES_CONTROLS=1
48226 fi
48227
48228 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
48229   cat >>confdefs.h <<\_ACEOF
48230 #define wxUSE_COLOURPICKERCTRL 1
48231 _ACEOF
48232
48233   USES_CONTROLS=1
48234 fi
48235
48236 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
48237   cat >>confdefs.h <<\_ACEOF
48238 #define wxUSE_DATEPICKCTRL 1
48239 _ACEOF
48240
48241   USES_CONTROLS=1
48242 fi
48243
48244 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
48245   cat >>confdefs.h <<\_ACEOF
48246 #define wxUSE_DIRPICKERCTRL 1
48247 _ACEOF
48248
48249   USES_CONTROLS=1
48250 fi
48251
48252 if test "$wxUSE_FILECTRL" = "yes"; then
48253   cat >>confdefs.h <<\_ACEOF
48254 #define wxUSE_FILECTRL 1
48255 _ACEOF
48256
48257   USES_CONTROLS=1
48258 fi
48259
48260 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
48261   cat >>confdefs.h <<\_ACEOF
48262 #define wxUSE_FILEPICKERCTRL 1
48263 _ACEOF
48264
48265   USES_CONTROLS=1
48266 fi
48267
48268 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
48269   cat >>confdefs.h <<\_ACEOF
48270 #define wxUSE_FONTPICKERCTRL 1
48271 _ACEOF
48272
48273   USES_CONTROLS=1
48274 fi
48275
48276 if test "$wxUSE_DISPLAY" = "yes"; then
48277     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
48278         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
48279 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
48280         wxUSE_DISPLAY=no
48281     else
48282         cat >>confdefs.h <<\_ACEOF
48283 #define wxUSE_DISPLAY 1
48284 _ACEOF
48285
48286         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
48287     fi
48288 fi
48289
48290 if test "$wxUSE_DETECT_SM" = "yes"; then
48291     cat >>confdefs.h <<\_ACEOF
48292 #define wxUSE_DETECT_SM 1
48293 _ACEOF
48294
48295 fi
48296
48297 if test "$wxUSE_GAUGE" = "yes"; then
48298   cat >>confdefs.h <<\_ACEOF
48299 #define wxUSE_GAUGE 1
48300 _ACEOF
48301
48302   USES_CONTROLS=1
48303 fi
48304
48305 if test "$wxUSE_GRID" = "yes"; then
48306   cat >>confdefs.h <<\_ACEOF
48307 #define wxUSE_GRID 1
48308 _ACEOF
48309
48310   USES_CONTROLS=1
48311   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
48312 fi
48313
48314 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
48315   cat >>confdefs.h <<\_ACEOF
48316 #define wxUSE_HYPERLINKCTRL 1
48317 _ACEOF
48318
48319   USES_CONTROLS=1
48320 fi
48321
48322 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
48323   cat >>confdefs.h <<\_ACEOF
48324 #define wxUSE_BITMAPCOMBOBOX 1
48325 _ACEOF
48326
48327   USES_CONTROLS=1
48328 fi
48329
48330 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
48331   cat >>confdefs.h <<\_ACEOF
48332 #define wxUSE_DATAVIEWCTRL 1
48333 _ACEOF
48334
48335   USES_CONTROLS=1
48336   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
48337 fi
48338
48339 if test "$wxUSE_IMAGLIST" = "yes"; then
48340     cat >>confdefs.h <<\_ACEOF
48341 #define wxUSE_IMAGLIST 1
48342 _ACEOF
48343
48344 fi
48345
48346 if test "$wxUSE_LISTBOOK" = "yes"; then
48347     cat >>confdefs.h <<\_ACEOF
48348 #define wxUSE_LISTBOOK 1
48349 _ACEOF
48350
48351     USES_CONTROLS=1
48352 fi
48353
48354 if test "$wxUSE_LISTBOX" = "yes"; then
48355     cat >>confdefs.h <<\_ACEOF
48356 #define wxUSE_LISTBOX 1
48357 _ACEOF
48358
48359     USES_CONTROLS=1
48360 fi
48361
48362 if test "$wxUSE_LISTCTRL" = "yes"; then
48363     if test "$wxUSE_IMAGLIST" = "yes"; then
48364         cat >>confdefs.h <<\_ACEOF
48365 #define wxUSE_LISTCTRL 1
48366 _ACEOF
48367
48368         USES_CONTROLS=1
48369         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
48370     else
48371         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
48372 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
48373     fi
48374 fi
48375
48376 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
48377     cat >>confdefs.h <<\_ACEOF
48378 #define wxUSE_EDITABLELISTBOX 1
48379 _ACEOF
48380
48381     USES_CONTROLS=1
48382     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48383 fi
48384
48385 if test "$wxUSE_NOTEBOOK" = "yes"; then
48386     cat >>confdefs.h <<\_ACEOF
48387 #define wxUSE_NOTEBOOK 1
48388 _ACEOF
48389
48390     USES_CONTROLS=1
48391     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48392 fi
48393
48394 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48395   cat >>confdefs.h <<\_ACEOF
48396 #define wxUSE_ODCOMBOBOX 1
48397 _ACEOF
48398
48399   USES_CONTROLS=1
48400   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48401 fi
48402
48403 if test "$wxUSE_RADIOBOX" = "yes"; then
48404     cat >>confdefs.h <<\_ACEOF
48405 #define wxUSE_RADIOBOX 1
48406 _ACEOF
48407
48408     USES_CONTROLS=1
48409 fi
48410
48411 if test "$wxUSE_RADIOBTN" = "yes"; then
48412     cat >>confdefs.h <<\_ACEOF
48413 #define wxUSE_RADIOBTN 1
48414 _ACEOF
48415
48416     USES_CONTROLS=1
48417 fi
48418
48419 if test "$wxUSE_SASH" = "yes"; then
48420     cat >>confdefs.h <<\_ACEOF
48421 #define wxUSE_SASH 1
48422 _ACEOF
48423
48424     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48425 fi
48426
48427 if test "$wxUSE_SCROLLBAR" = "yes"; then
48428     cat >>confdefs.h <<\_ACEOF
48429 #define wxUSE_SCROLLBAR 1
48430 _ACEOF
48431
48432     USES_CONTROLS=1
48433     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48434 fi
48435
48436 if test "$wxUSE_SEARCHCTRL" = "yes"; then
48437     cat >>confdefs.h <<\_ACEOF
48438 #define wxUSE_SEARCHCTRL 1
48439 _ACEOF
48440
48441     USES_CONTROLS=1
48442 fi
48443
48444 if test "$wxUSE_SLIDER" = "yes"; then
48445     cat >>confdefs.h <<\_ACEOF
48446 #define wxUSE_SLIDER 1
48447 _ACEOF
48448
48449     USES_CONTROLS=1
48450 fi
48451
48452 if test "$wxUSE_SPINBTN" = "yes"; then
48453     cat >>confdefs.h <<\_ACEOF
48454 #define wxUSE_SPINBTN 1
48455 _ACEOF
48456
48457     USES_CONTROLS=1
48458 fi
48459
48460 if test "$wxUSE_SPINCTRL" = "yes"; then
48461     cat >>confdefs.h <<\_ACEOF
48462 #define wxUSE_SPINCTRL 1
48463 _ACEOF
48464
48465     USES_CONTROLS=1
48466 fi
48467
48468 if test "$wxUSE_SPLITTER" = "yes"; then
48469     cat >>confdefs.h <<\_ACEOF
48470 #define wxUSE_SPLITTER 1
48471 _ACEOF
48472
48473     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48474 fi
48475
48476 if test "$wxUSE_STATBMP" = "yes"; then
48477     cat >>confdefs.h <<\_ACEOF
48478 #define wxUSE_STATBMP 1
48479 _ACEOF
48480
48481     USES_CONTROLS=1
48482 fi
48483
48484 if test "$wxUSE_STATBOX" = "yes"; then
48485     cat >>confdefs.h <<\_ACEOF
48486 #define wxUSE_STATBOX 1
48487 _ACEOF
48488
48489     USES_CONTROLS=1
48490 fi
48491
48492 if test "$wxUSE_STATTEXT" = "yes"; then
48493     cat >>confdefs.h <<\_ACEOF
48494 #define wxUSE_STATTEXT 1
48495 _ACEOF
48496
48497     USES_CONTROLS=1
48498 fi
48499
48500 if test "$wxUSE_STATLINE" = "yes"; then
48501     cat >>confdefs.h <<\_ACEOF
48502 #define wxUSE_STATLINE 1
48503 _ACEOF
48504
48505     USES_CONTROLS=1
48506 fi
48507
48508 if test "$wxUSE_STATUSBAR" = "yes"; then
48509         cat >>confdefs.h <<\_ACEOF
48510 #define wxUSE_NATIVE_STATUSBAR 1
48511 _ACEOF
48512
48513     cat >>confdefs.h <<\_ACEOF
48514 #define wxUSE_STATUSBAR 1
48515 _ACEOF
48516
48517     USES_CONTROLS=1
48518
48519     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48520 fi
48521
48522 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48523     cat >>confdefs.h <<\_ACEOF
48524 #define wxUSE_TAB_DIALOG 1
48525 _ACEOF
48526
48527 fi
48528
48529 if test "$wxUSE_TEXTCTRL" = "yes"; then
48530     cat >>confdefs.h <<\_ACEOF
48531 #define wxUSE_TEXTCTRL 1
48532 _ACEOF
48533
48534     USES_CONTROLS=1
48535     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48536 fi
48537
48538 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48539     if test "$wxUSE_COCOA" = 1 ; then
48540         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48541 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48542         wxUSE_TOGGLEBTN=no
48543     fi
48544
48545     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48546         cat >>confdefs.h <<\_ACEOF
48547 #define wxUSE_TOGGLEBTN 1
48548 _ACEOF
48549
48550         USES_CONTROLS=1
48551     fi
48552 fi
48553
48554 if test "$wxUSE_TOOLBAR" = "yes"; then
48555     cat >>confdefs.h <<\_ACEOF
48556 #define wxUSE_TOOLBAR 1
48557 _ACEOF
48558
48559     USES_CONTROLS=1
48560
48561     if test "$wxUSE_UNIVERSAL" = "yes"; then
48562         wxUSE_TOOLBAR_NATIVE="no"
48563     else
48564         wxUSE_TOOLBAR_NATIVE="yes"
48565         cat >>confdefs.h <<\_ACEOF
48566 #define wxUSE_TOOLBAR_NATIVE 1
48567 _ACEOF
48568
48569     fi
48570
48571     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48572 fi
48573
48574 if test "$wxUSE_TOOLTIPS" = "yes"; then
48575     if test "$wxUSE_MOTIF" = 1; then
48576         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48577 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48578     else
48579         if test "$wxUSE_UNIVERSAL" = "yes"; then
48580             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48581 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48582         else
48583             cat >>confdefs.h <<\_ACEOF
48584 #define wxUSE_TOOLTIPS 1
48585 _ACEOF
48586
48587         fi
48588     fi
48589 fi
48590
48591 if test "$wxUSE_TREEBOOK" = "yes"; then
48592     cat >>confdefs.h <<\_ACEOF
48593 #define wxUSE_TREEBOOK 1
48594 _ACEOF
48595
48596     USES_CONTROLS=1
48597 fi
48598
48599 if test "$wxUSE_TOOLBOOK" = "yes"; then
48600     cat >>confdefs.h <<\_ACEOF
48601 #define wxUSE_TOOLBOOK 1
48602 _ACEOF
48603
48604     USES_CONTROLS=1
48605 fi
48606
48607 if test "$wxUSE_TREECTRL" = "yes"; then
48608     if test "$wxUSE_IMAGLIST" = "yes"; then
48609         cat >>confdefs.h <<\_ACEOF
48610 #define wxUSE_TREECTRL 1
48611 _ACEOF
48612
48613         USES_CONTROLS=1
48614         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48615     else
48616         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48617 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48618     fi
48619 fi
48620
48621 if test "$wxUSE_POPUPWIN" = "yes"; then
48622     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48623         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48624 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48625     else
48626         if test "$wxUSE_PM" = 1; then
48627             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48628 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48629         else
48630             cat >>confdefs.h <<\_ACEOF
48631 #define wxUSE_POPUPWIN 1
48632 _ACEOF
48633
48634             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48635
48636             USES_CONTROLS=1
48637         fi
48638     fi
48639 fi
48640
48641 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48642     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48643         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48644 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48645     else
48646         cat >>confdefs.h <<\_ACEOF
48647 #define wxUSE_DIALUP_MANAGER 1
48648 _ACEOF
48649
48650         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48651     fi
48652 fi
48653
48654 if test "$wxUSE_TIPWINDOW" = "yes"; then
48655     if test "$wxUSE_PM" = 1; then
48656         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48657 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48658     else
48659         cat >>confdefs.h <<\_ACEOF
48660 #define wxUSE_TIPWINDOW 1
48661 _ACEOF
48662
48663     fi
48664 fi
48665
48666 if test "$USES_CONTROLS" = 1; then
48667     cat >>confdefs.h <<\_ACEOF
48668 #define wxUSE_CONTROLS 1
48669 _ACEOF
48670
48671 fi
48672
48673
48674 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48675     cat >>confdefs.h <<\_ACEOF
48676 #define wxUSE_ACCESSIBILITY 1
48677 _ACEOF
48678
48679     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48680 fi
48681
48682 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48683     cat >>confdefs.h <<\_ACEOF
48684 #define wxUSE_DRAGIMAGE 1
48685 _ACEOF
48686
48687     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48688 fi
48689
48690 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48691     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48692         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48693 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48694     else
48695         cat >>confdefs.h <<\_ACEOF
48696 #define wxUSE_EXCEPTIONS 1
48697 _ACEOF
48698
48699         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48700     fi
48701 fi
48702
48703 USE_HTML=0
48704 if test "$wxUSE_HTML" = "yes"; then
48705     cat >>confdefs.h <<\_ACEOF
48706 #define wxUSE_HTML 1
48707 _ACEOF
48708
48709     USE_HTML=1
48710     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48711     if test "$wxUSE_MAC" = 1; then
48712         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48713     fi
48714 fi
48715 if test "$wxUSE_WEBKIT" = "yes"; then
48716     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48717         old_CPPFLAGS="$CPPFLAGS"
48718         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48719         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48720 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48721 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48722   echo $ECHO_N "(cached) $ECHO_C" >&6
48723 else
48724   cat >conftest.$ac_ext <<_ACEOF
48725 /* confdefs.h.  */
48726 _ACEOF
48727 cat confdefs.h >>conftest.$ac_ext
48728 cat >>conftest.$ac_ext <<_ACEOF
48729 /* end confdefs.h.  */
48730
48731                            #include <Carbon/Carbon.h>
48732                            #include <WebKit/WebKit.h>
48733
48734
48735 #include <WebKit/HIWebView.h>
48736 _ACEOF
48737 rm -f conftest.$ac_objext
48738 if { (ac_try="$ac_compile"
48739 case "(($ac_try" in
48740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48741   *) ac_try_echo=$ac_try;;
48742 esac
48743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48744   (eval "$ac_compile") 2>conftest.er1
48745   ac_status=$?
48746   grep -v '^ *+' conftest.er1 >conftest.err
48747   rm -f conftest.er1
48748   cat conftest.err >&5
48749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48750   (exit $ac_status); } && {
48751          test -z "$ac_c_werror_flag" ||
48752          test ! -s conftest.err
48753        } && test -s conftest.$ac_objext; then
48754   ac_cv_header_WebKit_HIWebView_h=yes
48755 else
48756   echo "$as_me: failed program was:" >&5
48757 sed 's/^/| /' conftest.$ac_ext >&5
48758
48759         ac_cv_header_WebKit_HIWebView_h=no
48760 fi
48761
48762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48763 fi
48764 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48765 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48766 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48767
48768                            cat >>confdefs.h <<\_ACEOF
48769 #define wxUSE_WEBKIT 1
48770 _ACEOF
48771
48772                            WEBKIT_LINK="-framework WebKit"
48773
48774 else
48775
48776                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48777 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48778                            wxUSE_WEBKIT=no
48779
48780 fi
48781
48782
48783         CPPFLAGS="$old_CPPFLAGS"
48784     elif test "$wxUSE_COCOA" = 1; then
48785         cat >>confdefs.h <<\_ACEOF
48786 #define wxUSE_WEBKIT 1
48787 _ACEOF
48788
48789     else
48790         wxUSE_WEBKIT=no
48791     fi
48792 fi
48793
48794 USE_XRC=0
48795 if test "$wxUSE_XRC" = "yes"; then
48796     if test "$wxUSE_XML" != "yes"; then
48797         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48798 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48799         wxUSE_XRC=no
48800     else
48801         cat >>confdefs.h <<\_ACEOF
48802 #define wxUSE_XRC 1
48803 _ACEOF
48804
48805         USE_XRC=1
48806         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48807     fi
48808 fi
48809
48810 USE_AUI=0
48811 if test "$wxUSE_AUI" = "yes"; then
48812    cat >>confdefs.h <<\_ACEOF
48813 #define wxUSE_AUI 1
48814 _ACEOF
48815
48816    USE_AUI=1
48817    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48818 fi
48819
48820 USE_STC=0
48821 if test "$wxUSE_STC" = "yes"; then
48822    cat >>confdefs.h <<\_ACEOF
48823 #define wxUSE_STC 1
48824 _ACEOF
48825
48826    USE_STC=1
48827    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48828 fi
48829
48830 if test "$wxUSE_MENUS" = "yes"; then
48831     cat >>confdefs.h <<\_ACEOF
48832 #define wxUSE_MENUS 1
48833 _ACEOF
48834
48835     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48836 fi
48837
48838 if test "$wxUSE_METAFILE" = "yes"; then
48839     cat >>confdefs.h <<\_ACEOF
48840 #define wxUSE_METAFILE 1
48841 _ACEOF
48842
48843 fi
48844
48845 if test "$wxUSE_MIMETYPE" = "yes"; then
48846     cat >>confdefs.h <<\_ACEOF
48847 #define wxUSE_MIMETYPE 1
48848 _ACEOF
48849
48850 fi
48851
48852 if test "$wxUSE_MINIFRAME" = "yes"; then
48853     cat >>confdefs.h <<\_ACEOF
48854 #define wxUSE_MINIFRAME 1
48855 _ACEOF
48856
48857 fi
48858
48859 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48860     cat >>confdefs.h <<\_ACEOF
48861 #define wxUSE_SYSTEM_OPTIONS 1
48862 _ACEOF
48863
48864 fi
48865
48866 if test "$wxUSE_TASKBARICON" = "yes"; then
48867     cat >>confdefs.h <<\_ACEOF
48868 #define wxUSE_TASKBARICON 1
48869 _ACEOF
48870
48871     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48872 fi
48873
48874
48875 if test "$wxUSE_VALIDATORS" = "yes"; then
48876     cat >>confdefs.h <<\_ACEOF
48877 #define wxUSE_VALIDATORS 1
48878 _ACEOF
48879
48880     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48881 fi
48882
48883 if test "$wxUSE_PALETTE" = "yes" ; then
48884     if test "$wxUSE_DFB" = 1; then
48885         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48886 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48887         wxUSE_PALETTE=no
48888     else
48889         cat >>confdefs.h <<\_ACEOF
48890 #define wxUSE_PALETTE 1
48891 _ACEOF
48892
48893     fi
48894 fi
48895
48896 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48897     LIBS=" -lunicows $LIBS"
48898 fi
48899
48900 USE_RICHTEXT=0
48901 if test "$wxUSE_RICHTEXT" = "yes"; then
48902     cat >>confdefs.h <<\_ACEOF
48903 #define wxUSE_RICHTEXT 1
48904 _ACEOF
48905
48906     USE_RICHTEXT=1
48907     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48908 fi
48909
48910
48911 if test "$wxUSE_IMAGE" = "yes" ; then
48912     cat >>confdefs.h <<\_ACEOF
48913 #define wxUSE_IMAGE 1
48914 _ACEOF
48915
48916
48917     if test "$wxUSE_GIF" = "yes" ; then
48918       cat >>confdefs.h <<\_ACEOF
48919 #define wxUSE_GIF 1
48920 _ACEOF
48921
48922     fi
48923
48924     if test "$wxUSE_PCX" = "yes" ; then
48925       cat >>confdefs.h <<\_ACEOF
48926 #define wxUSE_PCX 1
48927 _ACEOF
48928
48929     fi
48930
48931     if test "$wxUSE_TGA" = "yes" ; then
48932       cat >>confdefs.h <<\_ACEOF
48933 #define wxUSE_TGA 1
48934 _ACEOF
48935
48936     fi
48937
48938     if test "$wxUSE_IFF" = "yes" ; then
48939       cat >>confdefs.h <<\_ACEOF
48940 #define wxUSE_IFF 1
48941 _ACEOF
48942
48943     fi
48944
48945     if test "$wxUSE_PNM" = "yes" ; then
48946       cat >>confdefs.h <<\_ACEOF
48947 #define wxUSE_PNM 1
48948 _ACEOF
48949
48950     fi
48951
48952     if test "$wxUSE_XPM" = "yes" ; then
48953       cat >>confdefs.h <<\_ACEOF
48954 #define wxUSE_XPM 1
48955 _ACEOF
48956
48957     fi
48958
48959     if test "$wxUSE_ICO_CUR" = "yes" ; then
48960       cat >>confdefs.h <<\_ACEOF
48961 #define wxUSE_ICO_CUR 1
48962 _ACEOF
48963
48964     fi
48965 fi
48966
48967
48968 if test "$wxUSE_ABOUTDLG" = "yes"; then
48969     cat >>confdefs.h <<\_ACEOF
48970 #define wxUSE_ABOUTDLG 1
48971 _ACEOF
48972
48973 fi
48974
48975 if test "$wxUSE_CHOICEDLG" = "yes"; then
48976     cat >>confdefs.h <<\_ACEOF
48977 #define wxUSE_CHOICEDLG 1
48978 _ACEOF
48979
48980 fi
48981
48982 if test "$wxUSE_COLOURDLG" = "yes"; then
48983     cat >>confdefs.h <<\_ACEOF
48984 #define wxUSE_COLOURDLG 1
48985 _ACEOF
48986
48987 fi
48988
48989 if test "$wxUSE_FILEDLG" = "yes"; then
48990     cat >>confdefs.h <<\_ACEOF
48991 #define wxUSE_FILEDLG 1
48992 _ACEOF
48993
48994 fi
48995
48996 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48997     cat >>confdefs.h <<\_ACEOF
48998 #define wxUSE_FINDREPLDLG 1
48999 _ACEOF
49000
49001 fi
49002
49003 if test "$wxUSE_FONTDLG" = "yes"; then
49004     cat >>confdefs.h <<\_ACEOF
49005 #define wxUSE_FONTDLG 1
49006 _ACEOF
49007
49008 fi
49009
49010 if test "$wxUSE_DIRDLG" = "yes"; then
49011     if test "$wxUSE_TREECTRL" != "yes"; then
49012         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
49013 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
49014     else
49015         cat >>confdefs.h <<\_ACEOF
49016 #define wxUSE_DIRDLG 1
49017 _ACEOF
49018
49019     fi
49020 fi
49021
49022 if test "$wxUSE_MSGDLG" = "yes"; then
49023     cat >>confdefs.h <<\_ACEOF
49024 #define wxUSE_MSGDLG 1
49025 _ACEOF
49026
49027 fi
49028
49029 if test "$wxUSE_NUMBERDLG" = "yes"; then
49030     cat >>confdefs.h <<\_ACEOF
49031 #define wxUSE_NUMBERDLG 1
49032 _ACEOF
49033
49034 fi
49035
49036 if test "$wxUSE_PROGRESSDLG" = "yes"; then
49037     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49038        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
49039 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
49040     else
49041         cat >>confdefs.h <<\_ACEOF
49042 #define wxUSE_PROGRESSDLG 1
49043 _ACEOF
49044
49045     fi
49046 fi
49047
49048 if test "$wxUSE_SPLASH" = "yes"; then
49049     cat >>confdefs.h <<\_ACEOF
49050 #define wxUSE_SPLASH 1
49051 _ACEOF
49052
49053     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
49054 fi
49055
49056 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
49057     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49058        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
49059 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
49060     else
49061         cat >>confdefs.h <<\_ACEOF
49062 #define wxUSE_STARTUP_TIPS 1
49063 _ACEOF
49064
49065     fi
49066 fi
49067
49068 if test "$wxUSE_TEXTDLG" = "yes"; then
49069     cat >>confdefs.h <<\_ACEOF
49070 #define wxUSE_TEXTDLG 1
49071 _ACEOF
49072
49073 fi
49074
49075 if test "$wxUSE_WIZARDDLG" = "yes"; then
49076     cat >>confdefs.h <<\_ACEOF
49077 #define wxUSE_WIZARDDLG 1
49078 _ACEOF
49079
49080     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
49081 fi
49082
49083
49084 if test "$wxUSE_MSW" = 1 ; then
49085
49086     if test "$wxUSE_DC_CACHEING" = "yes"; then
49087         cat >>confdefs.h <<\_ACEOF
49088 #define wxUSE_DC_CACHEING 1
49089 _ACEOF
49090
49091     fi
49092
49093     if test "$wxUSE_DIB" = "yes"; then
49094         cat >>confdefs.h <<\_ACEOF
49095 #define wxUSE_WXDIB 1
49096 _ACEOF
49097
49098     fi
49099
49100     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
49101         cat >>confdefs.h <<\_ACEOF
49102 #define wxUSE_OWNER_DRAWN 1
49103 _ACEOF
49104
49105     fi
49106
49107     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
49108         cat >>confdefs.h <<\_ACEOF
49109 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
49110 _ACEOF
49111
49112     fi
49113
49114     if test "$wxUSE_UXTHEME" = "yes"; then
49115         cat >>confdefs.h <<\_ACEOF
49116 #define wxUSE_UXTHEME 1
49117 _ACEOF
49118
49119     fi
49120
49121 fi
49122
49123
49124 if test "$USE_WIN32" = 1 ; then
49125     if test "$wxUSE_INICONF" = "yes"; then
49126         cat >>confdefs.h <<\_ACEOF
49127 #define wxUSE_INICONF 1
49128 _ACEOF
49129
49130     fi
49131
49132     if test "$wxUSE_REGKEY" = "yes"; then
49133         cat >>confdefs.h <<\_ACEOF
49134 #define wxUSE_REGKEY 1
49135 _ACEOF
49136
49137     fi
49138 fi
49139
49140
49141 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
49142    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
49143       cat >>confdefs.h <<\_ACEOF
49144 #define wxUSE_GRAPHICS_CONTEXT 1
49145 _ACEOF
49146
49147    elif test "$wxUSE_GTK" != 1; then
49148             cat >>confdefs.h <<\_ACEOF
49149 #define wxUSE_GRAPHICS_CONTEXT 1
49150 _ACEOF
49151
49152    else
49153
49154 pkg_failed=no
49155 { echo "$as_me:$LINENO: checking for CAIRO" >&5
49156 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
49157
49158 if test -n "$PKG_CONFIG"; then
49159     if test -n "$CAIRO_CFLAGS"; then
49160         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
49161     else
49162         if test -n "$PKG_CONFIG" && \
49163     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49164   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49165   ac_status=$?
49166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49167   (exit $ac_status); }; then
49168   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
49169 else
49170   pkg_failed=yes
49171 fi
49172     fi
49173 else
49174         pkg_failed=untried
49175 fi
49176 if test -n "$PKG_CONFIG"; then
49177     if test -n "$CAIRO_LIBS"; then
49178         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
49179     else
49180         if test -n "$PKG_CONFIG" && \
49181     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49182   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49183   ac_status=$?
49184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49185   (exit $ac_status); }; then
49186   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
49187 else
49188   pkg_failed=yes
49189 fi
49190     fi
49191 else
49192         pkg_failed=untried
49193 fi
49194
49195
49196
49197 if test $pkg_failed = yes; then
49198
49199 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49200         _pkg_short_errors_supported=yes
49201 else
49202         _pkg_short_errors_supported=no
49203 fi
49204         if test $_pkg_short_errors_supported = yes; then
49205                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
49206         else
49207                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
49208         fi
49209         # Put the nasty error message in config.log where it belongs
49210         echo "$CAIRO_PKG_ERRORS" >&5
49211
49212         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49213 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49214
49215 elif test $pkg_failed = untried; then
49216         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49217 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49218
49219 else
49220         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
49221         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
49222         { echo "$as_me:$LINENO: result: yes" >&5
49223 echo "${ECHO_T}yes" >&6; }
49224         cat >>confdefs.h <<\_ACEOF
49225 #define wxUSE_GRAPHICS_CONTEXT 1
49226 _ACEOF
49227
49228 fi
49229    fi
49230 fi
49231
49232
49233 USE_MEDIA=0
49234
49235 if test "$wxUSE_MEDIACTRL" = "yes"; then
49236     USE_MEDIA=1
49237
49238                 if test "$wxUSE_GTK" = 1; then
49239         wxUSE_GSTREAMER="no"
49240
49241                                                                 GST_VERSION_MAJOR=0
49242         GST_VERSION_MINOR=10
49243         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49244
49245         if test "$wxUSE_GSTREAMER8" = "no"; then
49246
49247 pkg_failed=no
49248 { echo "$as_me:$LINENO: checking for GST" >&5
49249 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49250
49251 if test -n "$PKG_CONFIG"; then
49252     if test -n "$GST_CFLAGS"; then
49253         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49254     else
49255         if test -n "$PKG_CONFIG" && \
49256     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49257   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49258   ac_status=$?
49259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49260   (exit $ac_status); }; then
49261   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49262 else
49263   pkg_failed=yes
49264 fi
49265     fi
49266 else
49267         pkg_failed=untried
49268 fi
49269 if test -n "$PKG_CONFIG"; then
49270     if test -n "$GST_LIBS"; then
49271         pkg_cv_GST_LIBS="$GST_LIBS"
49272     else
49273         if test -n "$PKG_CONFIG" && \
49274     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49275   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49276   ac_status=$?
49277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49278   (exit $ac_status); }; then
49279   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49280 else
49281   pkg_failed=yes
49282 fi
49283     fi
49284 else
49285         pkg_failed=untried
49286 fi
49287
49288
49289
49290 if test $pkg_failed = yes; then
49291
49292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49293         _pkg_short_errors_supported=yes
49294 else
49295         _pkg_short_errors_supported=no
49296 fi
49297         if test $_pkg_short_errors_supported = yes; then
49298                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49299         else
49300                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49301         fi
49302         # Put the nasty error message in config.log where it belongs
49303         echo "$GST_PKG_ERRORS" >&5
49304
49305
49306                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49307 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49308                     GST_VERSION_MINOR=8
49309
49310
49311 elif test $pkg_failed = untried; then
49312
49313                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49314 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49315                     GST_VERSION_MINOR=8
49316
49317
49318 else
49319         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49320         GST_LIBS=$pkg_cv_GST_LIBS
49321         { echo "$as_me:$LINENO: result: yes" >&5
49322 echo "${ECHO_T}yes" >&6; }
49323
49324                     wxUSE_GSTREAMER="yes"
49325                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49326
49327 fi
49328         else
49329                         GST_VERSION_MINOR=8
49330         fi
49331
49332         if test $GST_VERSION_MINOR = "8"; then
49333             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49334
49335 pkg_failed=no
49336 { echo "$as_me:$LINENO: checking for GST" >&5
49337 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49338
49339 if test -n "$PKG_CONFIG"; then
49340     if test -n "$GST_CFLAGS"; then
49341         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49342     else
49343         if test -n "$PKG_CONFIG" && \
49344     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49345   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49346   ac_status=$?
49347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49348   (exit $ac_status); }; then
49349   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49350 else
49351   pkg_failed=yes
49352 fi
49353     fi
49354 else
49355         pkg_failed=untried
49356 fi
49357 if test -n "$PKG_CONFIG"; then
49358     if test -n "$GST_LIBS"; then
49359         pkg_cv_GST_LIBS="$GST_LIBS"
49360     else
49361         if test -n "$PKG_CONFIG" && \
49362     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49363   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49364   ac_status=$?
49365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49366   (exit $ac_status); }; then
49367   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49368 else
49369   pkg_failed=yes
49370 fi
49371     fi
49372 else
49373         pkg_failed=untried
49374 fi
49375
49376
49377
49378 if test $pkg_failed = yes; then
49379
49380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49381         _pkg_short_errors_supported=yes
49382 else
49383         _pkg_short_errors_supported=no
49384 fi
49385         if test $_pkg_short_errors_supported = yes; then
49386                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49387         else
49388                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49389         fi
49390         # Put the nasty error message in config.log where it belongs
49391         echo "$GST_PKG_ERRORS" >&5
49392
49393
49394                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49395 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49396
49397 elif test $pkg_failed = untried; then
49398
49399                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49400 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49401
49402 else
49403         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49404         GST_LIBS=$pkg_cv_GST_LIBS
49405         { echo "$as_me:$LINENO: result: yes" >&5
49406 echo "${ECHO_T}yes" >&6; }
49407         wxUSE_GSTREAMER="yes"
49408 fi
49409         fi
49410
49411
49412         if test "$wxUSE_GSTREAMER" = "yes"; then
49413             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49414             LIBS="$GST_LIBS $LIBS"
49415
49416             cat >>confdefs.h <<\_ACEOF
49417 #define wxUSE_GSTREAMER 1
49418 _ACEOF
49419
49420         else
49421             USE_MEDIA=0
49422         fi
49423     fi
49424
49425     if test $USE_MEDIA = 1; then
49426         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49427         cat >>confdefs.h <<\_ACEOF
49428 #define wxUSE_MEDIACTRL 1
49429 _ACEOF
49430
49431     fi
49432 fi
49433
49434
49435 if test "$cross_compiling" = "yes"; then
49436         OSINFO="\"$host\""
49437 else
49438         OSINFO=`uname -s -r -m`
49439     OSINFO="\"$OSINFO\""
49440 fi
49441
49442 cat >>confdefs.h <<_ACEOF
49443 #define WXWIN_OS_DESCRIPTION $OSINFO
49444 _ACEOF
49445
49446
49447
49448 if test "x$prefix" != "xNONE"; then
49449     wxPREFIX=$prefix
49450 else
49451     wxPREFIX=$ac_default_prefix
49452 fi
49453
49454 cat >>confdefs.h <<_ACEOF
49455 #define wxINSTALL_PREFIX "$wxPREFIX"
49456 _ACEOF
49457
49458
49459
49460
49461 STD_BASE_LIBS="base"
49462 STD_GUI_LIBS=""
49463 BUILT_WX_LIBS="base"
49464 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
49465
49466 if test "$wxUSE_SOCKETS" = "yes" ; then
49467     STD_BASE_LIBS="net $STD_BASE_LIBS"
49468     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49469 fi
49470 if test "$wxUSE_ODBC" != "no" ; then
49471     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
49472 fi
49473 if test "$wxUSE_XML" = "yes" ; then
49474     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49475     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49476 fi
49477
49478 if test "$wxUSE_GUI" = "yes"; then
49479     STD_GUI_LIBS="adv core"
49480     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49481
49482     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49483         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49484         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49485     fi
49486     if test "$wxUSE_ODBC" != "no" ; then
49487         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
49488     fi
49489     if test "$wxUSE_HTML" = "yes" ; then
49490         STD_GUI_LIBS="html $STD_GUI_LIBS"
49491         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49492     fi
49493     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49494         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49495     fi
49496     if test "$wxUSE_OPENGL" = "yes" ; then
49497         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49498     fi
49499     if test "$wxUSE_AUI" = "yes" ; then
49500         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49501     fi
49502     if test "$wxUSE_STC" = "yes" ; then
49503         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49504     fi
49505     if test "$wxUSE_XRC" = "yes" ; then
49506         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49507         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49508     fi
49509 fi
49510
49511
49512
49513
49514
49515
49516
49517
49518 if test "$wxUSE_MAC" = 1 ; then
49519     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49520         if test "$USE_DARWIN" = 1; then
49521             LDFLAGS="$LDFLAGS -framework QuickTime"
49522         else
49523             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49524         fi
49525     fi
49526     if test "$USE_DARWIN" = 1; then
49527         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49528     else
49529         LDFLAGS="$LDFLAGS -lCarbonLib"
49530     fi
49531 fi
49532 if test "$wxUSE_COCOA" = 1 ; then
49533     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49534     if test "$wxUSE_MEDIACTRL" = "yes"; then
49535         LDFLAGS="$LDFLAGS -framework QuickTime"
49536     fi
49537 fi
49538 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49539     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49540 fi
49541
49542 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49543
49544 if test "$wxUSE_GUI" = "yes"; then
49545
49546
49547         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49548                      erase event exec font image minimal mobile \
49549                      mobile/wxedit mobile/styles render \
49550                      shaped svg taborder vscroll widgets"
49551
49552     if test "$wxUSE_MONOLITHIC" != "yes"; then
49553         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49554     fi
49555     if test "$TOOLKIT" = "MSW"; then
49556         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49557         if test "$wxUSE_UNIVERSAL" != "yes"; then
49558             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49559         fi
49560     fi
49561     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49562         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49563     fi
49564 else
49565     SAMPLES_SUBDIRS="console"
49566 fi
49567
49568
49569 if test "x$INTELCC" = "xyes" ; then
49570                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49571 elif test "$GCC" = yes ; then
49572     CWARNINGS="-Wall -Wundef"
49573 fi
49574
49575 if test "x$INTELCXX" = "xyes" ; then
49576                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49577 elif test "$GXX" = yes ; then
49578         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
49579 fi
49580
49581
49582 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49583 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49584
49585
49586 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49587  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49588  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49589  $CPPFLAGS `
49590
49591 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49592 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49593 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49594
49595 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49596
49597
49598 if test "x$MWCC" = "xyes"; then
49599
49600             CC="$CC -cwd source -I-"
49601     CXX="$CXX -cwd source -I-"
49602 fi
49603
49604
49605 LIBS=`echo $LIBS`
49606 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49607 EXTRALIBS_XML="$EXPAT_LINK"
49608 EXTRALIBS_HTML="$MSPACK_LINK"
49609 EXTRALIBS_ODBC="$ODBC_LINK"
49610 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49611 if test "$wxUSE_GUI" = "yes"; then
49612     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49613 fi
49614 if test "$wxUSE_OPENGL" = "yes"; then
49615     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49616 fi
49617
49618 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49619
49620 WXCONFIG_LIBS="$LIBS"
49621
49622 if test "$wxUSE_REGEX" = "builtin" ; then
49623     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49624 fi
49625 if test "$wxUSE_EXPAT" = "builtin" ; then
49626     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49627 fi
49628 if test "$wxUSE_ODBC" = "builtin" ; then
49629     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
49630 fi
49631 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49632     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49633 fi
49634 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49635     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49636 fi
49637 if test "$wxUSE_LIBPNG" = "builtin" ; then
49638     wxconfig_3rdparty="png $wxconfig_3rdparty"
49639 fi
49640 if test "$wxUSE_ZLIB" = "builtin" ; then
49641     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49642 fi
49643
49644 for i in $wxconfig_3rdparty ; do
49645     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49646 done
49647
49648
49649 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49650     WXUNIV=1
49651
49652     case "$wxUNIV_THEMES" in
49653         ''|all)
49654             cat >>confdefs.h <<\_ACEOF
49655 #define wxUSE_ALL_THEMES 1
49656 _ACEOF
49657
49658             ;;
49659
49660         *)
49661             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49662                 cat >>confdefs.h <<_ACEOF
49663 #define wxUSE_THEME_$t 1
49664 _ACEOF
49665
49666             done
49667     esac
49668 else
49669     WXUNIV=0
49670 fi
49671
49672
49673
49674
49675
49676
49677
49678
49679
49680 if test $wxUSE_MONOLITHIC = "yes" ; then
49681     MONOLITHIC=1
49682 else
49683     MONOLITHIC=0
49684 fi
49685
49686 if test $wxUSE_PLUGINS = "yes" ; then
49687     USE_PLUGINS=1
49688 else
49689     USE_PLUGINS=0
49690 fi
49691
49692 if test $wxUSE_ODBC != "no" ; then
49693     USE_ODBC=1
49694 else
49695     USE_ODBC=0
49696 fi
49697
49698 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49699     USE_QA=1
49700 else
49701     USE_QA=0
49702 fi
49703
49704 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49705     OFFICIAL_BUILD=1
49706 else
49707     OFFICIAL_BUILD=0
49708 fi
49709
49710
49711
49712
49713
49714
49715
49716
49717
49718
49719
49720
49721
49722
49723
49724
49725
49726
49727
49728
49729
49730
49731
49732
49733
49734
49735
49736 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
49737
49738
49739
49740
49741
49742
49743
49744
49745 case "$TOOLKIT" in
49746     GTK)
49747         TOOLKIT_DESC="GTK+"
49748         if test "$WXGTK20" = 1; then
49749             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49750             if test "$wxUSE_GTKPRINT" = "yes" ; then
49751                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49752             fi
49753             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49754                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49755             fi
49756             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49757                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49758             fi
49759             if test "$wxUSE_LIBHILDON" = "yes"; then
49760                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49761             fi
49762
49763             if test "$TOOLKIT_EXTRA" != ""; then
49764                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49765             fi
49766         fi
49767         ;;
49768
49769     ?*)
49770         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49771         ;;
49772
49773     *)
49774         TOOLKIT_DESC="base only"
49775         ;;
49776 esac
49777
49778 if test "$wxUSE_WINE" = "yes"; then
49779     BAKEFILE_FORCE_PLATFORM=win32
49780 fi
49781
49782 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49783 then
49784     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49785 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49786 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49787   echo $ECHO_N "(cached) $ECHO_C" >&6
49788 else
49789
49790             echo '#include <stdio.h>
49791                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49792
49793             echo '#include "conftest.h"
49794                   int main()
49795                   {
49796                      printf("%ls", test_var);
49797                      return 0;
49798                   }' > conftest.cpp
49799
49800             wx_cv_gcc_pch_bug="pch not supported"
49801
49802             if $CXX conftest.h >/dev/null 2>&1
49803             then
49804                 wx_cv_gcc_pch_bug=
49805
49806                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49807                 then
49808                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49809                         grep awidetest >/dev/null
49810                     then
49811                         wx_cv_gcc_pch_bug=no
49812                     else
49813                         wx_cv_gcc_pch_bug=yes
49814                     fi
49815                 fi
49816             fi
49817
49818             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49819
49820 fi
49821 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49822 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49823
49824     if test "$wx_cv_gcc_pch_bug" = yes; then
49825                         bk_use_pch=no
49826     fi
49827 fi
49828
49829
49830
49831
49832     if test "x$BAKEFILE_HOST" = "x"; then
49833                if test "x${host}" = "x" ; then
49834                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49835 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49836    { (exit 1); exit 1; }; }
49837                fi
49838
49839         BAKEFILE_HOST="${host}"
49840     fi
49841
49842     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49843
49844     if test -n "$ac_tool_prefix"; then
49845   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49849 if test "${ac_cv_prog_RANLIB+set}" = set; then
49850   echo $ECHO_N "(cached) $ECHO_C" >&6
49851 else
49852   if test -n "$RANLIB"; then
49853   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49854 else
49855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49856 for as_dir in $PATH
49857 do
49858   IFS=$as_save_IFS
49859   test -z "$as_dir" && as_dir=.
49860   for ac_exec_ext in '' $ac_executable_extensions; do
49861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49862     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49864     break 2
49865   fi
49866 done
49867 done
49868 IFS=$as_save_IFS
49869
49870 fi
49871 fi
49872 RANLIB=$ac_cv_prog_RANLIB
49873 if test -n "$RANLIB"; then
49874   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49875 echo "${ECHO_T}$RANLIB" >&6; }
49876 else
49877   { echo "$as_me:$LINENO: result: no" >&5
49878 echo "${ECHO_T}no" >&6; }
49879 fi
49880
49881
49882 fi
49883 if test -z "$ac_cv_prog_RANLIB"; then
49884   ac_ct_RANLIB=$RANLIB
49885   # Extract the first word of "ranlib", so it can be a program name with args.
49886 set dummy ranlib; ac_word=$2
49887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49889 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49890   echo $ECHO_N "(cached) $ECHO_C" >&6
49891 else
49892   if test -n "$ac_ct_RANLIB"; then
49893   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49894 else
49895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49896 for as_dir in $PATH
49897 do
49898   IFS=$as_save_IFS
49899   test -z "$as_dir" && as_dir=.
49900   for ac_exec_ext in '' $ac_executable_extensions; do
49901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49902     ac_cv_prog_ac_ct_RANLIB="ranlib"
49903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49904     break 2
49905   fi
49906 done
49907 done
49908 IFS=$as_save_IFS
49909
49910 fi
49911 fi
49912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49913 if test -n "$ac_ct_RANLIB"; then
49914   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49915 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49916 else
49917   { echo "$as_me:$LINENO: result: no" >&5
49918 echo "${ECHO_T}no" >&6; }
49919 fi
49920
49921   if test "x$ac_ct_RANLIB" = x; then
49922     RANLIB=":"
49923   else
49924     case $cross_compiling:$ac_tool_warned in
49925 yes:)
49926 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49927 whose name does not start with the host triplet.  If you think this
49928 configuration is useful to you, please write to autoconf@gnu.org." >&5
49929 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49930 whose name does not start with the host triplet.  If you think this
49931 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49932 ac_tool_warned=yes ;;
49933 esac
49934     RANLIB=$ac_ct_RANLIB
49935   fi
49936 else
49937   RANLIB="$ac_cv_prog_RANLIB"
49938 fi
49939
49940     # Find a good install program.  We prefer a C program (faster),
49941 # so one script is as good as another.  But avoid the broken or
49942 # incompatible versions:
49943 # SysV /etc/install, /usr/sbin/install
49944 # SunOS /usr/etc/install
49945 # IRIX /sbin/install
49946 # AIX /bin/install
49947 # AmigaOS /C/install, which installs bootblocks on floppy discs
49948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49951 # OS/2's system install, which has a completely different semantic
49952 # ./install, which can be erroneously created by make from ./install.sh.
49953 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49954 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49955 if test -z "$INSTALL"; then
49956 if test "${ac_cv_path_install+set}" = set; then
49957   echo $ECHO_N "(cached) $ECHO_C" >&6
49958 else
49959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49960 for as_dir in $PATH
49961 do
49962   IFS=$as_save_IFS
49963   test -z "$as_dir" && as_dir=.
49964   # Account for people who put trailing slashes in PATH elements.
49965 case $as_dir/ in
49966   ./ | .// | /cC/* | \
49967   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49968   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49969   /usr/ucb/* ) ;;
49970   *)
49971     # OSF1 and SCO ODT 3.0 have their own names for install.
49972     # Don't use installbsd from OSF since it installs stuff as root
49973     # by default.
49974     for ac_prog in ginstall scoinst install; do
49975       for ac_exec_ext in '' $ac_executable_extensions; do
49976         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49977           if test $ac_prog = install &&
49978             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49979             # AIX install.  It has an incompatible calling convention.
49980             :
49981           elif test $ac_prog = install &&
49982             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49983             # program-specific install script used by HP pwplus--don't use.
49984             :
49985           else
49986             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49987             break 3
49988           fi
49989         fi
49990       done
49991     done
49992     ;;
49993 esac
49994 done
49995 IFS=$as_save_IFS
49996
49997
49998 fi
49999   if test "${ac_cv_path_install+set}" = set; then
50000     INSTALL=$ac_cv_path_install
50001   else
50002     # As a last resort, use the slow shell script.  Don't cache a
50003     # value for INSTALL within a source directory, because that will
50004     # break other packages using the cache if that directory is
50005     # removed, or if the value is a relative name.
50006     INSTALL=$ac_install_sh
50007   fi
50008 fi
50009 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50010 echo "${ECHO_T}$INSTALL" >&6; }
50011
50012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50013 # It thinks the first close brace ends the variable substitution.
50014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50015
50016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50017
50018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50019
50020     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50021 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50022 LN_S=$as_ln_s
50023 if test "$LN_S" = "ln -s"; then
50024   { echo "$as_me:$LINENO: result: yes" >&5
50025 echo "${ECHO_T}yes" >&6; }
50026 else
50027   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50028 echo "${ECHO_T}no, using $LN_S" >&6; }
50029 fi
50030
50031
50032     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50033 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50034 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50035 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50036   echo $ECHO_N "(cached) $ECHO_C" >&6
50037 else
50038   cat >conftest.make <<\_ACEOF
50039 SHELL = /bin/sh
50040 all:
50041         @echo '@@@%%%=$(MAKE)=@@@%%%'
50042 _ACEOF
50043 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50044 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50045   *@@@%%%=?*=@@@%%%*)
50046     eval ac_cv_prog_make_${ac_make}_set=yes;;
50047   *)
50048     eval ac_cv_prog_make_${ac_make}_set=no;;
50049 esac
50050 rm -f conftest.make
50051 fi
50052 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50053   { echo "$as_me:$LINENO: result: yes" >&5
50054 echo "${ECHO_T}yes" >&6; }
50055   SET_MAKE=
50056 else
50057   { echo "$as_me:$LINENO: result: no" >&5
50058 echo "${ECHO_T}no" >&6; }
50059   SET_MAKE="MAKE=${MAKE-make}"
50060 fi
50061
50062
50063
50064     if test "x$SUNCXX" = "xyes"; then
50065                                 AR=$CXX
50066         AROPTIONS="-xar -o"
50067
50068     elif test "x$SGICC" = "xyes"; then
50069                 AR=$CXX
50070         AROPTIONS="-ar -o"
50071
50072     else
50073         if test -n "$ac_tool_prefix"; then
50074   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50075 set dummy ${ac_tool_prefix}ar; ac_word=$2
50076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50078 if test "${ac_cv_prog_AR+set}" = set; then
50079   echo $ECHO_N "(cached) $ECHO_C" >&6
50080 else
50081   if test -n "$AR"; then
50082   ac_cv_prog_AR="$AR" # Let the user override the test.
50083 else
50084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50085 for as_dir in $PATH
50086 do
50087   IFS=$as_save_IFS
50088   test -z "$as_dir" && as_dir=.
50089   for ac_exec_ext in '' $ac_executable_extensions; do
50090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50091     ac_cv_prog_AR="${ac_tool_prefix}ar"
50092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50093     break 2
50094   fi
50095 done
50096 done
50097 IFS=$as_save_IFS
50098
50099 fi
50100 fi
50101 AR=$ac_cv_prog_AR
50102 if test -n "$AR"; then
50103   { echo "$as_me:$LINENO: result: $AR" >&5
50104 echo "${ECHO_T}$AR" >&6; }
50105 else
50106   { echo "$as_me:$LINENO: result: no" >&5
50107 echo "${ECHO_T}no" >&6; }
50108 fi
50109
50110
50111 fi
50112 if test -z "$ac_cv_prog_AR"; then
50113   ac_ct_AR=$AR
50114   # Extract the first word of "ar", so it can be a program name with args.
50115 set dummy ar; ac_word=$2
50116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50118 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50119   echo $ECHO_N "(cached) $ECHO_C" >&6
50120 else
50121   if test -n "$ac_ct_AR"; then
50122   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50123 else
50124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50125 for as_dir in $PATH
50126 do
50127   IFS=$as_save_IFS
50128   test -z "$as_dir" && as_dir=.
50129   for ac_exec_ext in '' $ac_executable_extensions; do
50130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50131     ac_cv_prog_ac_ct_AR="ar"
50132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50133     break 2
50134   fi
50135 done
50136 done
50137 IFS=$as_save_IFS
50138
50139 fi
50140 fi
50141 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50142 if test -n "$ac_ct_AR"; then
50143   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50144 echo "${ECHO_T}$ac_ct_AR" >&6; }
50145 else
50146   { echo "$as_me:$LINENO: result: no" >&5
50147 echo "${ECHO_T}no" >&6; }
50148 fi
50149
50150   if test "x$ac_ct_AR" = x; then
50151     AR="ar"
50152   else
50153     case $cross_compiling:$ac_tool_warned in
50154 yes:)
50155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50156 whose name does not start with the host triplet.  If you think this
50157 configuration is useful to you, please write to autoconf@gnu.org." >&5
50158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50159 whose name does not start with the host triplet.  If you think this
50160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50161 ac_tool_warned=yes ;;
50162 esac
50163     AR=$ac_ct_AR
50164   fi
50165 else
50166   AR="$ac_cv_prog_AR"
50167 fi
50168
50169         AROPTIONS=rcu
50170     fi
50171
50172
50173     if test -n "$ac_tool_prefix"; then
50174   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50175 set dummy ${ac_tool_prefix}strip; ac_word=$2
50176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50178 if test "${ac_cv_prog_STRIP+set}" = set; then
50179   echo $ECHO_N "(cached) $ECHO_C" >&6
50180 else
50181   if test -n "$STRIP"; then
50182   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50183 else
50184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50185 for as_dir in $PATH
50186 do
50187   IFS=$as_save_IFS
50188   test -z "$as_dir" && as_dir=.
50189   for ac_exec_ext in '' $ac_executable_extensions; do
50190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50191     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50193     break 2
50194   fi
50195 done
50196 done
50197 IFS=$as_save_IFS
50198
50199 fi
50200 fi
50201 STRIP=$ac_cv_prog_STRIP
50202 if test -n "$STRIP"; then
50203   { echo "$as_me:$LINENO: result: $STRIP" >&5
50204 echo "${ECHO_T}$STRIP" >&6; }
50205 else
50206   { echo "$as_me:$LINENO: result: no" >&5
50207 echo "${ECHO_T}no" >&6; }
50208 fi
50209
50210
50211 fi
50212 if test -z "$ac_cv_prog_STRIP"; then
50213   ac_ct_STRIP=$STRIP
50214   # Extract the first word of "strip", so it can be a program name with args.
50215 set dummy strip; ac_word=$2
50216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50218 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50219   echo $ECHO_N "(cached) $ECHO_C" >&6
50220 else
50221   if test -n "$ac_ct_STRIP"; then
50222   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50223 else
50224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50225 for as_dir in $PATH
50226 do
50227   IFS=$as_save_IFS
50228   test -z "$as_dir" && as_dir=.
50229   for ac_exec_ext in '' $ac_executable_extensions; do
50230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50231     ac_cv_prog_ac_ct_STRIP="strip"
50232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50233     break 2
50234   fi
50235 done
50236 done
50237 IFS=$as_save_IFS
50238
50239 fi
50240 fi
50241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50242 if test -n "$ac_ct_STRIP"; then
50243   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50244 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50245 else
50246   { echo "$as_me:$LINENO: result: no" >&5
50247 echo "${ECHO_T}no" >&6; }
50248 fi
50249
50250   if test "x$ac_ct_STRIP" = x; then
50251     STRIP=":"
50252   else
50253     case $cross_compiling:$ac_tool_warned in
50254 yes:)
50255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50256 whose name does not start with the host triplet.  If you think this
50257 configuration is useful to you, please write to autoconf@gnu.org." >&5
50258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50259 whose name does not start with the host triplet.  If you think this
50260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50261 ac_tool_warned=yes ;;
50262 esac
50263     STRIP=$ac_ct_STRIP
50264   fi
50265 else
50266   STRIP="$ac_cv_prog_STRIP"
50267 fi
50268
50269     if test -n "$ac_tool_prefix"; then
50270   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50271 set dummy ${ac_tool_prefix}nm; ac_word=$2
50272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50274 if test "${ac_cv_prog_NM+set}" = set; then
50275   echo $ECHO_N "(cached) $ECHO_C" >&6
50276 else
50277   if test -n "$NM"; then
50278   ac_cv_prog_NM="$NM" # Let the user override the test.
50279 else
50280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50281 for as_dir in $PATH
50282 do
50283   IFS=$as_save_IFS
50284   test -z "$as_dir" && as_dir=.
50285   for ac_exec_ext in '' $ac_executable_extensions; do
50286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50287     ac_cv_prog_NM="${ac_tool_prefix}nm"
50288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50289     break 2
50290   fi
50291 done
50292 done
50293 IFS=$as_save_IFS
50294
50295 fi
50296 fi
50297 NM=$ac_cv_prog_NM
50298 if test -n "$NM"; then
50299   { echo "$as_me:$LINENO: result: $NM" >&5
50300 echo "${ECHO_T}$NM" >&6; }
50301 else
50302   { echo "$as_me:$LINENO: result: no" >&5
50303 echo "${ECHO_T}no" >&6; }
50304 fi
50305
50306
50307 fi
50308 if test -z "$ac_cv_prog_NM"; then
50309   ac_ct_NM=$NM
50310   # Extract the first word of "nm", so it can be a program name with args.
50311 set dummy nm; ac_word=$2
50312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50314 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50315   echo $ECHO_N "(cached) $ECHO_C" >&6
50316 else
50317   if test -n "$ac_ct_NM"; then
50318   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50319 else
50320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50321 for as_dir in $PATH
50322 do
50323   IFS=$as_save_IFS
50324   test -z "$as_dir" && as_dir=.
50325   for ac_exec_ext in '' $ac_executable_extensions; do
50326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50327     ac_cv_prog_ac_ct_NM="nm"
50328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50329     break 2
50330   fi
50331 done
50332 done
50333 IFS=$as_save_IFS
50334
50335 fi
50336 fi
50337 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50338 if test -n "$ac_ct_NM"; then
50339   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50340 echo "${ECHO_T}$ac_ct_NM" >&6; }
50341 else
50342   { echo "$as_me:$LINENO: result: no" >&5
50343 echo "${ECHO_T}no" >&6; }
50344 fi
50345
50346   if test "x$ac_ct_NM" = x; then
50347     NM=":"
50348   else
50349     case $cross_compiling:$ac_tool_warned in
50350 yes:)
50351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50352 whose name does not start with the host triplet.  If you think this
50353 configuration is useful to you, please write to autoconf@gnu.org." >&5
50354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50355 whose name does not start with the host triplet.  If you think this
50356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50357 ac_tool_warned=yes ;;
50358 esac
50359     NM=$ac_ct_NM
50360   fi
50361 else
50362   NM="$ac_cv_prog_NM"
50363 fi
50364
50365
50366     case ${BAKEFILE_HOST} in
50367         *-hp-hpux* )
50368                                     INSTALL_DIR="mkdir -p"
50369             ;;
50370         * )
50371                                     INSTALL_DIR='$(INSTALL) -d'
50372             ;;
50373     esac
50374
50375
50376     LDFLAGS_GUI=
50377     case ${BAKEFILE_HOST} in
50378         *-*-cygwin* | *-*-mingw32* )
50379         LDFLAGS_GUI="-mwindows"
50380     esac
50381
50382
50383     fi
50384
50385         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50386 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50387 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50388   echo $ECHO_N "(cached) $ECHO_C" >&6
50389 else
50390
50391         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50392                 egrep -s GNU > /dev/null); then
50393             bakefile_cv_prog_makeisgnu="yes"
50394         else
50395             bakefile_cv_prog_makeisgnu="no"
50396         fi
50397
50398 fi
50399 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50400 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50401
50402     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50403         IF_GNU_MAKE=""
50404     else
50405         IF_GNU_MAKE="#"
50406     fi
50407
50408
50409
50410     PLATFORM_UNIX=0
50411     PLATFORM_WIN32=0
50412     PLATFORM_MSDOS=0
50413     PLATFORM_MAC=0
50414     PLATFORM_MACOS=0
50415     PLATFORM_MACOSX=0
50416     PLATFORM_OS2=0
50417     PLATFORM_BEOS=0
50418
50419     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50420         case "${BAKEFILE_HOST}" in
50421             *-*-mingw32* )
50422                 PLATFORM_WIN32=1
50423             ;;
50424             *-pc-msdosdjgpp )
50425                 PLATFORM_MSDOS=1
50426             ;;
50427             *-pc-os2_emx | *-pc-os2-emx )
50428                 PLATFORM_OS2=1
50429             ;;
50430             *-*-darwin* )
50431                 PLATFORM_MAC=1
50432                 PLATFORM_MACOSX=1
50433             ;;
50434             *-*-beos* )
50435                 PLATFORM_BEOS=1
50436             ;;
50437             powerpc-apple-macos* )
50438                 PLATFORM_MAC=1
50439                 PLATFORM_MACOS=1
50440             ;;
50441             * )
50442                 PLATFORM_UNIX=1
50443             ;;
50444         esac
50445     else
50446         case "$BAKEFILE_FORCE_PLATFORM" in
50447             win32 )
50448                 PLATFORM_WIN32=1
50449             ;;
50450             msdos )
50451                 PLATFORM_MSDOS=1
50452             ;;
50453             os2 )
50454                 PLATFORM_OS2=1
50455             ;;
50456             darwin )
50457                 PLATFORM_MAC=1
50458                 PLATFORM_MACOSX=1
50459             ;;
50460             unix )
50461                 PLATFORM_UNIX=1
50462             ;;
50463             beos )
50464                 PLATFORM_BEOS=1
50465             ;;
50466             * )
50467                                             ;;
50468         esac
50469     fi
50470
50471
50472
50473
50474
50475
50476
50477
50478
50479
50480
50481     # Check whether --enable-omf was given.
50482 if test "${enable_omf+set}" = set; then
50483   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50484 fi
50485
50486
50487     case "${BAKEFILE_HOST}" in
50488       *-*-darwin* )
50489                         if test "x$GCC" = "xyes"; then
50490             CFLAGS="$CFLAGS -fno-common"
50491             CXXFLAGS="$CXXFLAGS -fno-common"
50492         fi
50493         if test "x$XLCC" = "xyes"; then
50494             CFLAGS="$CFLAGS -qnocommon"
50495             CXXFLAGS="$CXXFLAGS -qnocommon"
50496         fi
50497         ;;
50498
50499       *-pc-os2_emx | *-pc-os2-emx )
50500         if test "x$bk_os2_use_omf" = "xyes" ; then
50501             AR=emxomfar
50502             RANLIB=:
50503             LDFLAGS="-Zomf $LDFLAGS"
50504             CFLAGS="-Zomf $CFLAGS"
50505             CXXFLAGS="-Zomf $CXXFLAGS"
50506             OS2_LIBEXT="lib"
50507         else
50508             OS2_LIBEXT="a"
50509         fi
50510         ;;
50511
50512       i*86-*-beos* )
50513         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50514         ;;
50515     esac
50516
50517
50518     SO_SUFFIX="so"
50519     SO_SUFFIX_MODULE="so"
50520     EXEEXT=""
50521     LIBPREFIX="lib"
50522     LIBEXT=".a"
50523     DLLPREFIX="lib"
50524     DLLPREFIX_MODULE=""
50525     DLLIMP_SUFFIX=""
50526     dlldir="$libdir"
50527
50528     case "${BAKEFILE_HOST}" in
50529         *-hp-hpux* )
50530             SO_SUFFIX="sl"
50531             SO_SUFFIX_MODULE="sl"
50532         ;;
50533         *-*-aix* )
50534                                                                         SO_SUFFIX="a"
50535             SO_SUFFIX_MODULE="a"
50536         ;;
50537         *-*-cygwin* )
50538             SO_SUFFIX="dll"
50539             SO_SUFFIX_MODULE="dll"
50540             DLLIMP_SUFFIX="dll.a"
50541             EXEEXT=".exe"
50542             DLLPREFIX="cyg"
50543             dlldir="$bindir"
50544         ;;
50545         *-*-mingw32* )
50546             SO_SUFFIX="dll"
50547             SO_SUFFIX_MODULE="dll"
50548             DLLIMP_SUFFIX="dll.a"
50549             EXEEXT=".exe"
50550             DLLPREFIX=""
50551             dlldir="$bindir"
50552         ;;
50553         *-pc-msdosdjgpp )
50554             EXEEXT=".exe"
50555             DLLPREFIX=""
50556             dlldir="$bindir"
50557         ;;
50558         *-pc-os2_emx | *-pc-os2-emx )
50559             SO_SUFFIX="dll"
50560             SO_SUFFIX_MODULE="dll"
50561             DLLIMP_SUFFIX=$OS2_LIBEXT
50562             EXEEXT=".exe"
50563             DLLPREFIX=""
50564             LIBPREFIX=""
50565             LIBEXT=".$OS2_LIBEXT"
50566             dlldir="$bindir"
50567         ;;
50568         *-*-darwin* )
50569             SO_SUFFIX="dylib"
50570             SO_SUFFIX_MODULE="bundle"
50571         ;;
50572     esac
50573
50574     if test "x$DLLIMP_SUFFIX" = "x" ; then
50575         DLLIMP_SUFFIX="$SO_SUFFIX"
50576     fi
50577
50578
50579
50580
50581
50582
50583
50584
50585
50586
50587
50588
50589         PIC_FLAG=""
50590     if test "x$GCC" = "xyes"; then
50591                 PIC_FLAG="-fPIC"
50592     fi
50593
50594         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50595     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50596     WINDOWS_IMPLIB=0
50597
50598     case "${BAKEFILE_HOST}" in
50599       *-hp-hpux* )
50600                 if test "x$GCC" != "xyes"; then
50601                         LDFLAGS="$LDFLAGS -L/usr/lib"
50602
50603             SHARED_LD_CC="${CC} -b -o"
50604             SHARED_LD_CXX="${CXX} -b -o"
50605             PIC_FLAG="+Z"
50606         fi
50607       ;;
50608
50609       *-*-linux* )
50610         if test "$INTELCC" = "yes"; then
50611             PIC_FLAG="-KPIC"
50612         elif test "x$SUNCXX" = "xyes"; then
50613             SHARED_LD_CC="${CC} -G -o"
50614             SHARED_LD_CXX="${CXX} -G -o"
50615             PIC_FLAG="-KPIC"
50616         fi
50617       ;;
50618
50619       *-*-solaris2* )
50620         if test "x$SUNCXX" = xyes ; then
50621             SHARED_LD_CC="${CC} -G -o"
50622             SHARED_LD_CXX="${CXX} -G -o"
50623             PIC_FLAG="-KPIC"
50624         fi
50625       ;;
50626
50627       *-*-darwin* )
50628
50629 D='$'
50630 cat <<EOF >shared-ld-sh
50631 #!/bin/sh
50632 #-----------------------------------------------------------------------------
50633 #-- Name:        distrib/mac/shared-ld-sh
50634 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50635 #-- Author:      Gilles Depeyrot
50636 #-- Copyright:   (c) 2002 Gilles Depeyrot
50637 #-- Licence:     any use permitted
50638 #-----------------------------------------------------------------------------
50639
50640 verbose=0
50641 args=""
50642 objects=""
50643 linking_flag="-dynamiclib"
50644 ldargs="-r -keep_private_externs -nostdlib"
50645
50646 while test ${D}# -gt 0; do
50647     case ${D}1 in
50648
50649        -v)
50650         verbose=1
50651         ;;
50652
50653        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50654         # collect these options and values
50655         args="${D}{args} ${D}1 ${D}2"
50656         shift
50657         ;;
50658
50659        -s|-Wl,*)
50660         # collect these load args
50661         ldargs="${D}{ldargs} ${D}1"
50662         ;;
50663
50664        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50665         # collect these options
50666         args="${D}{args} ${D}1"
50667         ;;
50668
50669        -dynamiclib|-bundle)
50670         linking_flag="${D}1"
50671         ;;
50672
50673        -*)
50674         echo "shared-ld: unhandled option '${D}1'"
50675         exit 1
50676         ;;
50677
50678         *.o | *.a | *.dylib)
50679         # collect object files
50680         objects="${D}{objects} ${D}1"
50681         ;;
50682
50683         *)
50684         echo "shared-ld: unhandled argument '${D}1'"
50685         exit 1
50686         ;;
50687
50688     esac
50689     shift
50690 done
50691
50692 status=0
50693
50694 #
50695 # Link one module containing all the others
50696 #
50697 if test ${D}{verbose} = 1; then
50698     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50699 fi
50700 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50701 status=${D}?
50702
50703 #
50704 # Link the shared library from the single module created, but only if the
50705 # previous command didn't fail:
50706 #
50707 if test ${D}{status} = 0; then
50708     if test ${D}{verbose} = 1; then
50709         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50710     fi
50711     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50712     status=${D}?
50713 fi
50714
50715 #
50716 # Remove intermediate module
50717 #
50718 rm -f master.${D}${D}.o
50719
50720 exit ${D}status
50721 EOF
50722
50723         chmod +x shared-ld-sh
50724
50725         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50726         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50727
50728
50729                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50730 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50731 if test "${bakefile_cv_gcc31+set}" = set; then
50732   echo $ECHO_N "(cached) $ECHO_C" >&6
50733 else
50734
50735            cat >conftest.$ac_ext <<_ACEOF
50736 /* confdefs.h.  */
50737 _ACEOF
50738 cat confdefs.h >>conftest.$ac_ext
50739 cat >>conftest.$ac_ext <<_ACEOF
50740 /* end confdefs.h.  */
50741
50742 int
50743 main ()
50744 {
50745
50746                    #if (__GNUC__ < 3) || \
50747                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50748                        This is old gcc
50749                    #endif
50750
50751   ;
50752   return 0;
50753 }
50754 _ACEOF
50755 rm -f conftest.$ac_objext
50756 if { (ac_try="$ac_compile"
50757 case "(($ac_try" in
50758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50759   *) ac_try_echo=$ac_try;;
50760 esac
50761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50762   (eval "$ac_compile") 2>conftest.er1
50763   ac_status=$?
50764   grep -v '^ *+' conftest.er1 >conftest.err
50765   rm -f conftest.er1
50766   cat conftest.err >&5
50767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50768   (exit $ac_status); } && {
50769          test -z "$ac_c_werror_flag" ||
50770          test ! -s conftest.err
50771        } && test -s conftest.$ac_objext; then
50772
50773                    bakefile_cv_gcc31=yes
50774
50775 else
50776   echo "$as_me: failed program was:" >&5
50777 sed 's/^/| /' conftest.$ac_ext >&5
50778
50779
50780                    bakefile_cv_gcc31=no
50781
50782
50783 fi
50784
50785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50786
50787 fi
50788 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50789 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50790         if test "$bakefile_cv_gcc31" = "no"; then
50791                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50792             SHARED_LD_CXX="$SHARED_LD_CC"
50793         else
50794                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50795             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50796         fi
50797
50798         if test "x$GCC" == "xyes"; then
50799             PIC_FLAG="-dynamic -fPIC"
50800         fi
50801         if test "x$XLCC" = "xyes"; then
50802             PIC_FLAG="-dynamic -DPIC"
50803         fi
50804       ;;
50805
50806       *-*-aix* )
50807         if test "x$GCC" = "xyes"; then
50808                                                             PIC_FLAG=""
50809
50810                                                                                     case "${BAKEFILE_HOST}" in
50811                 *-*-aix5* )
50812                     LD_EXPFULL="-Wl,-bexpfull"
50813                     ;;
50814             esac
50815
50816             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50817             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50818         else
50819                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50820 set dummy makeC++SharedLib; ac_word=$2
50821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50823 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50824   echo $ECHO_N "(cached) $ECHO_C" >&6
50825 else
50826   if test -n "$AIX_CXX_LD"; then
50827   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50828 else
50829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50830 for as_dir in $PATH
50831 do
50832   IFS=$as_save_IFS
50833   test -z "$as_dir" && as_dir=.
50834   for ac_exec_ext in '' $ac_executable_extensions; do
50835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50836     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50838     break 2
50839   fi
50840 done
50841 done
50842 IFS=$as_save_IFS
50843
50844   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50845 fi
50846 fi
50847 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50848 if test -n "$AIX_CXX_LD"; then
50849   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50850 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50851 else
50852   { echo "$as_me:$LINENO: result: no" >&5
50853 echo "${ECHO_T}no" >&6; }
50854 fi
50855
50856
50857             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50858             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50859         fi
50860       ;;
50861
50862       *-*-beos* )
50863                         SHARED_LD_CC="${LD} -nostart -o"
50864         SHARED_LD_CXX="${LD} -nostart -o"
50865       ;;
50866
50867       *-*-irix* )
50868                 if test "x$GCC" != "xyes"; then
50869             PIC_FLAG="-KPIC"
50870         fi
50871       ;;
50872
50873       *-*-cygwin* | *-*-mingw32* )
50874         PIC_FLAG=""
50875         SHARED_LD_CC="\$(CC) -shared -o"
50876         SHARED_LD_CXX="\$(CXX) -shared -o"
50877         WINDOWS_IMPLIB=1
50878       ;;
50879
50880       *-pc-os2_emx | *-pc-os2-emx )
50881         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50882         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50883         PIC_FLAG=""
50884
50885 D='$'
50886 cat <<EOF >dllar.sh
50887 #!/bin/sh
50888 #
50889 # dllar - a tool to build both a .dll and an .a file
50890 # from a set of object (.o) files for EMX/OS2.
50891 #
50892 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50893 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50894 #
50895 #  This script will accept a set of files on the command line.
50896 #  All the public symbols from the .o files will be exported into
50897 #  a .DEF file, then linker will be run (through gcc) against them to
50898 #  build a shared library consisting of all given .o files. All libraries
50899 #  (.a) will be first decompressed into component .o files then act as
50900 #  described above. You can optionally give a description (-d "description")
50901 #  which will be put into .DLL. To see the list of accepted options (as well
50902 #  as command-line format) simply run this program without options. The .DLL
50903 #  is built to be imported by name (there is no guarantee that new versions
50904 #  of the library you build will have same ordinals for same symbols).
50905 #
50906 #  dllar is free software; you can redistribute it and/or modify
50907 #  it under the terms of the GNU General Public License as published by
50908 #  the Free Software Foundation; either version 2, or (at your option)
50909 #  any later version.
50910 #
50911 #  dllar is distributed in the hope that it will be useful,
50912 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50913 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50914 #  GNU General Public License for more details.
50915 #
50916 #  You should have received a copy of the GNU General Public License
50917 #  along with dllar; see the file COPYING.  If not, write to the Free
50918 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50919 #  02111-1307, USA.
50920
50921 # To successfuly run this program you will need:
50922 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50923 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50924 #  - gcc
50925 #    (used to build the .dll)
50926 #  - emxexp
50927 #    (used to create .def file from .o files)
50928 #  - emximp
50929 #    (used to create .a file from .def file)
50930 #  - GNU text utilites (cat, sort, uniq)
50931 #    used to process emxexp output
50932 #  - GNU file utilities (mv, rm)
50933 #  - GNU sed
50934 #  - lxlite (optional, see flag below)
50935 #    (used for general .dll cleanup)
50936 #
50937
50938 flag_USE_LXLITE=1;
50939
50940 #
50941 # helper functions
50942 # basnam, variant of basename, which does _not_ remove the path, _iff_
50943 #                              second argument (suffix to remove) is given
50944 basnam(){
50945     case ${D}# in
50946     1)
50947         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50948         ;;
50949     2)
50950         echo ${D}1 | sed 's/'${D}2'${D}//'
50951         ;;
50952     *)
50953         echo "error in basnam ${D}*"
50954         exit 8
50955         ;;
50956     esac
50957 }
50958
50959 # Cleanup temporary files and output
50960 CleanUp() {
50961     cd ${D}curDir
50962     for i in ${D}inputFiles ; do
50963         case ${D}i in
50964         *!)
50965             rm -rf \`basnam ${D}i !\`
50966             ;;
50967         *)
50968             ;;
50969         esac
50970     done
50971
50972     # Kill result in case of failure as there is just to many stupid make/nmake
50973     # things out there which doesn't do this.
50974     if [ ${D}# -eq 0 ]; then
50975         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50976     fi
50977 }
50978
50979 # Print usage and exit script with rc=1.
50980 PrintHelp() {
50981  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50982  echo '       [-name-mangler-script script.sh]'
50983  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50984  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50985  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50986  echo '       [*.o] [*.a]'
50987  echo '*> "output_file" should have no extension.'
50988  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50989  echo '   The import library name is derived from this and is set to "name".a,'
50990  echo '   unless overridden by -import'
50991  echo '*> "importlib_name" should have no extension.'
50992  echo '   If it has the .o, or .a extension, it is automatically removed.'
50993  echo '   This name is used as the import library name and may be longer and'
50994  echo '   more descriptive than the DLL name which has to follow the old '
50995  echo '   8.3 convention of FAT.'
50996  echo '*> "script.sh may be given to override the output_file name by a'
50997  echo '   different name. It is mainly useful if the regular make process'
50998  echo '   of some package does not take into account OS/2 restriction of'
50999  echo '   DLL name lengths. It takes the importlib name as input and is'
51000  echo '   supposed to procude a shorter name as output. The script should'
51001  echo '   expect to get importlib_name without extension and should produce'
51002  echo '   a (max.) 8 letter name without extension.'
51003  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51004  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51005  echo '   These flags will be put at the start of GCC command line.'
51006  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51007  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51008  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51009  echo '   If the last character of a symbol is "*", all symbols beginning'
51010  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51011  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51012  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51013  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51014  echo '   C runtime DLLs.'
51015  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51016  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51017  echo '   unchanged to GCC at the end of command line.'
51018  echo '*> If you create a DLL from a library and you do not specify -o,'
51019  echo '   the basename for DLL and import library will be set to library name,'
51020  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51021  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51022  echo '   library will be renamed into gcc_s.a.'
51023  echo '--------'
51024  echo 'Example:'
51025  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51026  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51027  CleanUp
51028  exit 1
51029 }
51030
51031 # Execute a command.
51032 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51033 # @Uses    Whatever CleanUp() uses.
51034 doCommand() {
51035     echo "${D}*"
51036     eval ${D}*
51037     rcCmd=${D}?
51038
51039     if [ ${D}rcCmd -ne 0 ]; then
51040         echo "command failed, exit code="${D}rcCmd
51041         CleanUp
51042         exit ${D}rcCmd
51043     fi
51044 }
51045
51046 # main routine
51047 # setup globals
51048 cmdLine=${D}*
51049 outFile=""
51050 outimpFile=""
51051 inputFiles=""
51052 renameScript=""
51053 description=""
51054 CC=gcc.exe
51055 CFLAGS="-s -Zcrtdll"
51056 EXTRA_CFLAGS=""
51057 EXPORT_BY_ORDINALS=0
51058 exclude_symbols=""
51059 library_flags=""
51060 curDir=\`pwd\`
51061 curDirS=curDir
51062 case ${D}curDirS in
51063 */)
51064   ;;
51065 *)
51066   curDirS=${D}{curDirS}"/"
51067   ;;
51068 esac
51069 # Parse commandline
51070 libsToLink=0
51071 omfLinking=0
51072 while [ ${D}1 ]; do
51073     case ${D}1 in
51074     -ord*)
51075         EXPORT_BY_ORDINALS=1;
51076         ;;
51077     -o*)
51078         shift
51079         outFile=${D}1
51080         ;;
51081     -i*)
51082         shift
51083         outimpFile=${D}1
51084         ;;
51085     -name-mangler-script)
51086         shift
51087         renameScript=${D}1
51088         ;;
51089     -d*)
51090         shift
51091         description=${D}1
51092         ;;
51093     -f*)
51094         shift
51095         CFLAGS=${D}1
51096         ;;
51097     -c*)
51098         shift
51099         CC=${D}1
51100         ;;
51101     -h*)
51102         PrintHelp
51103         ;;
51104     -ex*)
51105         shift
51106         exclude_symbols=${D}{exclude_symbols}${D}1" "
51107         ;;
51108     -libf*)
51109         shift
51110         library_flags=${D}{library_flags}${D}1" "
51111         ;;
51112     -nocrt*)
51113         CFLAGS="-s"
51114         ;;
51115     -nolxl*)
51116         flag_USE_LXLITE=0
51117         ;;
51118     -* | /*)
51119         case ${D}1 in
51120         -L* | -l*)
51121             libsToLink=1
51122             ;;
51123         -Zomf)
51124             omfLinking=1
51125             ;;
51126         *)
51127             ;;
51128         esac
51129         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51130         ;;
51131     *.dll)
51132         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51133         if [ ${D}omfLinking -eq 1 ]; then
51134             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51135         else
51136             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51137         fi
51138         ;;
51139     *)
51140         found=0;
51141         if [ ${D}libsToLink -ne 0 ]; then
51142             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51143         else
51144             for file in ${D}1 ; do
51145                 if [ -f ${D}file ]; then
51146                     inputFiles="${D}{inputFiles} ${D}file"
51147                     found=1
51148                 fi
51149             done
51150             if [ ${D}found -eq 0 ]; then
51151                 echo "ERROR: No file(s) found: "${D}1
51152                 exit 8
51153             fi
51154         fi
51155       ;;
51156     esac
51157     shift
51158 done # iterate cmdline words
51159
51160 #
51161 if [ -z "${D}inputFiles" ]; then
51162     echo "dllar: no input files"
51163     PrintHelp
51164 fi
51165
51166 # Now extract all .o files from .a files
51167 newInputFiles=""
51168 for file in ${D}inputFiles ; do
51169     case ${D}file in
51170     *.a | *.lib)
51171         case ${D}file in
51172         *.a)
51173             suffix=".a"
51174             AR="ar"
51175             ;;
51176         *.lib)
51177             suffix=".lib"
51178             AR="emxomfar"
51179             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51180             ;;
51181         *)
51182             ;;
51183         esac
51184         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51185         mkdir ${D}dirname
51186         if [ ${D}? -ne 0 ]; then
51187             echo "Failed to create subdirectory ./${D}dirname"
51188             CleanUp
51189             exit 8;
51190         fi
51191         # Append '!' to indicate archive
51192         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51193         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51194         cd ${D}curDir
51195         found=0;
51196         for subfile in ${D}dirname/*.o* ; do
51197             if [ -f ${D}subfile ]; then
51198                 found=1
51199                 if [ -s ${D}subfile ]; then
51200                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51201                     newInputFiles="${D}newInputFiles ${D}subfile"
51202                 fi
51203             fi
51204         done
51205         if [ ${D}found -eq 0 ]; then
51206             echo "WARNING: there are no files in archive \\'${D}file\\'"
51207         fi
51208         ;;
51209     *)
51210         newInputFiles="${D}{newInputFiles} ${D}file"
51211         ;;
51212     esac
51213 done
51214 inputFiles="${D}newInputFiles"
51215
51216 # Output filename(s).
51217 do_backup=0;
51218 if [ -z ${D}outFile ]; then
51219     do_backup=1;
51220     set outFile ${D}inputFiles; outFile=${D}2
51221 fi
51222
51223 # If it is an archive, remove the '!' and the '_%' suffixes
51224 case ${D}outFile in
51225 *_%!)
51226     outFile=\`basnam ${D}outFile _%!\`
51227     ;;
51228 *)
51229     ;;
51230 esac
51231 case ${D}outFile in
51232 *.dll)
51233     outFile=\`basnam ${D}outFile .dll\`
51234     ;;
51235 *.DLL)
51236     outFile=\`basnam ${D}outFile .DLL\`
51237     ;;
51238 *.o)
51239     outFile=\`basnam ${D}outFile .o\`
51240     ;;
51241 *.obj)
51242     outFile=\`basnam ${D}outFile .obj\`
51243     ;;
51244 *.a)
51245     outFile=\`basnam ${D}outFile .a\`
51246     ;;
51247 *.lib)
51248     outFile=\`basnam ${D}outFile .lib\`
51249     ;;
51250 *)
51251     ;;
51252 esac
51253 case ${D}outimpFile in
51254 *.a)
51255     outimpFile=\`basnam ${D}outimpFile .a\`
51256     ;;
51257 *.lib)
51258     outimpFile=\`basnam ${D}outimpFile .lib\`
51259     ;;
51260 *)
51261     ;;
51262 esac
51263 if [ -z ${D}outimpFile ]; then
51264     outimpFile=${D}outFile
51265 fi
51266 defFile="${D}{outFile}.def"
51267 arcFile="${D}{outimpFile}.a"
51268 arcFile2="${D}{outimpFile}.lib"
51269
51270 #create ${D}dllFile as something matching 8.3 restrictions,
51271 if [ -z ${D}renameScript ] ; then
51272     dllFile="${D}outFile"
51273 else
51274     dllFile=\`${D}renameScript ${D}outimpFile\`
51275 fi
51276
51277 if [ ${D}do_backup -ne 0 ] ; then
51278     if [ -f ${D}arcFile ] ; then
51279         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51280     fi
51281     if [ -f ${D}arcFile2 ] ; then
51282         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51283     fi
51284 fi
51285
51286 # Extract public symbols from all the object files.
51287 tmpdefFile=${D}{defFile}_%
51288 rm -f ${D}tmpdefFile
51289 for file in ${D}inputFiles ; do
51290     case ${D}file in
51291     *!)
51292         ;;
51293     *)
51294         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51295         ;;
51296     esac
51297 done
51298
51299 # Create the def file.
51300 rm -f ${D}defFile
51301 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51302 dllFile="${D}{dllFile}.dll"
51303 if [ ! -z ${D}description ]; then
51304     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51305 fi
51306 echo "EXPORTS" >> ${D}defFile
51307
51308 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51309 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51310
51311 # Checks if the export is ok or not.
51312 for word in ${D}exclude_symbols; do
51313     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51314     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51315 done
51316
51317
51318 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51319     sed "=" < ${D}tmpdefFile | \\
51320     sed '
51321       N
51322       : loop
51323       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51324       t loop
51325     ' > ${D}{tmpdefFile}%
51326     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51327 else
51328     rm -f ${D}{tmpdefFile}%
51329 fi
51330 cat ${D}tmpdefFile >> ${D}defFile
51331 rm -f ${D}tmpdefFile
51332
51333 # Do linking, create implib, and apply lxlite.
51334 gccCmdl="";
51335 for file in ${D}inputFiles ; do
51336     case ${D}file in
51337     *!)
51338         ;;
51339     *)
51340         gccCmdl="${D}gccCmdl ${D}file"
51341         ;;
51342     esac
51343 done
51344 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51345 touch "${D}{outFile}.dll"
51346
51347 doCommand "emximp -o ${D}arcFile ${D}defFile"
51348 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51349     add_flags="";
51350     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51351         add_flags="-ynd"
51352     fi
51353     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51354 fi
51355 doCommand "emxomf -s -l ${D}arcFile"
51356
51357 # Successful exit.
51358 CleanUp 1
51359 exit 0
51360 EOF
51361
51362         chmod +x dllar.sh
51363       ;;
51364
51365       powerpc-apple-macos* | \
51366       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51367       *-*-mirbsd* | \
51368       *-*-sunos4* | \
51369       *-*-osf* | \
51370       *-*-dgux5* | \
51371       *-*-sysv5* | \
51372       *-pc-msdosdjgpp )
51373               ;;
51374
51375       *)
51376         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51377 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51378    { (exit 1); exit 1; }; }
51379     esac
51380
51381     if test "x$PIC_FLAG" != "x" ; then
51382         PIC_FLAG="$PIC_FLAG -DPIC"
51383     fi
51384
51385     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51386         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51387     fi
51388     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51389         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51390     fi
51391
51392
51393
51394
51395
51396
51397
51398
51399
51400     USE_SOVERSION=0
51401     USE_SOVERLINUX=0
51402     USE_SOVERSOLARIS=0
51403     USE_SOVERCYGWIN=0
51404     USE_SOSYMLINKS=0
51405     USE_MACVERSION=0
51406     SONAME_FLAG=
51407
51408     case "${BAKEFILE_HOST}" in
51409       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
51410         if test "x$SUNCXX" = "xyes"; then
51411             SONAME_FLAG="-h "
51412         else
51413             SONAME_FLAG="-Wl,-soname,"
51414         fi
51415         USE_SOVERSION=1
51416         USE_SOVERLINUX=1
51417         USE_SOSYMLINKS=1
51418       ;;
51419
51420       *-*-solaris2* )
51421         SONAME_FLAG="-h "
51422         USE_SOVERSION=1
51423         USE_SOVERSOLARIS=1
51424         USE_SOSYMLINKS=1
51425       ;;
51426
51427       *-*-darwin* )
51428         USE_MACVERSION=1
51429         USE_SOVERSION=1
51430         USE_SOSYMLINKS=1
51431       ;;
51432
51433       *-*-cygwin* )
51434         USE_SOVERSION=1
51435         USE_SOVERCYGWIN=1
51436       ;;
51437     esac
51438
51439
51440
51441
51442
51443
51444
51445
51446
51447
51448     # Check whether --enable-dependency-tracking was given.
51449 if test "${enable_dependency_tracking+set}" = set; then
51450   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51451 fi
51452
51453
51454     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51455 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51456
51457     BK_DEPS=""
51458     if test "x$bk_use_trackdeps" = "xno" ; then
51459         DEPS_TRACKING=0
51460         { echo "$as_me:$LINENO: result: disabled" >&5
51461 echo "${ECHO_T}disabled" >&6; }
51462     else
51463         DEPS_TRACKING=1
51464
51465         if test "x$GCC" = "xyes"; then
51466             DEPSMODE=gcc
51467             case "${BAKEFILE_HOST}" in
51468                 *-*-darwin* )
51469                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51470                 ;;
51471                 * )
51472                     DEPSFLAG="-MMD"
51473                 ;;
51474             esac
51475             { echo "$as_me:$LINENO: result: gcc" >&5
51476 echo "${ECHO_T}gcc" >&6; }
51477         elif test "x$MWCC" = "xyes"; then
51478             DEPSMODE=mwcc
51479             DEPSFLAG="-MM"
51480             { echo "$as_me:$LINENO: result: mwcc" >&5
51481 echo "${ECHO_T}mwcc" >&6; }
51482         elif test "x$SUNCC" = "xyes"; then
51483             DEPSMODE=unixcc
51484             DEPSFLAG="-xM1"
51485             { echo "$as_me:$LINENO: result: Sun cc" >&5
51486 echo "${ECHO_T}Sun cc" >&6; }
51487         elif test "x$SGICC" = "xyes"; then
51488             DEPSMODE=unixcc
51489             DEPSFLAG="-M"
51490             { echo "$as_me:$LINENO: result: SGI cc" >&5
51491 echo "${ECHO_T}SGI cc" >&6; }
51492         elif test "x$HPCC" = "xyes"; then
51493             DEPSMODE=unixcc
51494             DEPSFLAG="+make"
51495             { echo "$as_me:$LINENO: result: HP cc" >&5
51496 echo "${ECHO_T}HP cc" >&6; }
51497         elif test "x$COMPAQCC" = "xyes"; then
51498             DEPSMODE=gcc
51499             DEPSFLAG="-MD"
51500             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51501 echo "${ECHO_T}Compaq cc" >&6; }
51502         else
51503             DEPS_TRACKING=0
51504             { echo "$as_me:$LINENO: result: none" >&5
51505 echo "${ECHO_T}none" >&6; }
51506         fi
51507
51508         if test $DEPS_TRACKING = 1 ; then
51509
51510 D='$'
51511 cat <<EOF >bk-deps
51512 #!/bin/sh
51513
51514 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51515 # script. It is used to track C/C++ files dependencies in portable way.
51516 #
51517 # Permission is given to use this file in any way.
51518
51519 DEPSMODE=${DEPSMODE}
51520 DEPSDIR=.deps
51521 DEPSFLAG="${DEPSFLAG}"
51522
51523 mkdir -p ${D}DEPSDIR
51524
51525 if test ${D}DEPSMODE = gcc ; then
51526     ${D}* ${D}{DEPSFLAG}
51527     status=${D}?
51528     if test ${D}{status} != 0 ; then
51529         exit ${D}{status}
51530     fi
51531     # move created file to the location we want it in:
51532     while test ${D}# -gt 0; do
51533         case "${D}1" in
51534             -o )
51535                 shift
51536                 objfile=${D}1
51537             ;;
51538             -* )
51539             ;;
51540             * )
51541                 srcfile=${D}1
51542             ;;
51543         esac
51544         shift
51545     done
51546     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51547     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51548     if test -f ${D}depfile ; then
51549         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51550         rm -f ${D}depfile
51551     else
51552         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51553         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51554         if test ! -f ${D}depfile ; then
51555             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51556             depfile="${D}objfile.d"
51557         fi
51558         if test -f ${D}depfile ; then
51559             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51560             rm -f ${D}depfile
51561         fi
51562     fi
51563     exit 0
51564 elif test ${D}DEPSMODE = mwcc ; then
51565     ${D}* || exit ${D}?
51566     # Run mwcc again with -MM and redirect into the dep file we want
51567     # NOTE: We can't use shift here because we need ${D}* to be valid
51568     prevarg=
51569     for arg in ${D}* ; do
51570         if test "${D}prevarg" = "-o"; then
51571             objfile=${D}arg
51572         else
51573             case "${D}arg" in
51574                 -* )
51575                 ;;
51576                 * )
51577                     srcfile=${D}arg
51578                 ;;
51579             esac
51580         fi
51581         prevarg="${D}arg"
51582     done
51583     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51584     exit 0
51585 elif test ${D}DEPSMODE = unixcc; then
51586     ${D}* || exit ${D}?
51587     # Run compiler again with deps flag and redirect into the dep file.
51588     # It doesn't work if the '-o FILE' option is used, but without it the
51589     # dependency file will contain the wrong name for the object. So it is
51590     # removed from the command line, and the dep file is fixed with sed.
51591     cmd=""
51592     while test ${D}# -gt 0; do
51593         case "${D}1" in
51594             -o )
51595                 shift
51596                 objfile=${D}1
51597             ;;
51598             * )
51599                 eval arg${D}#=\\${D}1
51600                 cmd="${D}cmd \\${D}arg${D}#"
51601             ;;
51602         esac
51603         shift
51604     done
51605     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51606     exit 0
51607 else
51608     ${D}*
51609     exit ${D}?
51610 fi
51611 EOF
51612
51613             chmod +x bk-deps
51614                                     BK_DEPS="`pwd`/bk-deps"
51615         fi
51616     fi
51617
51618
51619
51620
51621
51622     case ${BAKEFILE_HOST} in
51623         *-*-cygwin* | *-*-mingw32* )
51624                         if test -n "$ac_tool_prefix"; then
51625   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51626 set dummy ${ac_tool_prefix}windres; ac_word=$2
51627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51629 if test "${ac_cv_prog_WINDRES+set}" = set; then
51630   echo $ECHO_N "(cached) $ECHO_C" >&6
51631 else
51632   if test -n "$WINDRES"; then
51633   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51634 else
51635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51636 for as_dir in $PATH
51637 do
51638   IFS=$as_save_IFS
51639   test -z "$as_dir" && as_dir=.
51640   for ac_exec_ext in '' $ac_executable_extensions; do
51641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51642     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51644     break 2
51645   fi
51646 done
51647 done
51648 IFS=$as_save_IFS
51649
51650 fi
51651 fi
51652 WINDRES=$ac_cv_prog_WINDRES
51653 if test -n "$WINDRES"; then
51654   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51655 echo "${ECHO_T}$WINDRES" >&6; }
51656 else
51657   { echo "$as_me:$LINENO: result: no" >&5
51658 echo "${ECHO_T}no" >&6; }
51659 fi
51660
51661
51662 fi
51663 if test -z "$ac_cv_prog_WINDRES"; then
51664   ac_ct_WINDRES=$WINDRES
51665   # Extract the first word of "windres", so it can be a program name with args.
51666 set dummy windres; ac_word=$2
51667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51669 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51670   echo $ECHO_N "(cached) $ECHO_C" >&6
51671 else
51672   if test -n "$ac_ct_WINDRES"; then
51673   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51674 else
51675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51676 for as_dir in $PATH
51677 do
51678   IFS=$as_save_IFS
51679   test -z "$as_dir" && as_dir=.
51680   for ac_exec_ext in '' $ac_executable_extensions; do
51681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51682     ac_cv_prog_ac_ct_WINDRES="windres"
51683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51684     break 2
51685   fi
51686 done
51687 done
51688 IFS=$as_save_IFS
51689
51690 fi
51691 fi
51692 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51693 if test -n "$ac_ct_WINDRES"; then
51694   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51695 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51696 else
51697   { echo "$as_me:$LINENO: result: no" >&5
51698 echo "${ECHO_T}no" >&6; }
51699 fi
51700
51701   if test "x$ac_ct_WINDRES" = x; then
51702     WINDRES=""
51703   else
51704     case $cross_compiling:$ac_tool_warned in
51705 yes:)
51706 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51707 whose name does not start with the host triplet.  If you think this
51708 configuration is useful to you, please write to autoconf@gnu.org." >&5
51709 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51710 whose name does not start with the host triplet.  If you think this
51711 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51712 ac_tool_warned=yes ;;
51713 esac
51714     WINDRES=$ac_ct_WINDRES
51715   fi
51716 else
51717   WINDRES="$ac_cv_prog_WINDRES"
51718 fi
51719
51720          ;;
51721
51722       *-*-darwin* | powerpc-apple-macos* )
51723             # Extract the first word of "Rez", so it can be a program name with args.
51724 set dummy Rez; ac_word=$2
51725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51727 if test "${ac_cv_prog_REZ+set}" = set; then
51728   echo $ECHO_N "(cached) $ECHO_C" >&6
51729 else
51730   if test -n "$REZ"; then
51731   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51732 else
51733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51734 for as_dir in $PATH
51735 do
51736   IFS=$as_save_IFS
51737   test -z "$as_dir" && as_dir=.
51738   for ac_exec_ext in '' $ac_executable_extensions; do
51739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51740     ac_cv_prog_REZ="Rez"
51741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51742     break 2
51743   fi
51744 done
51745 done
51746 IFS=$as_save_IFS
51747
51748   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51749 fi
51750 fi
51751 REZ=$ac_cv_prog_REZ
51752 if test -n "$REZ"; then
51753   { echo "$as_me:$LINENO: result: $REZ" >&5
51754 echo "${ECHO_T}$REZ" >&6; }
51755 else
51756   { echo "$as_me:$LINENO: result: no" >&5
51757 echo "${ECHO_T}no" >&6; }
51758 fi
51759
51760
51761             # Extract the first word of "SetFile", so it can be a program name with args.
51762 set dummy SetFile; ac_word=$2
51763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51765 if test "${ac_cv_prog_SETFILE+set}" = set; then
51766   echo $ECHO_N "(cached) $ECHO_C" >&6
51767 else
51768   if test -n "$SETFILE"; then
51769   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51770 else
51771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51772 for as_dir in $PATH
51773 do
51774   IFS=$as_save_IFS
51775   test -z "$as_dir" && as_dir=.
51776   for ac_exec_ext in '' $ac_executable_extensions; do
51777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51778     ac_cv_prog_SETFILE="SetFile"
51779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51780     break 2
51781   fi
51782 done
51783 done
51784 IFS=$as_save_IFS
51785
51786   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51787 fi
51788 fi
51789 SETFILE=$ac_cv_prog_SETFILE
51790 if test -n "$SETFILE"; then
51791   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51792 echo "${ECHO_T}$SETFILE" >&6; }
51793 else
51794   { echo "$as_me:$LINENO: result: no" >&5
51795 echo "${ECHO_T}no" >&6; }
51796 fi
51797
51798
51799         ;;
51800     esac
51801
51802
51803
51804
51805
51806
51807     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
51808
51809
51810 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
51811
51812
51813
51814     # Check whether --enable-precomp-headers was given.
51815 if test "${enable_precomp_headers+set}" = set; then
51816   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51817 fi
51818
51819
51820     GCC_PCH=0
51821     ICC_PCH=0
51822     USE_PCH=0
51823     BK_MAKE_PCH=""
51824
51825     case ${BAKEFILE_HOST} in
51826         *-*-cygwin* )
51827                                                 bk_use_pch="no"
51828             ;;
51829     esac
51830
51831     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51832         if test "x$GCC" = "xyes"; then
51833                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51834 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51835             cat >conftest.$ac_ext <<_ACEOF
51836 /* confdefs.h.  */
51837 _ACEOF
51838 cat confdefs.h >>conftest.$ac_ext
51839 cat >>conftest.$ac_ext <<_ACEOF
51840 /* end confdefs.h.  */
51841
51842 int
51843 main ()
51844 {
51845
51846                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51847                         There is no PCH support
51848                     #endif
51849                     #if (__GNUC__ < 3)
51850                         There is no PCH support
51851                     #endif
51852                     #if (__GNUC__ == 3) && \
51853                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51854                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51855                        ( defined(__INTEL_COMPILER) )
51856                         There is no PCH support
51857                     #endif
51858
51859   ;
51860   return 0;
51861 }
51862 _ACEOF
51863 rm -f conftest.$ac_objext
51864 if { (ac_try="$ac_compile"
51865 case "(($ac_try" in
51866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51867   *) ac_try_echo=$ac_try;;
51868 esac
51869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51870   (eval "$ac_compile") 2>conftest.er1
51871   ac_status=$?
51872   grep -v '^ *+' conftest.er1 >conftest.err
51873   rm -f conftest.er1
51874   cat conftest.err >&5
51875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51876   (exit $ac_status); } && {
51877          test -z "$ac_c_werror_flag" ||
51878          test ! -s conftest.err
51879        } && test -s conftest.$ac_objext; then
51880
51881                     { echo "$as_me:$LINENO: result: yes" >&5
51882 echo "${ECHO_T}yes" >&6; }
51883                     GCC_PCH=1
51884
51885 else
51886   echo "$as_me: failed program was:" >&5
51887 sed 's/^/| /' conftest.$ac_ext >&5
51888
51889
51890                     cat >conftest.$ac_ext <<_ACEOF
51891 /* confdefs.h.  */
51892 _ACEOF
51893 cat confdefs.h >>conftest.$ac_ext
51894 cat >>conftest.$ac_ext <<_ACEOF
51895 /* end confdefs.h.  */
51896
51897 int
51898 main ()
51899 {
51900
51901                             #if !defined(__INTEL_COMPILER) || \
51902                                 (__INTEL_COMPILER < 800)
51903                                 There is no PCH support
51904                             #endif
51905
51906   ;
51907   return 0;
51908 }
51909 _ACEOF
51910 rm -f conftest.$ac_objext
51911 if { (ac_try="$ac_compile"
51912 case "(($ac_try" in
51913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51914   *) ac_try_echo=$ac_try;;
51915 esac
51916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51917   (eval "$ac_compile") 2>conftest.er1
51918   ac_status=$?
51919   grep -v '^ *+' conftest.er1 >conftest.err
51920   rm -f conftest.er1
51921   cat conftest.err >&5
51922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51923   (exit $ac_status); } && {
51924          test -z "$ac_c_werror_flag" ||
51925          test ! -s conftest.err
51926        } && test -s conftest.$ac_objext; then
51927
51928                             { echo "$as_me:$LINENO: result: yes" >&5
51929 echo "${ECHO_T}yes" >&6; }
51930                             ICC_PCH=1
51931
51932 else
51933   echo "$as_me: failed program was:" >&5
51934 sed 's/^/| /' conftest.$ac_ext >&5
51935
51936
51937                             { echo "$as_me:$LINENO: result: no" >&5
51938 echo "${ECHO_T}no" >&6; }
51939
51940 fi
51941
51942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51943
51944 fi
51945
51946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51947             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51948                 USE_PCH=1
51949
51950 D='$'
51951 cat <<EOF >bk-make-pch
51952 #!/bin/sh
51953
51954 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51955 # script. It is used to generated precompiled headers.
51956 #
51957 # Permission is given to use this file in any way.
51958
51959 outfile="${D}{1}"
51960 header="${D}{2}"
51961 shift
51962 shift
51963
51964 compiler=""
51965 headerfile=""
51966
51967 while test ${D}{#} -gt 0; do
51968     add_to_cmdline=1
51969     case "${D}{1}" in
51970         -I* )
51971             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51972             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51973                 headerfile="${D}{incdir}/${D}{header}"
51974             fi
51975         ;;
51976         -use-pch|-use_pch )
51977             shift
51978             add_to_cmdline=0
51979         ;;
51980     esac
51981     if test ${D}add_to_cmdline = 1 ; then
51982         compiler="${D}{compiler} ${D}{1}"
51983     fi
51984     shift
51985 done
51986
51987 if test "x${D}{headerfile}" = "x" ; then
51988     echo "error: can't find header ${D}{header} in include paths" >&2
51989 else
51990     if test -f ${D}{outfile} ; then
51991         rm -f ${D}{outfile}
51992     else
51993         mkdir -p \`dirname ${D}{outfile}\`
51994     fi
51995     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51996     mkdir -p .deps
51997     if test "x${GCC_PCH}" = "x1" ; then
51998         # can do this because gcc is >= 3.4:
51999         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52000     elif test "x${ICC_PCH}" = "x1" ; then
52001         filename=pch_gen-${D}${D}
52002         file=${D}{filename}.c
52003         dfile=${D}{filename}.d
52004         cat > ${D}file <<EOT
52005 #include "${D}header"
52006 EOT
52007         # using -MF icc complains about differing command lines in creation/use
52008         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
52009           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52010           rm -f ${D}file ${D}dfile ${D}{filename}.o
52011     fi
52012     exit ${D}{?}
52013 fi
52014 EOF
52015
52016                 chmod +x bk-make-pch
52017                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52018             fi
52019         fi
52020     fi
52021
52022
52023
52024
52025
52026     COND_BUILD_DEBUG="#"
52027     if test "x$BUILD" = "xdebug" ; then
52028         COND_BUILD_DEBUG=""
52029     fi
52030
52031     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52032     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52033         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52034     fi
52035
52036     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52037     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52038         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52039     fi
52040
52041     COND_BUILD_DEBUG_UNICODE_0="#"
52042     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52043         COND_BUILD_DEBUG_UNICODE_0=""
52044     fi
52045
52046     COND_BUILD_DEBUG_UNICODE_1="#"
52047     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52048         COND_BUILD_DEBUG_UNICODE_1=""
52049     fi
52050
52051     COND_BUILD_RELEASE="#"
52052     if test "x$BUILD" = "xrelease" ; then
52053         COND_BUILD_RELEASE=""
52054     fi
52055
52056     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52057     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52058         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52059     fi
52060
52061     COND_BUILD_RELEASE_UNICODE_0="#"
52062     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52063         COND_BUILD_RELEASE_UNICODE_0=""
52064     fi
52065
52066     COND_BUILD_RELEASE_UNICODE_1="#"
52067     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52068         COND_BUILD_RELEASE_UNICODE_1=""
52069     fi
52070
52071     COND_DEBUG_FLAG_1="#"
52072     if test "x$DEBUG_FLAG" = "x1" ; then
52073         COND_DEBUG_FLAG_1=""
52074     fi
52075
52076     COND_DEBUG_INFO_0="#"
52077     if test "x$DEBUG_INFO" = "x0" ; then
52078         COND_DEBUG_INFO_0=""
52079     fi
52080
52081     COND_DEBUG_INFO_1="#"
52082     if test "x$DEBUG_INFO" = "x1" ; then
52083         COND_DEBUG_INFO_1=""
52084     fi
52085
52086     COND_DEPS_TRACKING_0="#"
52087     if test "x$DEPS_TRACKING" = "x0" ; then
52088         COND_DEPS_TRACKING_0=""
52089     fi
52090
52091     COND_DEPS_TRACKING_1="#"
52092     if test "x$DEPS_TRACKING" = "x1" ; then
52093         COND_DEPS_TRACKING_1=""
52094     fi
52095
52096     COND_GCC_PCH_1="#"
52097     if test "x$GCC_PCH" = "x1" ; then
52098         COND_GCC_PCH_1=""
52099     fi
52100
52101     COND_ICC_PCH_1="#"
52102     if test "x$ICC_PCH" = "x1" ; then
52103         COND_ICC_PCH_1=""
52104     fi
52105
52106     COND_MONOLITHIC_0="#"
52107     if test "x$MONOLITHIC" = "x0" ; then
52108         COND_MONOLITHIC_0=""
52109     fi
52110
52111     COND_MONOLITHIC_0_SHARED_0="#"
52112     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52113         COND_MONOLITHIC_0_SHARED_0=""
52114     fi
52115
52116     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52117     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52118         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52119     fi
52120
52121     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52122     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52123         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52124     fi
52125
52126     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52127     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52128         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52129     fi
52130
52131     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52132     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52133         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52134     fi
52135
52136     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
52137     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52138         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
52139     fi
52140
52141     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52142     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52143         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52144     fi
52145
52146     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
52147     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
52148         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
52149     fi
52150
52151     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52152     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52153         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52154     fi
52155
52156     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52157     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52158         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52159     fi
52160
52161     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52162     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52163         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52164     fi
52165
52166     COND_MONOLITHIC_0_SHARED_1="#"
52167     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52168         COND_MONOLITHIC_0_SHARED_1=""
52169     fi
52170
52171     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52172     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52173         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52174     fi
52175
52176     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52177     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52178         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52179     fi
52180
52181     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52182     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52183         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52184     fi
52185
52186     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52187     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52188         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52189     fi
52190
52191     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
52192     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52193         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
52194     fi
52195
52196     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52197     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52198         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52199     fi
52200
52201     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
52202     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
52203         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
52204     fi
52205
52206     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52207     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52208         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52209     fi
52210
52211     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52212     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52213         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52214     fi
52215
52216     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52217     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52218         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52219     fi
52220
52221     COND_MONOLITHIC_0_USE_AUI_1="#"
52222     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52223         COND_MONOLITHIC_0_USE_AUI_1=""
52224     fi
52225
52226     COND_MONOLITHIC_0_USE_GUI_1="#"
52227     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52228         COND_MONOLITHIC_0_USE_GUI_1=""
52229     fi
52230
52231     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52232     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52233         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52234     fi
52235
52236     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
52237     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52238         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
52239     fi
52240
52241     COND_MONOLITHIC_0_USE_HTML_1="#"
52242     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52243         COND_MONOLITHIC_0_USE_HTML_1=""
52244     fi
52245
52246     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52247     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52248         COND_MONOLITHIC_0_USE_MEDIA_1=""
52249     fi
52250
52251     COND_MONOLITHIC_0_USE_ODBC_1="#"
52252     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
52253         COND_MONOLITHIC_0_USE_ODBC_1=""
52254     fi
52255
52256     COND_MONOLITHIC_0_USE_QA_1="#"
52257     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52258         COND_MONOLITHIC_0_USE_QA_1=""
52259     fi
52260
52261     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52262     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52263         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52264     fi
52265
52266     COND_MONOLITHIC_0_USE_STC_1="#"
52267     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52268         COND_MONOLITHIC_0_USE_STC_1=""
52269     fi
52270
52271     COND_MONOLITHIC_0_USE_XRC_1="#"
52272     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52273         COND_MONOLITHIC_0_USE_XRC_1=""
52274     fi
52275
52276     COND_MONOLITHIC_1="#"
52277     if test "x$MONOLITHIC" = "x1" ; then
52278         COND_MONOLITHIC_1=""
52279     fi
52280
52281     COND_MONOLITHIC_1_SHARED_0="#"
52282     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52283         COND_MONOLITHIC_1_SHARED_0=""
52284     fi
52285
52286     COND_MONOLITHIC_1_SHARED_1="#"
52287     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52288         COND_MONOLITHIC_1_SHARED_1=""
52289     fi
52290
52291     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52292     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52293         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52294     fi
52295
52296     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52297     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52298         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52299     fi
52300
52301     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52302     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52303         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52304     fi
52305
52306     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52307     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52308         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52309     fi
52310
52311     COND_PLATFORM_MACOSX_1="#"
52312     if test "x$PLATFORM_MACOSX" = "x1" ; then
52313         COND_PLATFORM_MACOSX_1=""
52314     fi
52315
52316     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
52317     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
52318         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
52319     fi
52320
52321     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
52322     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
52323         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
52324     fi
52325
52326     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
52327     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
52328         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
52329     fi
52330
52331     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
52332     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
52333         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
52334     fi
52335
52336     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
52337     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52338         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
52339     fi
52340
52341     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
52342     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
52343         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
52344     fi
52345
52346     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
52347     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
52348         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
52349     fi
52350
52351     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52352     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52353         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52354     fi
52355
52356     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52357     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52358         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52359     fi
52360
52361     COND_PLATFORM_MACOS_1="#"
52362     if test "x$PLATFORM_MACOS" = "x1" ; then
52363         COND_PLATFORM_MACOS_1=""
52364     fi
52365
52366     COND_PLATFORM_MAC_1="#"
52367     if test "x$PLATFORM_MAC" = "x1" ; then
52368         COND_PLATFORM_MAC_1=""
52369     fi
52370
52371     COND_PLATFORM_MSDOS_0="#"
52372     if test "x$PLATFORM_MSDOS" = "x0" ; then
52373         COND_PLATFORM_MSDOS_0=""
52374     fi
52375
52376     COND_PLATFORM_MSDOS_1="#"
52377     if test "x$PLATFORM_MSDOS" = "x1" ; then
52378         COND_PLATFORM_MSDOS_1=""
52379     fi
52380
52381     COND_PLATFORM_OS2_1="#"
52382     if test "x$PLATFORM_OS2" = "x1" ; then
52383         COND_PLATFORM_OS2_1=""
52384     fi
52385
52386     COND_PLATFORM_UNIX_0="#"
52387     if test "x$PLATFORM_UNIX" = "x0" ; then
52388         COND_PLATFORM_UNIX_0=""
52389     fi
52390
52391     COND_PLATFORM_UNIX_1="#"
52392     if test "x$PLATFORM_UNIX" = "x1" ; then
52393         COND_PLATFORM_UNIX_1=""
52394     fi
52395
52396     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52397     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52398         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52399     fi
52400
52401     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52402     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52403         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52404     fi
52405
52406     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52407     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52408         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52409     fi
52410
52411     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52412     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52413         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52414     fi
52415
52416     COND_PLATFORM_WIN32_0="#"
52417     if test "x$PLATFORM_WIN32" = "x0" ; then
52418         COND_PLATFORM_WIN32_0=""
52419     fi
52420
52421     COND_PLATFORM_WIN32_1="#"
52422     if test "x$PLATFORM_WIN32" = "x1" ; then
52423         COND_PLATFORM_WIN32_1=""
52424     fi
52425
52426     COND_SHARED_0="#"
52427     if test "x$SHARED" = "x0" ; then
52428         COND_SHARED_0=""
52429     fi
52430
52431     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52432     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52433         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52434     fi
52435
52436     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52437     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52438         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52439     fi
52440
52441     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52442     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52443         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52444     fi
52445
52446     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52447     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52448         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52449     fi
52450
52451     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52452     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52453         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52454     fi
52455
52456     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52457     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52458         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52459     fi
52460
52461     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52462     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52463         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52464     fi
52465
52466     COND_SHARED_0_USE_STC_1="#"
52467     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52468         COND_SHARED_0_USE_STC_1=""
52469     fi
52470
52471     COND_SHARED_0_USE_XRC_1="#"
52472     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52473         COND_SHARED_0_USE_XRC_1=""
52474     fi
52475
52476     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52477     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52478         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52479     fi
52480
52481     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
52482     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
52483         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
52484     fi
52485
52486     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52487     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52488         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52489     fi
52490
52491     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52492     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52493         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52494     fi
52495
52496     COND_SHARED_1="#"
52497     if test "x$SHARED" = "x1" ; then
52498         COND_SHARED_1=""
52499     fi
52500
52501     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52502     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52503         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52504     fi
52505
52506     COND_SHARED_1_USE_XRC_1="#"
52507     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52508         COND_SHARED_1_USE_XRC_1=""
52509     fi
52510
52511     COND_TOOLKIT_="#"
52512     if test "x$TOOLKIT" = "x" ; then
52513         COND_TOOLKIT_=""
52514     fi
52515
52516     COND_TOOLKIT_COCOA="#"
52517     if test "x$TOOLKIT" = "xCOCOA" ; then
52518         COND_TOOLKIT_COCOA=""
52519     fi
52520
52521     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52522     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52523         COND_TOOLKIT_COCOA_USE_GUI_1=""
52524     fi
52525
52526     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52527     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52528         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52529     fi
52530
52531     COND_TOOLKIT_DFB="#"
52532     if test "x$TOOLKIT" = "xDFB" ; then
52533         COND_TOOLKIT_DFB=""
52534     fi
52535
52536     COND_TOOLKIT_DFB_USE_GUI_1="#"
52537     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52538         COND_TOOLKIT_DFB_USE_GUI_1=""
52539     fi
52540
52541     COND_TOOLKIT_GTK="#"
52542     if test "x$TOOLKIT" = "xGTK" ; then
52543         COND_TOOLKIT_GTK=""
52544     fi
52545
52546     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52547     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52548         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52549     fi
52550
52551     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52552     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52553         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52554     fi
52555
52556     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52557     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52558         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52559     fi
52560
52561     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52562     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52563         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52564     fi
52565
52566     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52567     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52568         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52569     fi
52570
52571     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52572     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52573         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52574     fi
52575
52576     COND_TOOLKIT_GTK_USE_GUI_1="#"
52577     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52578         COND_TOOLKIT_GTK_USE_GUI_1=""
52579     fi
52580
52581     COND_TOOLKIT_MAC="#"
52582     if test "x$TOOLKIT" = "xMAC" ; then
52583         COND_TOOLKIT_MAC=""
52584     fi
52585
52586     COND_TOOLKIT_MAC_USE_GUI_1="#"
52587     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52588         COND_TOOLKIT_MAC_USE_GUI_1=""
52589     fi
52590
52591     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52592     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52593         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52594     fi
52595
52596     COND_TOOLKIT_MGL="#"
52597     if test "x$TOOLKIT" = "xMGL" ; then
52598         COND_TOOLKIT_MGL=""
52599     fi
52600
52601     COND_TOOLKIT_MGL_USE_GUI_1="#"
52602     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52603         COND_TOOLKIT_MGL_USE_GUI_1=""
52604     fi
52605
52606     COND_TOOLKIT_MOTIF="#"
52607     if test "x$TOOLKIT" = "xMOTIF" ; then
52608         COND_TOOLKIT_MOTIF=""
52609     fi
52610
52611     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52612     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52613         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52614     fi
52615
52616     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52617     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52618         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52619     fi
52620
52621     COND_TOOLKIT_MSW="#"
52622     if test "x$TOOLKIT" = "xMSW" ; then
52623         COND_TOOLKIT_MSW=""
52624     fi
52625
52626     COND_TOOLKIT_MSW_USE_GUI_1="#"
52627     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52628         COND_TOOLKIT_MSW_USE_GUI_1=""
52629     fi
52630
52631     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52632     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52633         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52634     fi
52635
52636     COND_TOOLKIT_MSW_WXUNIV_0="#"
52637     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52638         COND_TOOLKIT_MSW_WXUNIV_0=""
52639     fi
52640
52641     COND_TOOLKIT_PM="#"
52642     if test "x$TOOLKIT" = "xPM" ; then
52643         COND_TOOLKIT_PM=""
52644     fi
52645
52646     COND_TOOLKIT_PM_USE_GUI_1="#"
52647     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52648         COND_TOOLKIT_PM_USE_GUI_1=""
52649     fi
52650
52651     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52652     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52653         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52654     fi
52655
52656     COND_TOOLKIT_WINCE="#"
52657     if test "x$TOOLKIT" = "xWINCE" ; then
52658         COND_TOOLKIT_WINCE=""
52659     fi
52660
52661     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52662     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52663         COND_TOOLKIT_WINCE_USE_GUI_1=""
52664     fi
52665
52666     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52667     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52668         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52669     fi
52670
52671     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52672     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52673         COND_TOOLKIT_WINCE_WXUNIV_0=""
52674     fi
52675
52676     COND_TOOLKIT_X11="#"
52677     if test "x$TOOLKIT" = "xX11" ; then
52678         COND_TOOLKIT_X11=""
52679     fi
52680
52681     COND_TOOLKIT_X11_USE_GUI_1="#"
52682     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52683         COND_TOOLKIT_X11_USE_GUI_1=""
52684     fi
52685
52686     COND_UNICODE_1="#"
52687     if test "x$UNICODE" = "x1" ; then
52688         COND_UNICODE_1=""
52689     fi
52690
52691     COND_USE_EXCEPTIONS_0="#"
52692     if test "x$USE_EXCEPTIONS" = "x0" ; then
52693         COND_USE_EXCEPTIONS_0=""
52694     fi
52695
52696     COND_USE_EXCEPTIONS_1="#"
52697     if test "x$USE_EXCEPTIONS" = "x1" ; then
52698         COND_USE_EXCEPTIONS_1=""
52699     fi
52700
52701     COND_USE_GUI_0="#"
52702     if test "x$USE_GUI" = "x0" ; then
52703         COND_USE_GUI_0=""
52704     fi
52705
52706     COND_USE_GUI_1="#"
52707     if test "x$USE_GUI" = "x1" ; then
52708         COND_USE_GUI_1=""
52709     fi
52710
52711     COND_USE_GUI_1_USE_OPENGL_1="#"
52712     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52713         COND_USE_GUI_1_USE_OPENGL_1=""
52714     fi
52715
52716     COND_USE_GUI_1_WXUNIV_0="#"
52717     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52718         COND_USE_GUI_1_WXUNIV_0=""
52719     fi
52720
52721     COND_USE_GUI_1_WXUNIV_1="#"
52722     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52723         COND_USE_GUI_1_WXUNIV_1=""
52724     fi
52725
52726     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52727     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52728         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52729     fi
52730
52731     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52732     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52733         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52734     fi
52735
52736     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52737     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52738         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52739     fi
52740
52741     COND_USE_ODBC_1="#"
52742     if test "x$USE_ODBC" = "x1" ; then
52743         COND_USE_ODBC_1=""
52744     fi
52745
52746     COND_USE_OPENGL_1="#"
52747     if test "x$USE_OPENGL" = "x1" ; then
52748         COND_USE_OPENGL_1=""
52749     fi
52750
52751     COND_USE_PCH_1="#"
52752     if test "x$USE_PCH" = "x1" ; then
52753         COND_USE_PCH_1=""
52754     fi
52755
52756     COND_USE_PLUGINS_0="#"
52757     if test "x$USE_PLUGINS" = "x0" ; then
52758         COND_USE_PLUGINS_0=""
52759     fi
52760
52761     COND_USE_RTTI_0="#"
52762     if test "x$USE_RTTI" = "x0" ; then
52763         COND_USE_RTTI_0=""
52764     fi
52765
52766     COND_USE_RTTI_1="#"
52767     if test "x$USE_RTTI" = "x1" ; then
52768         COND_USE_RTTI_1=""
52769     fi
52770
52771     COND_USE_SOSYMLINKS_1="#"
52772     if test "x$USE_SOSYMLINKS" = "x1" ; then
52773         COND_USE_SOSYMLINKS_1=""
52774     fi
52775
52776     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52777     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52778         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52779     fi
52780
52781     COND_USE_SOVERLINUX_1="#"
52782     if test "x$USE_SOVERLINUX" = "x1" ; then
52783         COND_USE_SOVERLINUX_1=""
52784     fi
52785
52786     COND_USE_SOVERSION_0="#"
52787     if test "x$USE_SOVERSION" = "x0" ; then
52788         COND_USE_SOVERSION_0=""
52789     fi
52790
52791     COND_USE_SOVERSOLARIS_1="#"
52792     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52793         COND_USE_SOVERSOLARIS_1=""
52794     fi
52795
52796     COND_USE_STC_1="#"
52797     if test "x$USE_STC" = "x1" ; then
52798         COND_USE_STC_1=""
52799     fi
52800
52801     COND_USE_THREADS_0="#"
52802     if test "x$USE_THREADS" = "x0" ; then
52803         COND_USE_THREADS_0=""
52804     fi
52805
52806     COND_USE_THREADS_1="#"
52807     if test "x$USE_THREADS" = "x1" ; then
52808         COND_USE_THREADS_1=""
52809     fi
52810
52811     COND_USE_XRC_1="#"
52812     if test "x$USE_XRC" = "x1" ; then
52813         COND_USE_XRC_1=""
52814     fi
52815
52816     COND_WINDOWS_IMPLIB_1="#"
52817     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52818         COND_WINDOWS_IMPLIB_1=""
52819     fi
52820
52821     COND_WITH_PLUGIN_SDL_1="#"
52822     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52823         COND_WITH_PLUGIN_SDL_1=""
52824     fi
52825
52826     COND_WXUNIV_0="#"
52827     if test "x$WXUNIV" = "x0" ; then
52828         COND_WXUNIV_0=""
52829     fi
52830
52831     COND_WXUNIV_1="#"
52832     if test "x$WXUNIV" = "x1" ; then
52833         COND_WXUNIV_1=""
52834     fi
52835
52836     COND_WXUSE_EXPAT_BUILTIN="#"
52837     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52838         COND_WXUSE_EXPAT_BUILTIN=""
52839     fi
52840
52841     COND_WXUSE_LIBJPEG_BUILTIN="#"
52842     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52843         COND_WXUSE_LIBJPEG_BUILTIN=""
52844     fi
52845
52846     COND_WXUSE_LIBPNG_BUILTIN="#"
52847     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52848         COND_WXUSE_LIBPNG_BUILTIN=""
52849     fi
52850
52851     COND_WXUSE_LIBTIFF_BUILTIN="#"
52852     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52853         COND_WXUSE_LIBTIFF_BUILTIN=""
52854     fi
52855
52856     COND_WXUSE_ODBC_BUILTIN="#"
52857     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
52858         COND_WXUSE_ODBC_BUILTIN=""
52859     fi
52860
52861     COND_WXUSE_REGEX_BUILTIN="#"
52862     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52863         COND_WXUSE_REGEX_BUILTIN=""
52864     fi
52865
52866     COND_WXUSE_ZLIB_BUILTIN="#"
52867     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52868         COND_WXUSE_ZLIB_BUILTIN=""
52869     fi
52870
52871
52872
52873     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52874         { { 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
52875 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;}
52876    { (exit 1); exit 1; }; }
52877     fi
52878
52879     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52880         { { 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
52881 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;}
52882    { (exit 1); exit 1; }; }
52883     fi
52884
52885
52886 case ${INSTALL} in
52887   /* ) # Absolute
52888      ;;
52889   ?:* ) # Drive letter, considered as absolute.
52890      ;;
52891   *)
52892      INSTALL=`pwd`/${INSTALL} ;;
52893 esac
52894
52895 if test "$wxUSE_GUI" = "yes"; then
52896
52897 if test "$wxUSE_MSW" = 1 ; then
52898     if test "x$WINDRES" = "x"; then
52899         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52900 echo "$as_me: error: Required windres program not found" >&2;}
52901    { (exit 1); exit 1; }; }
52902     fi
52903
52904     RESCOMP="$WINDRES"
52905 fi
52906
52907 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
52908             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52909     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52910
52911         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52912
52913     # Extract the first word of "DeRez", so it can be a program name with args.
52914 set dummy DeRez; ac_word=$2
52915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52917 if test "${ac_cv_prog_DEREZ+set}" = set; then
52918   echo $ECHO_N "(cached) $ECHO_C" >&6
52919 else
52920   if test -n "$DEREZ"; then
52921   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52922 else
52923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52924 for as_dir in $PATH
52925 do
52926   IFS=$as_save_IFS
52927   test -z "$as_dir" && as_dir=.
52928   for ac_exec_ext in '' $ac_executable_extensions; do
52929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52930     ac_cv_prog_DEREZ="DeRez"
52931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52932     break 2
52933   fi
52934 done
52935 done
52936 IFS=$as_save_IFS
52937
52938   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52939 fi
52940 fi
52941 DEREZ=$ac_cv_prog_DEREZ
52942 if test -n "$DEREZ"; then
52943   { echo "$as_me:$LINENO: result: $DEREZ" >&5
52944 echo "${ECHO_T}$DEREZ" >&6; }
52945 else
52946   { echo "$as_me:$LINENO: result: no" >&5
52947 echo "${ECHO_T}no" >&6; }
52948 fi
52949
52950
52951
52952     MACSETFILE="\$(SETFILE)"
52953
52954             if test "$wxUSE_MAC" = 1; then
52955         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
52956         RESCOMP="$REZ"
52957         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
52958     else
52959         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
52960         RESCOMP="cat /dev/null \| $REZ"
52961         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
52962     fi
52963
52964 else
52965         MACSETFILE="@true"
52966
52967     if test "$wxUSE_PM" = 1; then
52968         RESCOMP="emxbind"
52969         WXCONFIG_RESFLAGS="-ep"
52970
52971                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
52972     else
52973         POSTLINK_COMMAND="@true"
52974     fi
52975 fi
52976
52977 fi
52978
52979
52980 if test $GCC_PCH = 1
52981 then
52982     if test "$wx_cv_gcc_pch_bug" = yes; then
52983         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52984 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52985         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52986 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52987         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52988 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52989     fi
52990
52991     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
52992 fi
52993
52994
52995 if test "$wxUSE_MAC" = 1 ; then
52996     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52997         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52998         mv temp bk-deps
52999         chmod +x bk-deps
53000     fi
53001 fi
53002
53003 if test "$wxUSE_SHARED" = "yes"; then
53004                 case "${host}" in
53005       *-pc-os2_emx | *-pc-os2-emx )
53006         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53007         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53008         cp -p ${srcdir}/src/os2/dllnames.sh .
53009         cp -p ${srcdir}/src/os2/dllar.sh .
53010       ;;
53011     esac
53012 fi
53013 if test "$wxUSE_OMF" = "yes"; then
53014     case "${host}" in
53015       *-pc-os2_emx | *-pc-os2-emx )
53016         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53017         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53018         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53019       ;;
53020     esac
53021 fi
53022
53023 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53024
53025
53026 case "${host}" in
53027     *-*-solaris2* )
53028                         if "$GCC" = yes; then
53029             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53030             LIBS=`echo $LIBS | sed 's/-mt//'`
53031             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53032         fi
53033         ;;
53034
53035     *-*-linux* )
53036                         if test "x$SUNCXX" = xyes; then
53037             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53038             LIBS=`echo $LIBS | sed 's/-pthread//'`
53039             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53040         fi
53041         ;;
53042 esac
53043
53044 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53045 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53046
53047 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53048
53049
53050
53051
53052
53053
53054
53055
53056
53057
53058
53059
53060
53061
53062
53063
53064
53065
53066
53067
53068
53069
53070
53071
53072
53073
53074
53075
53076
53077
53078
53079
53080
53081
53082
53083
53084
53085
53086
53087
53088
53089
53090
53091
53092
53093
53094
53095
53096
53097
53098
53099
53100
53101
53102
53103
53104
53105
53106
53107
53108 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53109 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53110 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53111 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53112   echo $ECHO_N "(cached) $ECHO_C" >&6
53113 else
53114   cat >conftest.make <<\_ACEOF
53115 SHELL = /bin/sh
53116 all:
53117         @echo '@@@%%%=$(MAKE)=@@@%%%'
53118 _ACEOF
53119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53120 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53121   *@@@%%%=?*=@@@%%%*)
53122     eval ac_cv_prog_make_${ac_make}_set=yes;;
53123   *)
53124     eval ac_cv_prog_make_${ac_make}_set=no;;
53125 esac
53126 rm -f conftest.make
53127 fi
53128 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53129   { echo "$as_me:$LINENO: result: yes" >&5
53130 echo "${ECHO_T}yes" >&6; }
53131   SET_MAKE=
53132 else
53133   { echo "$as_me:$LINENO: result: no" >&5
53134 echo "${ECHO_T}no" >&6; }
53135   SET_MAKE="MAKE=${MAKE-make}"
53136 fi
53137
53138
53139
53140 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53141
53142
53143 if test "$USE_WIN32" = 1; then
53144     ac_config_commands="$ac_config_commands
53145             rcdefs.h
53146         "
53147
53148 fi
53149
53150 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53151
53152
53153 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53154
53155
53156 if test "$wx_cv_version_script" = "yes"; then
53157     ac_config_files="$ac_config_files version-script"
53158
53159 fi
53160 ac_config_files="$ac_config_files Makefile"
53161
53162
53163 ac_config_commands="$ac_config_commands wx-config"
53164
53165
53166
53167 if test "$wxWITH_SUBDIRS" != "no"; then
53168 if test "$wxUSE_GUI" = "yes"; then
53169     SUBDIRS="samples demos utils"
53170 else         SUBDIRS="samples utils"
53171 fi
53172
53173
53174
53175 # Check whether --with-cppunit-prefix was given.
53176 if test "${with_cppunit_prefix+set}" = set; then
53177   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53178 else
53179   cppunit_config_prefix=""
53180 fi
53181
53182
53183 # Check whether --with-cppunit-exec-prefix was given.
53184 if test "${with_cppunit_exec_prefix+set}" = set; then
53185   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53186 else
53187   cppunit_config_exec_prefix=""
53188 fi
53189
53190
53191   if test x$cppunit_config_exec_prefix != x ; then
53192      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53193      if test x${CPPUNIT_CONFIG+set} != xset ; then
53194         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53195      fi
53196   fi
53197   if test x$cppunit_config_prefix != x ; then
53198      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53199      if test x${CPPUNIT_CONFIG+set} != xset ; then
53200         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53201      fi
53202   fi
53203
53204   # Extract the first word of "cppunit-config", so it can be a program name with args.
53205 set dummy cppunit-config; ac_word=$2
53206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53208 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53209   echo $ECHO_N "(cached) $ECHO_C" >&6
53210 else
53211   case $CPPUNIT_CONFIG in
53212   [\\/]* | ?:[\\/]*)
53213   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53214   ;;
53215   *)
53216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53217 for as_dir in $PATH
53218 do
53219   IFS=$as_save_IFS
53220   test -z "$as_dir" && as_dir=.
53221   for ac_exec_ext in '' $ac_executable_extensions; do
53222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53223     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53225     break 2
53226   fi
53227 done
53228 done
53229 IFS=$as_save_IFS
53230
53231   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53232   ;;
53233 esac
53234 fi
53235 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53236 if test -n "$CPPUNIT_CONFIG"; then
53237   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53238 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53239 else
53240   { echo "$as_me:$LINENO: result: no" >&5
53241 echo "${ECHO_T}no" >&6; }
53242 fi
53243
53244
53245   cppunit_version_min=1.8.0
53246
53247   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53248 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53249   no_cppunit=""
53250   if test "$CPPUNIT_CONFIG" = "no" ; then
53251     { echo "$as_me:$LINENO: result: no" >&5
53252 echo "${ECHO_T}no" >&6; }
53253     no_cppunit=yes
53254   else
53255     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53256     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53257     cppunit_version=`$CPPUNIT_CONFIG --version`
53258
53259     cppunit_major_version=`echo $cppunit_version | \
53260            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53261     cppunit_minor_version=`echo $cppunit_version | \
53262            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53263     cppunit_micro_version=`echo $cppunit_version | \
53264            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53265
53266     cppunit_major_min=`echo $cppunit_version_min | \
53267            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53268     cppunit_minor_min=`echo $cppunit_version_min | \
53269            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53270     cppunit_micro_min=`echo $cppunit_version_min | \
53271            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53272
53273     cppunit_version_proper=`expr \
53274         $cppunit_major_version \> $cppunit_major_min \| \
53275         $cppunit_major_version \= $cppunit_major_min \& \
53276         $cppunit_minor_version \> $cppunit_minor_min \| \
53277         $cppunit_major_version \= $cppunit_major_min \& \
53278         $cppunit_minor_version \= $cppunit_minor_min \& \
53279         $cppunit_micro_version \>= $cppunit_micro_min `
53280
53281     if test "$cppunit_version_proper" = "1" ; then
53282       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53283 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53284     else
53285       { echo "$as_me:$LINENO: result: no" >&5
53286 echo "${ECHO_T}no" >&6; }
53287       no_cppunit=yes
53288     fi
53289   fi
53290
53291   if test "x$no_cppunit" = x ; then
53292      SUBDIRS="$SUBDIRS tests"
53293   else
53294      CPPUNIT_CFLAGS=""
53295      CPPUNIT_LIBS=""
53296      :
53297   fi
53298
53299
53300
53301
53302
53303 for subdir in `echo $SUBDIRS`; do
53304     if test -d ${srcdir}/${subdir} ; then
53305         if test "$wxUSE_GUI" = "yes"; then
53306             if test ${subdir} = "samples"; then
53307                                                 makefiles="samples/Makefile.in $makefiles"
53308                 for sample in `echo $SAMPLES_SUBDIRS`; do
53309                     if test -d $srcdir/samples/$sample; then
53310                         makefiles="samples/$sample/Makefile.in $makefiles"
53311                     fi
53312                 done
53313             else
53314                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
53315                 eval "disabled=\$$disabled_var"
53316                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53317                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53318             fi
53319         else                                     if test ${subdir} = "samples"; then
53320                 makefiles="samples/Makefile.in samples/console/Makefile.in"
53321             elif test ${subdir} = "utils"; then
53322                 makefiles=""
53323                 for util in HelpGen tex2rtf ; do
53324                     if test -d $srcdir/utils/$util ; then
53325                         makefiles="utils/$util/Makefile.in \
53326                                    utils/$util/src/Makefile.in \
53327                                    $makefiles"
53328                     fi
53329                 done
53330             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53331             fi
53332         fi
53333
53334         for mkin in $makefiles ; do
53335             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53336             ac_config_files="$ac_config_files $mk"
53337
53338         done
53339     fi
53340 done
53341 fi
53342 cat >confcache <<\_ACEOF
53343 # This file is a shell script that caches the results of configure
53344 # tests run on this system so they can be shared between configure
53345 # scripts and configure runs, see configure's option --config-cache.
53346 # It is not useful on other systems.  If it contains results you don't
53347 # want to keep, you may remove or edit it.
53348 #
53349 # config.status only pays attention to the cache file if you give it
53350 # the --recheck option to rerun configure.
53351 #
53352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53354 # following values.
53355
53356 _ACEOF
53357
53358 # The following way of writing the cache mishandles newlines in values,
53359 # but we know of no workaround that is simple, portable, and efficient.
53360 # So, we kill variables containing newlines.
53361 # Ultrix sh set writes to stderr and can't be redirected directly,
53362 # and sets the high bit in the cache file unless we assign to the vars.
53363 (
53364   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53365     eval ac_val=\$$ac_var
53366     case $ac_val in #(
53367     *${as_nl}*)
53368       case $ac_var in #(
53369       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53370 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53371       esac
53372       case $ac_var in #(
53373       _ | IFS | as_nl) ;; #(
53374       *) $as_unset $ac_var ;;
53375       esac ;;
53376     esac
53377   done
53378
53379   (set) 2>&1 |
53380     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53381     *${as_nl}ac_space=\ *)
53382       # `set' does not quote correctly, so add quotes (double-quote
53383       # substitution turns \\\\ into \\, and sed turns \\ into \).
53384       sed -n \
53385         "s/'/'\\\\''/g;
53386           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53387       ;; #(
53388     *)
53389       # `set' quotes correctly as required by POSIX, so do not add quotes.
53390       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53391       ;;
53392     esac |
53393     sort
53394 ) |
53395   sed '
53396      /^ac_cv_env_/b end
53397      t clear
53398      :clear
53399      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53400      t end
53401      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53402      :end' >>confcache
53403 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53404   if test -w "$cache_file"; then
53405     test "x$cache_file" != "x/dev/null" &&
53406       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53407 echo "$as_me: updating cache $cache_file" >&6;}
53408     cat confcache >$cache_file
53409   else
53410     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53411 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53412   fi
53413 fi
53414 rm -f confcache
53415
53416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53417 # Let make expand exec_prefix.
53418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53419
53420 DEFS=-DHAVE_CONFIG_H
53421
53422 ac_libobjs=
53423 ac_ltlibobjs=
53424 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53425   # 1. Remove the extension, and $U if already installed.
53426   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53427   ac_i=`echo "$ac_i" | sed "$ac_script"`
53428   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53429   #    will be set to the directory where LIBOBJS objects are built.
53430   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53431   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53432 done
53433 LIBOBJS=$ac_libobjs
53434
53435 LTLIBOBJS=$ac_ltlibobjs
53436
53437
53438
53439 : ${CONFIG_STATUS=./config.status}
53440 ac_clean_files_save=$ac_clean_files
53441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53444 cat >$CONFIG_STATUS <<_ACEOF
53445 #! $SHELL
53446 # Generated by $as_me.
53447 # Run this file to recreate the current configuration.
53448 # Compiler output produced by configure, useful for debugging
53449 # configure, is in config.log if it exists.
53450
53451 debug=false
53452 ac_cs_recheck=false
53453 ac_cs_silent=false
53454 SHELL=\${CONFIG_SHELL-$SHELL}
53455 _ACEOF
53456
53457 cat >>$CONFIG_STATUS <<\_ACEOF
53458 ## --------------------- ##
53459 ## M4sh Initialization.  ##
53460 ## --------------------- ##
53461
53462 # Be more Bourne compatible
53463 DUALCASE=1; export DUALCASE # for MKS sh
53464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53465   emulate sh
53466   NULLCMD=:
53467   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53468   # is contrary to our usage.  Disable this feature.
53469   alias -g '${1+"$@"}'='"$@"'
53470   setopt NO_GLOB_SUBST
53471 else
53472   case `(set -o) 2>/dev/null` in
53473   *posix*) set -o posix ;;
53474 esac
53475
53476 fi
53477
53478
53479
53480
53481 # PATH needs CR
53482 # Avoid depending upon Character Ranges.
53483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53486 as_cr_digits='0123456789'
53487 as_cr_alnum=$as_cr_Letters$as_cr_digits
53488
53489 # The user is always right.
53490 if test "${PATH_SEPARATOR+set}" != set; then
53491   echo "#! /bin/sh" >conf$$.sh
53492   echo  "exit 0"   >>conf$$.sh
53493   chmod +x conf$$.sh
53494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53495     PATH_SEPARATOR=';'
53496   else
53497     PATH_SEPARATOR=:
53498   fi
53499   rm -f conf$$.sh
53500 fi
53501
53502 # Support unset when possible.
53503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53504   as_unset=unset
53505 else
53506   as_unset=false
53507 fi
53508
53509
53510 # IFS
53511 # We need space, tab and new line, in precisely that order.  Quoting is
53512 # there to prevent editors from complaining about space-tab.
53513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53514 # splitting by setting IFS to empty value.)
53515 as_nl='
53516 '
53517 IFS=" ""        $as_nl"
53518
53519 # Find who we are.  Look in the path if we contain no directory separator.
53520 case $0 in
53521   *[\\/]* ) as_myself=$0 ;;
53522   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53523 for as_dir in $PATH
53524 do
53525   IFS=$as_save_IFS
53526   test -z "$as_dir" && as_dir=.
53527   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53528 done
53529 IFS=$as_save_IFS
53530
53531      ;;
53532 esac
53533 # We did not find ourselves, most probably we were run as `sh COMMAND'
53534 # in which case we are not to be found in the path.
53535 if test "x$as_myself" = x; then
53536   as_myself=$0
53537 fi
53538 if test ! -f "$as_myself"; then
53539   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53540   { (exit 1); exit 1; }
53541 fi
53542
53543 # Work around bugs in pre-3.0 UWIN ksh.
53544 for as_var in ENV MAIL MAILPATH
53545 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53546 done
53547 PS1='$ '
53548 PS2='> '
53549 PS4='+ '
53550
53551 # NLS nuisances.
53552 for as_var in \
53553   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53554   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53555   LC_TELEPHONE LC_TIME
53556 do
53557   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53558     eval $as_var=C; export $as_var
53559   else
53560     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53561   fi
53562 done
53563
53564 # Required to use basename.
53565 if expr a : '\(a\)' >/dev/null 2>&1 &&
53566    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53567   as_expr=expr
53568 else
53569   as_expr=false
53570 fi
53571
53572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53573   as_basename=basename
53574 else
53575   as_basename=false
53576 fi
53577
53578
53579 # Name of the executable.
53580 as_me=`$as_basename -- "$0" ||
53581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53582          X"$0" : 'X\(//\)$' \| \
53583          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53584 echo X/"$0" |
53585     sed '/^.*\/\([^/][^/]*\)\/*$/{
53586             s//\1/
53587             q
53588           }
53589           /^X\/\(\/\/\)$/{
53590             s//\1/
53591             q
53592           }
53593           /^X\/\(\/\).*/{
53594             s//\1/
53595             q
53596           }
53597           s/.*/./; q'`
53598
53599 # CDPATH.
53600 $as_unset CDPATH
53601
53602
53603
53604   as_lineno_1=$LINENO
53605   as_lineno_2=$LINENO
53606   test "x$as_lineno_1" != "x$as_lineno_2" &&
53607   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53608
53609   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53610   # uniformly replaced by the line number.  The first 'sed' inserts a
53611   # line-number line after each line using $LINENO; the second 'sed'
53612   # does the real work.  The second script uses 'N' to pair each
53613   # line-number line with the line containing $LINENO, and appends
53614   # trailing '-' during substitution so that $LINENO is not a special
53615   # case at line end.
53616   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53617   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53618   # E. McMahon (1931-1989) for sed's syntax.  :-)
53619   sed -n '
53620     p
53621     /[$]LINENO/=
53622   ' <$as_myself |
53623     sed '
53624       s/[$]LINENO.*/&-/
53625       t lineno
53626       b
53627       :lineno
53628       N
53629       :loop
53630       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53631       t loop
53632       s/-\n.*//
53633     ' >$as_me.lineno &&
53634   chmod +x "$as_me.lineno" ||
53635     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53636    { (exit 1); exit 1; }; }
53637
53638   # Don't try to exec as it changes $[0], causing all sort of problems
53639   # (the dirname of $[0] is not the place where we might find the
53640   # original and so on.  Autoconf is especially sensitive to this).
53641   . "./$as_me.lineno"
53642   # Exit status is that of the last command.
53643   exit
53644 }
53645
53646
53647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53648   as_dirname=dirname
53649 else
53650   as_dirname=false
53651 fi
53652
53653 ECHO_C= ECHO_N= ECHO_T=
53654 case `echo -n x` in
53655 -n*)
53656   case `echo 'x\c'` in
53657   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53658   *)   ECHO_C='\c';;
53659   esac;;
53660 *)
53661   ECHO_N='-n';;
53662 esac
53663
53664 if expr a : '\(a\)' >/dev/null 2>&1 &&
53665    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53666   as_expr=expr
53667 else
53668   as_expr=false
53669 fi
53670
53671 rm -f conf$$ conf$$.exe conf$$.file
53672 if test -d conf$$.dir; then
53673   rm -f conf$$.dir/conf$$.file
53674 else
53675   rm -f conf$$.dir
53676   mkdir conf$$.dir
53677 fi
53678 echo >conf$$.file
53679 if ln -s conf$$.file conf$$ 2>/dev/null; then
53680   as_ln_s='ln -s'
53681   # ... but there are two gotchas:
53682   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53683   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53684   # In both cases, we have to default to `cp -p'.
53685   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53686     as_ln_s='cp -p'
53687 elif ln conf$$.file conf$$ 2>/dev/null; then
53688   as_ln_s=ln
53689 else
53690   as_ln_s='cp -p'
53691 fi
53692 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53693 rmdir conf$$.dir 2>/dev/null
53694
53695 if mkdir -p . 2>/dev/null; then
53696   as_mkdir_p=:
53697 else
53698   test -d ./-p && rmdir ./-p
53699   as_mkdir_p=false
53700 fi
53701
53702 if test -x / >/dev/null 2>&1; then
53703   as_test_x='test -x'
53704 else
53705   if ls -dL / >/dev/null 2>&1; then
53706     as_ls_L_option=L
53707   else
53708     as_ls_L_option=
53709   fi
53710   as_test_x='
53711     eval sh -c '\''
53712       if test -d "$1"; then
53713         test -d "$1/.";
53714       else
53715         case $1 in
53716         -*)set "./$1";;
53717         esac;
53718         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53719         ???[sx]*):;;*)false;;esac;fi
53720     '\'' sh
53721   '
53722 fi
53723 as_executable_p=$as_test_x
53724
53725 # Sed expression to map a string onto a valid CPP name.
53726 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53727
53728 # Sed expression to map a string onto a valid variable name.
53729 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53730
53731
53732 exec 6>&1
53733
53734 # Save the log message, to keep $[0] and so on meaningful, and to
53735 # report actual input values of CONFIG_FILES etc. instead of their
53736 # values after options handling.
53737 ac_log="
53738 This file was extended by wxWidgets $as_me 2.9.0, which was
53739 generated by GNU Autoconf 2.61.  Invocation command line was
53740
53741   CONFIG_FILES    = $CONFIG_FILES
53742   CONFIG_HEADERS  = $CONFIG_HEADERS
53743   CONFIG_LINKS    = $CONFIG_LINKS
53744   CONFIG_COMMANDS = $CONFIG_COMMANDS
53745   $ $0 $@
53746
53747 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53748 "
53749
53750 _ACEOF
53751
53752 cat >>$CONFIG_STATUS <<_ACEOF
53753 # Files that config.status was made for.
53754 config_files="$ac_config_files"
53755 config_headers="$ac_config_headers"
53756 config_commands="$ac_config_commands"
53757
53758 _ACEOF
53759
53760 cat >>$CONFIG_STATUS <<\_ACEOF
53761 ac_cs_usage="\
53762 \`$as_me' instantiates files from templates according to the
53763 current configuration.
53764
53765 Usage: $0 [OPTIONS] [FILE]...
53766
53767   -h, --help       print this help, then exit
53768   -V, --version    print version number and configuration settings, then exit
53769   -q, --quiet      do not print progress messages
53770   -d, --debug      don't remove temporary files
53771       --recheck    update $as_me by reconfiguring in the same conditions
53772   --file=FILE[:TEMPLATE]
53773                    instantiate the configuration file FILE
53774   --header=FILE[:TEMPLATE]
53775                    instantiate the configuration header FILE
53776
53777 Configuration files:
53778 $config_files
53779
53780 Configuration headers:
53781 $config_headers
53782
53783 Configuration commands:
53784 $config_commands
53785
53786 Report bugs to <bug-autoconf@gnu.org>."
53787
53788 _ACEOF
53789 cat >>$CONFIG_STATUS <<_ACEOF
53790 ac_cs_version="\\
53791 wxWidgets config.status 2.9.0
53792 configured by $0, generated by GNU Autoconf 2.61,
53793   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53794
53795 Copyright (C) 2006 Free Software Foundation, Inc.
53796 This config.status script is free software; the Free Software Foundation
53797 gives unlimited permission to copy, distribute and modify it."
53798
53799 ac_pwd='$ac_pwd'
53800 srcdir='$srcdir'
53801 INSTALL='$INSTALL'
53802 _ACEOF
53803
53804 cat >>$CONFIG_STATUS <<\_ACEOF
53805 # If no file are specified by the user, then we need to provide default
53806 # value.  By we need to know if files were specified by the user.
53807 ac_need_defaults=:
53808 while test $# != 0
53809 do
53810   case $1 in
53811   --*=*)
53812     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53813     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53814     ac_shift=:
53815     ;;
53816   *)
53817     ac_option=$1
53818     ac_optarg=$2
53819     ac_shift=shift
53820     ;;
53821   esac
53822
53823   case $ac_option in
53824   # Handling of the options.
53825   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53826     ac_cs_recheck=: ;;
53827   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53828     echo "$ac_cs_version"; exit ;;
53829   --debug | --debu | --deb | --de | --d | -d )
53830     debug=: ;;
53831   --file | --fil | --fi | --f )
53832     $ac_shift
53833     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53834     ac_need_defaults=false;;
53835   --header | --heade | --head | --hea )
53836     $ac_shift
53837     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53838     ac_need_defaults=false;;
53839   --he | --h)
53840     # Conflict between --help and --header
53841     { echo "$as_me: error: ambiguous option: $1
53842 Try \`$0 --help' for more information." >&2
53843    { (exit 1); exit 1; }; };;
53844   --help | --hel | -h )
53845     echo "$ac_cs_usage"; exit ;;
53846   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53847   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53848     ac_cs_silent=: ;;
53849
53850   # This is an error.
53851   -*) { echo "$as_me: error: unrecognized option: $1
53852 Try \`$0 --help' for more information." >&2
53853    { (exit 1); exit 1; }; } ;;
53854
53855   *) ac_config_targets="$ac_config_targets $1"
53856      ac_need_defaults=false ;;
53857
53858   esac
53859   shift
53860 done
53861
53862 ac_configure_extra_args=
53863
53864 if $ac_cs_silent; then
53865   exec 6>/dev/null
53866   ac_configure_extra_args="$ac_configure_extra_args --silent"
53867 fi
53868
53869 _ACEOF
53870 cat >>$CONFIG_STATUS <<_ACEOF
53871 if \$ac_cs_recheck; then
53872   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53873   CONFIG_SHELL=$SHELL
53874   export CONFIG_SHELL
53875   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53876 fi
53877
53878 _ACEOF
53879 cat >>$CONFIG_STATUS <<\_ACEOF
53880 exec 5>>config.log
53881 {
53882   echo
53883   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53884 ## Running $as_me. ##
53885 _ASBOX
53886   echo "$ac_log"
53887 } >&5
53888
53889 _ACEOF
53890 cat >>$CONFIG_STATUS <<_ACEOF
53891 #
53892 # INIT-COMMANDS
53893 #
53894
53895             CPP="$CPP"
53896             infile="$srcdir/include/wx/msw/genrcdefs.h"
53897             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53898
53899
53900  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53901  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53902  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53903                      LN_S="${LN_S}"
53904
53905
53906 _ACEOF
53907
53908 cat >>$CONFIG_STATUS <<\_ACEOF
53909
53910 # Handling of arguments.
53911 for ac_config_target in $ac_config_targets
53912 do
53913   case $ac_config_target in
53914     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53915     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53916     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53917     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53918     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53919     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53920     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53921     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53922
53923   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53924 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53925    { (exit 1); exit 1; }; };;
53926   esac
53927 done
53928
53929
53930 # If the user did not use the arguments to specify the items to instantiate,
53931 # then the envvar interface is used.  Set only those that are not.
53932 # We use the long form for the default assignment because of an extremely
53933 # bizarre bug on SunOS 4.1.3.
53934 if $ac_need_defaults; then
53935   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53936   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53937   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53938 fi
53939
53940 # Have a temporary directory for convenience.  Make it in the build tree
53941 # simply because there is no reason against having it here, and in addition,
53942 # creating and moving files from /tmp can sometimes cause problems.
53943 # Hook for its removal unless debugging.
53944 # Note that there is a small window in which the directory will not be cleaned:
53945 # after its creation but before its name has been assigned to `$tmp'.
53946 $debug ||
53947 {
53948   tmp=
53949   trap 'exit_status=$?
53950   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53951 ' 0
53952   trap '{ (exit 1); exit 1; }' 1 2 13 15
53953 }
53954 # Create a (secure) tmp directory for tmp files.
53955
53956 {
53957   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53958   test -n "$tmp" && test -d "$tmp"
53959 }  ||
53960 {
53961   tmp=./conf$$-$RANDOM
53962   (umask 077 && mkdir "$tmp")
53963 } ||
53964 {
53965    echo "$me: cannot create a temporary directory in ." >&2
53966    { (exit 1); exit 1; }
53967 }
53968
53969 #
53970 # Set up the sed scripts for CONFIG_FILES section.
53971 #
53972
53973 # No need to generate the scripts if there are no CONFIG_FILES.
53974 # This happens for instance when ./config.status config.h
53975 if test -n "$CONFIG_FILES"; then
53976
53977 _ACEOF
53978
53979
53980
53981 ac_delim='%!_!# '
53982 for ac_last_try in false false false false false :; do
53983   cat >conf$$subs.sed <<_ACEOF
53984 SHELL!$SHELL$ac_delim
53985 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53986 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53987 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53988 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53989 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53990 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53991 exec_prefix!$exec_prefix$ac_delim
53992 prefix!$prefix$ac_delim
53993 program_transform_name!$program_transform_name$ac_delim
53994 bindir!$bindir$ac_delim
53995 sbindir!$sbindir$ac_delim
53996 libexecdir!$libexecdir$ac_delim
53997 datarootdir!$datarootdir$ac_delim
53998 datadir!$datadir$ac_delim
53999 sysconfdir!$sysconfdir$ac_delim
54000 sharedstatedir!$sharedstatedir$ac_delim
54001 localstatedir!$localstatedir$ac_delim
54002 includedir!$includedir$ac_delim
54003 oldincludedir!$oldincludedir$ac_delim
54004 docdir!$docdir$ac_delim
54005 infodir!$infodir$ac_delim
54006 htmldir!$htmldir$ac_delim
54007 dvidir!$dvidir$ac_delim
54008 pdfdir!$pdfdir$ac_delim
54009 psdir!$psdir$ac_delim
54010 libdir!$libdir$ac_delim
54011 localedir!$localedir$ac_delim
54012 mandir!$mandir$ac_delim
54013 DEFS!$DEFS$ac_delim
54014 ECHO_C!$ECHO_C$ac_delim
54015 ECHO_N!$ECHO_N$ac_delim
54016 ECHO_T!$ECHO_T$ac_delim
54017 LIBS!$LIBS$ac_delim
54018 build_alias!$build_alias$ac_delim
54019 host_alias!$host_alias$ac_delim
54020 target_alias!$target_alias$ac_delim
54021 build!$build$ac_delim
54022 build_cpu!$build_cpu$ac_delim
54023 build_vendor!$build_vendor$ac_delim
54024 build_os!$build_os$ac_delim
54025 host!$host$ac_delim
54026 host_cpu!$host_cpu$ac_delim
54027 host_vendor!$host_vendor$ac_delim
54028 host_os!$host_os$ac_delim
54029 target!$target$ac_delim
54030 target_cpu!$target_cpu$ac_delim
54031 target_vendor!$target_vendor$ac_delim
54032 target_os!$target_os$ac_delim
54033 wx_top_builddir!$wx_top_builddir$ac_delim
54034 CC!$CC$ac_delim
54035 CFLAGS!$CFLAGS$ac_delim
54036 LDFLAGS!$LDFLAGS$ac_delim
54037 CPPFLAGS!$CPPFLAGS$ac_delim
54038 ac_ct_CC!$ac_ct_CC$ac_delim
54039 EXEEXT!$EXEEXT$ac_delim
54040 OBJEXT!$OBJEXT$ac_delim
54041 CPP!$CPP$ac_delim
54042 GREP!$GREP$ac_delim
54043 EGREP!$EGREP$ac_delim
54044 CXX!$CXX$ac_delim
54045 CXXFLAGS!$CXXFLAGS$ac_delim
54046 ac_ct_CXX!$ac_ct_CXX$ac_delim
54047 AR!$AR$ac_delim
54048 subdirs!$subdirs$ac_delim
54049 PKG_CONFIG!$PKG_CONFIG$ac_delim
54050 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54051 GTK_LIBS!$GTK_LIBS$ac_delim
54052 GTK_CONFIG!$GTK_CONFIG$ac_delim
54053 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54054 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54055 XMKMF!$XMKMF$ac_delim
54056 X_CFLAGS!$X_CFLAGS$ac_delim
54057 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54058 X_LIBS!$X_LIBS$ac_delim
54059 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54060 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54061 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54062 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54063 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54064 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54065 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54066 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54067 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54068 LIBICONV!$LIBICONV$ac_delim
54069 SDL_CONFIG!$SDL_CONFIG$ac_delim
54070 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54071 SDL_LIBS!$SDL_LIBS$ac_delim
54072 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
54073 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
54074 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54075 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54076 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54077 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54078 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54079 HILDON_LIBS!$HILDON_LIBS$ac_delim
54080 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54081 _ACEOF
54082
54083   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54084     break
54085   elif $ac_last_try; then
54086     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54087 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54088    { (exit 1); exit 1; }; }
54089   else
54090     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54091   fi
54092 done
54093
54094 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54095 if test -n "$ac_eof"; then
54096   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54097   ac_eof=`expr $ac_eof + 1`
54098 fi
54099
54100 cat >>$CONFIG_STATUS <<_ACEOF
54101 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54103 _ACEOF
54104 sed '
54105 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54106 s/^/s,@/; s/!/@,|#_!!_#|/
54107 :n
54108 t n
54109 s/'"$ac_delim"'$/,g/; t
54110 s/$/\\/; p
54111 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54112 ' >>$CONFIG_STATUS <conf$$subs.sed
54113 rm -f conf$$subs.sed
54114 cat >>$CONFIG_STATUS <<_ACEOF
54115 CEOF$ac_eof
54116 _ACEOF
54117
54118
54119 ac_delim='%!_!# '
54120 for ac_last_try in false false false false false :; do
54121   cat >conf$$subs.sed <<_ACEOF
54122 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54123 GST_CFLAGS!$GST_CFLAGS$ac_delim
54124 GST_LIBS!$GST_LIBS$ac_delim
54125 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54126 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54127 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54128 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54129 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54130 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54131 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54132 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
54133 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54134 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54135 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54136 VENDOR!$VENDOR$ac_delim
54137 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54138 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54139 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54140 WXUNIV!$WXUNIV$ac_delim
54141 MONOLITHIC!$MONOLITHIC$ac_delim
54142 USE_PLUGINS!$USE_PLUGINS$ac_delim
54143 CXXWARNINGS!$CXXWARNINGS$ac_delim
54144 EXTRALIBS!$EXTRALIBS$ac_delim
54145 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54146 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54147 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
54148 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54149 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54150 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54151 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54152 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
54153 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54154 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54155 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54156 UNICODE!$UNICODE$ac_delim
54157 BUILD!$BUILD$ac_delim
54158 DEBUG_INFO!$DEBUG_INFO$ac_delim
54159 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54160 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54161 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54162 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54163 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
54164 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54165 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54166 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54167 RANLIB!$RANLIB$ac_delim
54168 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54169 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54170 INSTALL_DATA!$INSTALL_DATA$ac_delim
54171 LN_S!$LN_S$ac_delim
54172 SET_MAKE!$SET_MAKE$ac_delim
54173 MAKE_SET!$MAKE_SET$ac_delim
54174 AROPTIONS!$AROPTIONS$ac_delim
54175 STRIP!$STRIP$ac_delim
54176 NM!$NM$ac_delim
54177 INSTALL_DIR!$INSTALL_DIR$ac_delim
54178 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54179 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54180 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54181 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54182 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54183 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54184 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54185 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54186 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54187 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54188 SO_SUFFIX!$SO_SUFFIX$ac_delim
54189 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54190 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54191 LIBPREFIX!$LIBPREFIX$ac_delim
54192 LIBEXT!$LIBEXT$ac_delim
54193 DLLPREFIX!$DLLPREFIX$ac_delim
54194 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54195 dlldir!$dlldir$ac_delim
54196 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54197 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54198 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54199 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54200 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54201 PIC_FLAG!$PIC_FLAG$ac_delim
54202 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54203 USE_SOVERSION!$USE_SOVERSION$ac_delim
54204 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54205 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54206 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54207 USE_MACVERSION!$USE_MACVERSION$ac_delim
54208 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
54209 SONAME_FLAG!$SONAME_FLAG$ac_delim
54210 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54211 BK_DEPS!$BK_DEPS$ac_delim
54212 WINDRES!$WINDRES$ac_delim
54213 REZ!$REZ$ac_delim
54214 SETFILE!$SETFILE$ac_delim
54215 GCC_PCH!$GCC_PCH$ac_delim
54216 ICC_PCH!$ICC_PCH$ac_delim
54217 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54218 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54219 _ACEOF
54220
54221   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54222     break
54223   elif $ac_last_try; then
54224     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54225 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54226    { (exit 1); exit 1; }; }
54227   else
54228     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54229   fi
54230 done
54231
54232 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54233 if test -n "$ac_eof"; then
54234   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54235   ac_eof=`expr $ac_eof + 1`
54236 fi
54237
54238 cat >>$CONFIG_STATUS <<_ACEOF
54239 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54241 _ACEOF
54242 sed '
54243 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54244 s/^/s,@/; s/!/@,|#_!!_#|/
54245 :n
54246 t n
54247 s/'"$ac_delim"'$/,g/; t
54248 s/$/\\/; p
54249 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54250 ' >>$CONFIG_STATUS <conf$$subs.sed
54251 rm -f conf$$subs.sed
54252 cat >>$CONFIG_STATUS <<_ACEOF
54253 CEOF$ac_eof
54254 _ACEOF
54255
54256
54257 ac_delim='%!_!# '
54258 for ac_last_try in false false false false false :; do
54259   cat >conf$$subs.sed <<_ACEOF
54260 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54261 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54262 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54263 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54264 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54265 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54266 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54267 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54268 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54269 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54270 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54271 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54272 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54273 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54274 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54275 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54276 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54277 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54278 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54279 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54280 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54281 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
54282 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54283 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
54284 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54285 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54286 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54287 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54288 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54289 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54290 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54291 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54292 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
54293 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54294 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
54295 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54296 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54297 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54298 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54299 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54300 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54301 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
54302 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54303 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54304 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
54305 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54306 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54307 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54308 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54309 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54310 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54311 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54312 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54313 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54314 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54315 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54316 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54317 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
54318 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
54319 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
54320 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
54321 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
54322 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
54323 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
54324 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54325 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54326 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54327 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54328 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54329 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54330 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54331 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54332 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54333 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54334 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54335 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54336 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54337 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54338 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54339 COND_SHARED_0!$COND_SHARED_0$ac_delim
54340 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54341 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54342 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54343 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54344 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54345 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54346 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54347 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54348 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
54349 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
54350 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
54351 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
54352 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
54353 COND_SHARED_1!$COND_SHARED_1$ac_delim
54354 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54355 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
54356 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54357 _ACEOF
54358
54359   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54360     break
54361   elif $ac_last_try; then
54362     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54363 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54364    { (exit 1); exit 1; }; }
54365   else
54366     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54367   fi
54368 done
54369
54370 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54371 if test -n "$ac_eof"; then
54372   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54373   ac_eof=`expr $ac_eof + 1`
54374 fi
54375
54376 cat >>$CONFIG_STATUS <<_ACEOF
54377 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54378 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54379 _ACEOF
54380 sed '
54381 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54382 s/^/s,@/; s/!/@,|#_!!_#|/
54383 :n
54384 t n
54385 s/'"$ac_delim"'$/,g/; t
54386 s/$/\\/; p
54387 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54388 ' >>$CONFIG_STATUS <conf$$subs.sed
54389 rm -f conf$$subs.sed
54390 cat >>$CONFIG_STATUS <<_ACEOF
54391 CEOF$ac_eof
54392 _ACEOF
54393
54394
54395 ac_delim='%!_!# '
54396 for ac_last_try in false false false false false :; do
54397   cat >conf$$subs.sed <<_ACEOF
54398 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54399 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54400 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54401 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54402 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54403 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54404 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54405 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54406 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54407 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54408 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54409 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54410 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54411 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54412 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
54413 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
54414 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54415 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54416 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54417 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54418 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54419 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54420 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54421 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54422 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54423 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54424 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54425 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54426 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54427 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54428 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54429 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54430 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54431 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54432 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54433 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54434 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54435 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54436 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54437 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54438 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54439 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54440 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54441 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54442 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54443 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
54444 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54445 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54446 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54447 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54448 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54449 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
54450 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54451 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54452 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54453 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54454 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54455 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54456 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54457 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54458 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54459 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54460 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54461 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54462 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54463 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54464 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54465 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54466 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
54467 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54468 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54469 DEREZ!$DEREZ$ac_delim
54470 SHARED!$SHARED$ac_delim
54471 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54472 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54473 USE_GUI!$USE_GUI$ac_delim
54474 AFMINSTALL!$AFMINSTALL$ac_delim
54475 WIN32INSTALL!$WIN32INSTALL$ac_delim
54476 TOOLKIT!$TOOLKIT$ac_delim
54477 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54478 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54479 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54480 cross_compiling!$cross_compiling$ac_delim
54481 WIDGET_SET!$WIDGET_SET$ac_delim
54482 WX_RELEASE!$WX_RELEASE$ac_delim
54483 WX_VERSION!$WX_VERSION$ac_delim
54484 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54485 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54486 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
54487 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54488 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54489 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54490 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54491 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54492 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54493 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54494 GUIDIST!$GUIDIST$ac_delim
54495 _ACEOF
54496
54497   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54498     break
54499   elif $ac_last_try; then
54500     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54501 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54502    { (exit 1); exit 1; }; }
54503   else
54504     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54505   fi
54506 done
54507
54508 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54509 if test -n "$ac_eof"; then
54510   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54511   ac_eof=`expr $ac_eof + 1`
54512 fi
54513
54514 cat >>$CONFIG_STATUS <<_ACEOF
54515 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54517 _ACEOF
54518 sed '
54519 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54520 s/^/s,@/; s/!/@,|#_!!_#|/
54521 :n
54522 t n
54523 s/'"$ac_delim"'$/,g/; t
54524 s/$/\\/; p
54525 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54526 ' >>$CONFIG_STATUS <conf$$subs.sed
54527 rm -f conf$$subs.sed
54528 cat >>$CONFIG_STATUS <<_ACEOF
54529 CEOF$ac_eof
54530 _ACEOF
54531
54532
54533 ac_delim='%!_!# '
54534 for ac_last_try in false false false false false :; do
54535   cat >conf$$subs.sed <<_ACEOF
54536 DISTDIR!$DISTDIR$ac_delim
54537 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54538 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54539 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54540 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54541 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54542 RESCOMP!$RESCOMP$ac_delim
54543 RESFLAGS!$RESFLAGS$ac_delim
54544 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54545 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54546 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54547 LIBWXMACRES!$LIBWXMACRES$ac_delim
54548 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54549 MACSETFILE!$MACSETFILE$ac_delim
54550 GCC!$GCC$ac_delim
54551 DLLTOOL!$DLLTOOL$ac_delim
54552 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54553 LIBOBJS!$LIBOBJS$ac_delim
54554 LTLIBOBJS!$LTLIBOBJS$ac_delim
54555 _ACEOF
54556
54557   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
54558     break
54559   elif $ac_last_try; then
54560     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54561 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54562    { (exit 1); exit 1; }; }
54563   else
54564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54565   fi
54566 done
54567
54568 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54569 if test -n "$ac_eof"; then
54570   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54571   ac_eof=`expr $ac_eof + 1`
54572 fi
54573
54574 cat >>$CONFIG_STATUS <<_ACEOF
54575 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54577 _ACEOF
54578 sed '
54579 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54580 s/^/s,@/; s/!/@,|#_!!_#|/
54581 :n
54582 t n
54583 s/'"$ac_delim"'$/,g/; t
54584 s/$/\\/; p
54585 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54586 ' >>$CONFIG_STATUS <conf$$subs.sed
54587 rm -f conf$$subs.sed
54588 cat >>$CONFIG_STATUS <<_ACEOF
54589 :end
54590 s/|#_!!_#|//g
54591 CEOF$ac_eof
54592 _ACEOF
54593
54594
54595 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54596 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54597 # trailing colons and then remove the whole line if VPATH becomes empty
54598 # (actually we leave an empty line to preserve line numbers).
54599 if test "x$srcdir" = x.; then
54600   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54601 s/:*\$(srcdir):*/:/
54602 s/:*\${srcdir}:*/:/
54603 s/:*@srcdir@:*/:/
54604 s/^\([^=]*=[     ]*\):*/\1/
54605 s/:*$//
54606 s/^[^=]*=[       ]*$//
54607 }'
54608 fi
54609
54610 cat >>$CONFIG_STATUS <<\_ACEOF
54611 fi # test -n "$CONFIG_FILES"
54612
54613
54614 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54615 do
54616   case $ac_tag in
54617   :[FHLC]) ac_mode=$ac_tag; continue;;
54618   esac
54619   case $ac_mode$ac_tag in
54620   :[FHL]*:*);;
54621   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54622 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54623    { (exit 1); exit 1; }; };;
54624   :[FH]-) ac_tag=-:-;;
54625   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54626   esac
54627   ac_save_IFS=$IFS
54628   IFS=:
54629   set x $ac_tag
54630   IFS=$ac_save_IFS
54631   shift
54632   ac_file=$1
54633   shift
54634
54635   case $ac_mode in
54636   :L) ac_source=$1;;
54637   :[FH])
54638     ac_file_inputs=
54639     for ac_f
54640     do
54641       case $ac_f in
54642       -) ac_f="$tmp/stdin";;
54643       *) # Look for the file first in the build tree, then in the source tree
54644          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54645          # because $ac_f cannot contain `:'.
54646          test -f "$ac_f" ||
54647            case $ac_f in
54648            [\\/$]*) false;;
54649            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54650            esac ||
54651            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54652 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54653    { (exit 1); exit 1; }; };;
54654       esac
54655       ac_file_inputs="$ac_file_inputs $ac_f"
54656     done
54657
54658     # Let's still pretend it is `configure' which instantiates (i.e., don't
54659     # use $as_me), people would be surprised to read:
54660     #    /* config.h.  Generated by config.status.  */
54661     configure_input="Generated from "`IFS=:
54662           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54663     if test x"$ac_file" != x-; then
54664       configure_input="$ac_file.  $configure_input"
54665       { echo "$as_me:$LINENO: creating $ac_file" >&5
54666 echo "$as_me: creating $ac_file" >&6;}
54667     fi
54668
54669     case $ac_tag in
54670     *:-:* | *:-) cat >"$tmp/stdin";;
54671     esac
54672     ;;
54673   esac
54674
54675   ac_dir=`$as_dirname -- "$ac_file" ||
54676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54677          X"$ac_file" : 'X\(//\)[^/]' \| \
54678          X"$ac_file" : 'X\(//\)$' \| \
54679          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54680 echo X"$ac_file" |
54681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54682             s//\1/
54683             q
54684           }
54685           /^X\(\/\/\)[^/].*/{
54686             s//\1/
54687             q
54688           }
54689           /^X\(\/\/\)$/{
54690             s//\1/
54691             q
54692           }
54693           /^X\(\/\).*/{
54694             s//\1/
54695             q
54696           }
54697           s/.*/./; q'`
54698   { as_dir="$ac_dir"
54699   case $as_dir in #(
54700   -*) as_dir=./$as_dir;;
54701   esac
54702   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54703     as_dirs=
54704     while :; do
54705       case $as_dir in #(
54706       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54707       *) as_qdir=$as_dir;;
54708       esac
54709       as_dirs="'$as_qdir' $as_dirs"
54710       as_dir=`$as_dirname -- "$as_dir" ||
54711 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54712          X"$as_dir" : 'X\(//\)[^/]' \| \
54713          X"$as_dir" : 'X\(//\)$' \| \
54714          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54715 echo X"$as_dir" |
54716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54717             s//\1/
54718             q
54719           }
54720           /^X\(\/\/\)[^/].*/{
54721             s//\1/
54722             q
54723           }
54724           /^X\(\/\/\)$/{
54725             s//\1/
54726             q
54727           }
54728           /^X\(\/\).*/{
54729             s//\1/
54730             q
54731           }
54732           s/.*/./; q'`
54733       test -d "$as_dir" && break
54734     done
54735     test -z "$as_dirs" || eval "mkdir $as_dirs"
54736   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54737 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54738    { (exit 1); exit 1; }; }; }
54739   ac_builddir=.
54740
54741 case "$ac_dir" in
54742 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54743 *)
54744   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54745   # A ".." for each directory in $ac_dir_suffix.
54746   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54747   case $ac_top_builddir_sub in
54748   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54749   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54750   esac ;;
54751 esac
54752 ac_abs_top_builddir=$ac_pwd
54753 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54754 # for backward compatibility:
54755 ac_top_builddir=$ac_top_build_prefix
54756
54757 case $srcdir in
54758   .)  # We are building in place.
54759     ac_srcdir=.
54760     ac_top_srcdir=$ac_top_builddir_sub
54761     ac_abs_top_srcdir=$ac_pwd ;;
54762   [\\/]* | ?:[\\/]* )  # Absolute name.
54763     ac_srcdir=$srcdir$ac_dir_suffix;
54764     ac_top_srcdir=$srcdir
54765     ac_abs_top_srcdir=$srcdir ;;
54766   *) # Relative name.
54767     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54768     ac_top_srcdir=$ac_top_build_prefix$srcdir
54769     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54770 esac
54771 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54772
54773
54774   case $ac_mode in
54775   :F)
54776   #
54777   # CONFIG_FILE
54778   #
54779
54780   case $INSTALL in
54781   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54782   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54783   esac
54784 _ACEOF
54785
54786 cat >>$CONFIG_STATUS <<\_ACEOF
54787 # If the template does not know about datarootdir, expand it.
54788 # FIXME: This hack should be removed a few years after 2.60.
54789 ac_datarootdir_hack=; ac_datarootdir_seen=
54790
54791 case `sed -n '/datarootdir/ {
54792   p
54793   q
54794 }
54795 /@datadir@/p
54796 /@docdir@/p
54797 /@infodir@/p
54798 /@localedir@/p
54799 /@mandir@/p
54800 ' $ac_file_inputs` in
54801 *datarootdir*) ac_datarootdir_seen=yes;;
54802 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54803   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54804 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54805 _ACEOF
54806 cat >>$CONFIG_STATUS <<_ACEOF
54807   ac_datarootdir_hack='
54808   s&@datadir@&$datadir&g
54809   s&@docdir@&$docdir&g
54810   s&@infodir@&$infodir&g
54811   s&@localedir@&$localedir&g
54812   s&@mandir@&$mandir&g
54813     s&\\\${datarootdir}&$datarootdir&g' ;;
54814 esac
54815 _ACEOF
54816
54817 # Neutralize VPATH when `$srcdir' = `.'.
54818 # Shell code in configure.ac might set extrasub.
54819 # FIXME: do we really want to maintain this feature?
54820 cat >>$CONFIG_STATUS <<_ACEOF
54821   sed "$ac_vpsub
54822 $extrasub
54823 _ACEOF
54824 cat >>$CONFIG_STATUS <<\_ACEOF
54825 :t
54826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54827 s&@configure_input@&$configure_input&;t t
54828 s&@top_builddir@&$ac_top_builddir_sub&;t t
54829 s&@srcdir@&$ac_srcdir&;t t
54830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54831 s&@top_srcdir@&$ac_top_srcdir&;t t
54832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54833 s&@builddir@&$ac_builddir&;t t
54834 s&@abs_builddir@&$ac_abs_builddir&;t t
54835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54836 s&@INSTALL@&$ac_INSTALL&;t t
54837 $ac_datarootdir_hack
54838 " $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
54839
54840 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54841   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54842   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54843   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54844 which seems to be undefined.  Please make sure it is defined." >&5
54845 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54846 which seems to be undefined.  Please make sure it is defined." >&2;}
54847
54848   rm -f "$tmp/stdin"
54849   case $ac_file in
54850   -) cat "$tmp/out"; rm -f "$tmp/out";;
54851   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54852   esac
54853  ;;
54854   :H)
54855   #
54856   # CONFIG_HEADER
54857   #
54858 _ACEOF
54859
54860 # Transform confdefs.h into a sed script `conftest.defines', that
54861 # substitutes the proper values into config.h.in to produce config.h.
54862 rm -f conftest.defines conftest.tail
54863 # First, append a space to every undef/define line, to ease matching.
54864 echo 's/$/ /' >conftest.defines
54865 # Then, protect against being on the right side of a sed subst, or in
54866 # an unquoted here document, in config.status.  If some macros were
54867 # called several times there might be several #defines for the same
54868 # symbol, which is useless.  But do not sort them, since the last
54869 # AC_DEFINE must be honored.
54870 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54871 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54872 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54873 # PARAMS is the parameter list in the macro definition--in most cases, it's
54874 # just an empty string.
54875 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54876 ac_dB='\\)[      (].*,\\1define\\2'
54877 ac_dC=' '
54878 ac_dD=' ,'
54879
54880 uniq confdefs.h |
54881   sed -n '
54882         t rset
54883         :rset
54884         s/^[     ]*#[    ]*define[       ][      ]*//
54885         t ok
54886         d
54887         :ok
54888         s/[\\&,]/\\&/g
54889         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54890         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54891   ' >>conftest.defines
54892
54893 # Remove the space that was appended to ease matching.
54894 # Then replace #undef with comments.  This is necessary, for
54895 # example, in the case of _POSIX_SOURCE, which is predefined and required
54896 # on some systems where configure will not decide to define it.
54897 # (The regexp can be short, since the line contains either #define or #undef.)
54898 echo 's/ $//
54899 s,^[     #]*u.*,/* & */,' >>conftest.defines
54900
54901 # Break up conftest.defines:
54902 ac_max_sed_lines=50
54903
54904 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54905 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54906 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54907 # et cetera.
54908 ac_in='$ac_file_inputs'
54909 ac_out='"$tmp/out1"'
54910 ac_nxt='"$tmp/out2"'
54911
54912 while :
54913 do
54914   # Write a here document:
54915     cat >>$CONFIG_STATUS <<_ACEOF
54916     # First, check the format of the line:
54917     cat >"\$tmp/defines.sed" <<\\CEOF
54918 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54919 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54920 b
54921 :def
54922 _ACEOF
54923   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54924   echo 'CEOF
54925     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54926   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54927   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54928   grep . conftest.tail >/dev/null || break
54929   rm -f conftest.defines
54930   mv conftest.tail conftest.defines
54931 done
54932 rm -f conftest.defines conftest.tail
54933
54934 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54935 cat >>$CONFIG_STATUS <<\_ACEOF
54936   if test x"$ac_file" != x-; then
54937     echo "/* $configure_input  */" >"$tmp/config.h"
54938     cat "$ac_result" >>"$tmp/config.h"
54939     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54940       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54941 echo "$as_me: $ac_file is unchanged" >&6;}
54942     else
54943       rm -f $ac_file
54944       mv "$tmp/config.h" $ac_file
54945     fi
54946   else
54947     echo "/* $configure_input  */"
54948     cat "$ac_result"
54949   fi
54950   rm -f "$tmp/out12"
54951  ;;
54952
54953   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54954 echo "$as_me: executing $ac_file commands" >&6;}
54955  ;;
54956   esac
54957
54958
54959   case $ac_file$ac_mode in
54960     "rcdefs.h":C)
54961             mkdir -p $outdir &&
54962             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54963          ;;
54964     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54965     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54966     "wx-config":C)  rm -f wx-config
54967                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54968                     ;;
54969
54970   esac
54971 done # for ac_tag
54972
54973
54974 { (exit 0); exit 0; }
54975 _ACEOF
54976 chmod +x $CONFIG_STATUS
54977 ac_clean_files=$ac_clean_files_save
54978
54979
54980 # configure is writing to config.log, and then calls config.status.
54981 # config.status does its own redirection, appending to config.log.
54982 # Unfortunately, on DOS this fails, as config.log is still kept open
54983 # by configure, so config.status won't be able to write to it; its
54984 # output is simply discarded.  So we exec the FD to /dev/null,
54985 # effectively closing config.log, so it can be properly (re)opened and
54986 # appended to by config.status.  When coming back to configure, we
54987 # need to make the FD available again.
54988 if test "$no_create" != yes; then
54989   ac_cs_success=:
54990   ac_config_status_args=
54991   test "$silent" = yes &&
54992     ac_config_status_args="$ac_config_status_args --quiet"
54993   exec 5>/dev/null
54994   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54995   exec 5>>config.log
54996   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54997   # would make configure fail if this is the last instruction.
54998   $ac_cs_success || { (exit 1); exit 1; }
54999 fi
55000
55001 #
55002 # CONFIG_SUBDIRS section.
55003 #
55004 if test "$no_recursion" != yes; then
55005
55006   # Remove --cache-file and --srcdir arguments so they do not pile up.
55007   ac_sub_configure_args=
55008   ac_prev=
55009   eval "set x $ac_configure_args"
55010   shift
55011   for ac_arg
55012   do
55013     if test -n "$ac_prev"; then
55014       ac_prev=
55015       continue
55016     fi
55017     case $ac_arg in
55018     -cache-file | --cache-file | --cache-fil | --cache-fi \
55019     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55020       ac_prev=cache_file ;;
55021     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55022     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55023     | --c=*)
55024       ;;
55025     --config-cache | -C)
55026       ;;
55027     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55028       ac_prev=srcdir ;;
55029     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55030       ;;
55031     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55032       ac_prev=prefix ;;
55033     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55034       ;;
55035     *)
55036       case $ac_arg in
55037       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55038       esac
55039       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55040     esac
55041   done
55042
55043   # Always prepend --prefix to ensure using the same prefix
55044   # in subdir configurations.
55045   ac_arg="--prefix=$prefix"
55046   case $ac_arg in
55047   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55048   esac
55049   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55050
55051   # Pass --silent
55052   if test "$silent" = yes; then
55053     ac_sub_configure_args="--silent $ac_sub_configure_args"
55054   fi
55055
55056   ac_popdir=`pwd`
55057   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55058
55059     # Do not complain, so a configure script can configure whichever
55060     # parts of a large source tree are present.
55061     test -d "$srcdir/$ac_dir" || continue
55062
55063     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55064     echo "$as_me:$LINENO: $ac_msg" >&5
55065     echo "$ac_msg" >&6
55066     { as_dir="$ac_dir"
55067   case $as_dir in #(
55068   -*) as_dir=./$as_dir;;
55069   esac
55070   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55071     as_dirs=
55072     while :; do
55073       case $as_dir in #(
55074       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55075       *) as_qdir=$as_dir;;
55076       esac
55077       as_dirs="'$as_qdir' $as_dirs"
55078       as_dir=`$as_dirname -- "$as_dir" ||
55079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55080          X"$as_dir" : 'X\(//\)[^/]' \| \
55081          X"$as_dir" : 'X\(//\)$' \| \
55082          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55083 echo X"$as_dir" |
55084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55085             s//\1/
55086             q
55087           }
55088           /^X\(\/\/\)[^/].*/{
55089             s//\1/
55090             q
55091           }
55092           /^X\(\/\/\)$/{
55093             s//\1/
55094             q
55095           }
55096           /^X\(\/\).*/{
55097             s//\1/
55098             q
55099           }
55100           s/.*/./; q'`
55101       test -d "$as_dir" && break
55102     done
55103     test -z "$as_dirs" || eval "mkdir $as_dirs"
55104   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55105 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55106    { (exit 1); exit 1; }; }; }
55107     ac_builddir=.
55108
55109 case "$ac_dir" in
55110 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55111 *)
55112   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55113   # A ".." for each directory in $ac_dir_suffix.
55114   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55115   case $ac_top_builddir_sub in
55116   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55117   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55118   esac ;;
55119 esac
55120 ac_abs_top_builddir=$ac_pwd
55121 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55122 # for backward compatibility:
55123 ac_top_builddir=$ac_top_build_prefix
55124
55125 case $srcdir in
55126   .)  # We are building in place.
55127     ac_srcdir=.
55128     ac_top_srcdir=$ac_top_builddir_sub
55129     ac_abs_top_srcdir=$ac_pwd ;;
55130   [\\/]* | ?:[\\/]* )  # Absolute name.
55131     ac_srcdir=$srcdir$ac_dir_suffix;
55132     ac_top_srcdir=$srcdir
55133     ac_abs_top_srcdir=$srcdir ;;
55134   *) # Relative name.
55135     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55136     ac_top_srcdir=$ac_top_build_prefix$srcdir
55137     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55138 esac
55139 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55140
55141
55142     cd "$ac_dir"
55143
55144     # Check for guested configure; otherwise get Cygnus style configure.
55145     if test -f "$ac_srcdir/configure.gnu"; then
55146       ac_sub_configure=$ac_srcdir/configure.gnu
55147     elif test -f "$ac_srcdir/configure"; then
55148       ac_sub_configure=$ac_srcdir/configure
55149     elif test -f "$ac_srcdir/configure.in"; then
55150       # This should be Cygnus configure.
55151       ac_sub_configure=$ac_aux_dir/configure
55152     else
55153       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55154 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55155       ac_sub_configure=
55156     fi
55157
55158     # The recursion is here.
55159     if test -n "$ac_sub_configure"; then
55160       # Make the cache file name correct relative to the subdirectory.
55161       case $cache_file in
55162       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55163       *) # Relative name.
55164         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55165       esac
55166
55167       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55168 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55169       # The eval makes quoting arguments work.
55170       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55171            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55172         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55173 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55174    { (exit 1); exit 1; }; }
55175     fi
55176
55177     cd "$ac_popdir"
55178   done
55179 fi
55180
55181
55182 echo
55183 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55184 echo ""
55185 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55186 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55187
55188 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
55189 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55190 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
55191 if test "$wxUSE_UNICODE" = "yes"; then
55192     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55193         echo " (using UTF-8)"
55194     else
55195         echo " (using wchar_t)"
55196     fi
55197 else
55198     echo
55199 fi
55200
55201 echo "  What level of wxWidgets compatibility should be enabled?"
55202 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55203 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55204
55205 echo "  Which libraries should wxWidgets use?"
55206 echo "                                       STL                ${wxUSE_STL}"
55207 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55208 echo "                                       png                ${wxUSE_LIBPNG-none}"
55209 echo "                                       regex              ${wxUSE_REGEX}"
55210 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55211 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55212 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55213 fi
55214 echo "                                       zlib               ${wxUSE_ZLIB}"
55215 echo "                                       odbc               ${wxUSE_ODBC}"
55216 echo "                                       expat              ${wxUSE_EXPAT}"
55217 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55218 echo "                                       sdl                ${wxUSE_LIBSDL}"
55219
55220 echo ""
55221