removed empty or duplicated samples: checklst, dynamic, listbox, minifram, multimon...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47778 2007-07-28 12:23:33Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 RANLIB
683 AR
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 STRIP
688 WINDRES
689 DLLTOOL
690 IF_GNU_MAKE
691 LN_S
692 subdirs
693 PKG_CONFIG
694 GTK_CFLAGS
695 GTK_LIBS
696 GTK_CONFIG
697 DIRECTFB_CFLAGS
698 DIRECTFB_LIBS
699 XMKMF
700 X_CFLAGS
701 X_PRE_LIBS
702 X_LIBS
703 X_EXTRA_LIBS
704 PANGOX_CFLAGS
705 PANGOX_LIBS
706 PANGOFT2_CFLAGS
707 PANGOFT2_LIBS
708 PANGOXFT_CFLAGS
709 PANGOXFT_LIBS
710 CFLAGS_VISIBILITY
711 CXXFLAGS_VISIBILITY
712 REZ
713 DEREZ
714 SETFILE
715 LIBICONV
716 SDL_CONFIG
717 SDL_CFLAGS
718 SDL_LIBS
719 LIBGNOMEPRINTUI_CFLAGS
720 LIBGNOMEPRINTUI_LIBS
721 GNOMEVFS_CFLAGS
722 GNOMEVFS_LIBS
723 HILDON_CFLAGS
724 HILDON_LIBS
725 CAIRO_CFLAGS
726 CAIRO_LIBS
727 GST_CFLAGS
728 GST_LIBS
729 ALL_WX_LIBS
730 BUILT_WX_LIBS
731 STD_BASE_LIBS
732 STD_GUI_LIBS
733 wxUSE_ZLIB
734 wxUSE_REGEX
735 wxUSE_EXPAT
736 wxUSE_ODBC
737 wxUSE_LIBJPEG
738 wxUSE_LIBPNG
739 wxUSE_LIBTIFF
740 VENDOR
741 OFFICIAL_BUILD
742 WX_FLAVOUR
743 WX_LIB_FLAVOUR
744 WXUNIV
745 MONOLITHIC
746 USE_PLUGINS
747 CXXWARNINGS
748 EXTRALIBS
749 EXTRALIBS_XML
750 EXTRALIBS_HTML
751 EXTRALIBS_ODBC
752 EXTRALIBS_GUI
753 EXTRALIBS_OPENGL
754 EXTRALIBS_SDL
755 WITH_PLUGIN_SDL
756 EXTRALIBS_GNOMEPRINT
757 EXTRALIBS_GNOMEVFS
758 EXTRALIBS_HILDON
759 UNICODE
760 BUILD
761 DEBUG_INFO
762 DEBUG_FLAG
763 TOOLKIT_LOWERCASE
764 TOOLKIT_VERSION
765 SAMPLES_RPATH_FLAG
766 SAMPLES_RPATH_POSTLINK
767 HOST_SUFFIX
768 CPPUNIT_CFLAGS
769 CPPUNIT_LIBS
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 NM
774 INSTALL_DIR
775 LDFLAGS_GUI
776 PLATFORM_UNIX
777 PLATFORM_WIN32
778 PLATFORM_MSDOS
779 PLATFORM_MAC
780 PLATFORM_MACOS
781 PLATFORM_MACOSX
782 PLATFORM_OS2
783 PLATFORM_BEOS
784 SO_SUFFIX
785 SO_SUFFIX_MODULE
786 DLLIMP_SUFFIX
787 LIBPREFIX
788 LIBEXT
789 DLLPREFIX
790 DLLPREFIX_MODULE
791 dlldir
792 AIX_CXX_LD
793 SHARED_LD_CC
794 SHARED_LD_CXX
795 SHARED_LD_MODULE_CC
796 SHARED_LD_MODULE_CXX
797 PIC_FLAG
798 WINDOWS_IMPLIB
799 USE_SOVERSION
800 USE_SOVERLINUX
801 USE_SOVERSOLARIS
802 USE_SOVERCYGWIN
803 USE_MACVERSION
804 USE_SOSYMLINKS
805 SONAME_FLAG
806 DEPS_TRACKING
807 BK_DEPS
808 GCC_PCH
809 ICC_PCH
810 BK_MAKE_PCH
811 COND_BUILD_DEBUG
812 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
813 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
814 COND_BUILD_DEBUG_UNICODE_0
815 COND_BUILD_DEBUG_UNICODE_1
816 COND_BUILD_RELEASE
817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
818 COND_BUILD_RELEASE_UNICODE_0
819 COND_BUILD_RELEASE_UNICODE_1
820 COND_DEBUG_FLAG_1
821 COND_DEBUG_INFO_0
822 COND_DEBUG_INFO_1
823 COND_DEPS_TRACKING_0
824 COND_DEPS_TRACKING_1
825 COND_GCC_PCH_1
826 COND_ICC_PCH_1
827 COND_MONOLITHIC_0
828 COND_MONOLITHIC_0_SHARED_0
829 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
835 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
836 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
837 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
838 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
839 COND_MONOLITHIC_0_SHARED_1
840 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
846 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
847 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
848 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
849 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
850 COND_MONOLITHIC_0_USE_AUI_1
851 COND_MONOLITHIC_0_USE_GUI_1
852 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
853 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1
854 COND_MONOLITHIC_0_USE_HTML_1
855 COND_MONOLITHIC_0_USE_MEDIA_1
856 COND_MONOLITHIC_0_USE_ODBC_1
857 COND_MONOLITHIC_0_USE_QA_1
858 COND_MONOLITHIC_0_USE_RICHTEXT_1
859 COND_MONOLITHIC_0_USE_STC_1
860 COND_MONOLITHIC_0_USE_XRC_1
861 COND_MONOLITHIC_1
862 COND_MONOLITHIC_1_SHARED_0
863 COND_MONOLITHIC_1_SHARED_1
864 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
865 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
866 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
867 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
868 COND_PLATFORM_MACOSX_1
869 COND_PLATFORM_MACOSX_1_TOOLKIT_
870 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
871 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
872 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
873 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
874 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
875 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
876 COND_PLATFORM_MACOSX_1_USE_GUI_1
877 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
878 COND_PLATFORM_MACOS_1
879 COND_PLATFORM_MAC_1
880 COND_PLATFORM_MSDOS_0
881 COND_PLATFORM_MSDOS_1
882 COND_PLATFORM_OS2_1
883 COND_PLATFORM_UNIX_0
884 COND_PLATFORM_UNIX_1
885 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
886 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
887 COND_PLATFORM_UNIX_1_USE_GUI_1
888 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
889 COND_PLATFORM_WIN32_0
890 COND_PLATFORM_WIN32_1
891 COND_SHARED_0
892 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
893 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
894 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
895 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
897 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
899 COND_SHARED_0_USE_STC_1
900 COND_SHARED_0_USE_XRC_1
901 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
902 COND_SHARED_0_WXUSE_ODBC_BUILTIN
903 COND_SHARED_0_WXUSE_REGEX_BUILTIN
904 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
905 COND_SHARED_1
906 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
907 COND_SHARED_1_USE_XRC_1
908 COND_TOOLKIT_
909 COND_TOOLKIT_COCOA
910 COND_TOOLKIT_COCOA_USE_GUI_1
911 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
912 COND_TOOLKIT_DFB
913 COND_TOOLKIT_DFB_USE_GUI_1
914 COND_TOOLKIT_GTK
915 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
917 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
918 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
919 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_GTK_USE_GUI_1
922 COND_TOOLKIT_MAC
923 COND_TOOLKIT_MAC_USE_GUI_1
924 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_MGL
926 COND_TOOLKIT_MGL_USE_GUI_1
927 COND_TOOLKIT_MOTIF
928 COND_TOOLKIT_MOTIF_USE_GUI_1
929 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
930 COND_TOOLKIT_MSW
931 COND_TOOLKIT_MSW_USE_GUI_1
932 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_MSW_WXUNIV_0
934 COND_TOOLKIT_PM
935 COND_TOOLKIT_PM_USE_GUI_1
936 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
937 COND_TOOLKIT_WINCE
938 COND_TOOLKIT_WINCE_USE_GUI_1
939 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_WINCE_WXUNIV_0
941 COND_TOOLKIT_X11
942 COND_TOOLKIT_X11_USE_GUI_1
943 COND_UNICODE_1
944 COND_USE_EXCEPTIONS_0
945 COND_USE_EXCEPTIONS_1
946 COND_USE_GUI_0
947 COND_USE_GUI_1
948 COND_USE_GUI_1_USE_OPENGL_1
949 COND_USE_GUI_1_WXUNIV_0
950 COND_USE_GUI_1_WXUNIV_1
951 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
952 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
953 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
954 COND_USE_ODBC_1
955 COND_USE_OPENGL_1
956 COND_USE_PCH_1
957 COND_USE_PLUGINS_0
958 COND_USE_RTTI_0
959 COND_USE_RTTI_1
960 COND_USE_SOSYMLINKS_1
961 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
962 COND_USE_SOVERLINUX_1
963 COND_USE_SOVERSION_0
964 COND_USE_SOVERSOLARIS_1
965 COND_USE_STC_1
966 COND_USE_THREADS_0
967 COND_USE_THREADS_1
968 COND_USE_XRC_1
969 COND_WINDOWS_IMPLIB_1
970 COND_WITH_PLUGIN_SDL_1
971 COND_WXUNIV_0
972 COND_WXUNIV_1
973 COND_WXUSE_EXPAT_BUILTIN
974 COND_WXUSE_LIBJPEG_BUILTIN
975 COND_WXUSE_LIBPNG_BUILTIN
976 COND_WXUSE_LIBTIFF_BUILTIN
977 COND_WXUSE_ODBC_BUILTIN
978 COND_WXUSE_REGEX_BUILTIN
979 COND_WXUSE_ZLIB_BUILTIN
980 SHARED
981 WX_LIBRARY_BASENAME_NOGUI
982 WX_LIBRARY_BASENAME_GUI
983 USE_GUI
984 AFMINSTALL
985 WIN32INSTALL
986 TOOLKIT
987 TOOLKIT_DIR
988 TOOLCHAIN_NAME
989 TOOLCHAIN_FULLNAME
990 cross_compiling
991 WIDGET_SET
992 WX_RELEASE
993 WX_VERSION
994 WX_SUBVERSION
995 WX_CHARTYPE
996 WX_DEBUGTYPE
997 WXCONFIG_CPPFLAGS
998 WXCONFIG_CFLAGS
999 WXCONFIG_CXXFLAGS
1000 WXCONFIG_LIBS
1001 WXCONFIG_RPATH
1002 WXCONFIG_LDFLAGS_GUI
1003 WXCONFIG_RESFLAGS
1004 EXE_LINKER
1005 GUIDIST
1006 DISTDIR
1007 SAMPLES_SUBDIRS
1008 LDFLAGS_GL
1009 OPENGL_LIBS
1010 DMALLOC_LIBS
1011 WX_VERSION_TAG
1012 RESCOMP
1013 RESFLAGS
1014 RESPROGRAMOBJ
1015 WX_RESOURCES_MACOSX_ASCII
1016 WX_RESOURCES_MACOSX_DATA
1017 LIBWXMACRES
1018 POSTLINK_COMMAND
1019 MACSETFILE
1020 GCC
1021 CPPUNIT_CONFIG
1022 LIBOBJS
1023 LTLIBOBJS'
1024 ac_subst_files=''
1025       ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1028 CC
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1033 CPP
1034 CXX
1035 CXXFLAGS
1036 CCC
1037 PKG_CONFIG
1038 DIRECTFB_CFLAGS
1039 DIRECTFB_LIBS
1040 XMKMF
1041 PANGOX_CFLAGS
1042 PANGOX_LIBS
1043 PANGOFT2_CFLAGS
1044 PANGOFT2_LIBS
1045 PANGOXFT_CFLAGS
1046 PANGOXFT_LIBS
1047 LIBGNOMEPRINTUI_CFLAGS
1048 LIBGNOMEPRINTUI_LIBS
1049 GNOMEVFS_CFLAGS
1050 GNOMEVFS_LIBS
1051 HILDON_CFLAGS
1052 HILDON_LIBS
1053 CAIRO_CFLAGS
1054 CAIRO_LIBS
1055 GST_CFLAGS
1056 GST_LIBS'
1057 ac_subdirs_all='src/expat'
1058
1059 # Initialize some variables set by options.
1060 ac_init_help=
1061 ac_init_version=false
1062 # The variables have the same names as the options, with
1063 # dashes changed to underlines.
1064 cache_file=/dev/null
1065 exec_prefix=NONE
1066 no_create=
1067 no_recursion=
1068 prefix=NONE
1069 program_prefix=NONE
1070 program_suffix=NONE
1071 program_transform_name=s,x,x,
1072 silent=
1073 site=
1074 srcdir=
1075 verbose=
1076 x_includes=NONE
1077 x_libraries=NONE
1078
1079 # Installation directory options.
1080 # These are left unexpanded so users can "make install exec_prefix=/foo"
1081 # and all the variables that are supposed to be based on exec_prefix
1082 # by default will actually change.
1083 # Use braces instead of parens because sh, perl, etc. also accept them.
1084 # (The list follows the same order as the GNU Coding Standards.)
1085 bindir='${exec_prefix}/bin'
1086 sbindir='${exec_prefix}/sbin'
1087 libexecdir='${exec_prefix}/libexec'
1088 datarootdir='${prefix}/share'
1089 datadir='${datarootdir}'
1090 sysconfdir='${prefix}/etc'
1091 sharedstatedir='${prefix}/com'
1092 localstatedir='${prefix}/var'
1093 includedir='${prefix}/include'
1094 oldincludedir='/usr/include'
1095 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1096 infodir='${datarootdir}/info'
1097 htmldir='${docdir}'
1098 dvidir='${docdir}'
1099 pdfdir='${docdir}'
1100 psdir='${docdir}'
1101 libdir='${exec_prefix}/lib'
1102 localedir='${datarootdir}/locale'
1103 mandir='${datarootdir}/man'
1104
1105 ac_prev=
1106 ac_dashdash=
1107 for ac_option
1108 do
1109   # If the previous option needs an argument, assign it.
1110   if test -n "$ac_prev"; then
1111     eval $ac_prev=\$ac_option
1112     ac_prev=
1113     continue
1114   fi
1115
1116   case $ac_option in
1117   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1118   *)    ac_optarg=yes ;;
1119   esac
1120
1121   # Accept the important Cygnus configure options, so we can diagnose typos.
1122
1123   case $ac_dashdash$ac_option in
1124   --)
1125     ac_dashdash=yes ;;
1126
1127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1128     ac_prev=bindir ;;
1129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1130     bindir=$ac_optarg ;;
1131
1132   -build | --build | --buil | --bui | --bu)
1133     ac_prev=build_alias ;;
1134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1135     build_alias=$ac_optarg ;;
1136
1137   -cache-file | --cache-file | --cache-fil | --cache-fi \
1138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1139     ac_prev=cache_file ;;
1140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1142     cache_file=$ac_optarg ;;
1143
1144   --config-cache | -C)
1145     cache_file=config.cache ;;
1146
1147   -datadir | --datadir | --datadi | --datad)
1148     ac_prev=datadir ;;
1149   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1150     datadir=$ac_optarg ;;
1151
1152   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1153   | --dataroo | --dataro | --datar)
1154     ac_prev=datarootdir ;;
1155   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1156   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1157     datarootdir=$ac_optarg ;;
1158
1159   -disable-* | --disable-*)
1160     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1166     eval enable_$ac_feature=no ;;
1167
1168   -docdir | --docdir | --docdi | --doc | --do)
1169     ac_prev=docdir ;;
1170   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1171     docdir=$ac_optarg ;;
1172
1173   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1174     ac_prev=dvidir ;;
1175   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1176     dvidir=$ac_optarg ;;
1177
1178   -enable-* | --enable-*)
1179     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1183    { (exit 1); exit 1; }; }
1184     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1185     eval enable_$ac_feature=\$ac_optarg ;;
1186
1187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189   | --exec | --exe | --ex)
1190     ac_prev=exec_prefix ;;
1191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193   | --exec=* | --exe=* | --ex=*)
1194     exec_prefix=$ac_optarg ;;
1195
1196   -gas | --gas | --ga | --g)
1197     # Obsolete; use --with-gas.
1198     with_gas=yes ;;
1199
1200   -help | --help | --hel | --he | -h)
1201     ac_init_help=long ;;
1202   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203     ac_init_help=recursive ;;
1204   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205     ac_init_help=short ;;
1206
1207   -host | --host | --hos | --ho)
1208     ac_prev=host_alias ;;
1209   -host=* | --host=* | --hos=* | --ho=*)
1210     host_alias=$ac_optarg ;;
1211
1212   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213     ac_prev=htmldir ;;
1214   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215   | --ht=*)
1216     htmldir=$ac_optarg ;;
1217
1218   -includedir | --includedir | --includedi | --included | --include \
1219   | --includ | --inclu | --incl | --inc)
1220     ac_prev=includedir ;;
1221   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222   | --includ=* | --inclu=* | --incl=* | --inc=*)
1223     includedir=$ac_optarg ;;
1224
1225   -infodir | --infodir | --infodi | --infod | --info | --inf)
1226     ac_prev=infodir ;;
1227   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228     infodir=$ac_optarg ;;
1229
1230   -libdir | --libdir | --libdi | --libd)
1231     ac_prev=libdir ;;
1232   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233     libdir=$ac_optarg ;;
1234
1235   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236   | --libexe | --libex | --libe)
1237     ac_prev=libexecdir ;;
1238   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239   | --libexe=* | --libex=* | --libe=*)
1240     libexecdir=$ac_optarg ;;
1241
1242   -localedir | --localedir | --localedi | --localed | --locale)
1243     ac_prev=localedir ;;
1244   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245     localedir=$ac_optarg ;;
1246
1247   -localstatedir | --localstatedir | --localstatedi | --localstated \
1248   | --localstate | --localstat | --localsta | --localst | --locals)
1249     ac_prev=localstatedir ;;
1250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252     localstatedir=$ac_optarg ;;
1253
1254   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255     ac_prev=mandir ;;
1256   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257     mandir=$ac_optarg ;;
1258
1259   -nfp | --nfp | --nf)
1260     # Obsolete; use --without-fp.
1261     with_fp=no ;;
1262
1263   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264   | --no-cr | --no-c | -n)
1265     no_create=yes ;;
1266
1267   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269     no_recursion=yes ;;
1270
1271   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273   | --oldin | --oldi | --old | --ol | --o)
1274     ac_prev=oldincludedir ;;
1275   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278     oldincludedir=$ac_optarg ;;
1279
1280   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281     ac_prev=prefix ;;
1282   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283     prefix=$ac_optarg ;;
1284
1285   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286   | --program-pre | --program-pr | --program-p)
1287     ac_prev=program_prefix ;;
1288   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290     program_prefix=$ac_optarg ;;
1291
1292   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293   | --program-suf | --program-su | --program-s)
1294     ac_prev=program_suffix ;;
1295   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297     program_suffix=$ac_optarg ;;
1298
1299   -program-transform-name | --program-transform-name \
1300   | --program-transform-nam | --program-transform-na \
1301   | --program-transform-n | --program-transform- \
1302   | --program-transform | --program-transfor \
1303   | --program-transfo | --program-transf \
1304   | --program-trans | --program-tran \
1305   | --progr-tra | --program-tr | --program-t)
1306     ac_prev=program_transform_name ;;
1307   -program-transform-name=* | --program-transform-name=* \
1308   | --program-transform-nam=* | --program-transform-na=* \
1309   | --program-transform-n=* | --program-transform-=* \
1310   | --program-transform=* | --program-transfor=* \
1311   | --program-transfo=* | --program-transf=* \
1312   | --program-trans=* | --program-tran=* \
1313   | --progr-tra=* | --program-tr=* | --program-t=*)
1314     program_transform_name=$ac_optarg ;;
1315
1316   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317     ac_prev=pdfdir ;;
1318   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319     pdfdir=$ac_optarg ;;
1320
1321   -psdir | --psdir | --psdi | --psd | --ps)
1322     ac_prev=psdir ;;
1323   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324     psdir=$ac_optarg ;;
1325
1326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327   | -silent | --silent | --silen | --sile | --sil)
1328     silent=yes ;;
1329
1330   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331     ac_prev=sbindir ;;
1332   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333   | --sbi=* | --sb=*)
1334     sbindir=$ac_optarg ;;
1335
1336   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1337   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1338   | --sharedst | --shareds | --shared | --share | --shar \
1339   | --sha | --sh)
1340     ac_prev=sharedstatedir ;;
1341   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1342   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1343   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344   | --sha=* | --sh=*)
1345     sharedstatedir=$ac_optarg ;;
1346
1347   -site | --site | --sit)
1348     ac_prev=site ;;
1349   -site=* | --site=* | --sit=*)
1350     site=$ac_optarg ;;
1351
1352   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353     ac_prev=srcdir ;;
1354   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1355     srcdir=$ac_optarg ;;
1356
1357   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1358   | --syscon | --sysco | --sysc | --sys | --sy)
1359     ac_prev=sysconfdir ;;
1360   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1361   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1362     sysconfdir=$ac_optarg ;;
1363
1364   -target | --target | --targe | --targ | --tar | --ta | --t)
1365     ac_prev=target_alias ;;
1366   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1367     target_alias=$ac_optarg ;;
1368
1369   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1370     verbose=yes ;;
1371
1372   -version | --version | --versio | --versi | --vers | -V)
1373     ac_init_version=: ;;
1374
1375   -with-* | --with-*)
1376     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379       { echo "$as_me: error: invalid package name: $ac_package" >&2
1380    { (exit 1); exit 1; }; }
1381     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1382     eval with_$ac_package=\$ac_optarg ;;
1383
1384   -without-* | --without-*)
1385     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=no ;;
1392
1393   --x)
1394     # Obsolete; use --with-x.
1395     with_x=yes ;;
1396
1397   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398   | --x-incl | --x-inc | --x-in | --x-i)
1399     ac_prev=x_includes ;;
1400   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402     x_includes=$ac_optarg ;;
1403
1404   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406     ac_prev=x_libraries ;;
1407   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409     x_libraries=$ac_optarg ;;
1410
1411   -*) { echo "$as_me: error: unrecognized option: $ac_option
1412 Try \`$0 --help' for more information." >&2
1413    { (exit 1); exit 1; }; }
1414     ;;
1415
1416   *=*)
1417     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418     # Reject names that are not valid shell variable names.
1419     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1420       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1421    { (exit 1); exit 1; }; }
1422     eval $ac_envvar=\$ac_optarg
1423     export $ac_envvar ;;
1424
1425   *)
1426     # FIXME: should be removed in autoconf 3.0.
1427     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1431     ;;
1432
1433   esac
1434 done
1435
1436 if test -n "$ac_prev"; then
1437   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438   { echo "$as_me: error: missing argument to $ac_option" >&2
1439    { (exit 1); exit 1; }; }
1440 fi
1441
1442 # Be sure to have absolute directory names.
1443 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444                 datadir sysconfdir sharedstatedir localstatedir includedir \
1445                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446                 libdir localedir mandir
1447 do
1448   eval ac_val=\$$ac_var
1449   case $ac_val in
1450     [\\/$]* | ?:[\\/]* )  continue;;
1451     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452   esac
1453   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454    { (exit 1); exit 1; }; }
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   { echo "$as_me: error: Working directory cannot be determined" >&2
1485    { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   { echo "$as_me: error: pwd does not report name of working directory" >&2
1488    { (exit 1); exit 1; }; }
1489
1490
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493   ac_srcdir_defaulted=yes
1494   # Try the directory containing this script, then the parent directory.
1495   ac_confdir=`$as_dirname -- "$0" ||
1496 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497          X"$0" : 'X\(//\)[^/]' \| \
1498          X"$0" : 'X\(//\)$' \| \
1499          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1500 echo X"$0" |
1501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)[^/].*/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\).*/{
1514             s//\1/
1515             q
1516           }
1517           s/.*/./; q'`
1518   srcdir=$ac_confdir
1519   if test ! -r "$srcdir/$ac_unique_file"; then
1520     srcdir=..
1521   fi
1522 else
1523   ac_srcdir_defaulted=no
1524 fi
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528    { (exit 1); exit 1; }; }
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1533    { (exit 1); exit 1; }; }
1534         pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537   srcdir=.
1538 fi
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_env_${ac_var}_value=\$${ac_var}
1548   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1551
1552 #
1553 # Report the --help message.
1554 #
1555 if test "$ac_init_help" = "long"; then
1556   # Omit some internal or obsolete options to make the list less imposing.
1557   # This message is too long to be a string in the A/UX 3.1 sh.
1558   cat <<_ACEOF
1559 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1560
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE.  See below for descriptions of some of the useful variables.
1565
1566 Defaults for the options are specified in brackets.
1567
1568 Configuration:
1569   -h, --help              display this help and exit
1570       --help=short        display options specific to this package
1571       --help=recursive    display the short help of all the included packages
1572   -V, --version           display version information and exit
1573   -q, --quiet, --silent   do not print \`checking...' messages
1574       --cache-file=FILE   cache test results in FILE [disabled]
1575   -C, --config-cache      alias for \`--cache-file=config.cache'
1576   -n, --no-create         do not create output files
1577       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1578
1579 Installation directories:
1580   --prefix=PREFIX         install architecture-independent files in PREFIX
1581                           [$ac_default_prefix]
1582   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1583                           [PREFIX]
1584
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1589
1590 For better control, use the options below.
1591
1592 Fine tuning of the installation directories:
1593   --bindir=DIR           user executables [EPREFIX/bin]
1594   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1595   --libexecdir=DIR       program executables [EPREFIX/libexec]
1596   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1597   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1598   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1599   --libdir=DIR           object code libraries [EPREFIX/lib]
1600   --includedir=DIR       C header files [PREFIX/include]
1601   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1602   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1603   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1604   --infodir=DIR          info documentation [DATAROOTDIR/info]
1605   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1606   --mandir=DIR           man documentation [DATAROOTDIR/man]
1607   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1608   --htmldir=DIR          html documentation [DOCDIR]
1609   --dvidir=DIR           dvi documentation [DOCDIR]
1610   --pdfdir=DIR           pdf documentation [DOCDIR]
1611   --psdir=DIR            ps documentation [DOCDIR]
1612 _ACEOF
1613
1614   cat <<\_ACEOF
1615
1616 X features:
1617   --x-includes=DIR    X include files are in DIR
1618   --x-libraries=DIR   X library files are in DIR
1619
1620 System types:
1621   --build=BUILD     configure for building on BUILD [guessed]
1622   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1623   --target=TARGET   configure for building compilers for TARGET [HOST]
1624 _ACEOF
1625 fi
1626
1627 if test -n "$ac_init_help"; then
1628   case $ac_init_help in
1629      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1630    esac
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636   --disable-gui           don't build GUI parts of the library
1637   --enable-monolithic     build wxWidgets as single library
1638   --enable-plugins        build parts of wxWidgets as loadable components
1639   --enable-official_build official build of wxWidgets (win32 DLL only)
1640   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1641   --disable-all-features  disable all optional features to build minimal library
1642   --enable-universal      use wxWidgets GUI controls instead of native ones
1643   --enable-nanox          use NanoX
1644   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1645   --enable-gpe            use GNOME PDA Environment features if possible
1646   --disable-shared        create static library instead of shared
1647   --disable-optimise      create optimised code
1648   --enable-debug          same as debug_flag and debug_info
1649   --enable-stl            use STL for containers
1650   --enable-std_iostreams  use standard C++ stream classes
1651   --enable-std_string     use standard C++ string classes
1652   --disable-unicode       compile without Unicode support
1653   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1654   --enable-utf8           use UTF-8 representation for strings (Unix only)
1655   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1656   --enable-extended_rtti  use extended RTTI (XTI)
1657   --enable-omf            use OMF object format
1658   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1659   --enable-debug_info     create code with debugging information
1660   --enable-debug_gdb      create code with extra GDB debugging information
1661   --enable-debug_cntxt    use wxDebugContext
1662   --enable-mem_tracing    create code with memory tracing
1663   --enable-profile        create code with profiling information
1664   --enable-no_rtti        create code without RTTI information
1665   --enable-no_exceptions  create code without C++ exceptions handling
1666   --enable-permissive     compile code disregarding strict ANSI
1667   --enable-no_deps        create code without dependency information
1668   --disable-vararg_macros don't use vararg macros, even if they are supported
1669   --enable-universal_binary  create Mac PowerPC and Intel Universal binary (not yet working)
1670   --enable-compat26       enable wxWidgets 2.6 compatibility
1671   --disable-compat28      disable wxWidgets 2.8 compatibility
1672   --disable-rpath         disable use of rpath for uninstalled builds
1673   --enable-objc_uniquifying enable Objective-C class name uniquifying
1674   --disable-visibility    disable use of ELF symbols visibility even if supported
1675   --enable-intl           use internationalization system
1676   --enable-config         use wxConfig (and derived) classes
1677   --enable-protocols      use wxProtocol and derived classes
1678   --enable-ftp            use wxFTP (requires wxProtocol
1679   --enable-http           use wxHTTP (requires wxProtocol
1680   --enable-fileproto      use wxFileProto class (requires wxProtocol
1681   --enable-sockets        use socket/network classes
1682   --enable-ole            use OLE classes (Win32 only)
1683   --enable-dataobj        use data object classes
1684   --enable-ipc            use interprocess communication (wxSocket etc.)
1685   --enable-baseevtloop    use event loop in console programs too
1686   --enable-epoolloop      use wxEpollDispatcher class (Linux only)
1687   --enable-selectloop     use wxSelectDispatcher class
1688   --enable-apple_ieee     use the Apple IEEE codec
1689   --enable-arcstream      use wxArchive streams
1690   --enable-base64         use base64 encoding/decoding functions
1691   --enable-backtrace      use wxStackWalker class for getting backtraces
1692   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1693   --enable-cmdline        use wxCmdLineParser class
1694   --enable-datetime       use wxDateTime class
1695   --enable-debugreport    use wxDebugReport class
1696   --enable-dialupman      use dialup network classes
1697   --enable-dynlib         use wxLibrary class for DLL loading
1698   --enable-dynamicloader  use (new) wxDynamicLibrary class
1699   --enable-exceptions     build exception-safe library
1700   --enable-ffile          use wxFFile class
1701   --enable-file           use wxFile class
1702   --enable-filesystem     use virtual file systems classes
1703   --enable-fontenum       use wxFontEnumerator class
1704   --enable-fontmap        use font encodings conversion classes
1705   --enable-fs_archive     use virtual archive filesystems
1706   --enable-fs_inet        use virtual HTTP/FTP filesystems
1707   --enable-fs_zip         now replaced by fs_archive
1708   --enable-geometry       use geometry class
1709   --enable-log            use logging system
1710   --enable-longlong       use wxLongLong class
1711   --enable-mimetype       use wxMimeTypesManager
1712   --enable-snglinst       use wxSingleInstanceChecker class
1713   --enable-stdpaths       use wxStandardPaths class
1714   --enable-stopwatch      use wxStopWatch class
1715   --enable-streams        use wxStream etc classes
1716   --enable-sysoptions     use wxSystemOptions
1717   --enable-tarstream      use wxTar streams
1718   --enable-textbuf        use wxTextBuffer class
1719   --enable-textfile       use wxTextFile class
1720   --enable-timer          use wxTimer class
1721   --enable-sound          use wxSound class
1722   --enable-mediactrl      use wxMediaCtrl class
1723   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1724   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1725   --enable-zipstream      use wxZip streams
1726   --enable-url            use wxURL class
1727   --enable-variant        use wxVariant class
1728   --enable-protocol       use wxProtocol class
1729   --enable-protocol-http  HTTP support in wxProtocol
1730   --enable-protocol-ftp   FTP support in wxProtocol
1731   --enable-protocol-file  FILE support in wxProtocol
1732   --enable-threads        use threads
1733   --enable-docview        use document view architecture
1734   --enable-help           use help subsystem
1735   --enable-mshtmlhelp     use MS HTML Help (win32)
1736   --enable-html           use wxHTML sub-library
1737   --enable-htmlhelp       use wxHTML-based help
1738   --enable-xrc            use XRC resources sub-library
1739   --enable-aui            use AUI docking library
1740   --enable-stc            use wxStyledTextCtrl library
1741   --enable-constraints    use layout-constraints system
1742   --enable-printarch      use printing architecture
1743   --enable-mdi            use multiple document interface architecture
1744   --enable-mdidoc         use docview architecture with MDI
1745   --enable-loggui         use standard GUI logger
1746   --enable-logwin         use wxLogWindow
1747   --enable-logdialog      use wxLogDialog
1748   --enable-webkit         use wxWebKitCtrl (Mac)
1749   --enable-richtext       use wxRichTextCtrl
1750   --enable-graphics_ctx   use graphics context 2D drawing API
1751   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1752   --enable-svg            use wxSVGFileDC device context
1753   --enable-clipboard      use wxClipboard class
1754   --enable-dnd            use Drag'n'Drop classes
1755   --enable-metafile       use win32 metafiles
1756   --disable-controls      disable compilation of all standard controls
1757   --enable-accel          use accelerators
1758   --enable-animatectrl    use wxAnimationCtrl class
1759   --enable-button         use wxButton class
1760   --enable-bmpbutton      use wxBitmapButton class
1761   --enable-bmpcombobox    use wxBitmapComboBox class
1762   --enable-calendar       use wxCalendarCtrl class
1763   --enable-caret          use wxCaret class
1764   --enable-checkbox       use wxCheckBox class
1765   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1766   --enable-choice         use wxChoice class
1767   --enable-choicebook     use wxChoicebook class
1768   --enable-collpane       use wxCollapsiblePane class
1769   --enable-colourpicker   use wxColourPickerCtrl class
1770   --enable-combobox       use wxComboBox class
1771   --enable-comboctrl      use wxComboCtrl class
1772   --enable-datepick       use wxDatePickerCtrl class
1773   --enable-dirpicker      use wxDirPickerCtrl class
1774   --enable-display        use wxDisplay class
1775   --enable-detect_sm      use code to detect X11 session manager
1776   --enable-editablebox    use wxEditableListBox class
1777   --enable-filepicker     use wxFilePickerCtrl class
1778   --enable-fontpicker     use wxFontPickerCtrl class
1779   --enable-gauge          use wxGauge class
1780   --enable-grid           use wxGrid class
1781   --enable-dataviewctrl   use wxDataViewCtrl class
1782   --enable-hyperlink      use wxHyperlinkCtrl class
1783   --enable-imaglist       use wxImageList class
1784   --enable-listbook       use wxListbook class
1785   --enable-listbox        use wxListBox class
1786   --enable-listctrl       use wxListCtrl class
1787   --enable-notebook       use wxNotebook class
1788   --enable-odcombobox     use wxOwnerDrawnComboBox class
1789   --enable-radiobox       use wxRadioBox class
1790   --enable-radiobtn       use wxRadioButton class
1791   --enable-sash           use wxSashWindow class
1792   --enable-scrollbar      use wxScrollBar class and scrollable windows
1793   --enable-searchctrl     use wxSearchCtrl class
1794   --enable-slider         use wxSlider class
1795   --enable-spinbtn        use wxSpinButton class
1796   --enable-spinctrl       use wxSpinCtrl class
1797   --enable-splitter       use wxSplitterWindow class
1798   --enable-statbmp        use wxStaticBitmap class
1799   --enable-statbox        use wxStaticBox class
1800   --enable-statline       use wxStaticLine class
1801   --enable-stattext       use wxStaticText class
1802   --enable-statusbar      use wxStatusBar class
1803   --enable-tabdialog      use wxTabControl class
1804   --enable-taskbaricon    use wxTaskBarIcon class
1805   --enable-textctrl       use wxTextCtrl class
1806   --enable-togglebtn      use wxToggleButton class
1807   --enable-toolbar        use wxToolBar class
1808   --enable-tbarnative     use native wxToolBar class
1809   --enable-treebook       use wxTreebook class
1810   --enable-toolbook       use wxToolbook class
1811   --enable-treectrl       use wxTreeCtrl class
1812   --enable-tipwindow      use wxTipWindow class
1813   --enable-popupwin       use wxPopUpWindow class
1814   --enable-commondlg      use all common dialogs
1815   --enable-aboutdlg       use wxAboutBox
1816   --enable-choicedlg      use wxChoiceDialog
1817   --enable-coldlg         use wxColourDialog
1818   --enable-filedlg        use wxFileDialog
1819   --enable-finddlg        use wxFindReplaceDialog
1820   --enable-fontdlg        use wxFontDialog
1821   --enable-dirdlg         use wxDirDialog
1822   --enable-msgdlg         use wxMessageDialog
1823   --enable-numberdlg      use wxNumberEntryDialog
1824   --enable-splash         use wxSplashScreen
1825   --enable-textdlg        use wxTextDialog
1826   --enable-tipdlg         use startup tips
1827   --enable-progressdlg    use wxProgressDialog
1828   --enable-wizarddlg      use wxWizard
1829   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1830   --enable-miniframe      use wxMiniFrame class
1831   --enable-tooltips       use wxToolTip class
1832   --enable-splines        use spline drawing code
1833   --enable-mousewheel     use mousewheel
1834   --enable-validators     use wxValidator and derived classes
1835   --enable-busyinfo       use wxBusyInfo
1836   --enable-joystick       use wxJoystick
1837   --enable-metafiles      use wxMetaFile (Win32 only)
1838   --enable-dragimage      use wxDragImage
1839   --enable-accessibility  enable accessibility support
1840   --enable-palette        use wxPalette class
1841   --enable-image          use wxImage class
1842   --enable-gif            use gif images (GIF file format)
1843   --enable-pcx            use pcx images (PCX file format)
1844   --enable-tga            use tga images (TGA file format)
1845   --enable-iff            use iff images (IFF file format)
1846   --enable-pnm            use pnm images (PNM file format)
1847   --enable-xpm            use xpm images (XPM file format)
1848   --enable-icocur         use Windows ICO and CUR formats
1849   --enable-dccache        cache temporary wxDC objects (Win32 only)
1850   --enable-iniconf        use wxIniConfig (Win32 only)
1851   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1852   --enable-ownerdrawn     use owner drawn controls (Win32 only)
1853   --enable-regkey         use wxRegKey class (Win32 only)
1854   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1855   --enable-wxdib          use wxDIB class (Win32 only)
1856   --disable-largefile     omit support for large files
1857   --disable-gtktest       do not try to compile and run a test GTK+ program
1858   --disable-gtktest       Do not try to compile and run a test GTK program
1859   --disable-sdltest       Do not try to compile and run a test SDL program
1860   --enable-omf            use OMF object format (OS/2)
1861   --disable-dependency-tracking
1862                           don't use dependency tracking even if the compiler
1863                           can
1864   --disable-precomp-headers
1865                           don't use precompiled headers even if compiler can
1866
1867 Optional Packages:
1868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1870   --without-subdirs       don't generate makefiles for samples/demos/...
1871   --with-flavour=NAME     specify a name to identify this build
1872   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1873   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1874   --with-motif            use Motif/Lesstif
1875   --with-mac              use Mac OS X
1876   --with-cocoa            use Cocoa
1877   --with-wine             use Wine
1878   --with-msw              use MS-Windows
1879   --with-pm               use OS/2 Presentation Manager
1880   --with-mgl              use SciTech MGL
1881   --with-directfb         use DirectFB
1882   --with-microwin         use MicroWindows
1883   --with-x11              use X11
1884   --with-libpng           use libpng (PNG image format)
1885   --with-libjpeg          use libjpeg (JPEG file format)
1886   --with-libtiff          use libtiff (TIFF file format)
1887   --with-libxpm           use libxpm (XPM file format)
1888   --with-libmspack        use libmspack (CHM help files loading)
1889   --without-gnomeprint    don't use GNOME printing libraries
1890   --with-gnomevfs         use GNOME VFS for associating MIME types
1891   --with-hildon           use Hildon framework for Nokia 770
1892   --with-opengl           use OpenGL (or Mesa)
1893   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1894   --with-sdl              use SDL for audio on Unix
1895   --with-regex            enable support for wxRegEx class
1896   --with-zlib             use zlib for LZW compression
1897   --with-odbc             use the IODBC and wxODBC classes
1898   --with-expat            enable XML support using expat parser
1899   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1900   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1901   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1902   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1903   --with-x                use the X Window System
1904   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1905   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1906   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1907   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1908   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1909
1910 Some influential environment variables:
1911   CC          C compiler command
1912   CFLAGS      C compiler flags
1913   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1914               nonstandard directory <lib dir>
1915   LIBS        libraries to pass to the linker, e.g. -l<library>
1916   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1917               you have headers in a nonstandard directory <include dir>
1918   CPP         C preprocessor
1919   CXX         C++ compiler command
1920   CXXFLAGS    C++ compiler flags
1921   PKG_CONFIG  path to pkg-config utility
1922   DIRECTFB_CFLAGS
1923               C compiler flags for DIRECTFB, overriding pkg-config
1924   DIRECTFB_LIBS
1925               linker flags for DIRECTFB, overriding pkg-config
1926   XMKMF       Path to xmkmf, Makefile generator for X Window System
1927   PANGOX_CFLAGS
1928               C compiler flags for PANGOX, overriding pkg-config
1929   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1930   PANGOFT2_CFLAGS
1931               C compiler flags for PANGOFT2, overriding pkg-config
1932   PANGOFT2_LIBS
1933               linker flags for PANGOFT2, overriding pkg-config
1934   PANGOXFT_CFLAGS
1935               C compiler flags for PANGOXFT, overriding pkg-config
1936   PANGOXFT_LIBS
1937               linker flags for PANGOXFT, overriding pkg-config
1938   LIBGNOMEPRINTUI_CFLAGS
1939               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1940   LIBGNOMEPRINTUI_LIBS
1941               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1942   GNOMEVFS_CFLAGS
1943               C compiler flags for GNOMEVFS, overriding pkg-config
1944   GNOMEVFS_LIBS
1945               linker flags for GNOMEVFS, overriding pkg-config
1946   HILDON_CFLAGS
1947               C compiler flags for HILDON, overriding pkg-config
1948   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1949   CAIRO_CFLAGS
1950               C compiler flags for CAIRO, overriding pkg-config
1951   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1952   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1953   GST_LIBS    linker flags for GST, overriding pkg-config
1954
1955 Use these variables to override the choices made by `configure' or to help
1956 it to find libraries and programs with nonstandard names/locations.
1957
1958 Report bugs to <wx-dev@lists.wxwidgets.org>.
1959 _ACEOF
1960 ac_status=$?
1961 fi
1962
1963 if test "$ac_init_help" = "recursive"; then
1964   # If there are subdirs, report their specific --help.
1965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966     test -d "$ac_dir" || continue
1967     ac_builddir=.
1968
1969 case "$ac_dir" in
1970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971 *)
1972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1973   # A ".." for each directory in $ac_dir_suffix.
1974   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1975   case $ac_top_builddir_sub in
1976   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1978   esac ;;
1979 esac
1980 ac_abs_top_builddir=$ac_pwd
1981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1982 # for backward compatibility:
1983 ac_top_builddir=$ac_top_build_prefix
1984
1985 case $srcdir in
1986   .)  # We are building in place.
1987     ac_srcdir=.
1988     ac_top_srcdir=$ac_top_builddir_sub
1989     ac_abs_top_srcdir=$ac_pwd ;;
1990   [\\/]* | ?:[\\/]* )  # Absolute name.
1991     ac_srcdir=$srcdir$ac_dir_suffix;
1992     ac_top_srcdir=$srcdir
1993     ac_abs_top_srcdir=$srcdir ;;
1994   *) # Relative name.
1995     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1996     ac_top_srcdir=$ac_top_build_prefix$srcdir
1997     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1998 esac
1999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2000
2001     cd "$ac_dir" || { ac_status=$?; continue; }
2002     # Check for guested configure.
2003     if test -f "$ac_srcdir/configure.gnu"; then
2004       echo &&
2005       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2006     elif test -f "$ac_srcdir/configure"; then
2007       echo &&
2008       $SHELL "$ac_srcdir/configure" --help=recursive
2009     else
2010       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2011     fi || ac_status=$?
2012     cd "$ac_pwd" || { ac_status=$?; break; }
2013   done
2014 fi
2015
2016 test -n "$ac_init_help" && exit $ac_status
2017 if $ac_init_version; then
2018   cat <<\_ACEOF
2019 wxWidgets configure 2.9.0
2020 generated by GNU Autoconf 2.61
2021
2022 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2023 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2024 This configure script is free software; the Free Software Foundation
2025 gives unlimited permission to copy, distribute and modify it.
2026 _ACEOF
2027   exit
2028 fi
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2032
2033 It was created by wxWidgets $as_me 2.9.0, which was
2034 generated by GNU Autoconf 2.61.  Invocation command line was
2035
2036   $ $0 $@
2037
2038 _ACEOF
2039 exec 5>>config.log
2040 {
2041 cat <<_ASUNAME
2042 ## --------- ##
2043 ## Platform. ##
2044 ## --------- ##
2045
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2054
2055 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2056 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2059 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2060 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2061 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2062
2063 _ASUNAME
2064
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   echo "PATH: $as_dir"
2071 done
2072 IFS=$as_save_IFS
2073
2074 } >&5
2075
2076 cat >&5 <<_ACEOF
2077
2078
2079 ## ----------- ##
2080 ## Core tests. ##
2081 ## ----------- ##
2082
2083 _ACEOF
2084
2085
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_configure_args=
2092 ac_configure_args0=
2093 ac_configure_args1=
2094 ac_must_keep_next=false
2095 for ac_pass in 1 2
2096 do
2097   for ac_arg
2098   do
2099     case $ac_arg in
2100     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102     | -silent | --silent | --silen | --sile | --sil)
2103       continue ;;
2104     *\'*)
2105       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106     esac
2107     case $ac_pass in
2108     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2109     2)
2110       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2111       if test $ac_must_keep_next = true; then
2112         ac_must_keep_next=false # Got value, back to normal.
2113       else
2114         case $ac_arg in
2115           *=* | --config-cache | -C | -disable-* | --disable-* \
2116           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118           | -with-* | --with-* | -without-* | --without-* | --x)
2119             case "$ac_configure_args0 " in
2120               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121             esac
2122             ;;
2123           -* ) ac_must_keep_next=true ;;
2124         esac
2125       fi
2126       ac_configure_args="$ac_configure_args '$ac_arg'"
2127       ;;
2128     esac
2129   done
2130 done
2131 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2132 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2133
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log.  We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140   # Save into config.log some information that might help in debugging.
2141   {
2142     echo
2143
2144     cat <<\_ASBOX
2145 ## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##
2148 _ASBOX
2149     echo
2150     # The following way of writing the cache mishandles newlines in values,
2151 (
2152   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153     eval ac_val=\$$ac_var
2154     case $ac_val in #(
2155     *${as_nl}*)
2156       case $ac_var in #(
2157       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2158 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2159       esac
2160       case $ac_var in #(
2161       _ | IFS | as_nl) ;; #(
2162       *) $as_unset $ac_var ;;
2163       esac ;;
2164     esac
2165   done
2166   (set) 2>&1 |
2167     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168     *${as_nl}ac_space=\ *)
2169       sed -n \
2170         "s/'\''/'\''\\\\'\'''\''/g;
2171           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172       ;; #(
2173     *)
2174       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175       ;;
2176     esac |
2177     sort
2178 )
2179     echo
2180
2181     cat <<\_ASBOX
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2185 _ASBOX
2186     echo
2187     for ac_var in $ac_subst_vars
2188     do
2189       eval ac_val=\$$ac_var
2190       case $ac_val in
2191       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192       esac
2193       echo "$ac_var='\''$ac_val'\''"
2194     done | sort
2195     echo
2196
2197     if test -n "$ac_subst_files"; then
2198       cat <<\_ASBOX
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2202 _ASBOX
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2214
2215     if test -s confdefs.h; then
2216       cat <<\_ASBOX
2217 ## ----------- ##
2218 ## confdefs.h. ##
2219 ## ----------- ##
2220 _ASBOX
2221       echo
2222       cat confdefs.h
2223       echo
2224     fi
2225     test "$ac_signal" != 0 &&
2226       echo "$as_me: caught signal $ac_signal"
2227     echo "$as_me: exit $exit_status"
2228   } >&5
2229   rm -f core *.core core.conftest.* &&
2230     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231     exit $exit_status
2232 ' 0
2233 for ac_signal in 1 2 13 15; do
2234   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2235 done
2236 ac_signal=0
2237
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2240
2241 # Predefined preprocessor variables.
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 _ACEOF
2256
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2265 _ACEOF
2266
2267
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer explicitly selected file to automatically selected ones.
2270 if test -n "$CONFIG_SITE"; then
2271   set x "$CONFIG_SITE"
2272 elif test "x$prefix" != xNONE; then
2273   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2274 else
2275   set x "$ac_default_prefix/share/config.site" \
2276         "$ac_default_prefix/etc/config.site"
2277 fi
2278 shift
2279 for ac_site_file
2280 do
2281   if test -r "$ac_site_file"; then
2282     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2283 echo "$as_me: loading site script $ac_site_file" >&6;}
2284     sed 's/^/| /' "$ac_site_file" >&5
2285     . "$ac_site_file"
2286   fi
2287 done
2288
2289 if test -r "$cache_file"; then
2290   # Some versions of bash will fail to source /dev/null (special
2291   # files actually), so we avoid doing that.
2292   if test -f "$cache_file"; then
2293     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2294 echo "$as_me: loading cache $cache_file" >&6;}
2295     case $cache_file in
2296       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297       *)                      . "./$cache_file";;
2298     esac
2299   fi
2300 else
2301   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2302 echo "$as_me: creating cache $cache_file" >&6;}
2303   >$cache_file
2304 fi
2305
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311   eval ac_new_set=\$ac_env_${ac_var}_set
2312   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313   eval ac_new_val=\$ac_env_${ac_var}_value
2314   case $ac_old_set,$ac_new_set in
2315     set,)
2316       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,set)
2320       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322       ac_cache_corrupted=: ;;
2323     ,);;
2324     *)
2325       if test "x$ac_old_val" != "x$ac_new_val"; then
2326         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2329 echo "$as_me:   former value:  $ac_old_val" >&2;}
2330         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2331 echo "$as_me:   current value: $ac_new_val" >&2;}
2332         ac_cache_corrupted=:
2333       fi;;
2334   esac
2335   # Pass precious variables to config.status.
2336   if test "$ac_new_set" = set; then
2337     case $ac_new_val in
2338     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339     *) ac_arg=$ac_var=$ac_new_val ;;
2340     esac
2341     case " $ac_configure_args " in
2342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2344     esac
2345   fi
2346 done
2347 if $ac_cache_corrupted; then
2348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2352    { (exit 1); exit 1; }; }
2353 fi
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
2385
2386
2387
2388
2389 ac_aux_dir=
2390 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2391   if test -f "$ac_dir/install-sh"; then
2392     ac_aux_dir=$ac_dir
2393     ac_install_sh="$ac_aux_dir/install-sh -c"
2394     break
2395   elif test -f "$ac_dir/install.sh"; then
2396     ac_aux_dir=$ac_dir
2397     ac_install_sh="$ac_aux_dir/install.sh -c"
2398     break
2399   elif test -f "$ac_dir/shtool"; then
2400     ac_aux_dir=$ac_dir
2401     ac_install_sh="$ac_aux_dir/shtool install -c"
2402     break
2403   fi
2404 done
2405 if test -z "$ac_aux_dir"; then
2406   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2407 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2408    { (exit 1); exit 1; }; }
2409 fi
2410
2411 # These three variables are undocumented and unsupported,
2412 # and are intended to be withdrawn in a future Autoconf release.
2413 # They can cause serious problems if a builder's source tree is in a directory
2414 # whose full name contains unusual characters.
2415 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2416 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2417 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2418
2419
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2424    { (exit 1); exit 1; }; }
2425
2426 { echo "$as_me:$LINENO: checking build system type" >&5
2427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2428 if test "${ac_cv_build+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2437    { (exit 1); exit 1; }; }
2438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2441    { (exit 1); exit 1; }; }
2442
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2445 echo "${ECHO_T}$ac_cv_build" >&6; }
2446 case $ac_cv_build in
2447 *-*-*) ;;
2448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2449 echo "$as_me: error: invalid value of canonical build" >&2;}
2450    { (exit 1); exit 1; }; };;
2451 esac
2452 build=$ac_cv_build
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_build
2455 shift
2456 build_cpu=$1
2457 build_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 build_os=$*
2462 IFS=$ac_save_IFS
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2464
2465
2466 { echo "$as_me:$LINENO: checking host system type" >&5
2467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2468 if test "${ac_cv_host+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test "x$host_alias" = x; then
2472   ac_cv_host=$ac_cv_build
2473 else
2474   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2477    { (exit 1); exit 1; }; }
2478 fi
2479
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2482 echo "${ECHO_T}$ac_cv_host" >&6; }
2483 case $ac_cv_host in
2484 *-*-*) ;;
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2486 echo "$as_me: error: invalid value of canonical host" >&2;}
2487    { (exit 1); exit 1; }; };;
2488 esac
2489 host=$ac_cv_host
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_host
2492 shift
2493 host_cpu=$1
2494 host_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 host_os=$*
2499 IFS=$ac_save_IFS
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2501
2502
2503 { echo "$as_me:$LINENO: checking target system type" >&5
2504 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2505 if test "${ac_cv_target+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test "x$target_alias" = x; then
2509   ac_cv_target=$ac_cv_host
2510 else
2511   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2512     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2513 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2514    { (exit 1); exit 1; }; }
2515 fi
2516
2517 fi
2518 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2519 echo "${ECHO_T}$ac_cv_target" >&6; }
2520 case $ac_cv_target in
2521 *-*-*) ;;
2522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2523 echo "$as_me: error: invalid value of canonical target" >&2;}
2524    { (exit 1); exit 1; }; };;
2525 esac
2526 target=$ac_cv_target
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_target
2529 shift
2530 target_cpu=$1
2531 target_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 target_os=$*
2536 IFS=$ac_save_IFS
2537 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2538
2539
2540 # The aliases save the names the user supplied, while $host etc.
2541 # will get canonicalized.
2542 test -n "$target_alias" &&
2543   test "$program_prefix$program_suffix$program_transform_name" = \
2544     NONENONEs,x,x, &&
2545   program_prefix=${target_alias}-
2546
2547
2548
2549 wx_major_version_number=2
2550 wx_minor_version_number=9
2551 wx_release_number=0
2552 wx_subrelease_number=0
2553
2554 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2555 WX_VERSION=$WX_RELEASE.$wx_release_number
2556 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2557
2558 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2559
2560
2561 wx_top_builddir="`pwd`"
2562
2563
2564
2565
2566 USE_UNIX=1
2567 USE_OS2=0
2568 USE_WIN32=0
2569 USE_DOS=0
2570 USE_BEOS=0
2571 USE_MAC=0
2572
2573 USE_AIX=
2574 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2575 USE_GNU=                            USE_HPUX=
2576 USE_LINUX=
2577 USE_NETBSD=
2578 USE_OPENBSD=
2579 USE_OSF=                            USE_SGI=
2580 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2581 USE_ULTRIX=
2582 USE_UNIXWARE=
2583
2584 USE_ALPHA=
2585
2586 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2587
2588 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2589
2590 DEFAULT_wxUSE_COCOA=0
2591 DEFAULT_wxUSE_GTK=0
2592 DEFAULT_wxUSE_MAC=0
2593 DEFAULT_wxUSE_MGL=0
2594 DEFAULT_wxUSE_MICROWIN=0
2595 DEFAULT_wxUSE_MOTIF=0
2596 DEFAULT_wxUSE_MSW=0
2597 DEFAULT_wxUSE_PM=0
2598 DEFAULT_wxUSE_X11=0
2599 DEFAULT_wxUSE_DFB=0
2600
2601 DEFAULT_DEFAULT_wxUSE_COCOA=0
2602 DEFAULT_DEFAULT_wxUSE_GTK=0
2603 DEFAULT_DEFAULT_wxUSE_MAC=0
2604 DEFAULT_DEFAULT_wxUSE_MGL=0
2605 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2606 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2607 DEFAULT_DEFAULT_wxUSE_MSW=0
2608 DEFAULT_DEFAULT_wxUSE_PM=0
2609 DEFAULT_DEFAULT_wxUSE_X11=0
2610 DEFAULT_DEFAULT_wxUSE_DFB=0
2611
2612 PROGRAM_EXT=
2613 SO_SUFFIX=so
2614 SAMPLES_RPATH_FLAG=
2615 SAMPLES_RPATH_POSTLINK=
2616
2617 DEFAULT_STD_FLAG=yes
2618
2619 case "${host}" in
2620   *-hp-hpux* )
2621     USE_HPUX=1
2622     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2623     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2624     SO_SUFFIX=sl
2625     cat >>confdefs.h <<\_ACEOF
2626 #define __HPUX__ 1
2627 _ACEOF
2628
2629
2630             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2631   ;;
2632   *-*-linux* )
2633     USE_LINUX=1
2634     cat >>confdefs.h <<\_ACEOF
2635 #define __LINUX__ 1
2636 _ACEOF
2637
2638     TMP=`uname -m`
2639     if test "x$TMP" = "xalpha"; then
2640       USE_ALPHA=1
2641       cat >>confdefs.h <<\_ACEOF
2642 #define __ALPHA__ 1
2643 _ACEOF
2644
2645     fi
2646     DEFAULT_DEFAULT_wxUSE_GTK=1
2647   ;;
2648   *-*-gnu* | *-*-k*bsd*-gnu )
2649     USE_GNU=1
2650     TMP=`uname -m`
2651     if test "x$TMP" = "xalpha"; then
2652       USE_ALPHA=1
2653       cat >>confdefs.h <<\_ACEOF
2654 #define __ALPHA__ 1
2655 _ACEOF
2656
2657     fi
2658     DEFAULT_DEFAULT_wxUSE_GTK=1
2659   ;;
2660   *-*-irix5* | *-*-irix6* )
2661     USE_SGI=1
2662     USE_SVR4=1
2663     cat >>confdefs.h <<\_ACEOF
2664 #define __SGI__ 1
2665 _ACEOF
2666
2667     cat >>confdefs.h <<\_ACEOF
2668 #define __SVR4__ 1
2669 _ACEOF
2670
2671     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2672   ;;
2673   *-*-solaris2* )
2674     USE_SUN=1
2675     USE_SOLARIS=1
2676     USE_SVR4=1
2677     cat >>confdefs.h <<\_ACEOF
2678 #define __SUN__ 1
2679 _ACEOF
2680
2681     cat >>confdefs.h <<\_ACEOF
2682 #define __SOLARIS__ 1
2683 _ACEOF
2684
2685     cat >>confdefs.h <<\_ACEOF
2686 #define __SVR4__ 1
2687 _ACEOF
2688
2689     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2690     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2691   ;;
2692   *-*-sunos4* )
2693     USE_SUN=1
2694     USE_SUNOS=1
2695     USE_BSD=1
2696     cat >>confdefs.h <<\_ACEOF
2697 #define __SUN__ 1
2698 _ACEOF
2699
2700     cat >>confdefs.h <<\_ACEOF
2701 #define __SUNOS__ 1
2702 _ACEOF
2703
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __BSD__ 1
2706 _ACEOF
2707
2708     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2709   ;;
2710   *-*-freebsd*)
2711     USE_BSD=1
2712     USE_FREEBSD=1
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __FREEBSD__ 1
2715 _ACEOF
2716
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __BSD__ 1
2719 _ACEOF
2720
2721     DEFAULT_DEFAULT_wxUSE_GTK=1
2722   ;;
2723   *-*-openbsd*|*-*-mirbsd*)
2724     USE_BSD=1
2725     USE_OPENBSD=1
2726     cat >>confdefs.h <<\_ACEOF
2727 #define __OPENBSD__ 1
2728 _ACEOF
2729
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __BSD__ 1
2732 _ACEOF
2733
2734     DEFAULT_DEFAULT_wxUSE_GTK=1
2735   ;;
2736   *-*-netbsd*)
2737     USE_BSD=1
2738     USE_NETBSD=1
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __NETBSD__ 1
2741 _ACEOF
2742
2743     cat >>confdefs.h <<\_ACEOF
2744 #define __BSD__ 1
2745 _ACEOF
2746
2747     DEFAULT_DEFAULT_wxUSE_GTK=1
2748     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2749
2750             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2751   ;;
2752   *-*-osf* )
2753     USE_ALPHA=1
2754     USE_OSF=1
2755     cat >>confdefs.h <<\_ACEOF
2756 #define __ALPHA__ 1
2757 _ACEOF
2758
2759     cat >>confdefs.h <<\_ACEOF
2760 #define __OSF__ 1
2761 _ACEOF
2762
2763     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2764     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2765   ;;
2766   *-*-dgux5* )
2767     USE_ALPHA=1
2768     USE_SVR4=1
2769     cat >>confdefs.h <<\_ACEOF
2770 #define __ALPHA__ 1
2771 _ACEOF
2772
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __SVR4__ 1
2775 _ACEOF
2776
2777     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2778   ;;
2779   *-*-sysv5* )
2780     USE_SYSV=1
2781     USE_SVR4=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __SYSV__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __SVR4__ 1
2788 _ACEOF
2789
2790     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2791   ;;
2792   *-*-aix* )
2793     USE_AIX=1
2794     USE_SYSV=1
2795     USE_SVR4=1
2796                         SO_SUFFIX=a
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __AIX__ 1
2799 _ACEOF
2800
2801     cat >>confdefs.h <<\_ACEOF
2802 #define __SYSV__ 1
2803 _ACEOF
2804
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __SVR4__ 1
2807 _ACEOF
2808
2809     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2810   ;;
2811
2812   *-*-*UnixWare*)
2813     USE_SYSV=1
2814     USE_SVR4=1
2815     USE_UNIXWARE=1
2816     cat >>confdefs.h <<\_ACEOF
2817 #define __UNIXWARE__ 1
2818 _ACEOF
2819
2820   ;;
2821
2822   *-*-cygwin* | *-*-mingw32* )
2823                 SO_SUFFIX=dll
2824     PROGRAM_EXT=".exe"
2825     DEFAULT_DEFAULT_wxUSE_MSW=1
2826   ;;
2827
2828   *-pc-msdosdjgpp )
2829     USE_UNIX=0
2830     USE_DOS=1
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __DOS__ 1
2833 _ACEOF
2834
2835     PROGRAM_EXT=".exe"
2836     DEFAULT_DEFAULT_wxUSE_MGL=1
2837   ;;
2838
2839   *-pc-os2_emx | *-pc-os2-emx )
2840     cat >>confdefs.h <<\_ACEOF
2841 #define __EMX__ 1
2842 _ACEOF
2843
2844     USE_OS2=1
2845     cat >>confdefs.h <<\_ACEOF
2846 #define __OS2__ 1
2847 _ACEOF
2848
2849     PROGRAM_EXT=".exe"
2850     DEFAULT_DEFAULT_wxUSE_PM=1
2851         CXX=gcc
2852     LDFLAGS="$LDFLAGS -Zcrtdll"
2853                         ac_executable_extensions=".exe"
2854     export ac_executable_extensions
2855             ac_save_IFS="$IFS"
2856     IFS='\\'
2857     ac_TEMP_PATH=
2858     for ac_dir in $PATH; do
2859       IFS=$ac_save_IFS
2860       if test -z "$ac_TEMP_PATH"; then
2861         ac_TEMP_PATH="$ac_dir"
2862       else
2863         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2864       fi
2865     done
2866     export PATH="$ac_TEMP_PATH"
2867     unset ac_TEMP_PATH
2868     DEFAULT_STD_FLAG=no
2869   ;;
2870
2871   *-*-darwin* )
2872         USE_BSD=1
2873     USE_DARWIN=1
2874     SO_SUFFIX=dylib
2875     cat >>confdefs.h <<\_ACEOF
2876 #define __BSD__ 1
2877 _ACEOF
2878
2879     cat >>confdefs.h <<\_ACEOF
2880 #define __DARWIN__ 1
2881 _ACEOF
2882
2883     cat >>confdefs.h <<\_ACEOF
2884 #define TARGET_CARBON 1
2885 _ACEOF
2886
2887     DEFAULT_DEFAULT_wxUSE_MAC=1
2888     DEFAULT_STD_FLAG=no
2889   ;;
2890   powerpc-apple-macos* )
2891         USE_UNIX=0
2892             ac_cv_c_bigendian=yes
2893     SO_SUFFIX=shlib
2894             DEFAULT_DEFAULT_wxUSE_MAC=1
2895     DEFAULT_STD_FLAG=no
2896   ;;
2897
2898   *-*-beos* )
2899         USE_BEOS=1
2900     cat >>confdefs.h <<\_ACEOF
2901 #define __BEOS__ 1
2902 _ACEOF
2903
2904   ;;
2905
2906   *)
2907     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2908 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2909     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2910 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2911
2912     DEFAULT_DEFAULT_wxUSE_X11=1
2913     DEFAULT_wxUSE_SHARED=no
2914 esac
2915
2916
2917
2918
2919           wx_arg_cache_file="configarg.cache"
2920           echo "loading argument cache $wx_arg_cache_file"
2921           rm -f ${wx_arg_cache_file}.tmp
2922           touch ${wx_arg_cache_file}.tmp
2923           touch ${wx_arg_cache_file}
2924
2925
2926 DEFAULT_wxUSE_ALL_FEATURES=yes
2927
2928 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2929 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2930
2931 DEFAULT_wxUSE_DMALLOC=no
2932 DEFAULT_wxUSE_LIBGNOMEVFS=no
2933 DEFAULT_wxUSE_LIBHILDON=no
2934 DEFAULT_wxUSE_LIBMSPACK=no
2935 DEFAULT_wxUSE_LIBSDL=no
2936 DEFAULT_wxUSE_ODBC=no
2937 DEFAULT_wxUSE_OPENGL=no
2938
2939 DEFAULT_wxUSE_ACCESSIBILITY=no
2940 DEFAULT_wxUSE_DATAVIEWCTRL=no
2941 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2942 DEFAULT_wxUSE_MEDIACTRL=no
2943 DEFAULT_wxUSE_TAB_DIALOG=no
2944
2945 DEFAULT_wxUSE_UNICODE_UTF8=auto
2946 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2947
2948 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2949
2950 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2951
2952 DEFAULT_wxUSE_GTK2=yes
2953
2954 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2955
2956
2957 for toolkit in `echo $ALL_TOOLKITS`; do
2958   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2959   if test "x$LINE" != "x" ; then
2960     has_toolkit_in_cache=1
2961     eval "DEFAULT_$LINE"
2962     eval "CACHE_$toolkit=1"
2963
2964     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2965     if test "x$LINE" != "x" ; then
2966         eval "DEFAULT_$LINE"
2967     fi
2968   fi
2969 done
2970
2971
2972
2973
2974
2975           enablestring=disable
2976           defaultval=
2977           if test -z "$defaultval"; then
2978               if test x"$enablestring" = xdisable; then
2979                   defaultval=yes
2980               else
2981                   defaultval=no
2982               fi
2983           fi
2984
2985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2986 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2987           # Check whether --enable-gui was given.
2988 if test "${enable_gui+set}" = set; then
2989   enableval=$enable_gui;
2990                           if test "$enableval" = yes; then
2991                             wx_cv_use_gui='wxUSE_GUI=yes'
2992                           else
2993                             wx_cv_use_gui='wxUSE_GUI=no'
2994                           fi
2995                           cache=yes
2996
2997 else
2998
2999                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
3000                           if test "x$LINE" != x ; then
3001                               eval "DEFAULT_$LINE"
3002                               cache=yes
3003                           else
3004                               cache=no
3005                           fi
3006
3007                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3008
3009 fi
3010
3011
3012           eval "$wx_cv_use_gui"
3013           if test "x$cache" = xyes; then
3014             echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
3015           fi
3016
3017           if test x"$enablestring" = xdisable; then
3018             if test $wxUSE_GUI = yes; then
3019               result=no
3020             else
3021               result=yes
3022             fi
3023           else
3024             result=$wxUSE_GUI
3025           fi
3026
3027           { echo "$as_me:$LINENO: result: $result" >&5
3028 echo "${ECHO_T}$result" >&6; }
3029
3030
3031           enablestring=
3032           defaultval=
3033           if test -z "$defaultval"; then
3034               if test x"$enablestring" = xdisable; then
3035                   defaultval=yes
3036               else
3037                   defaultval=no
3038               fi
3039           fi
3040
3041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3042 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3043           # Check whether --enable-monolithic was given.
3044 if test "${enable_monolithic+set}" = set; then
3045   enableval=$enable_monolithic;
3046                           if test "$enableval" = yes; then
3047                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3048                           else
3049                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3050                           fi
3051                           cache=yes
3052
3053 else
3054
3055                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3056                           if test "x$LINE" != x ; then
3057                               eval "DEFAULT_$LINE"
3058                               cache=yes
3059                           else
3060                               cache=no
3061                           fi
3062
3063                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3064
3065 fi
3066
3067
3068           eval "$wx_cv_use_monolithic"
3069           if test "x$cache" = xyes; then
3070             echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
3071           fi
3072
3073           if test x"$enablestring" = xdisable; then
3074             if test $wxUSE_MONOLITHIC = yes; then
3075               result=no
3076             else
3077               result=yes
3078             fi
3079           else
3080             result=$wxUSE_MONOLITHIC
3081           fi
3082
3083           { echo "$as_me:$LINENO: result: $result" >&5
3084 echo "${ECHO_T}$result" >&6; }
3085
3086
3087           enablestring=
3088           defaultval=
3089           if test -z "$defaultval"; then
3090               if test x"$enablestring" = xdisable; then
3091                   defaultval=yes
3092               else
3093                   defaultval=no
3094               fi
3095           fi
3096
3097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3098 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3099           # Check whether --enable-plugins was given.
3100 if test "${enable_plugins+set}" = set; then
3101   enableval=$enable_plugins;
3102                           if test "$enableval" = yes; then
3103                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3104                           else
3105                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3106                           fi
3107                           cache=yes
3108
3109 else
3110
3111                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3112                           if test "x$LINE" != x ; then
3113                               eval "DEFAULT_$LINE"
3114                               cache=yes
3115                           else
3116                               cache=no
3117                           fi
3118
3119                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3120
3121 fi
3122
3123
3124           eval "$wx_cv_use_plugins"
3125           if test "x$cache" = xyes; then
3126             echo "wxUSE_PLUGINS=$wxUSE_PLUGINS" >> ${wx_arg_cache_file}.tmp
3127           fi
3128
3129           if test x"$enablestring" = xdisable; then
3130             if test $wxUSE_PLUGINS = yes; then
3131               result=no
3132             else
3133               result=yes
3134             fi
3135           else
3136             result=$wxUSE_PLUGINS
3137           fi
3138
3139           { echo "$as_me:$LINENO: result: $result" >&5
3140 echo "${ECHO_T}$result" >&6; }
3141
3142
3143           withstring=without
3144           defaultval=$wxUSE_ALL_FEATURES
3145           if test -z "$defaultval"; then
3146               if test x"$withstring" = xwithout; then
3147                   defaultval=yes
3148               else
3149                   defaultval=no
3150               fi
3151           fi
3152           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3153 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3154
3155 # Check whether --with-subdirs was given.
3156 if test "${with_subdirs+set}" = set; then
3157   withval=$with_subdirs;
3158                         if test "$withval" = yes; then
3159                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3160                         else
3161                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3162                         fi
3163                         cache=yes
3164
3165 else
3166
3167                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3168                         if test "x$LINE" != x ; then
3169                             eval "DEFAULT_$LINE"
3170                             cache=yes
3171                         else
3172                             cache=no
3173                         fi
3174
3175                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3176
3177 fi
3178
3179
3180           eval "$wx_cv_use_subdirs"
3181           if test "x$cache" = xyes; then
3182             echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
3183           fi
3184
3185           if test x"$withstring" = xwithout; then
3186             if test $wxWITH_SUBDIRS = yes; then
3187               result=no
3188             else
3189               result=yes
3190             fi
3191           else
3192             result=$wxWITH_SUBDIRS
3193           fi
3194
3195           { echo "$as_me:$LINENO: result: $result" >&5
3196 echo "${ECHO_T}$result" >&6; }
3197
3198
3199 # Check whether --with-flavour was given.
3200 if test "${with_flavour+set}" = set; then
3201   withval=$with_flavour; WX_FLAVOUR="$withval"
3202 fi
3203
3204
3205           enablestring=
3206           defaultval=
3207           if test -z "$defaultval"; then
3208               if test x"$enablestring" = xdisable; then
3209                   defaultval=yes
3210               else
3211                   defaultval=no
3212               fi
3213           fi
3214
3215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3216 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3217           # Check whether --enable-official_build was given.
3218 if test "${enable_official_build+set}" = set; then
3219   enableval=$enable_official_build;
3220                           if test "$enableval" = yes; then
3221                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3222                           else
3223                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3224                           fi
3225                           cache=yes
3226
3227 else
3228
3229                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3230                           if test "x$LINE" != x ; then
3231                               eval "DEFAULT_$LINE"
3232                               cache=yes
3233                           else
3234                               cache=no
3235                           fi
3236
3237                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3238
3239 fi
3240
3241
3242           eval "$wx_cv_use_official_build"
3243           if test "x$cache" = xyes; then
3244             echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
3245           fi
3246
3247           if test x"$enablestring" = xdisable; then
3248             if test $wxUSE_OFFICIAL_BUILD = yes; then
3249               result=no
3250             else
3251               result=yes
3252             fi
3253           else
3254             result=$wxUSE_OFFICIAL_BUILD
3255           fi
3256
3257           { echo "$as_me:$LINENO: result: $result" >&5
3258 echo "${ECHO_T}$result" >&6; }
3259
3260 # Check whether --enable-vendor was given.
3261 if test "${enable_vendor+set}" = set; then
3262   enableval=$enable_vendor; VENDOR="$enableval"
3263 fi
3264
3265 if test "x$VENDOR" = "x"; then
3266     VENDOR="custom"
3267 fi
3268
3269
3270           enablestring=disable
3271           defaultval=
3272           if test -z "$defaultval"; then
3273               if test x"$enablestring" = xdisable; then
3274                   defaultval=yes
3275               else
3276                   defaultval=no
3277               fi
3278           fi
3279
3280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3281 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3282           # Check whether --enable-all-features was given.
3283 if test "${enable_all_features+set}" = set; then
3284   enableval=$enable_all_features;
3285                           if test "$enableval" = yes; then
3286                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3287                           else
3288                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3289                           fi
3290                           cache=yes
3291
3292 else
3293
3294                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3295                           if test "x$LINE" != x ; then
3296                               eval "DEFAULT_$LINE"
3297                               cache=yes
3298                           else
3299                               cache=no
3300                           fi
3301
3302                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3303
3304 fi
3305
3306
3307           eval "$wx_cv_use_all_features"
3308           if test "x$cache" = xyes; then
3309             echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
3310           fi
3311
3312           if test x"$enablestring" = xdisable; then
3313             if test $wxUSE_ALL_FEATURES = yes; then
3314               result=no
3315             else
3316               result=yes
3317             fi
3318           else
3319             result=$wxUSE_ALL_FEATURES
3320           fi
3321
3322           { echo "$as_me:$LINENO: result: $result" >&5
3323 echo "${ECHO_T}$result" >&6; }
3324
3325
3326
3327 if test "$wxUSE_GUI" = "yes"; then
3328
3329
3330           enablestring=
3331           defaultval=
3332           if test -z "$defaultval"; then
3333               if test x"$enablestring" = xdisable; then
3334                   defaultval=yes
3335               else
3336                   defaultval=no
3337               fi
3338           fi
3339
3340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3341 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3342           # Check whether --enable-universal was given.
3343 if test "${enable_universal+set}" = set; then
3344   enableval=$enable_universal;
3345                           if test "$enableval" = yes; then
3346                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3347                           else
3348                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3349                           fi
3350                           cache=yes
3351
3352 else
3353
3354                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3355                           if test "x$LINE" != x ; then
3356                               eval "DEFAULT_$LINE"
3357                               cache=yes
3358                           else
3359                               cache=no
3360                           fi
3361
3362                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3363
3364 fi
3365
3366
3367           eval "$wx_cv_use_universal"
3368           if test "x$cache" = xyes; then
3369             echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
3370           fi
3371
3372           if test x"$enablestring" = xdisable; then
3373             if test $wxUSE_UNIVERSAL = yes; then
3374               result=no
3375             else
3376               result=yes
3377             fi
3378           else
3379             result=$wxUSE_UNIVERSAL
3380           fi
3381
3382           { echo "$as_me:$LINENO: result: $result" >&5
3383 echo "${ECHO_T}$result" >&6; }
3384
3385 if test "$wxUSE_UNIVERSAL" = "yes"; then
3386
3387 # Check whether --with-themes was given.
3388 if test "${with_themes+set}" = set; then
3389   withval=$with_themes; wxUNIV_THEMES="$withval"
3390 fi
3391
3392 fi
3393
3394
3395 # Check whether --with-gtk was given.
3396 if test "${with_gtk+set}" = set; then
3397   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3398 fi
3399
3400
3401 # Check whether --with-motif was given.
3402 if test "${with_motif+set}" = set; then
3403   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3404 fi
3405
3406
3407 # Check whether --with-mac was given.
3408 if test "${with_mac+set}" = set; then
3409   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3410 fi
3411
3412
3413 # Check whether --with-cocoa was given.
3414 if test "${with_cocoa+set}" = set; then
3415   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3416 fi
3417
3418
3419 # Check whether --with-wine was given.
3420 if test "${with_wine+set}" = set; then
3421   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3422 fi
3423
3424
3425 # Check whether --with-msw was given.
3426 if test "${with_msw+set}" = set; then
3427   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3428 fi
3429
3430
3431 # Check whether --with-pm was given.
3432 if test "${with_pm+set}" = set; then
3433   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3434 fi
3435
3436
3437 # Check whether --with-mgl was given.
3438 if test "${with_mgl+set}" = set; then
3439   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3440 fi
3441
3442
3443 # Check whether --with-directfb was given.
3444 if test "${with_directfb+set}" = set; then
3445   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3446 fi
3447
3448
3449 # Check whether --with-microwin was given.
3450 if test "${with_microwin+set}" = set; then
3451   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3452 fi
3453
3454
3455 # Check whether --with-x11 was given.
3456 if test "${with_x11+set}" = set; then
3457   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3458 fi
3459
3460
3461           enablestring=
3462           defaultval=
3463           if test -z "$defaultval"; then
3464               if test x"$enablestring" = xdisable; then
3465                   defaultval=yes
3466               else
3467                   defaultval=no
3468               fi
3469           fi
3470
3471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3472 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3473           # Check whether --enable-nanox was given.
3474 if test "${enable_nanox+set}" = set; then
3475   enableval=$enable_nanox;
3476                           if test "$enableval" = yes; then
3477                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3478                           else
3479                             wx_cv_use_nanox='wxUSE_NANOX=no'
3480                           fi
3481                           cache=yes
3482
3483 else
3484
3485                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3486                           if test "x$LINE" != x ; then
3487                               eval "DEFAULT_$LINE"
3488                               cache=yes
3489                           else
3490                               cache=no
3491                           fi
3492
3493                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3494
3495 fi
3496
3497
3498           eval "$wx_cv_use_nanox"
3499           if test "x$cache" = xyes; then
3500             echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
3501           fi
3502
3503           if test x"$enablestring" = xdisable; then
3504             if test $wxUSE_NANOX = yes; then
3505               result=no
3506             else
3507               result=yes
3508             fi
3509           else
3510             result=$wxUSE_NANOX
3511           fi
3512
3513           { echo "$as_me:$LINENO: result: $result" >&5
3514 echo "${ECHO_T}$result" >&6; }
3515
3516
3517 # Check whether --enable-gtk2 was given.
3518 if test "${enable_gtk2+set}" = set; then
3519   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3520 fi
3521
3522
3523           enablestring=
3524           defaultval=
3525           if test -z "$defaultval"; then
3526               if test x"$enablestring" = xdisable; then
3527                   defaultval=yes
3528               else
3529                   defaultval=no
3530               fi
3531           fi
3532
3533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3534 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3535           # Check whether --enable-gpe was given.
3536 if test "${enable_gpe+set}" = set; then
3537   enableval=$enable_gpe;
3538                           if test "$enableval" = yes; then
3539                             wx_cv_use_gpe='wxUSE_GPE=yes'
3540                           else
3541                             wx_cv_use_gpe='wxUSE_GPE=no'
3542                           fi
3543                           cache=yes
3544
3545 else
3546
3547                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3548                           if test "x$LINE" != x ; then
3549                               eval "DEFAULT_$LINE"
3550                               cache=yes
3551                           else
3552                               cache=no
3553                           fi
3554
3555                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3556
3557 fi
3558
3559
3560           eval "$wx_cv_use_gpe"
3561           if test "x$cache" = xyes; then
3562             echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
3563           fi
3564
3565           if test x"$enablestring" = xdisable; then
3566             if test $wxUSE_GPE = yes; then
3567               result=no
3568             else
3569               result=yes
3570             fi
3571           else
3572             result=$wxUSE_GPE
3573           fi
3574
3575           { echo "$as_me:$LINENO: result: $result" >&5
3576 echo "${ECHO_T}$result" >&6; }
3577
3578
3579
3580
3581           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3582 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3583
3584 # Check whether --with-libpng was given.
3585 if test "${with_libpng+set}" = set; then
3586   withval=$with_libpng;
3587                         if test "$withval" = yes; then
3588                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3589                         elif test "$withval" = no; then
3590                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3591                         elif test "$withval" = sys; then
3592                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3593                         elif test "$withval" = builtin; then
3594                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3595                         else
3596                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3597 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3598    { (exit 1); exit 1; }; }
3599                         fi
3600                         cache=yes
3601
3602 else
3603
3604                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3605                         if test "x$LINE" != x ; then
3606                             eval "DEFAULT_$LINE"
3607                             cache=yes
3608                         else
3609                             cache=no
3610                         fi
3611
3612                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3613
3614 fi
3615
3616
3617           eval "$wx_cv_use_libpng"
3618           if test "x$cache" = xyes; then
3619             echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
3620           fi
3621
3622           if test "$wxUSE_LIBPNG" = yes; then
3623             { echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6; }
3625           elif test "$wxUSE_LIBPNG" = no; then
3626             { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3628           elif test "$wxUSE_LIBPNG" = sys; then
3629             { echo "$as_me:$LINENO: result: system version" >&5
3630 echo "${ECHO_T}system version" >&6; }
3631           elif test "$wxUSE_LIBPNG" = builtin; then
3632             { echo "$as_me:$LINENO: result: builtin version" >&5
3633 echo "${ECHO_T}builtin version" >&6; }
3634           else
3635             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3636 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3637    { (exit 1); exit 1; }; }
3638           fi
3639
3640
3641           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3642 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3643
3644 # Check whether --with-libjpeg was given.
3645 if test "${with_libjpeg+set}" = set; then
3646   withval=$with_libjpeg;
3647                         if test "$withval" = yes; then
3648                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3649                         elif test "$withval" = no; then
3650                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3651                         elif test "$withval" = sys; then
3652                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3653                         elif test "$withval" = builtin; then
3654                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3655                         else
3656                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3657 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3658    { (exit 1); exit 1; }; }
3659                         fi
3660                         cache=yes
3661
3662 else
3663
3664                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3665                         if test "x$LINE" != x ; then
3666                             eval "DEFAULT_$LINE"
3667                             cache=yes
3668                         else
3669                             cache=no
3670                         fi
3671
3672                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3673
3674 fi
3675
3676
3677           eval "$wx_cv_use_libjpeg"
3678           if test "x$cache" = xyes; then
3679             echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
3680           fi
3681
3682           if test "$wxUSE_LIBJPEG" = yes; then
3683             { echo "$as_me:$LINENO: result: yes" >&5
3684 echo "${ECHO_T}yes" >&6; }
3685           elif test "$wxUSE_LIBJPEG" = no; then
3686             { echo "$as_me:$LINENO: result: no" >&5
3687 echo "${ECHO_T}no" >&6; }
3688           elif test "$wxUSE_LIBJPEG" = sys; then
3689             { echo "$as_me:$LINENO: result: system version" >&5
3690 echo "${ECHO_T}system version" >&6; }
3691           elif test "$wxUSE_LIBJPEG" = builtin; then
3692             { echo "$as_me:$LINENO: result: builtin version" >&5
3693 echo "${ECHO_T}builtin version" >&6; }
3694           else
3695             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3696 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3697    { (exit 1); exit 1; }; }
3698           fi
3699
3700
3701           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3702 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3703
3704 # Check whether --with-libtiff was given.
3705 if test "${with_libtiff+set}" = set; then
3706   withval=$with_libtiff;
3707                         if test "$withval" = yes; then
3708                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3709                         elif test "$withval" = no; then
3710                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3711                         elif test "$withval" = sys; then
3712                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3713                         elif test "$withval" = builtin; then
3714                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3715                         else
3716                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3717 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3718    { (exit 1); exit 1; }; }
3719                         fi
3720                         cache=yes
3721
3722 else
3723
3724                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3725                         if test "x$LINE" != x ; then
3726                             eval "DEFAULT_$LINE"
3727                             cache=yes
3728                         else
3729                             cache=no
3730                         fi
3731
3732                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3733
3734 fi
3735
3736
3737           eval "$wx_cv_use_libtiff"
3738           if test "x$cache" = xyes; then
3739             echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
3740           fi
3741
3742           if test "$wxUSE_LIBTIFF" = yes; then
3743             { echo "$as_me:$LINENO: result: yes" >&5
3744 echo "${ECHO_T}yes" >&6; }
3745           elif test "$wxUSE_LIBTIFF" = no; then
3746             { echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6; }
3748           elif test "$wxUSE_LIBTIFF" = sys; then
3749             { echo "$as_me:$LINENO: result: system version" >&5
3750 echo "${ECHO_T}system version" >&6; }
3751           elif test "$wxUSE_LIBTIFF" = builtin; then
3752             { echo "$as_me:$LINENO: result: builtin version" >&5
3753 echo "${ECHO_T}builtin version" >&6; }
3754           else
3755             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3756 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3757    { (exit 1); exit 1; }; }
3758           fi
3759
3760
3761           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3762 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3763
3764 # Check whether --with-libxpm was given.
3765 if test "${with_libxpm+set}" = set; then
3766   withval=$with_libxpm;
3767                         if test "$withval" = yes; then
3768                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3769                         elif test "$withval" = no; then
3770                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3771                         elif test "$withval" = sys; then
3772                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3773                         elif test "$withval" = builtin; then
3774                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3775                         else
3776                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3777 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3778    { (exit 1); exit 1; }; }
3779                         fi
3780                         cache=yes
3781
3782 else
3783
3784                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3785                         if test "x$LINE" != x ; then
3786                             eval "DEFAULT_$LINE"
3787                             cache=yes
3788                         else
3789                             cache=no
3790                         fi
3791
3792                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3793
3794 fi
3795
3796
3797           eval "$wx_cv_use_libxpm"
3798           if test "x$cache" = xyes; then
3799             echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
3800           fi
3801
3802           if test "$wxUSE_LIBXPM" = yes; then
3803             { echo "$as_me:$LINENO: result: yes" >&5
3804 echo "${ECHO_T}yes" >&6; }
3805           elif test "$wxUSE_LIBXPM" = no; then
3806             { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3808           elif test "$wxUSE_LIBXPM" = sys; then
3809             { echo "$as_me:$LINENO: result: system version" >&5
3810 echo "${ECHO_T}system version" >&6; }
3811           elif test "$wxUSE_LIBXPM" = builtin; then
3812             { echo "$as_me:$LINENO: result: builtin version" >&5
3813 echo "${ECHO_T}builtin version" >&6; }
3814           else
3815             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3816 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3817    { (exit 1); exit 1; }; }
3818           fi
3819
3820
3821           withstring=
3822           defaultval=$wxUSE_ALL_FEATURES
3823           if test -z "$defaultval"; then
3824               if test x"$withstring" = xwithout; then
3825                   defaultval=yes
3826               else
3827                   defaultval=no
3828               fi
3829           fi
3830           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3831 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3832
3833 # Check whether --with-libmspack was given.
3834 if test "${with_libmspack+set}" = set; then
3835   withval=$with_libmspack;
3836                         if test "$withval" = yes; then
3837                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3838                         else
3839                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3840                         fi
3841                         cache=yes
3842
3843 else
3844
3845                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3846                         if test "x$LINE" != x ; then
3847                             eval "DEFAULT_$LINE"
3848                             cache=yes
3849                         else
3850                             cache=no
3851                         fi
3852
3853                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3854
3855 fi
3856
3857
3858           eval "$wx_cv_use_libmspack"
3859           if test "x$cache" = xyes; then
3860             echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
3861           fi
3862
3863           if test x"$withstring" = xwithout; then
3864             if test $wxUSE_LIBMSPACK = yes; then
3865               result=no
3866             else
3867               result=yes
3868             fi
3869           else
3870             result=$wxUSE_LIBMSPACK
3871           fi
3872
3873           { echo "$as_me:$LINENO: result: $result" >&5
3874 echo "${ECHO_T}$result" >&6; }
3875
3876
3877           withstring=without
3878           defaultval=$wxUSE_ALL_FEATURES
3879           if test -z "$defaultval"; then
3880               if test x"$withstring" = xwithout; then
3881                   defaultval=yes
3882               else
3883                   defaultval=no
3884               fi
3885           fi
3886           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3887 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3888
3889 # Check whether --with-gnomeprint was given.
3890 if test "${with_gnomeprint+set}" = set; then
3891   withval=$with_gnomeprint;
3892                         if test "$withval" = yes; then
3893                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3894                         else
3895                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3896                         fi
3897                         cache=yes
3898
3899 else
3900
3901                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3902                         if test "x$LINE" != x ; then
3903                             eval "DEFAULT_$LINE"
3904                             cache=yes
3905                         else
3906                             cache=no
3907                         fi
3908
3909                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3910
3911 fi
3912
3913
3914           eval "$wx_cv_use_gnomeprint"
3915           if test "x$cache" = xyes; then
3916             echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
3917           fi
3918
3919           if test x"$withstring" = xwithout; then
3920             if test $wxUSE_LIBGNOMEPRINT = yes; then
3921               result=no
3922             else
3923               result=yes
3924             fi
3925           else
3926             result=$wxUSE_LIBGNOMEPRINT
3927           fi
3928
3929           { echo "$as_me:$LINENO: result: $result" >&5
3930 echo "${ECHO_T}$result" >&6; }
3931
3932
3933           withstring=
3934           defaultval=$wxUSE_ALL_FEATURES
3935           if test -z "$defaultval"; then
3936               if test x"$withstring" = xwithout; then
3937                   defaultval=yes
3938               else
3939                   defaultval=no
3940               fi
3941           fi
3942           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3943 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3944
3945 # Check whether --with-gnomevfs was given.
3946 if test "${with_gnomevfs+set}" = set; then
3947   withval=$with_gnomevfs;
3948                         if test "$withval" = yes; then
3949                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3950                         else
3951                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3952                         fi
3953                         cache=yes
3954
3955 else
3956
3957                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
3958                         if test "x$LINE" != x ; then
3959                             eval "DEFAULT_$LINE"
3960                             cache=yes
3961                         else
3962                             cache=no
3963                         fi
3964
3965                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3966
3967 fi
3968
3969
3970           eval "$wx_cv_use_gnomevfs"
3971           if test "x$cache" = xyes; then
3972             echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
3973           fi
3974
3975           if test x"$withstring" = xwithout; then
3976             if test $wxUSE_LIBGNOMEVFS = yes; then
3977               result=no
3978             else
3979               result=yes
3980             fi
3981           else
3982             result=$wxUSE_LIBGNOMEVFS
3983           fi
3984
3985           { echo "$as_me:$LINENO: result: $result" >&5
3986 echo "${ECHO_T}$result" >&6; }
3987
3988
3989           withstring=
3990           defaultval=$wxUSE_ALL_FEATURES
3991           if test -z "$defaultval"; then
3992               if test x"$withstring" = xwithout; then
3993                   defaultval=yes
3994               else
3995                   defaultval=no
3996               fi
3997           fi
3998           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3999 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4000
4001 # Check whether --with-hildon was given.
4002 if test "${with_hildon+set}" = set; then
4003   withval=$with_hildon;
4004                         if test "$withval" = yes; then
4005                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4006                         else
4007                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4008                         fi
4009                         cache=yes
4010
4011 else
4012
4013                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
4014                         if test "x$LINE" != x ; then
4015                             eval "DEFAULT_$LINE"
4016                             cache=yes
4017                         else
4018                             cache=no
4019                         fi
4020
4021                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4022
4023 fi
4024
4025
4026           eval "$wx_cv_use_hildon"
4027           if test "x$cache" = xyes; then
4028             echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
4029           fi
4030
4031           if test x"$withstring" = xwithout; then
4032             if test $wxUSE_LIBHILDON = yes; then
4033               result=no
4034             else
4035               result=yes
4036             fi
4037           else
4038             result=$wxUSE_LIBHILDON
4039           fi
4040
4041           { echo "$as_me:$LINENO: result: $result" >&5
4042 echo "${ECHO_T}$result" >&6; }
4043
4044
4045           withstring=
4046           defaultval=$wxUSE_ALL_FEATURES
4047           if test -z "$defaultval"; then
4048               if test x"$withstring" = xwithout; then
4049                   defaultval=yes
4050               else
4051                   defaultval=no
4052               fi
4053           fi
4054           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4055 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4056
4057 # Check whether --with-opengl was given.
4058 if test "${with_opengl+set}" = set; then
4059   withval=$with_opengl;
4060                         if test "$withval" = yes; then
4061                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4062                         else
4063                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4064                         fi
4065                         cache=yes
4066
4067 else
4068
4069                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4070                         if test "x$LINE" != x ; then
4071                             eval "DEFAULT_$LINE"
4072                             cache=yes
4073                         else
4074                             cache=no
4075                         fi
4076
4077                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4078
4079 fi
4080
4081
4082           eval "$wx_cv_use_opengl"
4083           if test "x$cache" = xyes; then
4084             echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
4085           fi
4086
4087           if test x"$withstring" = xwithout; then
4088             if test $wxUSE_OPENGL = yes; then
4089               result=no
4090             else
4091               result=yes
4092             fi
4093           else
4094             result=$wxUSE_OPENGL
4095           fi
4096
4097           { echo "$as_me:$LINENO: result: $result" >&5
4098 echo "${ECHO_T}$result" >&6; }
4099
4100
4101 fi
4102
4103
4104           withstring=
4105           defaultval=$wxUSE_ALL_FEATURES
4106           if test -z "$defaultval"; then
4107               if test x"$withstring" = xwithout; then
4108                   defaultval=yes
4109               else
4110                   defaultval=no
4111               fi
4112           fi
4113           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4114 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4115
4116 # Check whether --with-dmalloc was given.
4117 if test "${with_dmalloc+set}" = set; then
4118   withval=$with_dmalloc;
4119                         if test "$withval" = yes; then
4120                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4121                         else
4122                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4123                         fi
4124                         cache=yes
4125
4126 else
4127
4128                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4129                         if test "x$LINE" != x ; then
4130                             eval "DEFAULT_$LINE"
4131                             cache=yes
4132                         else
4133                             cache=no
4134                         fi
4135
4136                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4137
4138 fi
4139
4140
4141           eval "$wx_cv_use_dmalloc"
4142           if test "x$cache" = xyes; then
4143             echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
4144           fi
4145
4146           if test x"$withstring" = xwithout; then
4147             if test $wxUSE_DMALLOC = yes; then
4148               result=no
4149             else
4150               result=yes
4151             fi
4152           else
4153             result=$wxUSE_DMALLOC
4154           fi
4155
4156           { echo "$as_me:$LINENO: result: $result" >&5
4157 echo "${ECHO_T}$result" >&6; }
4158
4159
4160           withstring=
4161           defaultval=$wxUSE_ALL_FEATURES
4162           if test -z "$defaultval"; then
4163               if test x"$withstring" = xwithout; then
4164                   defaultval=yes
4165               else
4166                   defaultval=no
4167               fi
4168           fi
4169           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4170 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4171
4172 # Check whether --with-sdl was given.
4173 if test "${with_sdl+set}" = set; then
4174   withval=$with_sdl;
4175                         if test "$withval" = yes; then
4176                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4177                         else
4178                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4179                         fi
4180                         cache=yes
4181
4182 else
4183
4184                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4185                         if test "x$LINE" != x ; then
4186                             eval "DEFAULT_$LINE"
4187                             cache=yes
4188                         else
4189                             cache=no
4190                         fi
4191
4192                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4193
4194 fi
4195
4196
4197           eval "$wx_cv_use_sdl"
4198           if test "x$cache" = xyes; then
4199             echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
4200           fi
4201
4202           if test x"$withstring" = xwithout; then
4203             if test $wxUSE_LIBSDL = yes; then
4204               result=no
4205             else
4206               result=yes
4207             fi
4208           else
4209             result=$wxUSE_LIBSDL
4210           fi
4211
4212           { echo "$as_me:$LINENO: result: $result" >&5
4213 echo "${ECHO_T}$result" >&6; }
4214
4215
4216           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4217 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4218
4219 # Check whether --with-regex was given.
4220 if test "${with_regex+set}" = set; then
4221   withval=$with_regex;
4222                         if test "$withval" = yes; then
4223                           wx_cv_use_regex='wxUSE_REGEX=yes'
4224                         elif test "$withval" = no; then
4225                           wx_cv_use_regex='wxUSE_REGEX=no'
4226                         elif test "$withval" = sys; then
4227                           wx_cv_use_regex='wxUSE_REGEX=sys'
4228                         elif test "$withval" = builtin; then
4229                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4230                         else
4231                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4232 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4233    { (exit 1); exit 1; }; }
4234                         fi
4235                         cache=yes
4236
4237 else
4238
4239                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4240                         if test "x$LINE" != x ; then
4241                             eval "DEFAULT_$LINE"
4242                             cache=yes
4243                         else
4244                             cache=no
4245                         fi
4246
4247                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4248
4249 fi
4250
4251
4252           eval "$wx_cv_use_regex"
4253           if test "x$cache" = xyes; then
4254             echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
4255           fi
4256
4257           if test "$wxUSE_REGEX" = yes; then
4258             { echo "$as_me:$LINENO: result: yes" >&5
4259 echo "${ECHO_T}yes" >&6; }
4260           elif test "$wxUSE_REGEX" = no; then
4261             { echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6; }
4263           elif test "$wxUSE_REGEX" = sys; then
4264             { echo "$as_me:$LINENO: result: system version" >&5
4265 echo "${ECHO_T}system version" >&6; }
4266           elif test "$wxUSE_REGEX" = builtin; then
4267             { echo "$as_me:$LINENO: result: builtin version" >&5
4268 echo "${ECHO_T}builtin version" >&6; }
4269           else
4270             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4271 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4272    { (exit 1); exit 1; }; }
4273           fi
4274
4275
4276           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4277 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4278
4279 # Check whether --with-zlib was given.
4280 if test "${with_zlib+set}" = set; then
4281   withval=$with_zlib;
4282                         if test "$withval" = yes; then
4283                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4284                         elif test "$withval" = no; then
4285                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4286                         elif test "$withval" = sys; then
4287                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4288                         elif test "$withval" = builtin; then
4289                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4290                         else
4291                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4292 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4293    { (exit 1); exit 1; }; }
4294                         fi
4295                         cache=yes
4296
4297 else
4298
4299                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4300                         if test "x$LINE" != x ; then
4301                             eval "DEFAULT_$LINE"
4302                             cache=yes
4303                         else
4304                             cache=no
4305                         fi
4306
4307                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4308
4309 fi
4310
4311
4312           eval "$wx_cv_use_zlib"
4313           if test "x$cache" = xyes; then
4314             echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
4315           fi
4316
4317           if test "$wxUSE_ZLIB" = yes; then
4318             { echo "$as_me:$LINENO: result: yes" >&5
4319 echo "${ECHO_T}yes" >&6; }
4320           elif test "$wxUSE_ZLIB" = no; then
4321             { echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6; }
4323           elif test "$wxUSE_ZLIB" = sys; then
4324             { echo "$as_me:$LINENO: result: system version" >&5
4325 echo "${ECHO_T}system version" >&6; }
4326           elif test "$wxUSE_ZLIB" = builtin; then
4327             { echo "$as_me:$LINENO: result: builtin version" >&5
4328 echo "${ECHO_T}builtin version" >&6; }
4329           else
4330             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4331 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4332    { (exit 1); exit 1; }; }
4333           fi
4334
4335
4336           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4337 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4338
4339 # Check whether --with-odbc was given.
4340 if test "${with_odbc+set}" = set; then
4341   withval=$with_odbc;
4342                         if test "$withval" = yes; then
4343                           wx_cv_use_odbc='wxUSE_ODBC=yes'
4344                         elif test "$withval" = no; then
4345                           wx_cv_use_odbc='wxUSE_ODBC=no'
4346                         elif test "$withval" = sys; then
4347                           wx_cv_use_odbc='wxUSE_ODBC=sys'
4348                         elif test "$withval" = builtin; then
4349                           wx_cv_use_odbc='wxUSE_ODBC=builtin'
4350                         else
4351                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4352 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4353    { (exit 1); exit 1; }; }
4354                         fi
4355                         cache=yes
4356
4357 else
4358
4359                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4360                         if test "x$LINE" != x ; then
4361                             eval "DEFAULT_$LINE"
4362                             cache=yes
4363                         else
4364                             cache=no
4365                         fi
4366
4367                         wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
4368
4369 fi
4370
4371
4372           eval "$wx_cv_use_odbc"
4373           if test "x$cache" = xyes; then
4374             echo "wxUSE_ODBC=$wxUSE_ODBC" >> ${wx_arg_cache_file}.tmp
4375           fi
4376
4377           if test "$wxUSE_ODBC" = yes; then
4378             { echo "$as_me:$LINENO: result: yes" >&5
4379 echo "${ECHO_T}yes" >&6; }
4380           elif test "$wxUSE_ODBC" = no; then
4381             { echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6; }
4383           elif test "$wxUSE_ODBC" = sys; then
4384             { echo "$as_me:$LINENO: result: system version" >&5
4385 echo "${ECHO_T}system version" >&6; }
4386           elif test "$wxUSE_ODBC" = builtin; then
4387             { echo "$as_me:$LINENO: result: builtin version" >&5
4388 echo "${ECHO_T}builtin version" >&6; }
4389           else
4390             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4391 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4392    { (exit 1); exit 1; }; }
4393           fi
4394
4395
4396           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4397 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4398
4399 # Check whether --with-expat was given.
4400 if test "${with_expat+set}" = set; then
4401   withval=$with_expat;
4402                         if test "$withval" = yes; then
4403                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4404                         elif test "$withval" = no; then
4405                           wx_cv_use_expat='wxUSE_EXPAT=no'
4406                         elif test "$withval" = sys; then
4407                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4408                         elif test "$withval" = builtin; then
4409                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4410                         else
4411                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4412 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4413    { (exit 1); exit 1; }; }
4414                         fi
4415                         cache=yes
4416
4417 else
4418
4419                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4420                         if test "x$LINE" != x ; then
4421                             eval "DEFAULT_$LINE"
4422                             cache=yes
4423                         else
4424                             cache=no
4425                         fi
4426
4427                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4428
4429 fi
4430
4431
4432           eval "$wx_cv_use_expat"
4433           if test "x$cache" = xyes; then
4434             echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
4435           fi
4436
4437           if test "$wxUSE_EXPAT" = yes; then
4438             { echo "$as_me:$LINENO: result: yes" >&5
4439 echo "${ECHO_T}yes" >&6; }
4440           elif test "$wxUSE_EXPAT" = no; then
4441             { echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6; }
4443           elif test "$wxUSE_EXPAT" = sys; then
4444             { echo "$as_me:$LINENO: result: system version" >&5
4445 echo "${ECHO_T}system version" >&6; }
4446           elif test "$wxUSE_EXPAT" = builtin; then
4447             { echo "$as_me:$LINENO: result: builtin version" >&5
4448 echo "${ECHO_T}builtin version" >&6; }
4449           else
4450             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4451 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4452    { (exit 1); exit 1; }; }
4453           fi
4454
4455
4456 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4457 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4458
4459 # Check whether --with-macosx-sdk was given.
4460 if test "${with_macosx_sdk+set}" = set; then
4461   withval=$with_macosx_sdk;
4462         wxUSE_MACOSX_SDK=$withval
4463         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4464         echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
4465
4466 else
4467
4468         # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
4469         # will override --enable-universal_binary's automatic SDK usage.
4470         wxUSE_MACOSX_SDK=
4471         LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
4472         if test "x$LINE" != x ; then
4473             eval "$LINE"
4474             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4475         fi
4476
4477 fi
4478
4479 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4480 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4481
4482 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4483 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4484
4485 # Check whether --with-macosx-version-min was given.
4486 if test "${with_macosx_version_min+set}" = set; then
4487   withval=$with_macosx_version_min;
4488         wxUSE_MACOSX_VERSION_MIN=$withval
4489         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4490         echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
4491
4492 else
4493
4494         # default "yes" because when not using an SDK it means the same as no
4495         # but when using an SDK it means to use the SDK version
4496         wxUSE_MACOSX_VERSION_MIN=yes
4497         # See if there is a value in the cache
4498         LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
4499         if test "x$LINE" != x ; then
4500             eval "$LINE"
4501             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4502         fi
4503
4504 fi
4505
4506 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4507 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4508
4509
4510
4511           enablestring=disable
4512           defaultval=
4513           if test -z "$defaultval"; then
4514               if test x"$enablestring" = xdisable; then
4515                   defaultval=yes
4516               else
4517                   defaultval=no
4518               fi
4519           fi
4520
4521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4522 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4523           # Check whether --enable-shared was given.
4524 if test "${enable_shared+set}" = set; then
4525   enableval=$enable_shared;
4526                           if test "$enableval" = yes; then
4527                             wx_cv_use_shared='wxUSE_SHARED=yes'
4528                           else
4529                             wx_cv_use_shared='wxUSE_SHARED=no'
4530                           fi
4531                           cache=yes
4532
4533 else
4534
4535                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4536                           if test "x$LINE" != x ; then
4537                               eval "DEFAULT_$LINE"
4538                               cache=yes
4539                           else
4540                               cache=no
4541                           fi
4542
4543                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4544
4545 fi
4546
4547
4548           eval "$wx_cv_use_shared"
4549           if test "x$cache" = xyes; then
4550             echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
4551           fi
4552
4553           if test x"$enablestring" = xdisable; then
4554             if test $wxUSE_SHARED = yes; then
4555               result=no
4556             else
4557               result=yes
4558             fi
4559           else
4560             result=$wxUSE_SHARED
4561           fi
4562
4563           { echo "$as_me:$LINENO: result: $result" >&5
4564 echo "${ECHO_T}$result" >&6; }
4565
4566
4567           enablestring=disable
4568           defaultval=
4569           if test -z "$defaultval"; then
4570               if test x"$enablestring" = xdisable; then
4571                   defaultval=yes
4572               else
4573                   defaultval=no
4574               fi
4575           fi
4576
4577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4578 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4579           # Check whether --enable-optimise was given.
4580 if test "${enable_optimise+set}" = set; then
4581   enableval=$enable_optimise;
4582                           if test "$enableval" = yes; then
4583                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4584                           else
4585                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4586                           fi
4587                           cache=yes
4588
4589 else
4590
4591                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4592                           if test "x$LINE" != x ; then
4593                               eval "DEFAULT_$LINE"
4594                               cache=yes
4595                           else
4596                               cache=no
4597                           fi
4598
4599                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4600
4601 fi
4602
4603
4604           eval "$wx_cv_use_optimise"
4605           if test "x$cache" = xyes; then
4606             echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
4607           fi
4608
4609           if test x"$enablestring" = xdisable; then
4610             if test $wxUSE_OPTIMISE = yes; then
4611               result=no
4612             else
4613               result=yes
4614             fi
4615           else
4616             result=$wxUSE_OPTIMISE
4617           fi
4618
4619           { echo "$as_me:$LINENO: result: $result" >&5
4620 echo "${ECHO_T}$result" >&6; }
4621
4622
4623           enablestring=
4624           defaultval=
4625           if test -z "$defaultval"; then
4626               if test x"$enablestring" = xdisable; then
4627                   defaultval=yes
4628               else
4629                   defaultval=no
4630               fi
4631           fi
4632
4633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4634 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4635           # Check whether --enable-debug was given.
4636 if test "${enable_debug+set}" = set; then
4637   enableval=$enable_debug;
4638                           if test "$enableval" = yes; then
4639                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4640                           else
4641                             wx_cv_use_debug='wxUSE_DEBUG=no'
4642                           fi
4643                           cache=yes
4644
4645 else
4646
4647                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4648                           if test "x$LINE" != x ; then
4649                               eval "DEFAULT_$LINE"
4650                               cache=yes
4651                           else
4652                               cache=no
4653                           fi
4654
4655                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4656
4657 fi
4658
4659
4660           eval "$wx_cv_use_debug"
4661           if test "x$cache" = xyes; then
4662             echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
4663           fi
4664
4665           if test x"$enablestring" = xdisable; then
4666             if test $wxUSE_DEBUG = yes; then
4667               result=no
4668             else
4669               result=yes
4670             fi
4671           else
4672             result=$wxUSE_DEBUG
4673           fi
4674
4675           { echo "$as_me:$LINENO: result: $result" >&5
4676 echo "${ECHO_T}$result" >&6; }
4677
4678
4679           enablestring=
4680           defaultval=
4681           if test -z "$defaultval"; then
4682               if test x"$enablestring" = xdisable; then
4683                   defaultval=yes
4684               else
4685                   defaultval=no
4686               fi
4687           fi
4688
4689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4690 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4691           # Check whether --enable-stl was given.
4692 if test "${enable_stl+set}" = set; then
4693   enableval=$enable_stl;
4694                           if test "$enableval" = yes; then
4695                             wx_cv_use_stl='wxUSE_STL=yes'
4696                           else
4697                             wx_cv_use_stl='wxUSE_STL=no'
4698                           fi
4699                           cache=yes
4700
4701 else
4702
4703                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4704                           if test "x$LINE" != x ; then
4705                               eval "DEFAULT_$LINE"
4706                               cache=yes
4707                           else
4708                               cache=no
4709                           fi
4710
4711                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4712
4713 fi
4714
4715
4716           eval "$wx_cv_use_stl"
4717           if test "x$cache" = xyes; then
4718             echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
4719           fi
4720
4721           if test x"$enablestring" = xdisable; then
4722             if test $wxUSE_STL = yes; then
4723               result=no
4724             else
4725               result=yes
4726             fi
4727           else
4728             result=$wxUSE_STL
4729           fi
4730
4731           { echo "$as_me:$LINENO: result: $result" >&5
4732 echo "${ECHO_T}$result" >&6; }
4733
4734
4735           enablestring=
4736           defaultval=
4737           if test -z "$defaultval"; then
4738               if test x"$enablestring" = xdisable; then
4739                   defaultval=yes
4740               else
4741                   defaultval=no
4742               fi
4743           fi
4744
4745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4746 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4747           # Check whether --enable-std_iostreams was given.
4748 if test "${enable_std_iostreams+set}" = set; then
4749   enableval=$enable_std_iostreams;
4750                           if test "$enableval" = yes; then
4751                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4752                           else
4753                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4754                           fi
4755                           cache=yes
4756
4757 else
4758
4759                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4760                           if test "x$LINE" != x ; then
4761                               eval "DEFAULT_$LINE"
4762                               cache=yes
4763                           else
4764                               cache=no
4765                           fi
4766
4767                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4768
4769 fi
4770
4771
4772           eval "$wx_cv_use_std_iostreams"
4773           if test "x$cache" = xyes; then
4774             echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
4775           fi
4776
4777           if test x"$enablestring" = xdisable; then
4778             if test $wxUSE_STD_IOSTREAM = yes; then
4779               result=no
4780             else
4781               result=yes
4782             fi
4783           else
4784             result=$wxUSE_STD_IOSTREAM
4785           fi
4786
4787           { echo "$as_me:$LINENO: result: $result" >&5
4788 echo "${ECHO_T}$result" >&6; }
4789
4790
4791           enablestring=
4792           defaultval=
4793           if test -z "$defaultval"; then
4794               if test x"$enablestring" = xdisable; then
4795                   defaultval=yes
4796               else
4797                   defaultval=no
4798               fi
4799           fi
4800
4801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4802 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4803           # Check whether --enable-std_string was given.
4804 if test "${enable_std_string+set}" = set; then
4805   enableval=$enable_std_string;
4806                           if test "$enableval" = yes; then
4807                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4808                           else
4809                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4810                           fi
4811                           cache=yes
4812
4813 else
4814
4815                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4816                           if test "x$LINE" != x ; then
4817                               eval "DEFAULT_$LINE"
4818                               cache=yes
4819                           else
4820                               cache=no
4821                           fi
4822
4823                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4824
4825 fi
4826
4827
4828           eval "$wx_cv_use_std_string"
4829           if test "x$cache" = xyes; then
4830             echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
4831           fi
4832
4833           if test x"$enablestring" = xdisable; then
4834             if test $wxUSE_STD_STRING = yes; then
4835               result=no
4836             else
4837               result=yes
4838             fi
4839           else
4840             result=$wxUSE_STD_STRING
4841           fi
4842
4843           { echo "$as_me:$LINENO: result: $result" >&5
4844 echo "${ECHO_T}$result" >&6; }
4845
4846
4847           enablestring=disable
4848           defaultval=
4849           if test -z "$defaultval"; then
4850               if test x"$enablestring" = xdisable; then
4851                   defaultval=yes
4852               else
4853                   defaultval=no
4854               fi
4855           fi
4856
4857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4858 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4859           # Check whether --enable-unicode was given.
4860 if test "${enable_unicode+set}" = set; then
4861   enableval=$enable_unicode;
4862                           if test "$enableval" = yes; then
4863                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4864                           else
4865                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4866                           fi
4867                           cache=yes
4868
4869 else
4870
4871                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4872                           if test "x$LINE" != x ; then
4873                               eval "DEFAULT_$LINE"
4874                               cache=yes
4875                           else
4876                               cache=no
4877                           fi
4878
4879                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4880
4881 fi
4882
4883
4884           eval "$wx_cv_use_unicode"
4885           if test "x$cache" = xyes; then
4886             echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
4887           fi
4888
4889           if test x"$enablestring" = xdisable; then
4890             if test $wxUSE_UNICODE = yes; then
4891               result=no
4892             else
4893               result=yes
4894             fi
4895           else
4896             result=$wxUSE_UNICODE
4897           fi
4898
4899           { echo "$as_me:$LINENO: result: $result" >&5
4900 echo "${ECHO_T}$result" >&6; }
4901
4902
4903           enablestring=
4904           defaultval=
4905           if test -z "$defaultval"; then
4906               if test x"$enablestring" = xdisable; then
4907                   defaultval=yes
4908               else
4909                   defaultval=no
4910               fi
4911           fi
4912
4913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4914 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4915           # Check whether --enable-mslu was given.
4916 if test "${enable_mslu+set}" = set; then
4917   enableval=$enable_mslu;
4918                           if test "$enableval" = yes; then
4919                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4920                           else
4921                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4922                           fi
4923                           cache=yes
4924
4925 else
4926
4927                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4928                           if test "x$LINE" != x ; then
4929                               eval "DEFAULT_$LINE"
4930                               cache=yes
4931                           else
4932                               cache=no
4933                           fi
4934
4935                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4936
4937 fi
4938
4939
4940           eval "$wx_cv_use_mslu"
4941           if test "x$cache" = xyes; then
4942             echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
4943           fi
4944
4945           if test x"$enablestring" = xdisable; then
4946             if test $wxUSE_UNICODE_MSLU = yes; then
4947               result=no
4948             else
4949               result=yes
4950             fi
4951           else
4952             result=$wxUSE_UNICODE_MSLU
4953           fi
4954
4955           { echo "$as_me:$LINENO: result: $result" >&5
4956 echo "${ECHO_T}$result" >&6; }
4957
4958
4959           enablestring=
4960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4961 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4962           # Check whether --enable-utf8 was given.
4963 if test "${enable_utf8+set}" = set; then
4964   enableval=$enable_utf8;
4965                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4966                           cache=yes
4967
4968 else
4969
4970                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4971                           if test "x$LINE" != x ; then
4972                             eval "DEFAULT_$LINE"
4973                             cache=yes
4974                           else
4975                             cache=no
4976                           fi
4977
4978                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4979
4980 fi
4981
4982
4983           eval "$wx_cv_use_utf8"
4984           if test "x$cache" = xyes; then
4985             echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
4986           fi
4987
4988           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4989 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4990
4991
4992           enablestring=
4993           defaultval=
4994           if test -z "$defaultval"; then
4995               if test x"$enablestring" = xdisable; then
4996                   defaultval=yes
4997               else
4998                   defaultval=no
4999               fi
5000           fi
5001
5002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
5003 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
5004           # Check whether --enable-utf8only was given.
5005 if test "${enable_utf8only+set}" = set; then
5006   enableval=$enable_utf8only;
5007                           if test "$enableval" = yes; then
5008                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
5009                           else
5010                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5011                           fi
5012                           cache=yes
5013
5014 else
5015
5016                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
5017                           if test "x$LINE" != x ; then
5018                               eval "DEFAULT_$LINE"
5019                               cache=yes
5020                           else
5021                               cache=no
5022                           fi
5023
5024                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5025
5026 fi
5027
5028
5029           eval "$wx_cv_use_utf8only"
5030           if test "x$cache" = xyes; then
5031             echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
5032           fi
5033
5034           if test x"$enablestring" = xdisable; then
5035             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
5036               result=no
5037             else
5038               result=yes
5039             fi
5040           else
5041             result=$wxUSE_UNICODE_UTF8_LOCALE
5042           fi
5043
5044           { echo "$as_me:$LINENO: result: $result" >&5
5045 echo "${ECHO_T}$result" >&6; }
5046
5047
5048           enablestring=
5049           defaultval=
5050           if test -z "$defaultval"; then
5051               if test x"$enablestring" = xdisable; then
5052                   defaultval=yes
5053               else
5054                   defaultval=no
5055               fi
5056           fi
5057
5058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5059 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5060           # Check whether --enable-extended_rtti was given.
5061 if test "${enable_extended_rtti+set}" = set; then
5062   enableval=$enable_extended_rtti;
5063                           if test "$enableval" = yes; then
5064                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5065                           else
5066                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5067                           fi
5068                           cache=yes
5069
5070 else
5071
5072                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
5073                           if test "x$LINE" != x ; then
5074                               eval "DEFAULT_$LINE"
5075                               cache=yes
5076                           else
5077                               cache=no
5078                           fi
5079
5080                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5081
5082 fi
5083
5084
5085           eval "$wx_cv_use_extended_rtti"
5086           if test "x$cache" = xyes; then
5087             echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
5088           fi
5089
5090           if test x"$enablestring" = xdisable; then
5091             if test $wxUSE_EXTENDED_RTTI = yes; then
5092               result=no
5093             else
5094               result=yes
5095             fi
5096           else
5097             result=$wxUSE_EXTENDED_RTTI
5098           fi
5099
5100           { echo "$as_me:$LINENO: result: $result" >&5
5101 echo "${ECHO_T}$result" >&6; }
5102
5103 if test "$USE_OS2" = "1"; then
5104     DEFAULT_wxUSE_OMF=no
5105
5106           enablestring=
5107           defaultval=
5108           if test -z "$defaultval"; then
5109               if test x"$enablestring" = xdisable; then
5110                   defaultval=yes
5111               else
5112                   defaultval=no
5113               fi
5114           fi
5115
5116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5117 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5118           # Check whether --enable-omf was given.
5119 if test "${enable_omf+set}" = set; then
5120   enableval=$enable_omf;
5121                           if test "$enableval" = yes; then
5122                             wx_cv_use_omf='wxUSE_OMF=yes'
5123                           else
5124                             wx_cv_use_omf='wxUSE_OMF=no'
5125                           fi
5126                           cache=yes
5127
5128 else
5129
5130                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5131                           if test "x$LINE" != x ; then
5132                               eval "DEFAULT_$LINE"
5133                               cache=yes
5134                           else
5135                               cache=no
5136                           fi
5137
5138                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5139
5140 fi
5141
5142
5143           eval "$wx_cv_use_omf"
5144           if test "x$cache" = xyes; then
5145             echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
5146           fi
5147
5148           if test x"$enablestring" = xdisable; then
5149             if test $wxUSE_OMF = yes; then
5150               result=no
5151             else
5152               result=yes
5153             fi
5154           else
5155             result=$wxUSE_OMF
5156           fi
5157
5158           { echo "$as_me:$LINENO: result: $result" >&5
5159 echo "${ECHO_T}$result" >&6; }
5160
5161 fi
5162
5163 if test "$wxUSE_DEBUG" = "yes"; then
5164   DEFAULT_wxUSE_DEBUG_FLAG=yes
5165   DEFAULT_wxUSE_DEBUG_INFO=yes
5166   BUILD=debug
5167 elif test "$wxUSE_DEBUG" = "no"; then
5168   DEFAULT_wxUSE_DEBUG_FLAG=no
5169   DEFAULT_wxUSE_DEBUG_INFO=no
5170   BUILD=release
5171 fi
5172
5173
5174           enablestring=
5175           defaultval=
5176           if test -z "$defaultval"; then
5177               if test x"$enablestring" = xdisable; then
5178                   defaultval=yes
5179               else
5180                   defaultval=no
5181               fi
5182           fi
5183
5184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5185 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5186           # Check whether --enable-debug_flag was given.
5187 if test "${enable_debug_flag+set}" = set; then
5188   enableval=$enable_debug_flag;
5189                           if test "$enableval" = yes; then
5190                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5191                           else
5192                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5193                           fi
5194                           cache=yes
5195
5196 else
5197
5198                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5199                           if test "x$LINE" != x ; then
5200                               eval "DEFAULT_$LINE"
5201                               cache=yes
5202                           else
5203                               cache=no
5204                           fi
5205
5206                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5207
5208 fi
5209
5210
5211           eval "$wx_cv_use_debug_flag"
5212           if test "x$cache" = xyes; then
5213             echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
5214           fi
5215
5216           if test x"$enablestring" = xdisable; then
5217             if test $wxUSE_DEBUG_FLAG = yes; then
5218               result=no
5219             else
5220               result=yes
5221             fi
5222           else
5223             result=$wxUSE_DEBUG_FLAG
5224           fi
5225
5226           { echo "$as_me:$LINENO: result: $result" >&5
5227 echo "${ECHO_T}$result" >&6; }
5228
5229
5230           enablestring=
5231           defaultval=
5232           if test -z "$defaultval"; then
5233               if test x"$enablestring" = xdisable; then
5234                   defaultval=yes
5235               else
5236                   defaultval=no
5237               fi
5238           fi
5239
5240           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5241 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5242           # Check whether --enable-debug_info was given.
5243 if test "${enable_debug_info+set}" = set; then
5244   enableval=$enable_debug_info;
5245                           if test "$enableval" = yes; then
5246                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5247                           else
5248                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5249                           fi
5250                           cache=yes
5251
5252 else
5253
5254                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5255                           if test "x$LINE" != x ; then
5256                               eval "DEFAULT_$LINE"
5257                               cache=yes
5258                           else
5259                               cache=no
5260                           fi
5261
5262                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5263
5264 fi
5265
5266
5267           eval "$wx_cv_use_debug_info"
5268           if test "x$cache" = xyes; then
5269             echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
5270           fi
5271
5272           if test x"$enablestring" = xdisable; then
5273             if test $wxUSE_DEBUG_INFO = yes; then
5274               result=no
5275             else
5276               result=yes
5277             fi
5278           else
5279             result=$wxUSE_DEBUG_INFO
5280           fi
5281
5282           { echo "$as_me:$LINENO: result: $result" >&5
5283 echo "${ECHO_T}$result" >&6; }
5284
5285
5286           enablestring=
5287           defaultval=
5288           if test -z "$defaultval"; then
5289               if test x"$enablestring" = xdisable; then
5290                   defaultval=yes
5291               else
5292                   defaultval=no
5293               fi
5294           fi
5295
5296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5297 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5298           # Check whether --enable-debug_gdb was given.
5299 if test "${enable_debug_gdb+set}" = set; then
5300   enableval=$enable_debug_gdb;
5301                           if test "$enableval" = yes; then
5302                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5303                           else
5304                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5305                           fi
5306                           cache=yes
5307
5308 else
5309
5310                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5311                           if test "x$LINE" != x ; then
5312                               eval "DEFAULT_$LINE"
5313                               cache=yes
5314                           else
5315                               cache=no
5316                           fi
5317
5318                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5319
5320 fi
5321
5322
5323           eval "$wx_cv_use_debug_gdb"
5324           if test "x$cache" = xyes; then
5325             echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
5326           fi
5327
5328           if test x"$enablestring" = xdisable; then
5329             if test $wxUSE_DEBUG_GDB = yes; then
5330               result=no
5331             else
5332               result=yes
5333             fi
5334           else
5335             result=$wxUSE_DEBUG_GDB
5336           fi
5337
5338           { echo "$as_me:$LINENO: result: $result" >&5
5339 echo "${ECHO_T}$result" >&6; }
5340
5341
5342           enablestring=
5343           defaultval=
5344           if test -z "$defaultval"; then
5345               if test x"$enablestring" = xdisable; then
5346                   defaultval=yes
5347               else
5348                   defaultval=no
5349               fi
5350           fi
5351
5352           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5353 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5354           # Check whether --enable-debug_cntxt was given.
5355 if test "${enable_debug_cntxt+set}" = set; then
5356   enableval=$enable_debug_cntxt;
5357                           if test "$enableval" = yes; then
5358                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5359                           else
5360                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5361                           fi
5362                           cache=yes
5363
5364 else
5365
5366                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5367                           if test "x$LINE" != x ; then
5368                               eval "DEFAULT_$LINE"
5369                               cache=yes
5370                           else
5371                               cache=no
5372                           fi
5373
5374                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5375
5376 fi
5377
5378
5379           eval "$wx_cv_use_debug_cntxt"
5380           if test "x$cache" = xyes; then
5381             echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
5382           fi
5383
5384           if test x"$enablestring" = xdisable; then
5385             if test $wxUSE_DEBUG_CONTEXT = yes; then
5386               result=no
5387             else
5388               result=yes
5389             fi
5390           else
5391             result=$wxUSE_DEBUG_CONTEXT
5392           fi
5393
5394           { echo "$as_me:$LINENO: result: $result" >&5
5395 echo "${ECHO_T}$result" >&6; }
5396
5397
5398           enablestring=
5399           defaultval=
5400           if test -z "$defaultval"; then
5401               if test x"$enablestring" = xdisable; then
5402                   defaultval=yes
5403               else
5404                   defaultval=no
5405               fi
5406           fi
5407
5408           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5409 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5410           # Check whether --enable-mem_tracing was given.
5411 if test "${enable_mem_tracing+set}" = set; then
5412   enableval=$enable_mem_tracing;
5413                           if test "$enableval" = yes; then
5414                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5415                           else
5416                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5417                           fi
5418                           cache=yes
5419
5420 else
5421
5422                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5423                           if test "x$LINE" != x ; then
5424                               eval "DEFAULT_$LINE"
5425                               cache=yes
5426                           else
5427                               cache=no
5428                           fi
5429
5430                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5431
5432 fi
5433
5434
5435           eval "$wx_cv_use_mem_tracing"
5436           if test "x$cache" = xyes; then
5437             echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
5438           fi
5439
5440           if test x"$enablestring" = xdisable; then
5441             if test $wxUSE_MEM_TRACING = yes; then
5442               result=no
5443             else
5444               result=yes
5445             fi
5446           else
5447             result=$wxUSE_MEM_TRACING
5448           fi
5449
5450           { echo "$as_me:$LINENO: result: $result" >&5
5451 echo "${ECHO_T}$result" >&6; }
5452
5453
5454           enablestring=
5455           defaultval=
5456           if test -z "$defaultval"; then
5457               if test x"$enablestring" = xdisable; then
5458                   defaultval=yes
5459               else
5460                   defaultval=no
5461               fi
5462           fi
5463
5464           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5465 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5466           # Check whether --enable-profile was given.
5467 if test "${enable_profile+set}" = set; then
5468   enableval=$enable_profile;
5469                           if test "$enableval" = yes; then
5470                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5471                           else
5472                             wx_cv_use_profile='wxUSE_PROFILE=no'
5473                           fi
5474                           cache=yes
5475
5476 else
5477
5478                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5479                           if test "x$LINE" != x ; then
5480                               eval "DEFAULT_$LINE"
5481                               cache=yes
5482                           else
5483                               cache=no
5484                           fi
5485
5486                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5487
5488 fi
5489
5490
5491           eval "$wx_cv_use_profile"
5492           if test "x$cache" = xyes; then
5493             echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
5494           fi
5495
5496           if test x"$enablestring" = xdisable; then
5497             if test $wxUSE_PROFILE = yes; then
5498               result=no
5499             else
5500               result=yes
5501             fi
5502           else
5503             result=$wxUSE_PROFILE
5504           fi
5505
5506           { echo "$as_me:$LINENO: result: $result" >&5
5507 echo "${ECHO_T}$result" >&6; }
5508
5509
5510           enablestring=
5511           defaultval=
5512           if test -z "$defaultval"; then
5513               if test x"$enablestring" = xdisable; then
5514                   defaultval=yes
5515               else
5516                   defaultval=no
5517               fi
5518           fi
5519
5520           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5521 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5522           # Check whether --enable-no_rtti was given.
5523 if test "${enable_no_rtti+set}" = set; then
5524   enableval=$enable_no_rtti;
5525                           if test "$enableval" = yes; then
5526                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5527                           else
5528                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5529                           fi
5530                           cache=yes
5531
5532 else
5533
5534                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5535                           if test "x$LINE" != x ; then
5536                               eval "DEFAULT_$LINE"
5537                               cache=yes
5538                           else
5539                               cache=no
5540                           fi
5541
5542                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5543
5544 fi
5545
5546
5547           eval "$wx_cv_use_no_rtti"
5548           if test "x$cache" = xyes; then
5549             echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
5550           fi
5551
5552           if test x"$enablestring" = xdisable; then
5553             if test $wxUSE_NO_RTTI = yes; then
5554               result=no
5555             else
5556               result=yes
5557             fi
5558           else
5559             result=$wxUSE_NO_RTTI
5560           fi
5561
5562           { echo "$as_me:$LINENO: result: $result" >&5
5563 echo "${ECHO_T}$result" >&6; }
5564
5565
5566           enablestring=
5567           defaultval=
5568           if test -z "$defaultval"; then
5569               if test x"$enablestring" = xdisable; then
5570                   defaultval=yes
5571               else
5572                   defaultval=no
5573               fi
5574           fi
5575
5576           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5577 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5578           # Check whether --enable-no_exceptions was given.
5579 if test "${enable_no_exceptions+set}" = set; then
5580   enableval=$enable_no_exceptions;
5581                           if test "$enableval" = yes; then
5582                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5583                           else
5584                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5585                           fi
5586                           cache=yes
5587
5588 else
5589
5590                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5591                           if test "x$LINE" != x ; then
5592                               eval "DEFAULT_$LINE"
5593                               cache=yes
5594                           else
5595                               cache=no
5596                           fi
5597
5598                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5599
5600 fi
5601
5602
5603           eval "$wx_cv_use_no_exceptions"
5604           if test "x$cache" = xyes; then
5605             echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
5606           fi
5607
5608           if test x"$enablestring" = xdisable; then
5609             if test $wxUSE_NO_EXCEPTIONS = yes; then
5610               result=no
5611             else
5612               result=yes
5613             fi
5614           else
5615             result=$wxUSE_NO_EXCEPTIONS
5616           fi
5617
5618           { echo "$as_me:$LINENO: result: $result" >&5
5619 echo "${ECHO_T}$result" >&6; }
5620
5621
5622           enablestring=
5623           defaultval=
5624           if test -z "$defaultval"; then
5625               if test x"$enablestring" = xdisable; then
5626                   defaultval=yes
5627               else
5628                   defaultval=no
5629               fi
5630           fi
5631
5632           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5633 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5634           # Check whether --enable-permissive was given.
5635 if test "${enable_permissive+set}" = set; then
5636   enableval=$enable_permissive;
5637                           if test "$enableval" = yes; then
5638                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5639                           else
5640                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5641                           fi
5642                           cache=yes
5643
5644 else
5645
5646                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5647                           if test "x$LINE" != x ; then
5648                               eval "DEFAULT_$LINE"
5649                               cache=yes
5650                           else
5651                               cache=no
5652                           fi
5653
5654                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5655
5656 fi
5657
5658
5659           eval "$wx_cv_use_permissive"
5660           if test "x$cache" = xyes; then
5661             echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
5662           fi
5663
5664           if test x"$enablestring" = xdisable; then
5665             if test $wxUSE_PERMISSIVE = yes; then
5666               result=no
5667             else
5668               result=yes
5669             fi
5670           else
5671             result=$wxUSE_PERMISSIVE
5672           fi
5673
5674           { echo "$as_me:$LINENO: result: $result" >&5
5675 echo "${ECHO_T}$result" >&6; }
5676
5677
5678           enablestring=
5679           defaultval=
5680           if test -z "$defaultval"; then
5681               if test x"$enablestring" = xdisable; then
5682                   defaultval=yes
5683               else
5684                   defaultval=no
5685               fi
5686           fi
5687
5688           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5689 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5690           # Check whether --enable-no_deps was given.
5691 if test "${enable_no_deps+set}" = set; then
5692   enableval=$enable_no_deps;
5693                           if test "$enableval" = yes; then
5694                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5695                           else
5696                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5697                           fi
5698                           cache=yes
5699
5700 else
5701
5702                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5703                           if test "x$LINE" != x ; then
5704                               eval "DEFAULT_$LINE"
5705                               cache=yes
5706                           else
5707                               cache=no
5708                           fi
5709
5710                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5711
5712 fi
5713
5714
5715           eval "$wx_cv_use_no_deps"
5716           if test "x$cache" = xyes; then
5717             echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
5718           fi
5719
5720           if test x"$enablestring" = xdisable; then
5721             if test $wxUSE_NO_DEPS = yes; then
5722               result=no
5723             else
5724               result=yes
5725             fi
5726           else
5727             result=$wxUSE_NO_DEPS
5728           fi
5729
5730           { echo "$as_me:$LINENO: result: $result" >&5
5731 echo "${ECHO_T}$result" >&6; }
5732
5733
5734           enablestring=disable
5735           defaultval=
5736           if test -z "$defaultval"; then
5737               if test x"$enablestring" = xdisable; then
5738                   defaultval=yes
5739               else
5740                   defaultval=no
5741               fi
5742           fi
5743
5744           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5745 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5746           # Check whether --enable-vararg_macros was given.
5747 if test "${enable_vararg_macros+set}" = set; then
5748   enableval=$enable_vararg_macros;
5749                           if test "$enableval" = yes; then
5750                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5751                           else
5752                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5753                           fi
5754                           cache=yes
5755
5756 else
5757
5758                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5759                           if test "x$LINE" != x ; then
5760                               eval "DEFAULT_$LINE"
5761                               cache=yes
5762                           else
5763                               cache=no
5764                           fi
5765
5766                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5767
5768 fi
5769
5770
5771           eval "$wx_cv_use_vararg_macros"
5772           if test "x$cache" = xyes; then
5773             echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
5774           fi
5775
5776           if test x"$enablestring" = xdisable; then
5777             if test $wxUSE_VARARG_MACROS = yes; then
5778               result=no
5779             else
5780               result=yes
5781             fi
5782           else
5783             result=$wxUSE_VARARG_MACROS
5784           fi
5785
5786           { echo "$as_me:$LINENO: result: $result" >&5
5787 echo "${ECHO_T}$result" >&6; }
5788
5789
5790           enablestring=
5791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5792 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5793           # Check whether --enable-universal_binary was given.
5794 if test "${enable_universal_binary+set}" = set; then
5795   enableval=$enable_universal_binary;
5796                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5797                           cache=yes
5798
5799 else
5800
5801                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5802                           if test "x$LINE" != x ; then
5803                             eval "DEFAULT_$LINE"
5804                             cache=yes
5805                           else
5806                             cache=no
5807                           fi
5808
5809                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5810
5811 fi
5812
5813
5814           eval "$wx_cv_use_universal_binary"
5815           if test "x$cache" = xyes; then
5816             echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
5817           fi
5818
5819           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5820 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5821
5822
5823
5824           enablestring=
5825           defaultval=
5826           if test -z "$defaultval"; then
5827               if test x"$enablestring" = xdisable; then
5828                   defaultval=yes
5829               else
5830                   defaultval=no
5831               fi
5832           fi
5833
5834           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5835 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5836           # Check whether --enable-compat26 was given.
5837 if test "${enable_compat26+set}" = set; then
5838   enableval=$enable_compat26;
5839                           if test "$enableval" = yes; then
5840                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5841                           else
5842                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5843                           fi
5844                           cache=yes
5845
5846 else
5847
5848                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5849                           if test "x$LINE" != x ; then
5850                               eval "DEFAULT_$LINE"
5851                               cache=yes
5852                           else
5853                               cache=no
5854                           fi
5855
5856                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5857
5858 fi
5859
5860
5861           eval "$wx_cv_use_compat26"
5862           if test "x$cache" = xyes; then
5863             echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
5864           fi
5865
5866           if test x"$enablestring" = xdisable; then
5867             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5868               result=no
5869             else
5870               result=yes
5871             fi
5872           else
5873             result=$WXWIN_COMPATIBILITY_2_6
5874           fi
5875
5876           { echo "$as_me:$LINENO: result: $result" >&5
5877 echo "${ECHO_T}$result" >&6; }
5878
5879
5880           enablestring=disable
5881           defaultval=
5882           if test -z "$defaultval"; then
5883               if test x"$enablestring" = xdisable; then
5884                   defaultval=yes
5885               else
5886                   defaultval=no
5887               fi
5888           fi
5889
5890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5891 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5892           # Check whether --enable-compat28 was given.
5893 if test "${enable_compat28+set}" = set; then
5894   enableval=$enable_compat28;
5895                           if test "$enableval" = yes; then
5896                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5897                           else
5898                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5899                           fi
5900                           cache=yes
5901
5902 else
5903
5904                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5905                           if test "x$LINE" != x ; then
5906                               eval "DEFAULT_$LINE"
5907                               cache=yes
5908                           else
5909                               cache=no
5910                           fi
5911
5912                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5913
5914 fi
5915
5916
5917           eval "$wx_cv_use_compat28"
5918           if test "x$cache" = xyes; then
5919             echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
5920           fi
5921
5922           if test x"$enablestring" = xdisable; then
5923             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5924               result=no
5925             else
5926               result=yes
5927             fi
5928           else
5929             result=$WXWIN_COMPATIBILITY_2_8
5930           fi
5931
5932           { echo "$as_me:$LINENO: result: $result" >&5
5933 echo "${ECHO_T}$result" >&6; }
5934
5935
5936
5937           enablestring=disable
5938           defaultval=
5939           if test -z "$defaultval"; then
5940               if test x"$enablestring" = xdisable; then
5941                   defaultval=yes
5942               else
5943                   defaultval=no
5944               fi
5945           fi
5946
5947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5948 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5949           # Check whether --enable-rpath was given.
5950 if test "${enable_rpath+set}" = set; then
5951   enableval=$enable_rpath;
5952                           if test "$enableval" = yes; then
5953                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5954                           else
5955                             wx_cv_use_rpath='wxUSE_RPATH=no'
5956                           fi
5957                           cache=yes
5958
5959 else
5960
5961                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5962                           if test "x$LINE" != x ; then
5963                               eval "DEFAULT_$LINE"
5964                               cache=yes
5965                           else
5966                               cache=no
5967                           fi
5968
5969                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5970
5971 fi
5972
5973
5974           eval "$wx_cv_use_rpath"
5975           if test "x$cache" = xyes; then
5976             echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
5977           fi
5978
5979           if test x"$enablestring" = xdisable; then
5980             if test $wxUSE_RPATH = yes; then
5981               result=no
5982             else
5983               result=yes
5984             fi
5985           else
5986             result=$wxUSE_RPATH
5987           fi
5988
5989           { echo "$as_me:$LINENO: result: $result" >&5
5990 echo "${ECHO_T}$result" >&6; }
5991
5992
5993
5994           enablestring=
5995           defaultval=
5996           if test -z "$defaultval"; then
5997               if test x"$enablestring" = xdisable; then
5998                   defaultval=yes
5999               else
6000                   defaultval=no
6001               fi
6002           fi
6003
6004           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
6005 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
6006           # Check whether --enable-objc_uniquifying was given.
6007 if test "${enable_objc_uniquifying+set}" = set; then
6008   enableval=$enable_objc_uniquifying;
6009                           if test "$enableval" = yes; then
6010                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
6011                           else
6012                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
6013                           fi
6014                           cache=yes
6015
6016 else
6017
6018                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
6019                           if test "x$LINE" != x ; then
6020                               eval "DEFAULT_$LINE"
6021                               cache=yes
6022                           else
6023                               cache=no
6024                           fi
6025
6026                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
6027
6028 fi
6029
6030
6031           eval "$wx_cv_use_objc_uniquifying"
6032           if test "x$cache" = xyes; then
6033             echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
6034           fi
6035
6036           if test x"$enablestring" = xdisable; then
6037             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
6038               result=no
6039             else
6040               result=yes
6041             fi
6042           else
6043             result=$wxUSE_OBJC_UNIQUIFYING
6044           fi
6045
6046           { echo "$as_me:$LINENO: result: $result" >&5
6047 echo "${ECHO_T}$result" >&6; }
6048
6049
6050
6051           enablestring=disable
6052           defaultval=
6053           if test -z "$defaultval"; then
6054               if test x"$enablestring" = xdisable; then
6055                   defaultval=yes
6056               else
6057                   defaultval=no
6058               fi
6059           fi
6060
6061           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
6062 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
6063           # Check whether --enable-visibility was given.
6064 if test "${enable_visibility+set}" = set; then
6065   enableval=$enable_visibility;
6066                           if test "$enableval" = yes; then
6067                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
6068                           else
6069                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
6070                           fi
6071                           cache=yes
6072
6073 else
6074
6075                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
6076                           if test "x$LINE" != x ; then
6077                               eval "DEFAULT_$LINE"
6078                               cache=yes
6079                           else
6080                               cache=no
6081                           fi
6082
6083                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
6084
6085 fi
6086
6087
6088           eval "$wx_cv_use_visibility"
6089           if test "x$cache" = xyes; then
6090             echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
6091           fi
6092
6093           if test x"$enablestring" = xdisable; then
6094             if test $wxUSE_VISIBILITY = yes; then
6095               result=no
6096             else
6097               result=yes
6098             fi
6099           else
6100             result=$wxUSE_VISIBILITY
6101           fi
6102
6103           { echo "$as_me:$LINENO: result: $result" >&5
6104 echo "${ECHO_T}$result" >&6; }
6105
6106
6107
6108
6109           enablestring=
6110           defaultval=$wxUSE_ALL_FEATURES
6111           if test -z "$defaultval"; then
6112               if test x"$enablestring" = xdisable; then
6113                   defaultval=yes
6114               else
6115                   defaultval=no
6116               fi
6117           fi
6118
6119           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6120 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6121           # Check whether --enable-intl was given.
6122 if test "${enable_intl+set}" = set; then
6123   enableval=$enable_intl;
6124                           if test "$enableval" = yes; then
6125                             wx_cv_use_intl='wxUSE_INTL=yes'
6126                           else
6127                             wx_cv_use_intl='wxUSE_INTL=no'
6128                           fi
6129                           cache=yes
6130
6131 else
6132
6133                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6134                           if test "x$LINE" != x ; then
6135                               eval "DEFAULT_$LINE"
6136                               cache=yes
6137                           else
6138                               cache=no
6139                           fi
6140
6141                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6142
6143 fi
6144
6145
6146           eval "$wx_cv_use_intl"
6147           if test "x$cache" = xyes; then
6148             echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
6149           fi
6150
6151           if test x"$enablestring" = xdisable; then
6152             if test $wxUSE_INTL = yes; then
6153               result=no
6154             else
6155               result=yes
6156             fi
6157           else
6158             result=$wxUSE_INTL
6159           fi
6160
6161           { echo "$as_me:$LINENO: result: $result" >&5
6162 echo "${ECHO_T}$result" >&6; }
6163
6164
6165           enablestring=
6166           defaultval=$wxUSE_ALL_FEATURES
6167           if test -z "$defaultval"; then
6168               if test x"$enablestring" = xdisable; then
6169                   defaultval=yes
6170               else
6171                   defaultval=no
6172               fi
6173           fi
6174
6175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6176 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6177           # Check whether --enable-config was given.
6178 if test "${enable_config+set}" = set; then
6179   enableval=$enable_config;
6180                           if test "$enableval" = yes; then
6181                             wx_cv_use_config='wxUSE_CONFIG=yes'
6182                           else
6183                             wx_cv_use_config='wxUSE_CONFIG=no'
6184                           fi
6185                           cache=yes
6186
6187 else
6188
6189                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6190                           if test "x$LINE" != x ; then
6191                               eval "DEFAULT_$LINE"
6192                               cache=yes
6193                           else
6194                               cache=no
6195                           fi
6196
6197                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6198
6199 fi
6200
6201
6202           eval "$wx_cv_use_config"
6203           if test "x$cache" = xyes; then
6204             echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
6205           fi
6206
6207           if test x"$enablestring" = xdisable; then
6208             if test $wxUSE_CONFIG = yes; then
6209               result=no
6210             else
6211               result=yes
6212             fi
6213           else
6214             result=$wxUSE_CONFIG
6215           fi
6216
6217           { echo "$as_me:$LINENO: result: $result" >&5
6218 echo "${ECHO_T}$result" >&6; }
6219
6220
6221
6222           enablestring=
6223           defaultval=$wxUSE_ALL_FEATURES
6224           if test -z "$defaultval"; then
6225               if test x"$enablestring" = xdisable; then
6226                   defaultval=yes
6227               else
6228                   defaultval=no
6229               fi
6230           fi
6231
6232           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6233 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6234           # Check whether --enable-protocols was given.
6235 if test "${enable_protocols+set}" = set; then
6236   enableval=$enable_protocols;
6237                           if test "$enableval" = yes; then
6238                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6239                           else
6240                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6241                           fi
6242                           cache=yes
6243
6244 else
6245
6246                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6247                           if test "x$LINE" != x ; then
6248                               eval "DEFAULT_$LINE"
6249                               cache=yes
6250                           else
6251                               cache=no
6252                           fi
6253
6254                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6255
6256 fi
6257
6258
6259           eval "$wx_cv_use_protocols"
6260           if test "x$cache" = xyes; then
6261             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
6262           fi
6263
6264           if test x"$enablestring" = xdisable; then
6265             if test $wxUSE_PROTOCOL = yes; then
6266               result=no
6267             else
6268               result=yes
6269             fi
6270           else
6271             result=$wxUSE_PROTOCOL
6272           fi
6273
6274           { echo "$as_me:$LINENO: result: $result" >&5
6275 echo "${ECHO_T}$result" >&6; }
6276
6277
6278           enablestring=
6279           defaultval=$wxUSE_ALL_FEATURES
6280           if test -z "$defaultval"; then
6281               if test x"$enablestring" = xdisable; then
6282                   defaultval=yes
6283               else
6284                   defaultval=no
6285               fi
6286           fi
6287
6288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6289 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6290           # Check whether --enable-ftp was given.
6291 if test "${enable_ftp+set}" = set; then
6292   enableval=$enable_ftp;
6293                           if test "$enableval" = yes; then
6294                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6295                           else
6296                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6297                           fi
6298                           cache=yes
6299
6300 else
6301
6302                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6303                           if test "x$LINE" != x ; then
6304                               eval "DEFAULT_$LINE"
6305                               cache=yes
6306                           else
6307                               cache=no
6308                           fi
6309
6310                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6311
6312 fi
6313
6314
6315           eval "$wx_cv_use_ftp"
6316           if test "x$cache" = xyes; then
6317             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
6318           fi
6319
6320           if test x"$enablestring" = xdisable; then
6321             if test $wxUSE_PROTOCOL_FTP = yes; then
6322               result=no
6323             else
6324               result=yes
6325             fi
6326           else
6327             result=$wxUSE_PROTOCOL_FTP
6328           fi
6329
6330           { echo "$as_me:$LINENO: result: $result" >&5
6331 echo "${ECHO_T}$result" >&6; }
6332
6333
6334           enablestring=
6335           defaultval=$wxUSE_ALL_FEATURES
6336           if test -z "$defaultval"; then
6337               if test x"$enablestring" = xdisable; then
6338                   defaultval=yes
6339               else
6340                   defaultval=no
6341               fi
6342           fi
6343
6344           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6345 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6346           # Check whether --enable-http was given.
6347 if test "${enable_http+set}" = set; then
6348   enableval=$enable_http;
6349                           if test "$enableval" = yes; then
6350                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6351                           else
6352                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6353                           fi
6354                           cache=yes
6355
6356 else
6357
6358                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6359                           if test "x$LINE" != x ; then
6360                               eval "DEFAULT_$LINE"
6361                               cache=yes
6362                           else
6363                               cache=no
6364                           fi
6365
6366                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6367
6368 fi
6369
6370
6371           eval "$wx_cv_use_http"
6372           if test "x$cache" = xyes; then
6373             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
6374           fi
6375
6376           if test x"$enablestring" = xdisable; then
6377             if test $wxUSE_PROTOCOL_HTTP = yes; then
6378               result=no
6379             else
6380               result=yes
6381             fi
6382           else
6383             result=$wxUSE_PROTOCOL_HTTP
6384           fi
6385
6386           { echo "$as_me:$LINENO: result: $result" >&5
6387 echo "${ECHO_T}$result" >&6; }
6388
6389
6390           enablestring=
6391           defaultval=$wxUSE_ALL_FEATURES
6392           if test -z "$defaultval"; then
6393               if test x"$enablestring" = xdisable; then
6394                   defaultval=yes
6395               else
6396                   defaultval=no
6397               fi
6398           fi
6399
6400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6401 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6402           # Check whether --enable-fileproto was given.
6403 if test "${enable_fileproto+set}" = set; then
6404   enableval=$enable_fileproto;
6405                           if test "$enableval" = yes; then
6406                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6407                           else
6408                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6409                           fi
6410                           cache=yes
6411
6412 else
6413
6414                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6415                           if test "x$LINE" != x ; then
6416                               eval "DEFAULT_$LINE"
6417                               cache=yes
6418                           else
6419                               cache=no
6420                           fi
6421
6422                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6423
6424 fi
6425
6426
6427           eval "$wx_cv_use_fileproto"
6428           if test "x$cache" = xyes; then
6429             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
6430           fi
6431
6432           if test x"$enablestring" = xdisable; then
6433             if test $wxUSE_PROTOCOL_FILE = yes; then
6434               result=no
6435             else
6436               result=yes
6437             fi
6438           else
6439             result=$wxUSE_PROTOCOL_FILE
6440           fi
6441
6442           { echo "$as_me:$LINENO: result: $result" >&5
6443 echo "${ECHO_T}$result" >&6; }
6444
6445
6446           enablestring=
6447           defaultval=$wxUSE_ALL_FEATURES
6448           if test -z "$defaultval"; then
6449               if test x"$enablestring" = xdisable; then
6450                   defaultval=yes
6451               else
6452                   defaultval=no
6453               fi
6454           fi
6455
6456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6457 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6458           # Check whether --enable-sockets was given.
6459 if test "${enable_sockets+set}" = set; then
6460   enableval=$enable_sockets;
6461                           if test "$enableval" = yes; then
6462                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6463                           else
6464                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6465                           fi
6466                           cache=yes
6467
6468 else
6469
6470                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6471                           if test "x$LINE" != x ; then
6472                               eval "DEFAULT_$LINE"
6473                               cache=yes
6474                           else
6475                               cache=no
6476                           fi
6477
6478                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6479
6480 fi
6481
6482
6483           eval "$wx_cv_use_sockets"
6484           if test "x$cache" = xyes; then
6485             echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
6486           fi
6487
6488           if test x"$enablestring" = xdisable; then
6489             if test $wxUSE_SOCKETS = yes; then
6490               result=no
6491             else
6492               result=yes
6493             fi
6494           else
6495             result=$wxUSE_SOCKETS
6496           fi
6497
6498           { echo "$as_me:$LINENO: result: $result" >&5
6499 echo "${ECHO_T}$result" >&6; }
6500
6501
6502           enablestring=
6503           defaultval=$wxUSE_ALL_FEATURES
6504           if test -z "$defaultval"; then
6505               if test x"$enablestring" = xdisable; then
6506                   defaultval=yes
6507               else
6508                   defaultval=no
6509               fi
6510           fi
6511
6512           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6513 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6514           # Check whether --enable-ole was given.
6515 if test "${enable_ole+set}" = set; then
6516   enableval=$enable_ole;
6517                           if test "$enableval" = yes; then
6518                             wx_cv_use_ole='wxUSE_OLE=yes'
6519                           else
6520                             wx_cv_use_ole='wxUSE_OLE=no'
6521                           fi
6522                           cache=yes
6523
6524 else
6525
6526                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6527                           if test "x$LINE" != x ; then
6528                               eval "DEFAULT_$LINE"
6529                               cache=yes
6530                           else
6531                               cache=no
6532                           fi
6533
6534                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6535
6536 fi
6537
6538
6539           eval "$wx_cv_use_ole"
6540           if test "x$cache" = xyes; then
6541             echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
6542           fi
6543
6544           if test x"$enablestring" = xdisable; then
6545             if test $wxUSE_OLE = yes; then
6546               result=no
6547             else
6548               result=yes
6549             fi
6550           else
6551             result=$wxUSE_OLE
6552           fi
6553
6554           { echo "$as_me:$LINENO: result: $result" >&5
6555 echo "${ECHO_T}$result" >&6; }
6556
6557
6558           enablestring=
6559           defaultval=$wxUSE_ALL_FEATURES
6560           if test -z "$defaultval"; then
6561               if test x"$enablestring" = xdisable; then
6562                   defaultval=yes
6563               else
6564                   defaultval=no
6565               fi
6566           fi
6567
6568           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6569 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6570           # Check whether --enable-dataobj was given.
6571 if test "${enable_dataobj+set}" = set; then
6572   enableval=$enable_dataobj;
6573                           if test "$enableval" = yes; then
6574                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6575                           else
6576                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6577                           fi
6578                           cache=yes
6579
6580 else
6581
6582                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6583                           if test "x$LINE" != x ; then
6584                               eval "DEFAULT_$LINE"
6585                               cache=yes
6586                           else
6587                               cache=no
6588                           fi
6589
6590                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6591
6592 fi
6593
6594
6595           eval "$wx_cv_use_dataobj"
6596           if test "x$cache" = xyes; then
6597             echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
6598           fi
6599
6600           if test x"$enablestring" = xdisable; then
6601             if test $wxUSE_DATAOBJ = yes; then
6602               result=no
6603             else
6604               result=yes
6605             fi
6606           else
6607             result=$wxUSE_DATAOBJ
6608           fi
6609
6610           { echo "$as_me:$LINENO: result: $result" >&5
6611 echo "${ECHO_T}$result" >&6; }
6612
6613
6614
6615           enablestring=
6616           defaultval=$wxUSE_ALL_FEATURES
6617           if test -z "$defaultval"; then
6618               if test x"$enablestring" = xdisable; then
6619                   defaultval=yes
6620               else
6621                   defaultval=no
6622               fi
6623           fi
6624
6625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6626 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6627           # Check whether --enable-ipc was given.
6628 if test "${enable_ipc+set}" = set; then
6629   enableval=$enable_ipc;
6630                           if test "$enableval" = yes; then
6631                             wx_cv_use_ipc='wxUSE_IPC=yes'
6632                           else
6633                             wx_cv_use_ipc='wxUSE_IPC=no'
6634                           fi
6635                           cache=yes
6636
6637 else
6638
6639                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6640                           if test "x$LINE" != x ; then
6641                               eval "DEFAULT_$LINE"
6642                               cache=yes
6643                           else
6644                               cache=no
6645                           fi
6646
6647                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6648
6649 fi
6650
6651
6652           eval "$wx_cv_use_ipc"
6653           if test "x$cache" = xyes; then
6654             echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
6655           fi
6656
6657           if test x"$enablestring" = xdisable; then
6658             if test $wxUSE_IPC = yes; then
6659               result=no
6660             else
6661               result=yes
6662             fi
6663           else
6664             result=$wxUSE_IPC
6665           fi
6666
6667           { echo "$as_me:$LINENO: result: $result" >&5
6668 echo "${ECHO_T}$result" >&6; }
6669
6670
6671
6672           enablestring=
6673           defaultval=$wxUSE_ALL_FEATURES
6674           if test -z "$defaultval"; then
6675               if test x"$enablestring" = xdisable; then
6676                   defaultval=yes
6677               else
6678                   defaultval=no
6679               fi
6680           fi
6681
6682           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6683 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6684           # Check whether --enable-baseevtloop was given.
6685 if test "${enable_baseevtloop+set}" = set; then
6686   enableval=$enable_baseevtloop;
6687                           if test "$enableval" = yes; then
6688                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6689                           else
6690                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6691                           fi
6692                           cache=yes
6693
6694 else
6695
6696                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6697                           if test "x$LINE" != x ; then
6698                               eval "DEFAULT_$LINE"
6699                               cache=yes
6700                           else
6701                               cache=no
6702                           fi
6703
6704                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6705
6706 fi
6707
6708
6709           eval "$wx_cv_use_baseevtloop"
6710           if test "x$cache" = xyes; then
6711             echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
6712           fi
6713
6714           if test x"$enablestring" = xdisable; then
6715             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6716               result=no
6717             else
6718               result=yes
6719             fi
6720           else
6721             result=$wxUSE_CONSOLE_EVENTLOOP
6722           fi
6723
6724           { echo "$as_me:$LINENO: result: $result" >&5
6725 echo "${ECHO_T}$result" >&6; }
6726
6727
6728           enablestring=
6729           defaultval=$wxUSE_ALL_FEATURES
6730           if test -z "$defaultval"; then
6731               if test x"$enablestring" = xdisable; then
6732                   defaultval=yes
6733               else
6734                   defaultval=no
6735               fi
6736           fi
6737
6738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epoolloop" >&5
6739 echo $ECHO_N "checking for --${enablestring:-enable}-epoolloop... $ECHO_C" >&6; }
6740           # Check whether --enable-epoolloop was given.
6741 if test "${enable_epoolloop+set}" = set; then
6742   enableval=$enable_epoolloop;
6743                           if test "$enableval" = yes; then
6744                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=yes'
6745                           else
6746                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=no'
6747                           fi
6748                           cache=yes
6749
6750 else
6751
6752                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6753                           if test "x$LINE" != x ; then
6754                               eval "DEFAULT_$LINE"
6755                               cache=yes
6756                           else
6757                               cache=no
6758                           fi
6759
6760                           wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6761
6762 fi
6763
6764
6765           eval "$wx_cv_use_epoolloop"
6766           if test "x$cache" = xyes; then
6767             echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6768           fi
6769
6770           if test x"$enablestring" = xdisable; then
6771             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6772               result=no
6773             else
6774               result=yes
6775             fi
6776           else
6777             result=$wxUSE_EPOLL_DISPATCHER
6778           fi
6779
6780           { echo "$as_me:$LINENO: result: $result" >&5
6781 echo "${ECHO_T}$result" >&6; }
6782
6783
6784           enablestring=
6785           defaultval=$wxUSE_ALL_FEATURES
6786           if test -z "$defaultval"; then
6787               if test x"$enablestring" = xdisable; then
6788                   defaultval=yes
6789               else
6790                   defaultval=no
6791               fi
6792           fi
6793
6794           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6795 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6796           # Check whether --enable-selectloop was given.
6797 if test "${enable_selectloop+set}" = set; then
6798   enableval=$enable_selectloop;
6799                           if test "$enableval" = yes; then
6800                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6801                           else
6802                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6803                           fi
6804                           cache=yes
6805
6806 else
6807
6808                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6809                           if test "x$LINE" != x ; then
6810                               eval "DEFAULT_$LINE"
6811                               cache=yes
6812                           else
6813                               cache=no
6814                           fi
6815
6816                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6817
6818 fi
6819
6820
6821           eval "$wx_cv_use_selectloop"
6822           if test "x$cache" = xyes; then
6823             echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6824           fi
6825
6826           if test x"$enablestring" = xdisable; then
6827             if test $wxUSE_SELECT_DISPATCHER = yes; then
6828               result=no
6829             else
6830               result=yes
6831             fi
6832           else
6833             result=$wxUSE_SELECT_DISPATCHER
6834           fi
6835
6836           { echo "$as_me:$LINENO: result: $result" >&5
6837 echo "${ECHO_T}$result" >&6; }
6838
6839
6840
6841           enablestring=
6842           defaultval=$wxUSE_ALL_FEATURES
6843           if test -z "$defaultval"; then
6844               if test x"$enablestring" = xdisable; then
6845                   defaultval=yes
6846               else
6847                   defaultval=no
6848               fi
6849           fi
6850
6851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6852 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6853           # Check whether --enable-apple_ieee was given.
6854 if test "${enable_apple_ieee+set}" = set; then
6855   enableval=$enable_apple_ieee;
6856                           if test "$enableval" = yes; then
6857                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6858                           else
6859                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6860                           fi
6861                           cache=yes
6862
6863 else
6864
6865                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6866                           if test "x$LINE" != x ; then
6867                               eval "DEFAULT_$LINE"
6868                               cache=yes
6869                           else
6870                               cache=no
6871                           fi
6872
6873                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6874
6875 fi
6876
6877
6878           eval "$wx_cv_use_apple_ieee"
6879           if test "x$cache" = xyes; then
6880             echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
6881           fi
6882
6883           if test x"$enablestring" = xdisable; then
6884             if test $wxUSE_APPLE_IEEE = yes; then
6885               result=no
6886             else
6887               result=yes
6888             fi
6889           else
6890             result=$wxUSE_APPLE_IEEE
6891           fi
6892
6893           { echo "$as_me:$LINENO: result: $result" >&5
6894 echo "${ECHO_T}$result" >&6; }
6895
6896
6897           enablestring=
6898           defaultval=$wxUSE_ALL_FEATURES
6899           if test -z "$defaultval"; then
6900               if test x"$enablestring" = xdisable; then
6901                   defaultval=yes
6902               else
6903                   defaultval=no
6904               fi
6905           fi
6906
6907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6908 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6909           # Check whether --enable-arcstream was given.
6910 if test "${enable_arcstream+set}" = set; then
6911   enableval=$enable_arcstream;
6912                           if test "$enableval" = yes; then
6913                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6914                           else
6915                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6916                           fi
6917                           cache=yes
6918
6919 else
6920
6921                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6922                           if test "x$LINE" != x ; then
6923                               eval "DEFAULT_$LINE"
6924                               cache=yes
6925                           else
6926                               cache=no
6927                           fi
6928
6929                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6930
6931 fi
6932
6933
6934           eval "$wx_cv_use_arcstream"
6935           if test "x$cache" = xyes; then
6936             echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
6937           fi
6938
6939           if test x"$enablestring" = xdisable; then
6940             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6941               result=no
6942             else
6943               result=yes
6944             fi
6945           else
6946             result=$wxUSE_ARCHIVE_STREAMS
6947           fi
6948
6949           { echo "$as_me:$LINENO: result: $result" >&5
6950 echo "${ECHO_T}$result" >&6; }
6951
6952
6953           enablestring=
6954           defaultval=$wxUSE_ALL_FEATURES
6955           if test -z "$defaultval"; then
6956               if test x"$enablestring" = xdisable; then
6957                   defaultval=yes
6958               else
6959                   defaultval=no
6960               fi
6961           fi
6962
6963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6964 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6965           # Check whether --enable-base64 was given.
6966 if test "${enable_base64+set}" = set; then
6967   enableval=$enable_base64;
6968                           if test "$enableval" = yes; then
6969                             wx_cv_use_base64='wxUSE_BASE64=yes'
6970                           else
6971                             wx_cv_use_base64='wxUSE_BASE64=no'
6972                           fi
6973                           cache=yes
6974
6975 else
6976
6977                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6978                           if test "x$LINE" != x ; then
6979                               eval "DEFAULT_$LINE"
6980                               cache=yes
6981                           else
6982                               cache=no
6983                           fi
6984
6985                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6986
6987 fi
6988
6989
6990           eval "$wx_cv_use_base64"
6991           if test "x$cache" = xyes; then
6992             echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
6993           fi
6994
6995           if test x"$enablestring" = xdisable; then
6996             if test $wxUSE_BASE64 = yes; then
6997               result=no
6998             else
6999               result=yes
7000             fi
7001           else
7002             result=$wxUSE_BASE64
7003           fi
7004
7005           { echo "$as_me:$LINENO: result: $result" >&5
7006 echo "${ECHO_T}$result" >&6; }
7007
7008
7009           enablestring=
7010           defaultval=$wxUSE_ALL_FEATURES
7011           if test -z "$defaultval"; then
7012               if test x"$enablestring" = xdisable; then
7013                   defaultval=yes
7014               else
7015                   defaultval=no
7016               fi
7017           fi
7018
7019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
7020 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
7021           # Check whether --enable-backtrace was given.
7022 if test "${enable_backtrace+set}" = set; then
7023   enableval=$enable_backtrace;
7024                           if test "$enableval" = yes; then
7025                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
7026                           else
7027                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
7028                           fi
7029                           cache=yes
7030
7031 else
7032
7033                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
7034                           if test "x$LINE" != x ; then
7035                               eval "DEFAULT_$LINE"
7036                               cache=yes
7037                           else
7038                               cache=no
7039                           fi
7040
7041                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
7042
7043 fi
7044
7045
7046           eval "$wx_cv_use_backtrace"
7047           if test "x$cache" = xyes; then
7048             echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
7049           fi
7050
7051           if test x"$enablestring" = xdisable; then
7052             if test $wxUSE_STACKWALKER = yes; then
7053               result=no
7054             else
7055               result=yes
7056             fi
7057           else
7058             result=$wxUSE_STACKWALKER
7059           fi
7060
7061           { echo "$as_me:$LINENO: result: $result" >&5
7062 echo "${ECHO_T}$result" >&6; }
7063
7064
7065           enablestring=
7066           defaultval=$wxUSE_ALL_FEATURES
7067           if test -z "$defaultval"; then
7068               if test x"$enablestring" = xdisable; then
7069                   defaultval=yes
7070               else
7071                   defaultval=no
7072               fi
7073           fi
7074
7075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
7076 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
7077           # Check whether --enable-catch_segvs was given.
7078 if test "${enable_catch_segvs+set}" = set; then
7079   enableval=$enable_catch_segvs;
7080                           if test "$enableval" = yes; then
7081                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
7082                           else
7083                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
7084                           fi
7085                           cache=yes
7086
7087 else
7088
7089                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
7090                           if test "x$LINE" != x ; then
7091                               eval "DEFAULT_$LINE"
7092                               cache=yes
7093                           else
7094                               cache=no
7095                           fi
7096
7097                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
7098
7099 fi
7100
7101
7102           eval "$wx_cv_use_catch_segvs"
7103           if test "x$cache" = xyes; then
7104             echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
7105           fi
7106
7107           if test x"$enablestring" = xdisable; then
7108             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
7109               result=no
7110             else
7111               result=yes
7112             fi
7113           else
7114             result=$wxUSE_ON_FATAL_EXCEPTION
7115           fi
7116
7117           { echo "$as_me:$LINENO: result: $result" >&5
7118 echo "${ECHO_T}$result" >&6; }
7119
7120
7121           enablestring=
7122           defaultval=$wxUSE_ALL_FEATURES
7123           if test -z "$defaultval"; then
7124               if test x"$enablestring" = xdisable; then
7125                   defaultval=yes
7126               else
7127                   defaultval=no
7128               fi
7129           fi
7130
7131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
7132 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
7133           # Check whether --enable-cmdline was given.
7134 if test "${enable_cmdline+set}" = set; then
7135   enableval=$enable_cmdline;
7136                           if test "$enableval" = yes; then
7137                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
7138                           else
7139                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
7140                           fi
7141                           cache=yes
7142
7143 else
7144
7145                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7146                           if test "x$LINE" != x ; then
7147                               eval "DEFAULT_$LINE"
7148                               cache=yes
7149                           else
7150                               cache=no
7151                           fi
7152
7153                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7154
7155 fi
7156
7157
7158           eval "$wx_cv_use_cmdline"
7159           if test "x$cache" = xyes; then
7160             echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
7161           fi
7162
7163           if test x"$enablestring" = xdisable; then
7164             if test $wxUSE_CMDLINE_PARSER = yes; then
7165               result=no
7166             else
7167               result=yes
7168             fi
7169           else
7170             result=$wxUSE_CMDLINE_PARSER
7171           fi
7172
7173           { echo "$as_me:$LINENO: result: $result" >&5
7174 echo "${ECHO_T}$result" >&6; }
7175
7176
7177           enablestring=
7178           defaultval=$wxUSE_ALL_FEATURES
7179           if test -z "$defaultval"; then
7180               if test x"$enablestring" = xdisable; then
7181                   defaultval=yes
7182               else
7183                   defaultval=no
7184               fi
7185           fi
7186
7187           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7188 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7189           # Check whether --enable-datetime was given.
7190 if test "${enable_datetime+set}" = set; then
7191   enableval=$enable_datetime;
7192                           if test "$enableval" = yes; then
7193                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7194                           else
7195                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7196                           fi
7197                           cache=yes
7198
7199 else
7200
7201                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7202                           if test "x$LINE" != x ; then
7203                               eval "DEFAULT_$LINE"
7204                               cache=yes
7205                           else
7206                               cache=no
7207                           fi
7208
7209                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7210
7211 fi
7212
7213
7214           eval "$wx_cv_use_datetime"
7215           if test "x$cache" = xyes; then
7216             echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
7217           fi
7218
7219           if test x"$enablestring" = xdisable; then
7220             if test $wxUSE_DATETIME = yes; then
7221               result=no
7222             else
7223               result=yes
7224             fi
7225           else
7226             result=$wxUSE_DATETIME
7227           fi
7228
7229           { echo "$as_me:$LINENO: result: $result" >&5
7230 echo "${ECHO_T}$result" >&6; }
7231
7232
7233           enablestring=
7234           defaultval=$wxUSE_ALL_FEATURES
7235           if test -z "$defaultval"; then
7236               if test x"$enablestring" = xdisable; then
7237                   defaultval=yes
7238               else
7239                   defaultval=no
7240               fi
7241           fi
7242
7243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7244 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7245           # Check whether --enable-debugreport was given.
7246 if test "${enable_debugreport+set}" = set; then
7247   enableval=$enable_debugreport;
7248                           if test "$enableval" = yes; then
7249                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7250                           else
7251                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7252                           fi
7253                           cache=yes
7254
7255 else
7256
7257                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7258                           if test "x$LINE" != x ; then
7259                               eval "DEFAULT_$LINE"
7260                               cache=yes
7261                           else
7262                               cache=no
7263                           fi
7264
7265                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7266
7267 fi
7268
7269
7270           eval "$wx_cv_use_debugreport"
7271           if test "x$cache" = xyes; then
7272             echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
7273           fi
7274
7275           if test x"$enablestring" = xdisable; then
7276             if test $wxUSE_DEBUGREPORT = yes; then
7277               result=no
7278             else
7279               result=yes
7280             fi
7281           else
7282             result=$wxUSE_DEBUGREPORT
7283           fi
7284
7285           { echo "$as_me:$LINENO: result: $result" >&5
7286 echo "${ECHO_T}$result" >&6; }
7287
7288
7289           enablestring=
7290           defaultval=$wxUSE_ALL_FEATURES
7291           if test -z "$defaultval"; then
7292               if test x"$enablestring" = xdisable; then
7293                   defaultval=yes
7294               else
7295                   defaultval=no
7296               fi
7297           fi
7298
7299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7300 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7301           # Check whether --enable-dialupman was given.
7302 if test "${enable_dialupman+set}" = set; then
7303   enableval=$enable_dialupman;
7304                           if test "$enableval" = yes; then
7305                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7306                           else
7307                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7308                           fi
7309                           cache=yes
7310
7311 else
7312
7313                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7314                           if test "x$LINE" != x ; then
7315                               eval "DEFAULT_$LINE"
7316                               cache=yes
7317                           else
7318                               cache=no
7319                           fi
7320
7321                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7322
7323 fi
7324
7325
7326           eval "$wx_cv_use_dialupman"
7327           if test "x$cache" = xyes; then
7328             echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
7329           fi
7330
7331           if test x"$enablestring" = xdisable; then
7332             if test $wxUSE_DIALUP_MANAGER = yes; then
7333               result=no
7334             else
7335               result=yes
7336             fi
7337           else
7338             result=$wxUSE_DIALUP_MANAGER
7339           fi
7340
7341           { echo "$as_me:$LINENO: result: $result" >&5
7342 echo "${ECHO_T}$result" >&6; }
7343
7344
7345           enablestring=
7346           defaultval=$wxUSE_ALL_FEATURES
7347           if test -z "$defaultval"; then
7348               if test x"$enablestring" = xdisable; then
7349                   defaultval=yes
7350               else
7351                   defaultval=no
7352               fi
7353           fi
7354
7355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7356 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7357           # Check whether --enable-dynlib was given.
7358 if test "${enable_dynlib+set}" = set; then
7359   enableval=$enable_dynlib;
7360                           if test "$enableval" = yes; then
7361                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7362                           else
7363                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7364                           fi
7365                           cache=yes
7366
7367 else
7368
7369                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7370                           if test "x$LINE" != x ; then
7371                               eval "DEFAULT_$LINE"
7372                               cache=yes
7373                           else
7374                               cache=no
7375                           fi
7376
7377                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7378
7379 fi
7380
7381
7382           eval "$wx_cv_use_dynlib"
7383           if test "x$cache" = xyes; then
7384             echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
7385           fi
7386
7387           if test x"$enablestring" = xdisable; then
7388             if test $wxUSE_DYNLIB_CLASS = yes; then
7389               result=no
7390             else
7391               result=yes
7392             fi
7393           else
7394             result=$wxUSE_DYNLIB_CLASS
7395           fi
7396
7397           { echo "$as_me:$LINENO: result: $result" >&5
7398 echo "${ECHO_T}$result" >&6; }
7399
7400
7401           enablestring=
7402           defaultval=$wxUSE_ALL_FEATURES
7403           if test -z "$defaultval"; then
7404               if test x"$enablestring" = xdisable; then
7405                   defaultval=yes
7406               else
7407                   defaultval=no
7408               fi
7409           fi
7410
7411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7412 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7413           # Check whether --enable-dynamicloader was given.
7414 if test "${enable_dynamicloader+set}" = set; then
7415   enableval=$enable_dynamicloader;
7416                           if test "$enableval" = yes; then
7417                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7418                           else
7419                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7420                           fi
7421                           cache=yes
7422
7423 else
7424
7425                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7426                           if test "x$LINE" != x ; then
7427                               eval "DEFAULT_$LINE"
7428                               cache=yes
7429                           else
7430                               cache=no
7431                           fi
7432
7433                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7434
7435 fi
7436
7437
7438           eval "$wx_cv_use_dynamicloader"
7439           if test "x$cache" = xyes; then
7440             echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
7441           fi
7442
7443           if test x"$enablestring" = xdisable; then
7444             if test $wxUSE_DYNAMIC_LOADER = yes; then
7445               result=no
7446             else
7447               result=yes
7448             fi
7449           else
7450             result=$wxUSE_DYNAMIC_LOADER
7451           fi
7452
7453           { echo "$as_me:$LINENO: result: $result" >&5
7454 echo "${ECHO_T}$result" >&6; }
7455
7456
7457           enablestring=
7458           defaultval=$wxUSE_ALL_FEATURES
7459           if test -z "$defaultval"; then
7460               if test x"$enablestring" = xdisable; then
7461                   defaultval=yes
7462               else
7463                   defaultval=no
7464               fi
7465           fi
7466
7467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7468 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7469           # Check whether --enable-exceptions was given.
7470 if test "${enable_exceptions+set}" = set; then
7471   enableval=$enable_exceptions;
7472                           if test "$enableval" = yes; then
7473                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7474                           else
7475                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7476                           fi
7477                           cache=yes
7478
7479 else
7480
7481                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7482                           if test "x$LINE" != x ; then
7483                               eval "DEFAULT_$LINE"
7484                               cache=yes
7485                           else
7486                               cache=no
7487                           fi
7488
7489                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7490
7491 fi
7492
7493
7494           eval "$wx_cv_use_exceptions"
7495           if test "x$cache" = xyes; then
7496             echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
7497           fi
7498
7499           if test x"$enablestring" = xdisable; then
7500             if test $wxUSE_EXCEPTIONS = yes; then
7501               result=no
7502             else
7503               result=yes
7504             fi
7505           else
7506             result=$wxUSE_EXCEPTIONS
7507           fi
7508
7509           { echo "$as_me:$LINENO: result: $result" >&5
7510 echo "${ECHO_T}$result" >&6; }
7511
7512
7513           enablestring=
7514           defaultval=$wxUSE_ALL_FEATURES
7515           if test -z "$defaultval"; then
7516               if test x"$enablestring" = xdisable; then
7517                   defaultval=yes
7518               else
7519                   defaultval=no
7520               fi
7521           fi
7522
7523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7524 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7525           # Check whether --enable-ffile was given.
7526 if test "${enable_ffile+set}" = set; then
7527   enableval=$enable_ffile;
7528                           if test "$enableval" = yes; then
7529                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7530                           else
7531                             wx_cv_use_ffile='wxUSE_FFILE=no'
7532                           fi
7533                           cache=yes
7534
7535 else
7536
7537                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7538                           if test "x$LINE" != x ; then
7539                               eval "DEFAULT_$LINE"
7540                               cache=yes
7541                           else
7542                               cache=no
7543                           fi
7544
7545                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7546
7547 fi
7548
7549
7550           eval "$wx_cv_use_ffile"
7551           if test "x$cache" = xyes; then
7552             echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
7553           fi
7554
7555           if test x"$enablestring" = xdisable; then
7556             if test $wxUSE_FFILE = yes; then
7557               result=no
7558             else
7559               result=yes
7560             fi
7561           else
7562             result=$wxUSE_FFILE
7563           fi
7564
7565           { echo "$as_me:$LINENO: result: $result" >&5
7566 echo "${ECHO_T}$result" >&6; }
7567
7568
7569           enablestring=
7570           defaultval=$wxUSE_ALL_FEATURES
7571           if test -z "$defaultval"; then
7572               if test x"$enablestring" = xdisable; then
7573                   defaultval=yes
7574               else
7575                   defaultval=no
7576               fi
7577           fi
7578
7579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7580 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7581           # Check whether --enable-file was given.
7582 if test "${enable_file+set}" = set; then
7583   enableval=$enable_file;
7584                           if test "$enableval" = yes; then
7585                             wx_cv_use_file='wxUSE_FILE=yes'
7586                           else
7587                             wx_cv_use_file='wxUSE_FILE=no'
7588                           fi
7589                           cache=yes
7590
7591 else
7592
7593                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7594                           if test "x$LINE" != x ; then
7595                               eval "DEFAULT_$LINE"
7596                               cache=yes
7597                           else
7598                               cache=no
7599                           fi
7600
7601                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7602
7603 fi
7604
7605
7606           eval "$wx_cv_use_file"
7607           if test "x$cache" = xyes; then
7608             echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
7609           fi
7610
7611           if test x"$enablestring" = xdisable; then
7612             if test $wxUSE_FILE = yes; then
7613               result=no
7614             else
7615               result=yes
7616             fi
7617           else
7618             result=$wxUSE_FILE
7619           fi
7620
7621           { echo "$as_me:$LINENO: result: $result" >&5
7622 echo "${ECHO_T}$result" >&6; }
7623
7624
7625           enablestring=
7626           defaultval=$wxUSE_ALL_FEATURES
7627           if test -z "$defaultval"; then
7628               if test x"$enablestring" = xdisable; then
7629                   defaultval=yes
7630               else
7631                   defaultval=no
7632               fi
7633           fi
7634
7635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7636 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7637           # Check whether --enable-filesystem was given.
7638 if test "${enable_filesystem+set}" = set; then
7639   enableval=$enable_filesystem;
7640                           if test "$enableval" = yes; then
7641                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7642                           else
7643                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7644                           fi
7645                           cache=yes
7646
7647 else
7648
7649                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7650                           if test "x$LINE" != x ; then
7651                               eval "DEFAULT_$LINE"
7652                               cache=yes
7653                           else
7654                               cache=no
7655                           fi
7656
7657                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7658
7659 fi
7660
7661
7662           eval "$wx_cv_use_filesystem"
7663           if test "x$cache" = xyes; then
7664             echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
7665           fi
7666
7667           if test x"$enablestring" = xdisable; then
7668             if test $wxUSE_FILESYSTEM = yes; then
7669               result=no
7670             else
7671               result=yes
7672             fi
7673           else
7674             result=$wxUSE_FILESYSTEM
7675           fi
7676
7677           { echo "$as_me:$LINENO: result: $result" >&5
7678 echo "${ECHO_T}$result" >&6; }
7679
7680
7681           enablestring=
7682           defaultval=$wxUSE_ALL_FEATURES
7683           if test -z "$defaultval"; then
7684               if test x"$enablestring" = xdisable; then
7685                   defaultval=yes
7686               else
7687                   defaultval=no
7688               fi
7689           fi
7690
7691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7692 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7693           # Check whether --enable-fontenum was given.
7694 if test "${enable_fontenum+set}" = set; then
7695   enableval=$enable_fontenum;
7696                           if test "$enableval" = yes; then
7697                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7698                           else
7699                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7700                           fi
7701                           cache=yes
7702
7703 else
7704
7705                           LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7706                           if test "x$LINE" != x ; then
7707                               eval "DEFAULT_$LINE"
7708                               cache=yes
7709                           else
7710                               cache=no
7711                           fi
7712
7713                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7714
7715 fi
7716
7717
7718           eval "$wx_cv_use_fontenum"
7719           if test "x$cache" = xyes; then
7720             echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
7721           fi
7722
7723           if test x"$enablestring" = xdisable; then
7724             if test $wxUSE_FONTENUM = yes; then
7725               result=no
7726             else
7727               result=yes
7728             fi
7729           else
7730             result=$wxUSE_FONTENUM
7731           fi
7732
7733           { echo "$as_me:$LINENO: result: $result" >&5
7734 echo "${ECHO_T}$result" >&6; }
7735
7736
7737           enablestring=
7738           defaultval=$wxUSE_ALL_FEATURES
7739           if test -z "$defaultval"; then
7740               if test x"$enablestring" = xdisable; then
7741                   defaultval=yes
7742               else
7743                   defaultval=no
7744               fi
7745           fi
7746
7747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7748 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7749           # Check whether --enable-fontmap was given.
7750 if test "${enable_fontmap+set}" = set; then
7751   enableval=$enable_fontmap;
7752                           if test "$enableval" = yes; then
7753                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7754                           else
7755                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7756                           fi
7757                           cache=yes
7758
7759 else
7760
7761                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7762                           if test "x$LINE" != x ; then
7763                               eval "DEFAULT_$LINE"
7764                               cache=yes
7765                           else
7766                               cache=no
7767                           fi
7768
7769                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7770
7771 fi
7772
7773
7774           eval "$wx_cv_use_fontmap"
7775           if test "x$cache" = xyes; then
7776             echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
7777           fi
7778
7779           if test x"$enablestring" = xdisable; then
7780             if test $wxUSE_FONTMAP = yes; then
7781               result=no
7782             else
7783               result=yes
7784             fi
7785           else
7786             result=$wxUSE_FONTMAP
7787           fi
7788
7789           { echo "$as_me:$LINENO: result: $result" >&5
7790 echo "${ECHO_T}$result" >&6; }
7791
7792
7793           enablestring=
7794           defaultval=$wxUSE_ALL_FEATURES
7795           if test -z "$defaultval"; then
7796               if test x"$enablestring" = xdisable; then
7797                   defaultval=yes
7798               else
7799                   defaultval=no
7800               fi
7801           fi
7802
7803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7804 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7805           # Check whether --enable-fs_archive was given.
7806 if test "${enable_fs_archive+set}" = set; then
7807   enableval=$enable_fs_archive;
7808                           if test "$enableval" = yes; then
7809                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7810                           else
7811                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7812                           fi
7813                           cache=yes
7814
7815 else
7816
7817                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7818                           if test "x$LINE" != x ; then
7819                               eval "DEFAULT_$LINE"
7820                               cache=yes
7821                           else
7822                               cache=no
7823                           fi
7824
7825                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7826
7827 fi
7828
7829
7830           eval "$wx_cv_use_fs_archive"
7831           if test "x$cache" = xyes; then
7832             echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
7833           fi
7834
7835           if test x"$enablestring" = xdisable; then
7836             if test $wxUSE_FS_ARCHIVE = yes; then
7837               result=no
7838             else
7839               result=yes
7840             fi
7841           else
7842             result=$wxUSE_FS_ARCHIVE
7843           fi
7844
7845           { echo "$as_me:$LINENO: result: $result" >&5
7846 echo "${ECHO_T}$result" >&6; }
7847
7848
7849           enablestring=
7850           defaultval=$wxUSE_ALL_FEATURES
7851           if test -z "$defaultval"; then
7852               if test x"$enablestring" = xdisable; then
7853                   defaultval=yes
7854               else
7855                   defaultval=no
7856               fi
7857           fi
7858
7859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7860 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7861           # Check whether --enable-fs_inet was given.
7862 if test "${enable_fs_inet+set}" = set; then
7863   enableval=$enable_fs_inet;
7864                           if test "$enableval" = yes; then
7865                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7866                           else
7867                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7868                           fi
7869                           cache=yes
7870
7871 else
7872
7873                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7874                           if test "x$LINE" != x ; then
7875                               eval "DEFAULT_$LINE"
7876                               cache=yes
7877                           else
7878                               cache=no
7879                           fi
7880
7881                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7882
7883 fi
7884
7885
7886           eval "$wx_cv_use_fs_inet"
7887           if test "x$cache" = xyes; then
7888             echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
7889           fi
7890
7891           if test x"$enablestring" = xdisable; then
7892             if test $wxUSE_FS_INET = yes; then
7893               result=no
7894             else
7895               result=yes
7896             fi
7897           else
7898             result=$wxUSE_FS_INET
7899           fi
7900
7901           { echo "$as_me:$LINENO: result: $result" >&5
7902 echo "${ECHO_T}$result" >&6; }
7903
7904
7905           enablestring=
7906           defaultval=$wxUSE_ALL_FEATURES
7907           if test -z "$defaultval"; then
7908               if test x"$enablestring" = xdisable; then
7909                   defaultval=yes
7910               else
7911                   defaultval=no
7912               fi
7913           fi
7914
7915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7916 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7917           # Check whether --enable-fs_zip was given.
7918 if test "${enable_fs_zip+set}" = set; then
7919   enableval=$enable_fs_zip;
7920                           if test "$enableval" = yes; then
7921                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7922                           else
7923                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7924                           fi
7925                           cache=yes
7926
7927 else
7928
7929                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7930                           if test "x$LINE" != x ; then
7931                               eval "DEFAULT_$LINE"
7932                               cache=yes
7933                           else
7934                               cache=no
7935                           fi
7936
7937                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7938
7939 fi
7940
7941
7942           eval "$wx_cv_use_fs_zip"
7943           if test "x$cache" = xyes; then
7944             echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
7945           fi
7946
7947           if test x"$enablestring" = xdisable; then
7948             if test $wxUSE_FS_ZIP = yes; then
7949               result=no
7950             else
7951               result=yes
7952             fi
7953           else
7954             result=$wxUSE_FS_ZIP
7955           fi
7956
7957           { echo "$as_me:$LINENO: result: $result" >&5
7958 echo "${ECHO_T}$result" >&6; }
7959
7960
7961           enablestring=
7962           defaultval=$wxUSE_ALL_FEATURES
7963           if test -z "$defaultval"; then
7964               if test x"$enablestring" = xdisable; then
7965                   defaultval=yes
7966               else
7967                   defaultval=no
7968               fi
7969           fi
7970
7971           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7972 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7973           # Check whether --enable-geometry was given.
7974 if test "${enable_geometry+set}" = set; then
7975   enableval=$enable_geometry;
7976                           if test "$enableval" = yes; then
7977                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7978                           else
7979                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7980                           fi
7981                           cache=yes
7982
7983 else
7984
7985                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7986                           if test "x$LINE" != x ; then
7987                               eval "DEFAULT_$LINE"
7988                               cache=yes
7989                           else
7990                               cache=no
7991                           fi
7992
7993                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7994
7995 fi
7996
7997
7998           eval "$wx_cv_use_geometry"
7999           if test "x$cache" = xyes; then
8000             echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
8001           fi
8002
8003           if test x"$enablestring" = xdisable; then
8004             if test $wxUSE_GEOMETRY = yes; then
8005               result=no
8006             else
8007               result=yes
8008             fi
8009           else
8010             result=$wxUSE_GEOMETRY
8011           fi
8012
8013           { echo "$as_me:$LINENO: result: $result" >&5
8014 echo "${ECHO_T}$result" >&6; }
8015
8016
8017           enablestring=
8018           defaultval=$wxUSE_ALL_FEATURES
8019           if test -z "$defaultval"; then
8020               if test x"$enablestring" = xdisable; then
8021                   defaultval=yes
8022               else
8023                   defaultval=no
8024               fi
8025           fi
8026
8027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
8028 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
8029           # Check whether --enable-log was given.
8030 if test "${enable_log+set}" = set; then
8031   enableval=$enable_log;
8032                           if test "$enableval" = yes; then
8033                             wx_cv_use_log='wxUSE_LOG=yes'
8034                           else
8035                             wx_cv_use_log='wxUSE_LOG=no'
8036                           fi
8037                           cache=yes
8038
8039 else
8040
8041                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
8042                           if test "x$LINE" != x ; then
8043                               eval "DEFAULT_$LINE"
8044                               cache=yes
8045                           else
8046                               cache=no
8047                           fi
8048
8049                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
8050
8051 fi
8052
8053
8054           eval "$wx_cv_use_log"
8055           if test "x$cache" = xyes; then
8056             echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
8057           fi
8058
8059           if test x"$enablestring" = xdisable; then
8060             if test $wxUSE_LOG = yes; then
8061               result=no
8062             else
8063               result=yes
8064             fi
8065           else
8066             result=$wxUSE_LOG
8067           fi
8068
8069           { echo "$as_me:$LINENO: result: $result" >&5
8070 echo "${ECHO_T}$result" >&6; }
8071
8072
8073           enablestring=
8074           defaultval=$wxUSE_ALL_FEATURES
8075           if test -z "$defaultval"; then
8076               if test x"$enablestring" = xdisable; then
8077                   defaultval=yes
8078               else
8079                   defaultval=no
8080               fi
8081           fi
8082
8083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
8084 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
8085           # Check whether --enable-longlong was given.
8086 if test "${enable_longlong+set}" = set; then
8087   enableval=$enable_longlong;
8088                           if test "$enableval" = yes; then
8089                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
8090                           else
8091                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
8092                           fi
8093                           cache=yes
8094
8095 else
8096
8097                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
8098                           if test "x$LINE" != x ; then
8099                               eval "DEFAULT_$LINE"
8100                               cache=yes
8101                           else
8102                               cache=no
8103                           fi
8104
8105                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
8106
8107 fi
8108
8109
8110           eval "$wx_cv_use_longlong"
8111           if test "x$cache" = xyes; then
8112             echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
8113           fi
8114
8115           if test x"$enablestring" = xdisable; then
8116             if test $wxUSE_LONGLONG = yes; then
8117               result=no
8118             else
8119               result=yes
8120             fi
8121           else
8122             result=$wxUSE_LONGLONG
8123           fi
8124
8125           { echo "$as_me:$LINENO: result: $result" >&5
8126 echo "${ECHO_T}$result" >&6; }
8127
8128
8129           enablestring=
8130           defaultval=$wxUSE_ALL_FEATURES
8131           if test -z "$defaultval"; then
8132               if test x"$enablestring" = xdisable; then
8133                   defaultval=yes
8134               else
8135                   defaultval=no
8136               fi
8137           fi
8138
8139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
8140 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
8141           # Check whether --enable-mimetype was given.
8142 if test "${enable_mimetype+set}" = set; then
8143   enableval=$enable_mimetype;
8144                           if test "$enableval" = yes; then
8145                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
8146                           else
8147                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
8148                           fi
8149                           cache=yes
8150
8151 else
8152
8153                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
8154                           if test "x$LINE" != x ; then
8155                               eval "DEFAULT_$LINE"
8156                               cache=yes
8157                           else
8158                               cache=no
8159                           fi
8160
8161                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
8162
8163 fi
8164
8165
8166           eval "$wx_cv_use_mimetype"
8167           if test "x$cache" = xyes; then
8168             echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
8169           fi
8170
8171           if test x"$enablestring" = xdisable; then
8172             if test $wxUSE_MIMETYPE = yes; then
8173               result=no
8174             else
8175               result=yes
8176             fi
8177           else
8178             result=$wxUSE_MIMETYPE
8179           fi
8180
8181           { echo "$as_me:$LINENO: result: $result" >&5
8182 echo "${ECHO_T}$result" >&6; }
8183
8184
8185           enablestring=
8186           defaultval=$wxUSE_ALL_FEATURES
8187           if test -z "$defaultval"; then
8188               if test x"$enablestring" = xdisable; then
8189                   defaultval=yes
8190               else
8191                   defaultval=no
8192               fi
8193           fi
8194
8195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
8196 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
8197           # Check whether --enable-snglinst was given.
8198 if test "${enable_snglinst+set}" = set; then
8199   enableval=$enable_snglinst;
8200                           if test "$enableval" = yes; then
8201                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
8202                           else
8203                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
8204                           fi
8205                           cache=yes
8206
8207 else
8208
8209                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8210                           if test "x$LINE" != x ; then
8211                               eval "DEFAULT_$LINE"
8212                               cache=yes
8213                           else
8214                               cache=no
8215                           fi
8216
8217                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8218
8219 fi
8220
8221
8222           eval "$wx_cv_use_snglinst"
8223           if test "x$cache" = xyes; then
8224             echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
8225           fi
8226
8227           if test x"$enablestring" = xdisable; then
8228             if test $wxUSE_SNGLINST_CHECKER = yes; then
8229               result=no
8230             else
8231               result=yes
8232             fi
8233           else
8234             result=$wxUSE_SNGLINST_CHECKER
8235           fi
8236
8237           { echo "$as_me:$LINENO: result: $result" >&5
8238 echo "${ECHO_T}$result" >&6; }
8239
8240
8241           enablestring=
8242           defaultval=$wxUSE_ALL_FEATURES
8243           if test -z "$defaultval"; then
8244               if test x"$enablestring" = xdisable; then
8245                   defaultval=yes
8246               else
8247                   defaultval=no
8248               fi
8249           fi
8250
8251           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8252 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8253           # Check whether --enable-stdpaths was given.
8254 if test "${enable_stdpaths+set}" = set; then
8255   enableval=$enable_stdpaths;
8256                           if test "$enableval" = yes; then
8257                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8258                           else
8259                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8260                           fi
8261                           cache=yes
8262
8263 else
8264
8265                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8266                           if test "x$LINE" != x ; then
8267                               eval "DEFAULT_$LINE"
8268                               cache=yes
8269                           else
8270                               cache=no
8271                           fi
8272
8273                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8274
8275 fi
8276
8277
8278           eval "$wx_cv_use_stdpaths"
8279           if test "x$cache" = xyes; then
8280             echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
8281           fi
8282
8283           if test x"$enablestring" = xdisable; then
8284             if test $wxUSE_STDPATHS = yes; then
8285               result=no
8286             else
8287               result=yes
8288             fi
8289           else
8290             result=$wxUSE_STDPATHS
8291           fi
8292
8293           { echo "$as_me:$LINENO: result: $result" >&5
8294 echo "${ECHO_T}$result" >&6; }
8295
8296
8297           enablestring=
8298           defaultval=$wxUSE_ALL_FEATURES
8299           if test -z "$defaultval"; then
8300               if test x"$enablestring" = xdisable; then
8301                   defaultval=yes
8302               else
8303                   defaultval=no
8304               fi
8305           fi
8306
8307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8308 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8309           # Check whether --enable-stopwatch was given.
8310 if test "${enable_stopwatch+set}" = set; then
8311   enableval=$enable_stopwatch;
8312                           if test "$enableval" = yes; then
8313                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8314                           else
8315                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8316                           fi
8317                           cache=yes
8318
8319 else
8320
8321                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8322                           if test "x$LINE" != x ; then
8323                               eval "DEFAULT_$LINE"
8324                               cache=yes
8325                           else
8326                               cache=no
8327                           fi
8328
8329                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8330
8331 fi
8332
8333
8334           eval "$wx_cv_use_stopwatch"
8335           if test "x$cache" = xyes; then
8336             echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
8337           fi
8338
8339           if test x"$enablestring" = xdisable; then
8340             if test $wxUSE_STOPWATCH = yes; then
8341               result=no
8342             else
8343               result=yes
8344             fi
8345           else
8346             result=$wxUSE_STOPWATCH
8347           fi
8348
8349           { echo "$as_me:$LINENO: result: $result" >&5
8350 echo "${ECHO_T}$result" >&6; }
8351
8352
8353           enablestring=
8354           defaultval=$wxUSE_ALL_FEATURES
8355           if test -z "$defaultval"; then
8356               if test x"$enablestring" = xdisable; then
8357                   defaultval=yes
8358               else
8359                   defaultval=no
8360               fi
8361           fi
8362
8363           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8364 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8365           # Check whether --enable-streams was given.
8366 if test "${enable_streams+set}" = set; then
8367   enableval=$enable_streams;
8368                           if test "$enableval" = yes; then
8369                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8370                           else
8371                             wx_cv_use_streams='wxUSE_STREAMS=no'
8372                           fi
8373                           cache=yes
8374
8375 else
8376
8377                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8378                           if test "x$LINE" != x ; then
8379                               eval "DEFAULT_$LINE"
8380                               cache=yes
8381                           else
8382                               cache=no
8383                           fi
8384
8385                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8386
8387 fi
8388
8389
8390           eval "$wx_cv_use_streams"
8391           if test "x$cache" = xyes; then
8392             echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
8393           fi
8394
8395           if test x"$enablestring" = xdisable; then
8396             if test $wxUSE_STREAMS = yes; then
8397               result=no
8398             else
8399               result=yes
8400             fi
8401           else
8402             result=$wxUSE_STREAMS
8403           fi
8404
8405           { echo "$as_me:$LINENO: result: $result" >&5
8406 echo "${ECHO_T}$result" >&6; }
8407
8408
8409           enablestring=
8410           defaultval=$wxUSE_ALL_FEATURES
8411           if test -z "$defaultval"; then
8412               if test x"$enablestring" = xdisable; then
8413                   defaultval=yes
8414               else
8415                   defaultval=no
8416               fi
8417           fi
8418
8419           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8420 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8421           # Check whether --enable-system_options was given.
8422 if test "${enable_system_options+set}" = set; then
8423   enableval=$enable_system_options;
8424                           if test "$enableval" = yes; then
8425                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8426                           else
8427                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8428                           fi
8429                           cache=yes
8430
8431 else
8432
8433                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8434                           if test "x$LINE" != x ; then
8435                               eval "DEFAULT_$LINE"
8436                               cache=yes
8437                           else
8438                               cache=no
8439                           fi
8440
8441                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8442
8443 fi
8444
8445
8446           eval "$wx_cv_use_system_options"
8447           if test "x$cache" = xyes; then
8448             echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
8449           fi
8450
8451           if test x"$enablestring" = xdisable; then
8452             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8453               result=no
8454             else
8455               result=yes
8456             fi
8457           else
8458             result=$wxUSE_SYSTEM_OPTIONS
8459           fi
8460
8461           { echo "$as_me:$LINENO: result: $result" >&5
8462 echo "${ECHO_T}$result" >&6; }
8463
8464
8465           enablestring=
8466           defaultval=$wxUSE_ALL_FEATURES
8467           if test -z "$defaultval"; then
8468               if test x"$enablestring" = xdisable; then
8469                   defaultval=yes
8470               else
8471                   defaultval=no
8472               fi
8473           fi
8474
8475           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8476 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8477           # Check whether --enable-tarstream was given.
8478 if test "${enable_tarstream+set}" = set; then
8479   enableval=$enable_tarstream;
8480                           if test "$enableval" = yes; then
8481                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8482                           else
8483                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8484                           fi
8485                           cache=yes
8486
8487 else
8488
8489                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8490                           if test "x$LINE" != x ; then
8491                               eval "DEFAULT_$LINE"
8492                               cache=yes
8493                           else
8494                               cache=no
8495                           fi
8496
8497                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8498
8499 fi
8500
8501
8502           eval "$wx_cv_use_tarstream"
8503           if test "x$cache" = xyes; then
8504             echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
8505           fi
8506
8507           if test x"$enablestring" = xdisable; then
8508             if test $wxUSE_TARSTREAM = yes; then
8509               result=no
8510             else
8511               result=yes
8512             fi
8513           else
8514             result=$wxUSE_TARSTREAM
8515           fi
8516
8517           { echo "$as_me:$LINENO: result: $result" >&5
8518 echo "${ECHO_T}$result" >&6; }
8519
8520
8521           enablestring=
8522           defaultval=$wxUSE_ALL_FEATURES
8523           if test -z "$defaultval"; then
8524               if test x"$enablestring" = xdisable; then
8525                   defaultval=yes
8526               else
8527                   defaultval=no
8528               fi
8529           fi
8530
8531           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8532 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8533           # Check whether --enable-textbuf was given.
8534 if test "${enable_textbuf+set}" = set; then
8535   enableval=$enable_textbuf;
8536                           if test "$enableval" = yes; then
8537                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8538                           else
8539                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8540                           fi
8541                           cache=yes
8542
8543 else
8544
8545                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8546                           if test "x$LINE" != x ; then
8547                               eval "DEFAULT_$LINE"
8548                               cache=yes
8549                           else
8550                               cache=no
8551                           fi
8552
8553                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8554
8555 fi
8556
8557
8558           eval "$wx_cv_use_textbuf"
8559           if test "x$cache" = xyes; then
8560             echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
8561           fi
8562
8563           if test x"$enablestring" = xdisable; then
8564             if test $wxUSE_TEXTBUFFER = yes; then
8565               result=no
8566             else
8567               result=yes
8568             fi
8569           else
8570             result=$wxUSE_TEXTBUFFER
8571           fi
8572
8573           { echo "$as_me:$LINENO: result: $result" >&5
8574 echo "${ECHO_T}$result" >&6; }
8575
8576
8577           enablestring=
8578           defaultval=$wxUSE_ALL_FEATURES
8579           if test -z "$defaultval"; then
8580               if test x"$enablestring" = xdisable; then
8581                   defaultval=yes
8582               else
8583                   defaultval=no
8584               fi
8585           fi
8586
8587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8588 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8589           # Check whether --enable-textfile was given.
8590 if test "${enable_textfile+set}" = set; then
8591   enableval=$enable_textfile;
8592                           if test "$enableval" = yes; then
8593                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8594                           else
8595                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8596                           fi
8597                           cache=yes
8598
8599 else
8600
8601                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8602                           if test "x$LINE" != x ; then
8603                               eval "DEFAULT_$LINE"
8604                               cache=yes
8605                           else
8606                               cache=no
8607                           fi
8608
8609                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8610
8611 fi
8612
8613
8614           eval "$wx_cv_use_textfile"
8615           if test "x$cache" = xyes; then
8616             echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
8617           fi
8618
8619           if test x"$enablestring" = xdisable; then
8620             if test $wxUSE_TEXTFILE = yes; then
8621               result=no
8622             else
8623               result=yes
8624             fi
8625           else
8626             result=$wxUSE_TEXTFILE
8627           fi
8628
8629           { echo "$as_me:$LINENO: result: $result" >&5
8630 echo "${ECHO_T}$result" >&6; }
8631
8632
8633           enablestring=
8634           defaultval=$wxUSE_ALL_FEATURES
8635           if test -z "$defaultval"; then
8636               if test x"$enablestring" = xdisable; then
8637                   defaultval=yes
8638               else
8639                   defaultval=no
8640               fi
8641           fi
8642
8643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8644 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8645           # Check whether --enable-timer was given.
8646 if test "${enable_timer+set}" = set; then
8647   enableval=$enable_timer;
8648                           if test "$enableval" = yes; then
8649                             wx_cv_use_timer='wxUSE_TIMER=yes'
8650                           else
8651                             wx_cv_use_timer='wxUSE_TIMER=no'
8652                           fi
8653                           cache=yes
8654
8655 else
8656
8657                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8658                           if test "x$LINE" != x ; then
8659                               eval "DEFAULT_$LINE"
8660                               cache=yes
8661                           else
8662                               cache=no
8663                           fi
8664
8665                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8666
8667 fi
8668
8669
8670           eval "$wx_cv_use_timer"
8671           if test "x$cache" = xyes; then
8672             echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
8673           fi
8674
8675           if test x"$enablestring" = xdisable; then
8676             if test $wxUSE_TIMER = yes; then
8677               result=no
8678             else
8679               result=yes
8680             fi
8681           else
8682             result=$wxUSE_TIMER
8683           fi
8684
8685           { echo "$as_me:$LINENO: result: $result" >&5
8686 echo "${ECHO_T}$result" >&6; }
8687
8688
8689           enablestring=
8690           defaultval=$wxUSE_ALL_FEATURES
8691           if test -z "$defaultval"; then
8692               if test x"$enablestring" = xdisable; then
8693                   defaultval=yes
8694               else
8695                   defaultval=no
8696               fi
8697           fi
8698
8699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8700 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8701           # Check whether --enable-sound was given.
8702 if test "${enable_sound+set}" = set; then
8703   enableval=$enable_sound;
8704                           if test "$enableval" = yes; then
8705                             wx_cv_use_sound='wxUSE_SOUND=yes'
8706                           else
8707                             wx_cv_use_sound='wxUSE_SOUND=no'
8708                           fi
8709                           cache=yes
8710
8711 else
8712
8713                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8714                           if test "x$LINE" != x ; then
8715                               eval "DEFAULT_$LINE"
8716                               cache=yes
8717                           else
8718                               cache=no
8719                           fi
8720
8721                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8722
8723 fi
8724
8725
8726           eval "$wx_cv_use_sound"
8727           if test "x$cache" = xyes; then
8728             echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
8729           fi
8730
8731           if test x"$enablestring" = xdisable; then
8732             if test $wxUSE_SOUND = yes; then
8733               result=no
8734             else
8735               result=yes
8736             fi
8737           else
8738             result=$wxUSE_SOUND
8739           fi
8740
8741           { echo "$as_me:$LINENO: result: $result" >&5
8742 echo "${ECHO_T}$result" >&6; }
8743
8744
8745           enablestring=
8746           defaultval=$wxUSE_ALL_FEATURES
8747           if test -z "$defaultval"; then
8748               if test x"$enablestring" = xdisable; then
8749                   defaultval=yes
8750               else
8751                   defaultval=no
8752               fi
8753           fi
8754
8755           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8756 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8757           # Check whether --enable-mediactrl was given.
8758 if test "${enable_mediactrl+set}" = set; then
8759   enableval=$enable_mediactrl;
8760                           if test "$enableval" = yes; then
8761                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8762                           else
8763                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8764                           fi
8765                           cache=yes
8766
8767 else
8768
8769                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8770                           if test "x$LINE" != x ; then
8771                               eval "DEFAULT_$LINE"
8772                               cache=yes
8773                           else
8774                               cache=no
8775                           fi
8776
8777                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8778
8779 fi
8780
8781
8782           eval "$wx_cv_use_mediactrl"
8783           if test "x$cache" = xyes; then
8784             echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
8785           fi
8786
8787           if test x"$enablestring" = xdisable; then
8788             if test $wxUSE_MEDIACTRL = yes; then
8789               result=no
8790             else
8791               result=yes
8792             fi
8793           else
8794             result=$wxUSE_MEDIACTRL
8795           fi
8796
8797           { echo "$as_me:$LINENO: result: $result" >&5
8798 echo "${ECHO_T}$result" >&6; }
8799
8800
8801           enablestring=
8802           defaultval=$wxUSE_ALL_FEATURES
8803           if test -z "$defaultval"; then
8804               if test x"$enablestring" = xdisable; then
8805                   defaultval=yes
8806               else
8807                   defaultval=no
8808               fi
8809           fi
8810
8811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8812 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8813           # Check whether --enable-gstreamer8 was given.
8814 if test "${enable_gstreamer8+set}" = set; then
8815   enableval=$enable_gstreamer8;
8816                           if test "$enableval" = yes; then
8817                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8818                           else
8819                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8820                           fi
8821                           cache=yes
8822
8823 else
8824
8825                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8826                           if test "x$LINE" != x ; then
8827                               eval "DEFAULT_$LINE"
8828                               cache=yes
8829                           else
8830                               cache=no
8831                           fi
8832
8833                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8834
8835 fi
8836
8837
8838           eval "$wx_cv_use_gstreamer8"
8839           if test "x$cache" = xyes; then
8840             echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
8841           fi
8842
8843           if test x"$enablestring" = xdisable; then
8844             if test $wxUSE_GSTREAMER8 = yes; then
8845               result=no
8846             else
8847               result=yes
8848             fi
8849           else
8850             result=$wxUSE_GSTREAMER8
8851           fi
8852
8853           { echo "$as_me:$LINENO: result: $result" >&5
8854 echo "${ECHO_T}$result" >&6; }
8855
8856
8857           enablestring=
8858           defaultval=$wxUSE_ALL_FEATURES
8859           if test -z "$defaultval"; then
8860               if test x"$enablestring" = xdisable; then
8861                   defaultval=yes
8862               else
8863                   defaultval=no
8864               fi
8865           fi
8866
8867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8868 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8869           # Check whether --enable-printfposparam was given.
8870 if test "${enable_printfposparam+set}" = set; then
8871   enableval=$enable_printfposparam;
8872                           if test "$enableval" = yes; then
8873                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8874                           else
8875                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8876                           fi
8877                           cache=yes
8878
8879 else
8880
8881                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8882                           if test "x$LINE" != x ; then
8883                               eval "DEFAULT_$LINE"
8884                               cache=yes
8885                           else
8886                               cache=no
8887                           fi
8888
8889                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8890
8891 fi
8892
8893
8894           eval "$wx_cv_use_printfposparam"
8895           if test "x$cache" = xyes; then
8896             echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
8897           fi
8898
8899           if test x"$enablestring" = xdisable; then
8900             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8901               result=no
8902             else
8903               result=yes
8904             fi
8905           else
8906             result=$wxUSE_PRINTF_POS_PARAMS
8907           fi
8908
8909           { echo "$as_me:$LINENO: result: $result" >&5
8910 echo "${ECHO_T}$result" >&6; }
8911
8912
8913           enablestring=
8914           defaultval=$wxUSE_ALL_FEATURES
8915           if test -z "$defaultval"; then
8916               if test x"$enablestring" = xdisable; then
8917                   defaultval=yes
8918               else
8919                   defaultval=no
8920               fi
8921           fi
8922
8923           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8924 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8925           # Check whether --enable-zipstream was given.
8926 if test "${enable_zipstream+set}" = set; then
8927   enableval=$enable_zipstream;
8928                           if test "$enableval" = yes; then
8929                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8930                           else
8931                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8932                           fi
8933                           cache=yes
8934
8935 else
8936
8937                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8938                           if test "x$LINE" != x ; then
8939                               eval "DEFAULT_$LINE"
8940                               cache=yes
8941                           else
8942                               cache=no
8943                           fi
8944
8945                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8946
8947 fi
8948
8949
8950           eval "$wx_cv_use_zipstream"
8951           if test "x$cache" = xyes; then
8952             echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
8953           fi
8954
8955           if test x"$enablestring" = xdisable; then
8956             if test $wxUSE_ZIPSTREAM = yes; then
8957               result=no
8958             else
8959               result=yes
8960             fi
8961           else
8962             result=$wxUSE_ZIPSTREAM
8963           fi
8964
8965           { echo "$as_me:$LINENO: result: $result" >&5
8966 echo "${ECHO_T}$result" >&6; }
8967
8968
8969
8970           enablestring=
8971           defaultval=$wxUSE_ALL_FEATURES
8972           if test -z "$defaultval"; then
8973               if test x"$enablestring" = xdisable; then
8974                   defaultval=yes
8975               else
8976                   defaultval=no
8977               fi
8978           fi
8979
8980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8981 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8982           # Check whether --enable-url was given.
8983 if test "${enable_url+set}" = set; then
8984   enableval=$enable_url;
8985                           if test "$enableval" = yes; then
8986                             wx_cv_use_url='wxUSE_URL=yes'
8987                           else
8988                             wx_cv_use_url='wxUSE_URL=no'
8989                           fi
8990                           cache=yes
8991
8992 else
8993
8994                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8995                           if test "x$LINE" != x ; then
8996                               eval "DEFAULT_$LINE"
8997                               cache=yes
8998                           else
8999                               cache=no
9000                           fi
9001
9002                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
9003
9004 fi
9005
9006
9007           eval "$wx_cv_use_url"
9008           if test "x$cache" = xyes; then
9009             echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
9010           fi
9011
9012           if test x"$enablestring" = xdisable; then
9013             if test $wxUSE_URL = yes; then
9014               result=no
9015             else
9016               result=yes
9017             fi
9018           else
9019             result=$wxUSE_URL
9020           fi
9021
9022           { echo "$as_me:$LINENO: result: $result" >&5
9023 echo "${ECHO_T}$result" >&6; }
9024
9025
9026           enablestring=
9027           defaultval=$wxUSE_ALL_FEATURES
9028           if test -z "$defaultval"; then
9029               if test x"$enablestring" = xdisable; then
9030                   defaultval=yes
9031               else
9032                   defaultval=no
9033               fi
9034           fi
9035
9036           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
9037 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
9038           # Check whether --enable-variant was given.
9039 if test "${enable_variant+set}" = set; then
9040   enableval=$enable_variant;
9041                           if test "$enableval" = yes; then
9042                             wx_cv_use_variant='wxUSE_VARIANT=yes'
9043                           else
9044                             wx_cv_use_variant='wxUSE_VARIANT=no'
9045                           fi
9046                           cache=yes
9047
9048 else
9049
9050                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
9051                           if test "x$LINE" != x ; then
9052                               eval "DEFAULT_$LINE"
9053                               cache=yes
9054                           else
9055                               cache=no
9056                           fi
9057
9058                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
9059
9060 fi
9061
9062
9063           eval "$wx_cv_use_variant"
9064           if test "x$cache" = xyes; then
9065             echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
9066           fi
9067
9068           if test x"$enablestring" = xdisable; then
9069             if test $wxUSE_VARIANT = yes; then
9070               result=no
9071             else
9072               result=yes
9073             fi
9074           else
9075             result=$wxUSE_VARIANT
9076           fi
9077
9078           { echo "$as_me:$LINENO: result: $result" >&5
9079 echo "${ECHO_T}$result" >&6; }
9080
9081
9082           enablestring=
9083           defaultval=$wxUSE_ALL_FEATURES
9084           if test -z "$defaultval"; then
9085               if test x"$enablestring" = xdisable; then
9086                   defaultval=yes
9087               else
9088                   defaultval=no
9089               fi
9090           fi
9091
9092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
9093 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
9094           # Check whether --enable-protocol was given.
9095 if test "${enable_protocol+set}" = set; then
9096   enableval=$enable_protocol;
9097                           if test "$enableval" = yes; then
9098                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
9099                           else
9100                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
9101                           fi
9102                           cache=yes
9103
9104 else
9105
9106                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
9107                           if test "x$LINE" != x ; then
9108                               eval "DEFAULT_$LINE"
9109                               cache=yes
9110                           else
9111                               cache=no
9112                           fi
9113
9114                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
9115
9116 fi
9117
9118
9119           eval "$wx_cv_use_protocol"
9120           if test "x$cache" = xyes; then
9121             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
9122           fi
9123
9124           if test x"$enablestring" = xdisable; then
9125             if test $wxUSE_PROTOCOL = yes; then
9126               result=no
9127             else
9128               result=yes
9129             fi
9130           else
9131             result=$wxUSE_PROTOCOL
9132           fi
9133
9134           { echo "$as_me:$LINENO: result: $result" >&5
9135 echo "${ECHO_T}$result" >&6; }
9136
9137
9138           enablestring=
9139           defaultval=$wxUSE_ALL_FEATURES
9140           if test -z "$defaultval"; then
9141               if test x"$enablestring" = xdisable; then
9142                   defaultval=yes
9143               else
9144                   defaultval=no
9145               fi
9146           fi
9147
9148           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
9149 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
9150           # Check whether --enable-protocol_http was given.
9151 if test "${enable_protocol_http+set}" = set; then
9152   enableval=$enable_protocol_http;
9153                           if test "$enableval" = yes; then
9154                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
9155                           else
9156                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
9157                           fi
9158                           cache=yes
9159
9160 else
9161
9162                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
9163                           if test "x$LINE" != x ; then
9164                               eval "DEFAULT_$LINE"
9165                               cache=yes
9166                           else
9167                               cache=no
9168                           fi
9169
9170                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
9171
9172 fi
9173
9174
9175           eval "$wx_cv_use_protocol_http"
9176           if test "x$cache" = xyes; then
9177             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
9178           fi
9179
9180           if test x"$enablestring" = xdisable; then
9181             if test $wxUSE_PROTOCOL_HTTP = yes; then
9182               result=no
9183             else
9184               result=yes
9185             fi
9186           else
9187             result=$wxUSE_PROTOCOL_HTTP
9188           fi
9189
9190           { echo "$as_me:$LINENO: result: $result" >&5
9191 echo "${ECHO_T}$result" >&6; }
9192
9193
9194           enablestring=
9195           defaultval=$wxUSE_ALL_FEATURES
9196           if test -z "$defaultval"; then
9197               if test x"$enablestring" = xdisable; then
9198                   defaultval=yes
9199               else
9200                   defaultval=no
9201               fi
9202           fi
9203
9204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
9205 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
9206           # Check whether --enable-protocol_ftp was given.
9207 if test "${enable_protocol_ftp+set}" = set; then
9208   enableval=$enable_protocol_ftp;
9209                           if test "$enableval" = yes; then
9210                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
9211                           else
9212                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
9213                           fi
9214                           cache=yes
9215
9216 else
9217
9218                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
9219                           if test "x$LINE" != x ; then
9220                               eval "DEFAULT_$LINE"
9221                               cache=yes
9222                           else
9223                               cache=no
9224                           fi
9225
9226                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
9227
9228 fi
9229
9230
9231           eval "$wx_cv_use_protocol_ftp"
9232           if test "x$cache" = xyes; then
9233             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
9234           fi
9235
9236           if test x"$enablestring" = xdisable; then
9237             if test $wxUSE_PROTOCOL_FTP = yes; then
9238               result=no
9239             else
9240               result=yes
9241             fi
9242           else
9243             result=$wxUSE_PROTOCOL_FTP
9244           fi
9245
9246           { echo "$as_me:$LINENO: result: $result" >&5
9247 echo "${ECHO_T}$result" >&6; }
9248
9249
9250           enablestring=
9251           defaultval=$wxUSE_ALL_FEATURES
9252           if test -z "$defaultval"; then
9253               if test x"$enablestring" = xdisable; then
9254                   defaultval=yes
9255               else
9256                   defaultval=no
9257               fi
9258           fi
9259
9260           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9261 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9262           # Check whether --enable-protocol_file was given.
9263 if test "${enable_protocol_file+set}" = set; then
9264   enableval=$enable_protocol_file;
9265                           if test "$enableval" = yes; then
9266                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9267                           else
9268                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9269                           fi
9270                           cache=yes
9271
9272 else
9273
9274                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9275                           if test "x$LINE" != x ; then
9276                               eval "DEFAULT_$LINE"
9277                               cache=yes
9278                           else
9279                               cache=no
9280                           fi
9281
9282                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9283
9284 fi
9285
9286
9287           eval "$wx_cv_use_protocol_file"
9288           if test "x$cache" = xyes; then
9289             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
9290           fi
9291
9292           if test x"$enablestring" = xdisable; then
9293             if test $wxUSE_PROTOCOL_FILE = yes; then
9294               result=no
9295             else
9296               result=yes
9297             fi
9298           else
9299             result=$wxUSE_PROTOCOL_FILE
9300           fi
9301
9302           { echo "$as_me:$LINENO: result: $result" >&5
9303 echo "${ECHO_T}$result" >&6; }
9304
9305
9306
9307           enablestring=
9308           defaultval=$wxUSE_ALL_FEATURES
9309           if test -z "$defaultval"; then
9310               if test x"$enablestring" = xdisable; then
9311                   defaultval=yes
9312               else
9313                   defaultval=no
9314               fi
9315           fi
9316
9317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9318 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9319           # Check whether --enable-threads was given.
9320 if test "${enable_threads+set}" = set; then
9321   enableval=$enable_threads;
9322                           if test "$enableval" = yes; then
9323                             wx_cv_use_threads='wxUSE_THREADS=yes'
9324                           else
9325                             wx_cv_use_threads='wxUSE_THREADS=no'
9326                           fi
9327                           cache=yes
9328
9329 else
9330
9331                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9332                           if test "x$LINE" != x ; then
9333                               eval "DEFAULT_$LINE"
9334                               cache=yes
9335                           else
9336                               cache=no
9337                           fi
9338
9339                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9340
9341 fi
9342
9343
9344           eval "$wx_cv_use_threads"
9345           if test "x$cache" = xyes; then
9346             echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
9347           fi
9348
9349           if test x"$enablestring" = xdisable; then
9350             if test $wxUSE_THREADS = yes; then
9351               result=no
9352             else
9353               result=yes
9354             fi
9355           else
9356             result=$wxUSE_THREADS
9357           fi
9358
9359           { echo "$as_me:$LINENO: result: $result" >&5
9360 echo "${ECHO_T}$result" >&6; }
9361
9362
9363 if test "$wxUSE_GUI" = "yes"; then
9364
9365
9366
9367           enablestring=
9368           defaultval=$wxUSE_ALL_FEATURES
9369           if test -z "$defaultval"; then
9370               if test x"$enablestring" = xdisable; then
9371                   defaultval=yes
9372               else
9373                   defaultval=no
9374               fi
9375           fi
9376
9377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9378 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9379           # Check whether --enable-docview was given.
9380 if test "${enable_docview+set}" = set; then
9381   enableval=$enable_docview;
9382                           if test "$enableval" = yes; then
9383                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9384                           else
9385                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9386                           fi
9387                           cache=yes
9388
9389 else
9390
9391                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9392                           if test "x$LINE" != x ; then
9393                               eval "DEFAULT_$LINE"
9394                               cache=yes
9395                           else
9396                               cache=no
9397                           fi
9398
9399                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9400
9401 fi
9402
9403
9404           eval "$wx_cv_use_docview"
9405           if test "x$cache" = xyes; then
9406             echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9407           fi
9408
9409           if test x"$enablestring" = xdisable; then
9410             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9411               result=no
9412             else
9413               result=yes
9414             fi
9415           else
9416             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9417           fi
9418
9419           { echo "$as_me:$LINENO: result: $result" >&5
9420 echo "${ECHO_T}$result" >&6; }
9421
9422
9423           enablestring=
9424           defaultval=$wxUSE_ALL_FEATURES
9425           if test -z "$defaultval"; then
9426               if test x"$enablestring" = xdisable; then
9427                   defaultval=yes
9428               else
9429                   defaultval=no
9430               fi
9431           fi
9432
9433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9434 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9435           # Check whether --enable-help was given.
9436 if test "${enable_help+set}" = set; then
9437   enableval=$enable_help;
9438                           if test "$enableval" = yes; then
9439                             wx_cv_use_help='wxUSE_HELP=yes'
9440                           else
9441                             wx_cv_use_help='wxUSE_HELP=no'
9442                           fi
9443                           cache=yes
9444
9445 else
9446
9447                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9448                           if test "x$LINE" != x ; then
9449                               eval "DEFAULT_$LINE"
9450                               cache=yes
9451                           else
9452                               cache=no
9453                           fi
9454
9455                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9456
9457 fi
9458
9459
9460           eval "$wx_cv_use_help"
9461           if test "x$cache" = xyes; then
9462             echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
9463           fi
9464
9465           if test x"$enablestring" = xdisable; then
9466             if test $wxUSE_HELP = yes; then
9467               result=no
9468             else
9469               result=yes
9470             fi
9471           else
9472             result=$wxUSE_HELP
9473           fi
9474
9475           { echo "$as_me:$LINENO: result: $result" >&5
9476 echo "${ECHO_T}$result" >&6; }
9477
9478
9479           enablestring=
9480           defaultval=$wxUSE_ALL_FEATURES
9481           if test -z "$defaultval"; then
9482               if test x"$enablestring" = xdisable; then
9483                   defaultval=yes
9484               else
9485                   defaultval=no
9486               fi
9487           fi
9488
9489           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9490 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9491           # Check whether --enable-mshtmlhelp was given.
9492 if test "${enable_mshtmlhelp+set}" = set; then
9493   enableval=$enable_mshtmlhelp;
9494                           if test "$enableval" = yes; then
9495                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9496                           else
9497                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9498                           fi
9499                           cache=yes
9500
9501 else
9502
9503                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9504                           if test "x$LINE" != x ; then
9505                               eval "DEFAULT_$LINE"
9506                               cache=yes
9507                           else
9508                               cache=no
9509                           fi
9510
9511                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9512
9513 fi
9514
9515
9516           eval "$wx_cv_use_mshtmlhelp"
9517           if test "x$cache" = xyes; then
9518             echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
9519           fi
9520
9521           if test x"$enablestring" = xdisable; then
9522             if test $wxUSE_MS_HTML_HELP = yes; then
9523               result=no
9524             else
9525               result=yes
9526             fi
9527           else
9528             result=$wxUSE_MS_HTML_HELP
9529           fi
9530
9531           { echo "$as_me:$LINENO: result: $result" >&5
9532 echo "${ECHO_T}$result" >&6; }
9533
9534
9535           enablestring=
9536           defaultval=$wxUSE_ALL_FEATURES
9537           if test -z "$defaultval"; then
9538               if test x"$enablestring" = xdisable; then
9539                   defaultval=yes
9540               else
9541                   defaultval=no
9542               fi
9543           fi
9544
9545           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9546 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9547           # Check whether --enable-html was given.
9548 if test "${enable_html+set}" = set; then
9549   enableval=$enable_html;
9550                           if test "$enableval" = yes; then
9551                             wx_cv_use_html='wxUSE_HTML=yes'
9552                           else
9553                             wx_cv_use_html='wxUSE_HTML=no'
9554                           fi
9555                           cache=yes
9556
9557 else
9558
9559                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9560                           if test "x$LINE" != x ; then
9561                               eval "DEFAULT_$LINE"
9562                               cache=yes
9563                           else
9564                               cache=no
9565                           fi
9566
9567                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9568
9569 fi
9570
9571
9572           eval "$wx_cv_use_html"
9573           if test "x$cache" = xyes; then
9574             echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
9575           fi
9576
9577           if test x"$enablestring" = xdisable; then
9578             if test $wxUSE_HTML = yes; then
9579               result=no
9580             else
9581               result=yes
9582             fi
9583           else
9584             result=$wxUSE_HTML
9585           fi
9586
9587           { echo "$as_me:$LINENO: result: $result" >&5
9588 echo "${ECHO_T}$result" >&6; }
9589
9590
9591           enablestring=
9592           defaultval=$wxUSE_ALL_FEATURES
9593           if test -z "$defaultval"; then
9594               if test x"$enablestring" = xdisable; then
9595                   defaultval=yes
9596               else
9597                   defaultval=no
9598               fi
9599           fi
9600
9601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9602 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9603           # Check whether --enable-htmlhelp was given.
9604 if test "${enable_htmlhelp+set}" = set; then
9605   enableval=$enable_htmlhelp;
9606                           if test "$enableval" = yes; then
9607                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9608                           else
9609                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9610                           fi
9611                           cache=yes
9612
9613 else
9614
9615                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9616                           if test "x$LINE" != x ; then
9617                               eval "DEFAULT_$LINE"
9618                               cache=yes
9619                           else
9620                               cache=no
9621                           fi
9622
9623                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9624
9625 fi
9626
9627
9628           eval "$wx_cv_use_htmlhelp"
9629           if test "x$cache" = xyes; then
9630             echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
9631           fi
9632
9633           if test x"$enablestring" = xdisable; then
9634             if test $wxUSE_WXHTML_HELP = yes; then
9635               result=no
9636             else
9637               result=yes
9638             fi
9639           else
9640             result=$wxUSE_WXHTML_HELP
9641           fi
9642
9643           { echo "$as_me:$LINENO: result: $result" >&5
9644 echo "${ECHO_T}$result" >&6; }
9645
9646
9647           enablestring=
9648           defaultval=$wxUSE_ALL_FEATURES
9649           if test -z "$defaultval"; then
9650               if test x"$enablestring" = xdisable; then
9651                   defaultval=yes
9652               else
9653                   defaultval=no
9654               fi
9655           fi
9656
9657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9658 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9659           # Check whether --enable-xrc was given.
9660 if test "${enable_xrc+set}" = set; then
9661   enableval=$enable_xrc;
9662                           if test "$enableval" = yes; then
9663                             wx_cv_use_xrc='wxUSE_XRC=yes'
9664                           else
9665                             wx_cv_use_xrc='wxUSE_XRC=no'
9666                           fi
9667                           cache=yes
9668
9669 else
9670
9671                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9672                           if test "x$LINE" != x ; then
9673                               eval "DEFAULT_$LINE"
9674                               cache=yes
9675                           else
9676                               cache=no
9677                           fi
9678
9679                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9680
9681 fi
9682
9683
9684           eval "$wx_cv_use_xrc"
9685           if test "x$cache" = xyes; then
9686             echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9687           fi
9688
9689           if test x"$enablestring" = xdisable; then
9690             if test $wxUSE_XRC = yes; then
9691               result=no
9692             else
9693               result=yes
9694             fi
9695           else
9696             result=$wxUSE_XRC
9697           fi
9698
9699           { echo "$as_me:$LINENO: result: $result" >&5
9700 echo "${ECHO_T}$result" >&6; }
9701
9702
9703           enablestring=
9704           defaultval=$wxUSE_ALL_FEATURES
9705           if test -z "$defaultval"; then
9706               if test x"$enablestring" = xdisable; then
9707                   defaultval=yes
9708               else
9709                   defaultval=no
9710               fi
9711           fi
9712
9713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9714 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9715           # Check whether --enable-aui was given.
9716 if test "${enable_aui+set}" = set; then
9717   enableval=$enable_aui;
9718                           if test "$enableval" = yes; then
9719                             wx_cv_use_aui='wxUSE_AUI=yes'
9720                           else
9721                             wx_cv_use_aui='wxUSE_AUI=no'
9722                           fi
9723                           cache=yes
9724
9725 else
9726
9727                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9728                           if test "x$LINE" != x ; then
9729                               eval "DEFAULT_$LINE"
9730                               cache=yes
9731                           else
9732                               cache=no
9733                           fi
9734
9735                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9736
9737 fi
9738
9739
9740           eval "$wx_cv_use_aui"
9741           if test "x$cache" = xyes; then
9742             echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
9743           fi
9744
9745           if test x"$enablestring" = xdisable; then
9746             if test $wxUSE_AUI = yes; then
9747               result=no
9748             else
9749               result=yes
9750             fi
9751           else
9752             result=$wxUSE_AUI
9753           fi
9754
9755           { echo "$as_me:$LINENO: result: $result" >&5
9756 echo "${ECHO_T}$result" >&6; }
9757
9758
9759           enablestring=
9760           defaultval=$wxUSE_ALL_FEATURES
9761           if test -z "$defaultval"; then
9762               if test x"$enablestring" = xdisable; then
9763                   defaultval=yes
9764               else
9765                   defaultval=no
9766               fi
9767           fi
9768
9769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9770 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9771           # Check whether --enable-stc was given.
9772 if test "${enable_stc+set}" = set; then
9773   enableval=$enable_stc;
9774                           if test "$enableval" = yes; then
9775                             wx_cv_use_stc='wxUSE_STC=yes'
9776                           else
9777                             wx_cv_use_stc='wxUSE_STC=no'
9778                           fi
9779                           cache=yes
9780
9781 else
9782
9783                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9784                           if test "x$LINE" != x ; then
9785                               eval "DEFAULT_$LINE"
9786                               cache=yes
9787                           else
9788                               cache=no
9789                           fi
9790
9791                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9792
9793 fi
9794
9795
9796           eval "$wx_cv_use_stc"
9797           if test "x$cache" = xyes; then
9798             echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
9799           fi
9800
9801           if test x"$enablestring" = xdisable; then
9802             if test $wxUSE_STC = yes; then
9803               result=no
9804             else
9805               result=yes
9806             fi
9807           else
9808             result=$wxUSE_STC
9809           fi
9810
9811           { echo "$as_me:$LINENO: result: $result" >&5
9812 echo "${ECHO_T}$result" >&6; }
9813
9814
9815           enablestring=
9816           defaultval=$wxUSE_ALL_FEATURES
9817           if test -z "$defaultval"; then
9818               if test x"$enablestring" = xdisable; then
9819                   defaultval=yes
9820               else
9821                   defaultval=no
9822               fi
9823           fi
9824
9825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9826 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9827           # Check whether --enable-constraints was given.
9828 if test "${enable_constraints+set}" = set; then
9829   enableval=$enable_constraints;
9830                           if test "$enableval" = yes; then
9831                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9832                           else
9833                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9834                           fi
9835                           cache=yes
9836
9837 else
9838
9839                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9840                           if test "x$LINE" != x ; then
9841                               eval "DEFAULT_$LINE"
9842                               cache=yes
9843                           else
9844                               cache=no
9845                           fi
9846
9847                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9848
9849 fi
9850
9851
9852           eval "$wx_cv_use_constraints"
9853           if test "x$cache" = xyes; then
9854             echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
9855           fi
9856
9857           if test x"$enablestring" = xdisable; then
9858             if test $wxUSE_CONSTRAINTS = yes; then
9859               result=no
9860             else
9861               result=yes
9862             fi
9863           else
9864             result=$wxUSE_CONSTRAINTS
9865           fi
9866
9867           { echo "$as_me:$LINENO: result: $result" >&5
9868 echo "${ECHO_T}$result" >&6; }
9869
9870
9871           enablestring=
9872           defaultval=$wxUSE_ALL_FEATURES
9873           if test -z "$defaultval"; then
9874               if test x"$enablestring" = xdisable; then
9875                   defaultval=yes
9876               else
9877                   defaultval=no
9878               fi
9879           fi
9880
9881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9882 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9883           # Check whether --enable-printarch was given.
9884 if test "${enable_printarch+set}" = set; then
9885   enableval=$enable_printarch;
9886                           if test "$enableval" = yes; then
9887                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9888                           else
9889                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9890                           fi
9891                           cache=yes
9892
9893 else
9894
9895                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9896                           if test "x$LINE" != x ; then
9897                               eval "DEFAULT_$LINE"
9898                               cache=yes
9899                           else
9900                               cache=no
9901                           fi
9902
9903                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9904
9905 fi
9906
9907
9908           eval "$wx_cv_use_printarch"
9909           if test "x$cache" = xyes; then
9910             echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9911           fi
9912
9913           if test x"$enablestring" = xdisable; then
9914             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9915               result=no
9916             else
9917               result=yes
9918             fi
9919           else
9920             result=$wxUSE_PRINTING_ARCHITECTURE
9921           fi
9922
9923           { echo "$as_me:$LINENO: result: $result" >&5
9924 echo "${ECHO_T}$result" >&6; }
9925
9926
9927           enablestring=
9928           defaultval=$wxUSE_ALL_FEATURES
9929           if test -z "$defaultval"; then
9930               if test x"$enablestring" = xdisable; then
9931                   defaultval=yes
9932               else
9933                   defaultval=no
9934               fi
9935           fi
9936
9937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9938 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9939           # Check whether --enable-mdi was given.
9940 if test "${enable_mdi+set}" = set; then
9941   enableval=$enable_mdi;
9942                           if test "$enableval" = yes; then
9943                             wx_cv_use_mdi='wxUSE_MDI=yes'
9944                           else
9945                             wx_cv_use_mdi='wxUSE_MDI=no'
9946                           fi
9947                           cache=yes
9948
9949 else
9950
9951                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
9952                           if test "x$LINE" != x ; then
9953                               eval "DEFAULT_$LINE"
9954                               cache=yes
9955                           else
9956                               cache=no
9957                           fi
9958
9959                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9960
9961 fi
9962
9963
9964           eval "$wx_cv_use_mdi"
9965           if test "x$cache" = xyes; then
9966             echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
9967           fi
9968
9969           if test x"$enablestring" = xdisable; then
9970             if test $wxUSE_MDI = yes; then
9971               result=no
9972             else
9973               result=yes
9974             fi
9975           else
9976             result=$wxUSE_MDI
9977           fi
9978
9979           { echo "$as_me:$LINENO: result: $result" >&5
9980 echo "${ECHO_T}$result" >&6; }
9981
9982
9983           enablestring=
9984           defaultval=$wxUSE_ALL_FEATURES
9985           if test -z "$defaultval"; then
9986               if test x"$enablestring" = xdisable; then
9987                   defaultval=yes
9988               else
9989                   defaultval=no
9990               fi
9991           fi
9992
9993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9994 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9995           # Check whether --enable-mdidoc was given.
9996 if test "${enable_mdidoc+set}" = set; then
9997   enableval=$enable_mdidoc;
9998                           if test "$enableval" = yes; then
9999                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
10000                           else
10001                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
10002                           fi
10003                           cache=yes
10004
10005 else
10006
10007                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
10008                           if test "x$LINE" != x ; then
10009                               eval "DEFAULT_$LINE"
10010                               cache=yes
10011                           else
10012                               cache=no
10013                           fi
10014
10015                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
10016
10017 fi
10018
10019
10020           eval "$wx_cv_use_mdidoc"
10021           if test "x$cache" = xyes; then
10022             echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
10023           fi
10024
10025           if test x"$enablestring" = xdisable; then
10026             if test $wxUSE_MDI_ARCHITECTURE = yes; then
10027               result=no
10028             else
10029               result=yes
10030             fi
10031           else
10032             result=$wxUSE_MDI_ARCHITECTURE
10033           fi
10034
10035           { echo "$as_me:$LINENO: result: $result" >&5
10036 echo "${ECHO_T}$result" >&6; }
10037
10038
10039           enablestring=
10040           defaultval=$wxUSE_ALL_FEATURES
10041           if test -z "$defaultval"; then
10042               if test x"$enablestring" = xdisable; then
10043                   defaultval=yes
10044               else
10045                   defaultval=no
10046               fi
10047           fi
10048
10049           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
10050 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
10051           # Check whether --enable-loggui was given.
10052 if test "${enable_loggui+set}" = set; then
10053   enableval=$enable_loggui;
10054                           if test "$enableval" = yes; then
10055                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
10056                           else
10057                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
10058                           fi
10059                           cache=yes
10060
10061 else
10062
10063                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
10064                           if test "x$LINE" != x ; then
10065                               eval "DEFAULT_$LINE"
10066                               cache=yes
10067                           else
10068                               cache=no
10069                           fi
10070
10071                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
10072
10073 fi
10074
10075
10076           eval "$wx_cv_use_loggui"
10077           if test "x$cache" = xyes; then
10078             echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
10079           fi
10080
10081           if test x"$enablestring" = xdisable; then
10082             if test $wxUSE_LOGGUI = yes; then
10083               result=no
10084             else
10085               result=yes
10086             fi
10087           else
10088             result=$wxUSE_LOGGUI
10089           fi
10090
10091           { echo "$as_me:$LINENO: result: $result" >&5
10092 echo "${ECHO_T}$result" >&6; }
10093
10094
10095           enablestring=
10096           defaultval=$wxUSE_ALL_FEATURES
10097           if test -z "$defaultval"; then
10098               if test x"$enablestring" = xdisable; then
10099                   defaultval=yes
10100               else
10101                   defaultval=no
10102               fi
10103           fi
10104
10105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
10106 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
10107           # Check whether --enable-logwin was given.
10108 if test "${enable_logwin+set}" = set; then
10109   enableval=$enable_logwin;
10110                           if test "$enableval" = yes; then
10111                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
10112                           else
10113                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
10114                           fi
10115                           cache=yes
10116
10117 else
10118
10119                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
10120                           if test "x$LINE" != x ; then
10121                               eval "DEFAULT_$LINE"
10122                               cache=yes
10123                           else
10124                               cache=no
10125                           fi
10126
10127                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
10128
10129 fi
10130
10131
10132           eval "$wx_cv_use_logwin"
10133           if test "x$cache" = xyes; then
10134             echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
10135           fi
10136
10137           if test x"$enablestring" = xdisable; then
10138             if test $wxUSE_LOGWINDOW = yes; then
10139               result=no
10140             else
10141               result=yes
10142             fi
10143           else
10144             result=$wxUSE_LOGWINDOW
10145           fi
10146
10147           { echo "$as_me:$LINENO: result: $result" >&5
10148 echo "${ECHO_T}$result" >&6; }
10149
10150
10151           enablestring=
10152           defaultval=$wxUSE_ALL_FEATURES
10153           if test -z "$defaultval"; then
10154               if test x"$enablestring" = xdisable; then
10155                   defaultval=yes
10156               else
10157                   defaultval=no
10158               fi
10159           fi
10160
10161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
10162 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
10163           # Check whether --enable-logdialog was given.
10164 if test "${enable_logdialog+set}" = set; then
10165   enableval=$enable_logdialog;
10166                           if test "$enableval" = yes; then
10167                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
10168                           else
10169                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
10170                           fi
10171                           cache=yes
10172
10173 else
10174
10175                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
10176                           if test "x$LINE" != x ; then
10177                               eval "DEFAULT_$LINE"
10178                               cache=yes
10179                           else
10180                               cache=no
10181                           fi
10182
10183                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
10184
10185 fi
10186
10187
10188           eval "$wx_cv_use_logdialog"
10189           if test "x$cache" = xyes; then
10190             echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
10191           fi
10192
10193           if test x"$enablestring" = xdisable; then
10194             if test $wxUSE_LOGDIALOG = yes; then
10195               result=no
10196             else
10197               result=yes
10198             fi
10199           else
10200             result=$wxUSE_LOGDIALOG
10201           fi
10202
10203           { echo "$as_me:$LINENO: result: $result" >&5
10204 echo "${ECHO_T}$result" >&6; }
10205
10206
10207           enablestring=
10208           defaultval=$wxUSE_ALL_FEATURES
10209           if test -z "$defaultval"; then
10210               if test x"$enablestring" = xdisable; then
10211                   defaultval=yes
10212               else
10213                   defaultval=no
10214               fi
10215           fi
10216
10217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
10218 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
10219           # Check whether --enable-webkit was given.
10220 if test "${enable_webkit+set}" = set; then
10221   enableval=$enable_webkit;
10222                           if test "$enableval" = yes; then
10223                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
10224                           else
10225                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
10226                           fi
10227                           cache=yes
10228
10229 else
10230
10231                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
10232                           if test "x$LINE" != x ; then
10233                               eval "DEFAULT_$LINE"
10234                               cache=yes
10235                           else
10236                               cache=no
10237                           fi
10238
10239                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
10240
10241 fi
10242
10243
10244           eval "$wx_cv_use_webkit"
10245           if test "x$cache" = xyes; then
10246             echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
10247           fi
10248
10249           if test x"$enablestring" = xdisable; then
10250             if test $wxUSE_WEBKIT = yes; then
10251               result=no
10252             else
10253               result=yes
10254             fi
10255           else
10256             result=$wxUSE_WEBKIT
10257           fi
10258
10259           { echo "$as_me:$LINENO: result: $result" >&5
10260 echo "${ECHO_T}$result" >&6; }
10261
10262
10263           enablestring=
10264           defaultval=$wxUSE_ALL_FEATURES
10265           if test -z "$defaultval"; then
10266               if test x"$enablestring" = xdisable; then
10267                   defaultval=yes
10268               else
10269                   defaultval=no
10270               fi
10271           fi
10272
10273           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10274 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10275           # Check whether --enable-richtext was given.
10276 if test "${enable_richtext+set}" = set; then
10277   enableval=$enable_richtext;
10278                           if test "$enableval" = yes; then
10279                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10280                           else
10281                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10282                           fi
10283                           cache=yes
10284
10285 else
10286
10287                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10288                           if test "x$LINE" != x ; then
10289                               eval "DEFAULT_$LINE"
10290                               cache=yes
10291                           else
10292                               cache=no
10293                           fi
10294
10295                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10296
10297 fi
10298
10299
10300           eval "$wx_cv_use_richtext"
10301           if test "x$cache" = xyes; then
10302             echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
10303           fi
10304
10305           if test x"$enablestring" = xdisable; then
10306             if test $wxUSE_RICHTEXT = yes; then
10307               result=no
10308             else
10309               result=yes
10310             fi
10311           else
10312             result=$wxUSE_RICHTEXT
10313           fi
10314
10315           { echo "$as_me:$LINENO: result: $result" >&5
10316 echo "${ECHO_T}$result" >&6; }
10317
10318
10319           enablestring=
10320           defaultval=$wxUSE_ALL_FEATURES
10321           if test -z "$defaultval"; then
10322               if test x"$enablestring" = xdisable; then
10323                   defaultval=yes
10324               else
10325                   defaultval=no
10326               fi
10327           fi
10328
10329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10330 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10331           # Check whether --enable-graphics_ctx was given.
10332 if test "${enable_graphics_ctx+set}" = set; then
10333   enableval=$enable_graphics_ctx;
10334                           if test "$enableval" = yes; then
10335                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10336                           else
10337                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10338                           fi
10339                           cache=yes
10340
10341 else
10342
10343                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10344                           if test "x$LINE" != x ; then
10345                               eval "DEFAULT_$LINE"
10346                               cache=yes
10347                           else
10348                               cache=no
10349                           fi
10350
10351                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10352
10353 fi
10354
10355
10356           eval "$wx_cv_use_graphics_ctx"
10357           if test "x$cache" = xyes; then
10358             echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
10359           fi
10360
10361           if test x"$enablestring" = xdisable; then
10362             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10363               result=no
10364             else
10365               result=yes
10366             fi
10367           else
10368             result=$wxUSE_GRAPHICS_CONTEXT
10369           fi
10370
10371           { echo "$as_me:$LINENO: result: $result" >&5
10372 echo "${ECHO_T}$result" >&6; }
10373
10374
10375           enablestring=
10376           defaultval=$wxUSE_ALL_FEATURES
10377           if test -z "$defaultval"; then
10378               if test x"$enablestring" = xdisable; then
10379                   defaultval=yes
10380               else
10381                   defaultval=no
10382               fi
10383           fi
10384
10385           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10386 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10387           # Check whether --enable-postscript was given.
10388 if test "${enable_postscript+set}" = set; then
10389   enableval=$enable_postscript;
10390                           if test "$enableval" = yes; then
10391                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10392                           else
10393                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10394                           fi
10395                           cache=yes
10396
10397 else
10398
10399                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10400                           if test "x$LINE" != x ; then
10401                               eval "DEFAULT_$LINE"
10402                               cache=yes
10403                           else
10404                               cache=no
10405                           fi
10406
10407                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10408
10409 fi
10410
10411
10412           eval "$wx_cv_use_postscript"
10413           if test "x$cache" = xyes; then
10414             echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
10415           fi
10416
10417           if test x"$enablestring" = xdisable; then
10418             if test $wxUSE_POSTSCRIPT = yes; then
10419               result=no
10420             else
10421               result=yes
10422             fi
10423           else
10424             result=$wxUSE_POSTSCRIPT
10425           fi
10426
10427           { echo "$as_me:$LINENO: result: $result" >&5
10428 echo "${ECHO_T}$result" >&6; }
10429
10430
10431           enablestring=
10432           defaultval=$wxUSE_ALL_FEATURES
10433           if test -z "$defaultval"; then
10434               if test x"$enablestring" = xdisable; then
10435                   defaultval=yes
10436               else
10437                   defaultval=no
10438               fi
10439           fi
10440
10441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10442 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10443           # Check whether --enable-svg was given.
10444 if test "${enable_svg+set}" = set; then
10445   enableval=$enable_svg;
10446                           if test "$enableval" = yes; then
10447                             wx_cv_use_svg='wxUSE_SVG=yes'
10448                           else
10449                             wx_cv_use_svg='wxUSE_SVG=no'
10450                           fi
10451                           cache=yes
10452
10453 else
10454
10455                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10456                           if test "x$LINE" != x ; then
10457                               eval "DEFAULT_$LINE"
10458                               cache=yes
10459                           else
10460                               cache=no
10461                           fi
10462
10463                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10464
10465 fi
10466
10467
10468           eval "$wx_cv_use_svg"
10469           if test "x$cache" = xyes; then
10470             echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
10471           fi
10472
10473           if test x"$enablestring" = xdisable; then
10474             if test $wxUSE_SVG = yes; then
10475               result=no
10476             else
10477               result=yes
10478             fi
10479           else
10480             result=$wxUSE_SVG
10481           fi
10482
10483           { echo "$as_me:$LINENO: result: $result" >&5
10484 echo "${ECHO_T}$result" >&6; }
10485
10486
10487
10488
10489           enablestring=
10490           defaultval=$wxUSE_ALL_FEATURES
10491           if test -z "$defaultval"; then
10492               if test x"$enablestring" = xdisable; then
10493                   defaultval=yes
10494               else
10495                   defaultval=no
10496               fi
10497           fi
10498
10499           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10500 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10501           # Check whether --enable-clipboard was given.
10502 if test "${enable_clipboard+set}" = set; then
10503   enableval=$enable_clipboard;
10504                           if test "$enableval" = yes; then
10505                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10506                           else
10507                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10508                           fi
10509                           cache=yes
10510
10511 else
10512
10513                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10514                           if test "x$LINE" != x ; then
10515                               eval "DEFAULT_$LINE"
10516                               cache=yes
10517                           else
10518                               cache=no
10519                           fi
10520
10521                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10522
10523 fi
10524
10525
10526           eval "$wx_cv_use_clipboard"
10527           if test "x$cache" = xyes; then
10528             echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
10529           fi
10530
10531           if test x"$enablestring" = xdisable; then
10532             if test $wxUSE_CLIPBOARD = yes; then
10533               result=no
10534             else
10535               result=yes
10536             fi
10537           else
10538             result=$wxUSE_CLIPBOARD
10539           fi
10540
10541           { echo "$as_me:$LINENO: result: $result" >&5
10542 echo "${ECHO_T}$result" >&6; }
10543
10544
10545           enablestring=
10546           defaultval=$wxUSE_ALL_FEATURES
10547           if test -z "$defaultval"; then
10548               if test x"$enablestring" = xdisable; then
10549                   defaultval=yes
10550               else
10551                   defaultval=no
10552               fi
10553           fi
10554
10555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10556 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10557           # Check whether --enable-dnd was given.
10558 if test "${enable_dnd+set}" = set; then
10559   enableval=$enable_dnd;
10560                           if test "$enableval" = yes; then
10561                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10562                           else
10563                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10564                           fi
10565                           cache=yes
10566
10567 else
10568
10569                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10570                           if test "x$LINE" != x ; then
10571                               eval "DEFAULT_$LINE"
10572                               cache=yes
10573                           else
10574                               cache=no
10575                           fi
10576
10577                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10578
10579 fi
10580
10581
10582           eval "$wx_cv_use_dnd"
10583           if test "x$cache" = xyes; then
10584             echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
10585           fi
10586
10587           if test x"$enablestring" = xdisable; then
10588             if test $wxUSE_DRAG_AND_DROP = yes; then
10589               result=no
10590             else
10591               result=yes
10592             fi
10593           else
10594             result=$wxUSE_DRAG_AND_DROP
10595           fi
10596
10597           { echo "$as_me:$LINENO: result: $result" >&5
10598 echo "${ECHO_T}$result" >&6; }
10599
10600
10601           enablestring=
10602           defaultval=$wxUSE_ALL_FEATURES
10603           if test -z "$defaultval"; then
10604               if test x"$enablestring" = xdisable; then
10605                   defaultval=yes
10606               else
10607                   defaultval=no
10608               fi
10609           fi
10610
10611           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10612 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10613           # Check whether --enable-metafile was given.
10614 if test "${enable_metafile+set}" = set; then
10615   enableval=$enable_metafile;
10616                           if test "$enableval" = yes; then
10617                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10618                           else
10619                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10620                           fi
10621                           cache=yes
10622
10623 else
10624
10625                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10626                           if test "x$LINE" != x ; then
10627                               eval "DEFAULT_$LINE"
10628                               cache=yes
10629                           else
10630                               cache=no
10631                           fi
10632
10633                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10634
10635 fi
10636
10637
10638           eval "$wx_cv_use_metafile"
10639           if test "x$cache" = xyes; then
10640             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
10641           fi
10642
10643           if test x"$enablestring" = xdisable; then
10644             if test $wxUSE_METAFILE = yes; then
10645               result=no
10646             else
10647               result=yes
10648             fi
10649           else
10650             result=$wxUSE_METAFILE
10651           fi
10652
10653           { echo "$as_me:$LINENO: result: $result" >&5
10654 echo "${ECHO_T}$result" >&6; }
10655
10656
10657
10658 DEFAULT_wxUSE_CONTROLS=none
10659
10660           enablestring=disable
10661           defaultval=
10662           if test -z "$defaultval"; then
10663               if test x"$enablestring" = xdisable; then
10664                   defaultval=yes
10665               else
10666                   defaultval=no
10667               fi
10668           fi
10669
10670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10671 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10672           # Check whether --enable-controls was given.
10673 if test "${enable_controls+set}" = set; then
10674   enableval=$enable_controls;
10675                           if test "$enableval" = yes; then
10676                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10677                           else
10678                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10679                           fi
10680                           cache=yes
10681
10682 else
10683
10684                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10685                           if test "x$LINE" != x ; then
10686                               eval "DEFAULT_$LINE"
10687                               cache=yes
10688                           else
10689                               cache=no
10690                           fi
10691
10692                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10693
10694 fi
10695
10696
10697           eval "$wx_cv_use_controls"
10698           if test "x$cache" = xyes; then
10699             echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
10700           fi
10701
10702           if test x"$enablestring" = xdisable; then
10703             if test $wxUSE_CONTROLS = yes; then
10704               result=no
10705             else
10706               result=yes
10707             fi
10708           else
10709             result=$wxUSE_CONTROLS
10710           fi
10711
10712           { echo "$as_me:$LINENO: result: $result" >&5
10713 echo "${ECHO_T}$result" >&6; }
10714
10715
10716 if test "$wxUSE_CONTROLS" = "yes"; then
10717   DEFAULT_wxUSE_ACCEL=yes
10718   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10719   DEFAULT_wxUSE_BMPBUTTON=yes
10720   DEFAULT_wxUSE_BUTTON=yes
10721   DEFAULT_wxUSE_CALCTRL=yes
10722   DEFAULT_wxUSE_CARET=yes
10723   DEFAULT_wxUSE_COMBOBOX=yes
10724   DEFAULT_wxUSE_CHECKBOX=yes
10725   DEFAULT_wxUSE_CHECKLISTBOX=yes
10726   DEFAULT_wxUSE_CHOICE=yes
10727   DEFAULT_wxUSE_CHOICEBOOK=yes
10728   DEFAULT_wxUSE_COLLPANE=yes
10729   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10730   DEFAULT_wxUSE_COMBOBOX=yes
10731   DEFAULT_wxUSE_DATEPICKCTRL=yes
10732   DEFAULT_wxUSE_DISPLAY=yes
10733   DEFAULT_wxUSE_DETECT_SM=yes
10734   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10735   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10736   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10737   DEFAULT_wxUSE_GAUGE=yes
10738   DEFAULT_wxUSE_GRID=yes
10739   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10740   DEFAULT_wxUSE_DATAVIEWCTRL=no
10741   DEFAULT_wxUSE_IMAGLIST=yes
10742   DEFAULT_wxUSE_LISTBOOK=yes
10743   DEFAULT_wxUSE_LISTBOX=yes
10744   DEFAULT_wxUSE_LISTCTRL=yes
10745   DEFAULT_wxUSE_NOTEBOOK=yes
10746   DEFAULT_wxUSE_RADIOBOX=yes
10747   DEFAULT_wxUSE_RADIOBTN=yes
10748   DEFAULT_wxUSE_SASH=yes
10749   DEFAULT_wxUSE_SCROLLBAR=yes
10750   DEFAULT_wxUSE_SEARCHCTRL=yes
10751   DEFAULT_wxUSE_SLIDER=yes
10752   DEFAULT_wxUSE_SPINBTN=yes
10753   DEFAULT_wxUSE_SPINCTRL=yes
10754   DEFAULT_wxUSE_SPLITTER=yes
10755   DEFAULT_wxUSE_STATBMP=yes
10756   DEFAULT_wxUSE_STATBOX=yes
10757   DEFAULT_wxUSE_STATLINE=yes
10758   DEFAULT_wxUSE_STATUSBAR=yes
10759   DEFAULT_wxUSE_TAB_DIALOG=yes
10760   DEFAULT_wxUSE_TOGGLEBTN=yes
10761   DEFAULT_wxUSE_TOOLBAR=yes
10762   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10763   DEFAULT_wxUSE_TOOLTIPS=yes
10764   DEFAULT_wxUSE_TREEBOOK=yes
10765   DEFAULT_wxUSE_TOOLBOOK=yes
10766   DEFAULT_wxUSE_TREECTRL=yes
10767   DEFAULT_wxUSE_POPUPWIN=yes
10768   DEFAULT_wxUSE_TIPWINDOW=yes
10769 elif test "$wxUSE_CONTROLS" = "no"; then
10770   DEFAULT_wxUSE_ACCEL=no
10771   DEFAULT_wxUSE_ANIMATIONCTRL=no
10772   DEFAULT_wxUSE_BMPBUTTON=no
10773   DEFAULT_wxUSE_BUTTON=no
10774   DEFAULT_wxUSE_CALCTRL=no
10775   DEFAULT_wxUSE_CARET=no
10776   DEFAULT_wxUSE_COLLPANE=no
10777   DEFAULT_wxUSE_COMBOBOX=no
10778   DEFAULT_wxUSE_CHECKBOX=no
10779   DEFAULT_wxUSE_CHECKLISTBOX=no
10780   DEFAULT_wxUSE_CHOICE=no
10781   DEFAULT_wxUSE_CHOICEBOOK=no
10782   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10783   DEFAULT_wxUSE_COMBOBOX=no
10784   DEFAULT_wxUSE_DATEPICKCTRL=no
10785   DEFAULT_wxUSE_DISPLAY=no
10786   DEFAULT_wxUSE_DETECT_SM=no
10787   DEFAULT_wxUSE_DIRPICKERCTRL=no
10788   DEFAULT_wxUSE_FILEPICKERCTRL=no
10789   DEFAULT_wxUSE_FONTPICKERCTRL=no
10790   DEFAULT_wxUSE_GAUGE=no
10791   DEFAULT_wxUSE_GRID=no
10792   DEFAULT_wxUSE_HYPERLINKCTRL=no
10793   DEFAULT_wxUSE_DATAVIEWCTRL=no
10794   DEFAULT_wxUSE_IMAGLIST=no
10795   DEFAULT_wxUSE_LISTBOOK=no
10796   DEFAULT_wxUSE_LISTBOX=no
10797   DEFAULT_wxUSE_LISTCTRL=no
10798   DEFAULT_wxUSE_NOTEBOOK=no
10799   DEFAULT_wxUSE_RADIOBOX=no
10800   DEFAULT_wxUSE_RADIOBTN=no
10801   DEFAULT_wxUSE_SASH=no
10802   DEFAULT_wxUSE_SCROLLBAR=no
10803   DEFAULT_wxUSE_SEARCHCTRL=no
10804   DEFAULT_wxUSE_SLIDER=no
10805   DEFAULT_wxUSE_SPINBTN=no
10806   DEFAULT_wxUSE_SPINCTRL=no
10807   DEFAULT_wxUSE_SPLITTER=no
10808   DEFAULT_wxUSE_STATBMP=no
10809   DEFAULT_wxUSE_STATBOX=no
10810   DEFAULT_wxUSE_STATLINE=no
10811   DEFAULT_wxUSE_STATUSBAR=no
10812   DEFAULT_wxUSE_TAB_DIALOG=no
10813   DEFAULT_wxUSE_TOGGLEBTN=no
10814   DEFAULT_wxUSE_TOOLBAR=no
10815   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10816   DEFAULT_wxUSE_TOOLTIPS=no
10817   DEFAULT_wxUSE_TREEBOOK=no
10818   DEFAULT_wxUSE_TOOLBOOK=no
10819   DEFAULT_wxUSE_TREECTRL=no
10820   DEFAULT_wxUSE_POPUPWIN=no
10821   DEFAULT_wxUSE_TIPWINDOW=no
10822 fi
10823
10824
10825           enablestring=
10826           defaultval=$wxUSE_ALL_FEATURES
10827           if test -z "$defaultval"; then
10828               if test x"$enablestring" = xdisable; then
10829                   defaultval=yes
10830               else
10831                   defaultval=no
10832               fi
10833           fi
10834
10835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10836 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10837           # Check whether --enable-accel was given.
10838 if test "${enable_accel+set}" = set; then
10839   enableval=$enable_accel;
10840                           if test "$enableval" = yes; then
10841                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10842                           else
10843                             wx_cv_use_accel='wxUSE_ACCEL=no'
10844                           fi
10845                           cache=yes
10846
10847 else
10848
10849                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10850                           if test "x$LINE" != x ; then
10851                               eval "DEFAULT_$LINE"
10852                               cache=yes
10853                           else
10854                               cache=no
10855                           fi
10856
10857                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10858
10859 fi
10860
10861
10862           eval "$wx_cv_use_accel"
10863           if test "x$cache" = xyes; then
10864             echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
10865           fi
10866
10867           if test x"$enablestring" = xdisable; then
10868             if test $wxUSE_ACCEL = yes; then
10869               result=no
10870             else
10871               result=yes
10872             fi
10873           else
10874             result=$wxUSE_ACCEL
10875           fi
10876
10877           { echo "$as_me:$LINENO: result: $result" >&5
10878 echo "${ECHO_T}$result" >&6; }
10879
10880
10881           enablestring=
10882           defaultval=$wxUSE_ALL_FEATURES
10883           if test -z "$defaultval"; then
10884               if test x"$enablestring" = xdisable; then
10885                   defaultval=yes
10886               else
10887                   defaultval=no
10888               fi
10889           fi
10890
10891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10892 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10893           # Check whether --enable-animatectrl was given.
10894 if test "${enable_animatectrl+set}" = set; then
10895   enableval=$enable_animatectrl;
10896                           if test "$enableval" = yes; then
10897                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10898                           else
10899                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10900                           fi
10901                           cache=yes
10902
10903 else
10904
10905                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
10906                           if test "x$LINE" != x ; then
10907                               eval "DEFAULT_$LINE"
10908                               cache=yes
10909                           else
10910                               cache=no
10911                           fi
10912
10913                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10914
10915 fi
10916
10917
10918           eval "$wx_cv_use_animatectrl"
10919           if test "x$cache" = xyes; then
10920             echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
10921           fi
10922
10923           if test x"$enablestring" = xdisable; then
10924             if test $wxUSE_ANIMATIONCTRL = yes; then
10925               result=no
10926             else
10927               result=yes
10928             fi
10929           else
10930             result=$wxUSE_ANIMATIONCTRL
10931           fi
10932
10933           { echo "$as_me:$LINENO: result: $result" >&5
10934 echo "${ECHO_T}$result" >&6; }
10935
10936
10937           enablestring=
10938           defaultval=$wxUSE_ALL_FEATURES
10939           if test -z "$defaultval"; then
10940               if test x"$enablestring" = xdisable; then
10941                   defaultval=yes
10942               else
10943                   defaultval=no
10944               fi
10945           fi
10946
10947           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10948 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10949           # Check whether --enable-button was given.
10950 if test "${enable_button+set}" = set; then
10951   enableval=$enable_button;
10952                           if test "$enableval" = yes; then
10953                             wx_cv_use_button='wxUSE_BUTTON=yes'
10954                           else
10955                             wx_cv_use_button='wxUSE_BUTTON=no'
10956                           fi
10957                           cache=yes
10958
10959 else
10960
10961                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
10962                           if test "x$LINE" != x ; then
10963                               eval "DEFAULT_$LINE"
10964                               cache=yes
10965                           else
10966                               cache=no
10967                           fi
10968
10969                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10970
10971 fi
10972
10973
10974           eval "$wx_cv_use_button"
10975           if test "x$cache" = xyes; then
10976             echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
10977           fi
10978
10979           if test x"$enablestring" = xdisable; then
10980             if test $wxUSE_BUTTON = yes; then
10981               result=no
10982             else
10983               result=yes
10984             fi
10985           else
10986             result=$wxUSE_BUTTON
10987           fi
10988
10989           { echo "$as_me:$LINENO: result: $result" >&5
10990 echo "${ECHO_T}$result" >&6; }
10991
10992
10993           enablestring=
10994           defaultval=$wxUSE_ALL_FEATURES
10995           if test -z "$defaultval"; then
10996               if test x"$enablestring" = xdisable; then
10997                   defaultval=yes
10998               else
10999                   defaultval=no
11000               fi
11001           fi
11002
11003           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
11004 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
11005           # Check whether --enable-bmpbutton was given.
11006 if test "${enable_bmpbutton+set}" = set; then
11007   enableval=$enable_bmpbutton;
11008                           if test "$enableval" = yes; then
11009                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
11010                           else
11011                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
11012                           fi
11013                           cache=yes
11014
11015 else
11016
11017                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
11018                           if test "x$LINE" != x ; then
11019                               eval "DEFAULT_$LINE"
11020                               cache=yes
11021                           else
11022                               cache=no
11023                           fi
11024
11025                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
11026
11027 fi
11028
11029
11030           eval "$wx_cv_use_bmpbutton"
11031           if test "x$cache" = xyes; then
11032             echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
11033           fi
11034
11035           if test x"$enablestring" = xdisable; then
11036             if test $wxUSE_BMPBUTTON = yes; then
11037               result=no
11038             else
11039               result=yes
11040             fi
11041           else
11042             result=$wxUSE_BMPBUTTON
11043           fi
11044
11045           { echo "$as_me:$LINENO: result: $result" >&5
11046 echo "${ECHO_T}$result" >&6; }
11047
11048
11049           enablestring=
11050           defaultval=$wxUSE_ALL_FEATURES
11051           if test -z "$defaultval"; then
11052               if test x"$enablestring" = xdisable; then
11053                   defaultval=yes
11054               else
11055                   defaultval=no
11056               fi
11057           fi
11058
11059           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
11060 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
11061           # Check whether --enable-bmpcombobox was given.
11062 if test "${enable_bmpcombobox+set}" = set; then
11063   enableval=$enable_bmpcombobox;
11064                           if test "$enableval" = yes; then
11065                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
11066                           else
11067                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
11068                           fi
11069                           cache=yes
11070
11071 else
11072
11073                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
11074                           if test "x$LINE" != x ; then
11075                               eval "DEFAULT_$LINE"
11076                               cache=yes
11077                           else
11078                               cache=no
11079                           fi
11080
11081                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
11082
11083 fi
11084
11085
11086           eval "$wx_cv_use_bmpcombobox"
11087           if test "x$cache" = xyes; then
11088             echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
11089           fi
11090
11091           if test x"$enablestring" = xdisable; then
11092             if test $wxUSE_BITMAPCOMBOBOX = yes; then
11093               result=no
11094             else
11095               result=yes
11096             fi
11097           else
11098             result=$wxUSE_BITMAPCOMBOBOX
11099           fi
11100
11101           { echo "$as_me:$LINENO: result: $result" >&5
11102 echo "${ECHO_T}$result" >&6; }
11103
11104
11105           enablestring=
11106           defaultval=$wxUSE_ALL_FEATURES
11107           if test -z "$defaultval"; then
11108               if test x"$enablestring" = xdisable; then
11109                   defaultval=yes
11110               else
11111                   defaultval=no
11112               fi
11113           fi
11114
11115           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
11116 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
11117           # Check whether --enable-calendar was given.
11118 if test "${enable_calendar+set}" = set; then
11119   enableval=$enable_calendar;
11120                           if test "$enableval" = yes; then
11121                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
11122                           else
11123                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
11124                           fi
11125                           cache=yes
11126
11127 else
11128
11129                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
11130                           if test "x$LINE" != x ; then
11131                               eval "DEFAULT_$LINE"
11132                               cache=yes
11133                           else
11134                               cache=no
11135                           fi
11136
11137                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
11138
11139 fi
11140
11141
11142           eval "$wx_cv_use_calendar"
11143           if test "x$cache" = xyes; then
11144             echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
11145           fi
11146
11147           if test x"$enablestring" = xdisable; then
11148             if test $wxUSE_CALCTRL = yes; then
11149               result=no
11150             else
11151               result=yes
11152             fi
11153           else
11154             result=$wxUSE_CALCTRL
11155           fi
11156
11157           { echo "$as_me:$LINENO: result: $result" >&5
11158 echo "${ECHO_T}$result" >&6; }
11159
11160
11161           enablestring=
11162           defaultval=$wxUSE_ALL_FEATURES
11163           if test -z "$defaultval"; then
11164               if test x"$enablestring" = xdisable; then
11165                   defaultval=yes
11166               else
11167                   defaultval=no
11168               fi
11169           fi
11170
11171           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
11172 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
11173           # Check whether --enable-caret was given.
11174 if test "${enable_caret+set}" = set; then
11175   enableval=$enable_caret;
11176                           if test "$enableval" = yes; then
11177                             wx_cv_use_caret='wxUSE_CARET=yes'
11178                           else
11179                             wx_cv_use_caret='wxUSE_CARET=no'
11180                           fi
11181                           cache=yes
11182
11183 else
11184
11185                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
11186                           if test "x$LINE" != x ; then
11187                               eval "DEFAULT_$LINE"
11188                               cache=yes
11189                           else
11190                               cache=no
11191                           fi
11192
11193                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
11194
11195 fi
11196
11197
11198           eval "$wx_cv_use_caret"
11199           if test "x$cache" = xyes; then
11200             echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
11201           fi
11202
11203           if test x"$enablestring" = xdisable; then
11204             if test $wxUSE_CARET = yes; then
11205               result=no
11206             else
11207               result=yes
11208             fi
11209           else
11210             result=$wxUSE_CARET
11211           fi
11212
11213           { echo "$as_me:$LINENO: result: $result" >&5
11214 echo "${ECHO_T}$result" >&6; }
11215
11216
11217           enablestring=
11218           defaultval=$wxUSE_ALL_FEATURES
11219           if test -z "$defaultval"; then
11220               if test x"$enablestring" = xdisable; then
11221                   defaultval=yes
11222               else
11223                   defaultval=no
11224               fi
11225           fi
11226
11227           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
11228 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
11229           # Check whether --enable-checkbox was given.
11230 if test "${enable_checkbox+set}" = set; then
11231   enableval=$enable_checkbox;
11232                           if test "$enableval" = yes; then
11233                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
11234                           else
11235                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
11236                           fi
11237                           cache=yes
11238
11239 else
11240
11241                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
11242                           if test "x$LINE" != x ; then
11243                               eval "DEFAULT_$LINE"
11244                               cache=yes
11245                           else
11246                               cache=no
11247                           fi
11248
11249                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
11250
11251 fi
11252
11253
11254           eval "$wx_cv_use_checkbox"
11255           if test "x$cache" = xyes; then
11256             echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
11257           fi
11258
11259           if test x"$enablestring" = xdisable; then
11260             if test $wxUSE_CHECKBOX = yes; then
11261               result=no
11262             else
11263               result=yes
11264             fi
11265           else
11266             result=$wxUSE_CHECKBOX
11267           fi
11268
11269           { echo "$as_me:$LINENO: result: $result" >&5
11270 echo "${ECHO_T}$result" >&6; }
11271
11272
11273           enablestring=
11274           defaultval=$wxUSE_ALL_FEATURES
11275           if test -z "$defaultval"; then
11276               if test x"$enablestring" = xdisable; then
11277                   defaultval=yes
11278               else
11279                   defaultval=no
11280               fi
11281           fi
11282
11283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
11284 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
11285           # Check whether --enable-checklst was given.
11286 if test "${enable_checklst+set}" = set; then
11287   enableval=$enable_checklst;
11288                           if test "$enableval" = yes; then
11289                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11290                           else
11291                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11292                           fi
11293                           cache=yes
11294
11295 else
11296
11297                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11298                           if test "x$LINE" != x ; then
11299                               eval "DEFAULT_$LINE"
11300                               cache=yes
11301                           else
11302                               cache=no
11303                           fi
11304
11305                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11306
11307 fi
11308
11309
11310           eval "$wx_cv_use_checklst"
11311           if test "x$cache" = xyes; then
11312             echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
11313           fi
11314
11315           if test x"$enablestring" = xdisable; then
11316             if test $wxUSE_CHECKLST = yes; then
11317               result=no
11318             else
11319               result=yes
11320             fi
11321           else
11322             result=$wxUSE_CHECKLST
11323           fi
11324
11325           { echo "$as_me:$LINENO: result: $result" >&5
11326 echo "${ECHO_T}$result" >&6; }
11327
11328
11329           enablestring=
11330           defaultval=$wxUSE_ALL_FEATURES
11331           if test -z "$defaultval"; then
11332               if test x"$enablestring" = xdisable; then
11333                   defaultval=yes
11334               else
11335                   defaultval=no
11336               fi
11337           fi
11338
11339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11340 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11341           # Check whether --enable-choice was given.
11342 if test "${enable_choice+set}" = set; then
11343   enableval=$enable_choice;
11344                           if test "$enableval" = yes; then
11345                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11346                           else
11347                             wx_cv_use_choice='wxUSE_CHOICE=no'
11348                           fi
11349                           cache=yes
11350
11351 else
11352
11353                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11354                           if test "x$LINE" != x ; then
11355                               eval "DEFAULT_$LINE"
11356                               cache=yes
11357                           else
11358                               cache=no
11359                           fi
11360
11361                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11362
11363 fi
11364
11365
11366           eval "$wx_cv_use_choice"
11367           if test "x$cache" = xyes; then
11368             echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
11369           fi
11370
11371           if test x"$enablestring" = xdisable; then
11372             if test $wxUSE_CHOICE = yes; then
11373               result=no
11374             else
11375               result=yes
11376             fi
11377           else
11378             result=$wxUSE_CHOICE
11379           fi
11380
11381           { echo "$as_me:$LINENO: result: $result" >&5
11382 echo "${ECHO_T}$result" >&6; }
11383
11384
11385           enablestring=
11386           defaultval=$wxUSE_ALL_FEATURES
11387           if test -z "$defaultval"; then
11388               if test x"$enablestring" = xdisable; then
11389                   defaultval=yes
11390               else
11391                   defaultval=no
11392               fi
11393           fi
11394
11395           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11396 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11397           # Check whether --enable-choicebook was given.
11398 if test "${enable_choicebook+set}" = set; then
11399   enableval=$enable_choicebook;
11400                           if test "$enableval" = yes; then
11401                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11402                           else
11403                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11404                           fi
11405                           cache=yes
11406
11407 else
11408
11409                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11410                           if test "x$LINE" != x ; then
11411                               eval "DEFAULT_$LINE"
11412                               cache=yes
11413                           else
11414                               cache=no
11415                           fi
11416
11417                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11418
11419 fi
11420
11421
11422           eval "$wx_cv_use_choicebook"
11423           if test "x$cache" = xyes; then
11424             echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
11425           fi
11426
11427           if test x"$enablestring" = xdisable; then
11428             if test $wxUSE_CHOICEBOOK = yes; then
11429               result=no
11430             else
11431               result=yes
11432             fi
11433           else
11434             result=$wxUSE_CHOICEBOOK
11435           fi
11436
11437           { echo "$as_me:$LINENO: result: $result" >&5
11438 echo "${ECHO_T}$result" >&6; }
11439
11440
11441           enablestring=
11442           defaultval=$wxUSE_ALL_FEATURES
11443           if test -z "$defaultval"; then
11444               if test x"$enablestring" = xdisable; then
11445                   defaultval=yes
11446               else
11447                   defaultval=no
11448               fi
11449           fi
11450
11451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11452 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11453           # Check whether --enable-collpane was given.
11454 if test "${enable_collpane+set}" = set; then
11455   enableval=$enable_collpane;
11456                           if test "$enableval" = yes; then
11457                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11458                           else
11459                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11460                           fi
11461                           cache=yes
11462
11463 else
11464
11465                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11466                           if test "x$LINE" != x ; then
11467                               eval "DEFAULT_$LINE"
11468                               cache=yes
11469                           else
11470                               cache=no
11471                           fi
11472
11473                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11474
11475 fi
11476
11477
11478           eval "$wx_cv_use_collpane"
11479           if test "x$cache" = xyes; then
11480             echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
11481           fi
11482
11483           if test x"$enablestring" = xdisable; then
11484             if test $wxUSE_COLLPANE = yes; then
11485               result=no
11486             else
11487               result=yes
11488             fi
11489           else
11490             result=$wxUSE_COLLPANE
11491           fi
11492
11493           { echo "$as_me:$LINENO: result: $result" >&5
11494 echo "${ECHO_T}$result" >&6; }
11495
11496
11497           enablestring=
11498           defaultval=$wxUSE_ALL_FEATURES
11499           if test -z "$defaultval"; then
11500               if test x"$enablestring" = xdisable; then
11501                   defaultval=yes
11502               else
11503                   defaultval=no
11504               fi
11505           fi
11506
11507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11508 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11509           # Check whether --enable-colourpicker was given.
11510 if test "${enable_colourpicker+set}" = set; then
11511   enableval=$enable_colourpicker;
11512                           if test "$enableval" = yes; then
11513                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11514                           else
11515                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11516                           fi
11517                           cache=yes
11518
11519 else
11520
11521                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11522                           if test "x$LINE" != x ; then
11523                               eval "DEFAULT_$LINE"
11524                               cache=yes
11525                           else
11526                               cache=no
11527                           fi
11528
11529                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11530
11531 fi
11532
11533
11534           eval "$wx_cv_use_colourpicker"
11535           if test "x$cache" = xyes; then
11536             echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11537           fi
11538
11539           if test x"$enablestring" = xdisable; then
11540             if test $wxUSE_COLOURPICKERCTRL = yes; then
11541               result=no
11542             else
11543               result=yes
11544             fi
11545           else
11546             result=$wxUSE_COLOURPICKERCTRL
11547           fi
11548
11549           { echo "$as_me:$LINENO: result: $result" >&5
11550 echo "${ECHO_T}$result" >&6; }
11551
11552
11553           enablestring=
11554           defaultval=$wxUSE_ALL_FEATURES
11555           if test -z "$defaultval"; then
11556               if test x"$enablestring" = xdisable; then
11557                   defaultval=yes
11558               else
11559                   defaultval=no
11560               fi
11561           fi
11562
11563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11564 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11565           # Check whether --enable-combobox was given.
11566 if test "${enable_combobox+set}" = set; then
11567   enableval=$enable_combobox;
11568                           if test "$enableval" = yes; then
11569                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11570                           else
11571                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11572                           fi
11573                           cache=yes
11574
11575 else
11576
11577                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11578                           if test "x$LINE" != x ; then
11579                               eval "DEFAULT_$LINE"
11580                               cache=yes
11581                           else
11582                               cache=no
11583                           fi
11584
11585                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11586
11587 fi
11588
11589
11590           eval "$wx_cv_use_combobox"
11591           if test "x$cache" = xyes; then
11592             echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
11593           fi
11594
11595           if test x"$enablestring" = xdisable; then
11596             if test $wxUSE_COMBOBOX = yes; then
11597               result=no
11598             else
11599               result=yes
11600             fi
11601           else
11602             result=$wxUSE_COMBOBOX
11603           fi
11604
11605           { echo "$as_me:$LINENO: result: $result" >&5
11606 echo "${ECHO_T}$result" >&6; }
11607
11608
11609           enablestring=
11610           defaultval=$wxUSE_ALL_FEATURES
11611           if test -z "$defaultval"; then
11612               if test x"$enablestring" = xdisable; then
11613                   defaultval=yes
11614               else
11615                   defaultval=no
11616               fi
11617           fi
11618
11619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11620 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11621           # Check whether --enable-comboctrl was given.
11622 if test "${enable_comboctrl+set}" = set; then
11623   enableval=$enable_comboctrl;
11624                           if test "$enableval" = yes; then
11625                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11626                           else
11627                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11628                           fi
11629                           cache=yes
11630
11631 else
11632
11633                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11634                           if test "x$LINE" != x ; then
11635                               eval "DEFAULT_$LINE"
11636                               cache=yes
11637                           else
11638                               cache=no
11639                           fi
11640
11641                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11642
11643 fi
11644
11645
11646           eval "$wx_cv_use_comboctrl"
11647           if test "x$cache" = xyes; then
11648             echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
11649           fi
11650
11651           if test x"$enablestring" = xdisable; then
11652             if test $wxUSE_COMBOCTRL = yes; then
11653               result=no
11654             else
11655               result=yes
11656             fi
11657           else
11658             result=$wxUSE_COMBOCTRL
11659           fi
11660
11661           { echo "$as_me:$LINENO: result: $result" >&5
11662 echo "${ECHO_T}$result" >&6; }
11663
11664
11665           enablestring=
11666           defaultval=$wxUSE_ALL_FEATURES
11667           if test -z "$defaultval"; then
11668               if test x"$enablestring" = xdisable; then
11669                   defaultval=yes
11670               else
11671                   defaultval=no
11672               fi
11673           fi
11674
11675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11676 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11677           # Check whether --enable-datepick was given.
11678 if test "${enable_datepick+set}" = set; then
11679   enableval=$enable_datepick;
11680                           if test "$enableval" = yes; then
11681                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11682                           else
11683                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11684                           fi
11685                           cache=yes
11686
11687 else
11688
11689                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11690                           if test "x$LINE" != x ; then
11691                               eval "DEFAULT_$LINE"
11692                               cache=yes
11693                           else
11694                               cache=no
11695                           fi
11696
11697                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11698
11699 fi
11700
11701
11702           eval "$wx_cv_use_datepick"
11703           if test "x$cache" = xyes; then
11704             echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
11705           fi
11706
11707           if test x"$enablestring" = xdisable; then
11708             if test $wxUSE_DATEPICKCTRL = yes; then
11709               result=no
11710             else
11711               result=yes
11712             fi
11713           else
11714             result=$wxUSE_DATEPICKCTRL
11715           fi
11716
11717           { echo "$as_me:$LINENO: result: $result" >&5
11718 echo "${ECHO_T}$result" >&6; }
11719
11720
11721           enablestring=
11722           defaultval=$wxUSE_ALL_FEATURES
11723           if test -z "$defaultval"; then
11724               if test x"$enablestring" = xdisable; then
11725                   defaultval=yes
11726               else
11727                   defaultval=no
11728               fi
11729           fi
11730
11731           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11732 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11733           # Check whether --enable-dirpicker was given.
11734 if test "${enable_dirpicker+set}" = set; then
11735   enableval=$enable_dirpicker;
11736                           if test "$enableval" = yes; then
11737                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11738                           else
11739                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11740                           fi
11741                           cache=yes
11742
11743 else
11744
11745                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11746                           if test "x$LINE" != x ; then
11747                               eval "DEFAULT_$LINE"
11748                               cache=yes
11749                           else
11750                               cache=no
11751                           fi
11752
11753                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11754
11755 fi
11756
11757
11758           eval "$wx_cv_use_dirpicker"
11759           if test "x$cache" = xyes; then
11760             echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11761           fi
11762
11763           if test x"$enablestring" = xdisable; then
11764             if test $wxUSE_DIRPICKERCTRL = yes; then
11765               result=no
11766             else
11767               result=yes
11768             fi
11769           else
11770             result=$wxUSE_DIRPICKERCTRL
11771           fi
11772
11773           { echo "$as_me:$LINENO: result: $result" >&5
11774 echo "${ECHO_T}$result" >&6; }
11775
11776
11777           enablestring=
11778           defaultval=$wxUSE_ALL_FEATURES
11779           if test -z "$defaultval"; then
11780               if test x"$enablestring" = xdisable; then
11781                   defaultval=yes
11782               else
11783                   defaultval=no
11784               fi
11785           fi
11786
11787           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11788 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11789           # Check whether --enable-display was given.
11790 if test "${enable_display+set}" = set; then
11791   enableval=$enable_display;
11792                           if test "$enableval" = yes; then
11793                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11794                           else
11795                             wx_cv_use_display='wxUSE_DISPLAY=no'
11796                           fi
11797                           cache=yes
11798
11799 else
11800
11801                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11802                           if test "x$LINE" != x ; then
11803                               eval "DEFAULT_$LINE"
11804                               cache=yes
11805                           else
11806                               cache=no
11807                           fi
11808
11809                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11810
11811 fi
11812
11813
11814           eval "$wx_cv_use_display"
11815           if test "x$cache" = xyes; then
11816             echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
11817           fi
11818
11819           if test x"$enablestring" = xdisable; then
11820             if test $wxUSE_DISPLAY = yes; then
11821               result=no
11822             else
11823               result=yes
11824             fi
11825           else
11826             result=$wxUSE_DISPLAY
11827           fi
11828
11829           { echo "$as_me:$LINENO: result: $result" >&5
11830 echo "${ECHO_T}$result" >&6; }
11831
11832
11833           enablestring=
11834           defaultval=$wxUSE_ALL_FEATURES
11835           if test -z "$defaultval"; then
11836               if test x"$enablestring" = xdisable; then
11837                   defaultval=yes
11838               else
11839                   defaultval=no
11840               fi
11841           fi
11842
11843           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11844 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11845           # Check whether --enable-detect_sm was given.
11846 if test "${enable_detect_sm+set}" = set; then
11847   enableval=$enable_detect_sm;
11848                           if test "$enableval" = yes; then
11849                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11850                           else
11851                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11852                           fi
11853                           cache=yes
11854
11855 else
11856
11857                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11858                           if test "x$LINE" != x ; then
11859                               eval "DEFAULT_$LINE"
11860                               cache=yes
11861                           else
11862                               cache=no
11863                           fi
11864
11865                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11866
11867 fi
11868
11869
11870           eval "$wx_cv_use_detect_sm"
11871           if test "x$cache" = xyes; then
11872             echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
11873           fi
11874
11875           if test x"$enablestring" = xdisable; then
11876             if test $wxUSE_DETECT_SM = yes; then
11877               result=no
11878             else
11879               result=yes
11880             fi
11881           else
11882             result=$wxUSE_DETECT_SM
11883           fi
11884
11885           { echo "$as_me:$LINENO: result: $result" >&5
11886 echo "${ECHO_T}$result" >&6; }
11887
11888
11889           enablestring=
11890           defaultval=$wxUSE_ALL_FEATURES
11891           if test -z "$defaultval"; then
11892               if test x"$enablestring" = xdisable; then
11893                   defaultval=yes
11894               else
11895                   defaultval=no
11896               fi
11897           fi
11898
11899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11900 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11901           # Check whether --enable-editablebox was given.
11902 if test "${enable_editablebox+set}" = set; then
11903   enableval=$enable_editablebox;
11904                           if test "$enableval" = yes; then
11905                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11906                           else
11907                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11908                           fi
11909                           cache=yes
11910
11911 else
11912
11913                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
11914                           if test "x$LINE" != x ; then
11915                               eval "DEFAULT_$LINE"
11916                               cache=yes
11917                           else
11918                               cache=no
11919                           fi
11920
11921                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11922
11923 fi
11924
11925
11926           eval "$wx_cv_use_editablebox"
11927           if test "x$cache" = xyes; then
11928             echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
11929           fi
11930
11931           if test x"$enablestring" = xdisable; then
11932             if test $wxUSE_EDITABLELISTBOX = yes; then
11933               result=no
11934             else
11935               result=yes
11936             fi
11937           else
11938             result=$wxUSE_EDITABLELISTBOX
11939           fi
11940
11941           { echo "$as_me:$LINENO: result: $result" >&5
11942 echo "${ECHO_T}$result" >&6; }
11943
11944
11945           enablestring=
11946           defaultval=$wxUSE_ALL_FEATURES
11947           if test -z "$defaultval"; then
11948               if test x"$enablestring" = xdisable; then
11949                   defaultval=yes
11950               else
11951                   defaultval=no
11952               fi
11953           fi
11954
11955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11956 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11957           # Check whether --enable-filepicker was given.
11958 if test "${enable_filepicker+set}" = set; then
11959   enableval=$enable_filepicker;
11960                           if test "$enableval" = yes; then
11961                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11962                           else
11963                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11964                           fi
11965                           cache=yes
11966
11967 else
11968
11969                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
11970                           if test "x$LINE" != x ; then
11971                               eval "DEFAULT_$LINE"
11972                               cache=yes
11973                           else
11974                               cache=no
11975                           fi
11976
11977                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11978
11979 fi
11980
11981
11982           eval "$wx_cv_use_filepicker"
11983           if test "x$cache" = xyes; then
11984             echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11985           fi
11986
11987           if test x"$enablestring" = xdisable; then
11988             if test $wxUSE_FILEPICKERCTRL = yes; then
11989               result=no
11990             else
11991               result=yes
11992             fi
11993           else
11994             result=$wxUSE_FILEPICKERCTRL
11995           fi
11996
11997           { echo "$as_me:$LINENO: result: $result" >&5
11998 echo "${ECHO_T}$result" >&6; }
11999
12000
12001           enablestring=
12002           defaultval=$wxUSE_ALL_FEATURES
12003           if test -z "$defaultval"; then
12004               if test x"$enablestring" = xdisable; then
12005                   defaultval=yes
12006               else
12007                   defaultval=no
12008               fi
12009           fi
12010
12011           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
12012 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
12013           # Check whether --enable-fontpicker was given.
12014 if test "${enable_fontpicker+set}" = set; then
12015   enableval=$enable_fontpicker;
12016                           if test "$enableval" = yes; then
12017                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
12018                           else
12019                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
12020                           fi
12021                           cache=yes
12022
12023 else
12024
12025                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
12026                           if test "x$LINE" != x ; then
12027                               eval "DEFAULT_$LINE"
12028                               cache=yes
12029                           else
12030                               cache=no
12031                           fi
12032
12033                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
12034
12035 fi
12036
12037
12038           eval "$wx_cv_use_fontpicker"
12039           if test "x$cache" = xyes; then
12040             echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
12041           fi
12042
12043           if test x"$enablestring" = xdisable; then
12044             if test $wxUSE_FONTPICKERCTRL = yes; then
12045               result=no
12046             else
12047               result=yes
12048             fi
12049           else
12050             result=$wxUSE_FONTPICKERCTRL
12051           fi
12052
12053           { echo "$as_me:$LINENO: result: $result" >&5
12054 echo "${ECHO_T}$result" >&6; }
12055
12056
12057           enablestring=
12058           defaultval=$wxUSE_ALL_FEATURES
12059           if test -z "$defaultval"; then
12060               if test x"$enablestring" = xdisable; then
12061                   defaultval=yes
12062               else
12063                   defaultval=no
12064               fi
12065           fi
12066
12067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
12068 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
12069           # Check whether --enable-gauge was given.
12070 if test "${enable_gauge+set}" = set; then
12071   enableval=$enable_gauge;
12072                           if test "$enableval" = yes; then
12073                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
12074                           else
12075                             wx_cv_use_gauge='wxUSE_GAUGE=no'
12076                           fi
12077                           cache=yes
12078
12079 else
12080
12081                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
12082                           if test "x$LINE" != x ; then
12083                               eval "DEFAULT_$LINE"
12084                               cache=yes
12085                           else
12086                               cache=no
12087                           fi
12088
12089                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
12090
12091 fi
12092
12093
12094           eval "$wx_cv_use_gauge"
12095           if test "x$cache" = xyes; then
12096             echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
12097           fi
12098
12099           if test x"$enablestring" = xdisable; then
12100             if test $wxUSE_GAUGE = yes; then
12101               result=no
12102             else
12103               result=yes
12104             fi
12105           else
12106             result=$wxUSE_GAUGE
12107           fi
12108
12109           { echo "$as_me:$LINENO: result: $result" >&5
12110 echo "${ECHO_T}$result" >&6; }
12111
12112
12113           enablestring=
12114           defaultval=$wxUSE_ALL_FEATURES
12115           if test -z "$defaultval"; then
12116               if test x"$enablestring" = xdisable; then
12117                   defaultval=yes
12118               else
12119                   defaultval=no
12120               fi
12121           fi
12122
12123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
12124 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
12125           # Check whether --enable-grid was given.
12126 if test "${enable_grid+set}" = set; then
12127   enableval=$enable_grid;
12128                           if test "$enableval" = yes; then
12129                             wx_cv_use_grid='wxUSE_GRID=yes'
12130                           else
12131                             wx_cv_use_grid='wxUSE_GRID=no'
12132                           fi
12133                           cache=yes
12134
12135 else
12136
12137                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
12138                           if test "x$LINE" != x ; then
12139                               eval "DEFAULT_$LINE"
12140                               cache=yes
12141                           else
12142                               cache=no
12143                           fi
12144
12145                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
12146
12147 fi
12148
12149
12150           eval "$wx_cv_use_grid"
12151           if test "x$cache" = xyes; then
12152             echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
12153           fi
12154
12155           if test x"$enablestring" = xdisable; then
12156             if test $wxUSE_GRID = yes; then
12157               result=no
12158             else
12159               result=yes
12160             fi
12161           else
12162             result=$wxUSE_GRID
12163           fi
12164
12165           { echo "$as_me:$LINENO: result: $result" >&5
12166 echo "${ECHO_T}$result" >&6; }
12167
12168
12169           enablestring=
12170           defaultval=$wxUSE_ALL_FEATURES
12171           if test -z "$defaultval"; then
12172               if test x"$enablestring" = xdisable; then
12173                   defaultval=yes
12174               else
12175                   defaultval=no
12176               fi
12177           fi
12178
12179           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
12180 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
12181           # Check whether --enable-dataviewctrl was given.
12182 if test "${enable_dataviewctrl+set}" = set; then
12183   enableval=$enable_dataviewctrl;
12184                           if test "$enableval" = yes; then
12185                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
12186                           else
12187                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
12188                           fi
12189                           cache=yes
12190
12191 else
12192
12193                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
12194                           if test "x$LINE" != x ; then
12195                               eval "DEFAULT_$LINE"
12196                               cache=yes
12197                           else
12198                               cache=no
12199                           fi
12200
12201                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
12202
12203 fi
12204
12205
12206           eval "$wx_cv_use_dataviewctrl"
12207           if test "x$cache" = xyes; then
12208             echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
12209           fi
12210
12211           if test x"$enablestring" = xdisable; then
12212             if test $wxUSE_DATAVIEWCTRL = yes; then
12213               result=no
12214             else
12215               result=yes
12216             fi
12217           else
12218             result=$wxUSE_DATAVIEWCTRL
12219           fi
12220
12221           { echo "$as_me:$LINENO: result: $result" >&5
12222 echo "${ECHO_T}$result" >&6; }
12223
12224
12225           enablestring=
12226           defaultval=$wxUSE_ALL_FEATURES
12227           if test -z "$defaultval"; then
12228               if test x"$enablestring" = xdisable; then
12229                   defaultval=yes
12230               else
12231                   defaultval=no
12232               fi
12233           fi
12234
12235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
12236 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
12237           # Check whether --enable-hyperlink was given.
12238 if test "${enable_hyperlink+set}" = set; then
12239   enableval=$enable_hyperlink;
12240                           if test "$enableval" = yes; then
12241                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
12242                           else
12243                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
12244                           fi
12245                           cache=yes
12246
12247 else
12248
12249                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
12250                           if test "x$LINE" != x ; then
12251                               eval "DEFAULT_$LINE"
12252                               cache=yes
12253                           else
12254                               cache=no
12255                           fi
12256
12257                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
12258
12259 fi
12260
12261
12262           eval "$wx_cv_use_hyperlink"
12263           if test "x$cache" = xyes; then
12264             echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
12265           fi
12266
12267           if test x"$enablestring" = xdisable; then
12268             if test $wxUSE_HYPERLINKCTRL = yes; then
12269               result=no
12270             else
12271               result=yes
12272             fi
12273           else
12274             result=$wxUSE_HYPERLINKCTRL
12275           fi
12276
12277           { echo "$as_me:$LINENO: result: $result" >&5
12278 echo "${ECHO_T}$result" >&6; }
12279
12280
12281           enablestring=
12282           defaultval=$wxUSE_ALL_FEATURES
12283           if test -z "$defaultval"; then
12284               if test x"$enablestring" = xdisable; then
12285                   defaultval=yes
12286               else
12287                   defaultval=no
12288               fi
12289           fi
12290
12291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
12292 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
12293           # Check whether --enable-imaglist was given.
12294 if test "${enable_imaglist+set}" = set; then
12295   enableval=$enable_imaglist;
12296                           if test "$enableval" = yes; then
12297                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
12298                           else
12299                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
12300                           fi
12301                           cache=yes
12302
12303 else
12304
12305                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
12306                           if test "x$LINE" != x ; then
12307                               eval "DEFAULT_$LINE"
12308                               cache=yes
12309                           else
12310                               cache=no
12311                           fi
12312
12313                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
12314
12315 fi
12316
12317
12318           eval "$wx_cv_use_imaglist"
12319           if test "x$cache" = xyes; then
12320             echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
12321           fi
12322
12323           if test x"$enablestring" = xdisable; then
12324             if test $wxUSE_IMAGLIST = yes; then
12325               result=no
12326             else
12327               result=yes
12328             fi
12329           else
12330             result=$wxUSE_IMAGLIST
12331           fi
12332
12333           { echo "$as_me:$LINENO: result: $result" >&5
12334 echo "${ECHO_T}$result" >&6; }
12335
12336
12337           enablestring=
12338           defaultval=$wxUSE_ALL_FEATURES
12339           if test -z "$defaultval"; then
12340               if test x"$enablestring" = xdisable; then
12341                   defaultval=yes
12342               else
12343                   defaultval=no
12344               fi
12345           fi
12346
12347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12348 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12349           # Check whether --enable-listbook was given.
12350 if test "${enable_listbook+set}" = set; then
12351   enableval=$enable_listbook;
12352                           if test "$enableval" = yes; then
12353                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12354                           else
12355                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12356                           fi
12357                           cache=yes
12358
12359 else
12360
12361                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12362                           if test "x$LINE" != x ; then
12363                               eval "DEFAULT_$LINE"
12364                               cache=yes
12365                           else
12366                               cache=no
12367                           fi
12368
12369                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12370
12371 fi
12372
12373
12374           eval "$wx_cv_use_listbook"
12375           if test "x$cache" = xyes; then
12376             echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
12377           fi
12378
12379           if test x"$enablestring" = xdisable; then
12380             if test $wxUSE_LISTBOOK = yes; then
12381               result=no
12382             else
12383               result=yes
12384             fi
12385           else
12386             result=$wxUSE_LISTBOOK
12387           fi
12388
12389           { echo "$as_me:$LINENO: result: $result" >&5
12390 echo "${ECHO_T}$result" >&6; }
12391
12392
12393           enablestring=
12394           defaultval=$wxUSE_ALL_FEATURES
12395           if test -z "$defaultval"; then
12396               if test x"$enablestring" = xdisable; then
12397                   defaultval=yes
12398               else
12399                   defaultval=no
12400               fi
12401           fi
12402
12403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12404 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12405           # Check whether --enable-listbox was given.
12406 if test "${enable_listbox+set}" = set; then
12407   enableval=$enable_listbox;
12408                           if test "$enableval" = yes; then
12409                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12410                           else
12411                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12412                           fi
12413                           cache=yes
12414
12415 else
12416
12417                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12418                           if test "x$LINE" != x ; then
12419                               eval "DEFAULT_$LINE"
12420                               cache=yes
12421                           else
12422                               cache=no
12423                           fi
12424
12425                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12426
12427 fi
12428
12429
12430           eval "$wx_cv_use_listbox"
12431           if test "x$cache" = xyes; then
12432             echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
12433           fi
12434
12435           if test x"$enablestring" = xdisable; then
12436             if test $wxUSE_LISTBOX = yes; then
12437               result=no
12438             else
12439               result=yes
12440             fi
12441           else
12442             result=$wxUSE_LISTBOX
12443           fi
12444
12445           { echo "$as_me:$LINENO: result: $result" >&5
12446 echo "${ECHO_T}$result" >&6; }
12447
12448
12449           enablestring=
12450           defaultval=$wxUSE_ALL_FEATURES
12451           if test -z "$defaultval"; then
12452               if test x"$enablestring" = xdisable; then
12453                   defaultval=yes
12454               else
12455                   defaultval=no
12456               fi
12457           fi
12458
12459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12460 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12461           # Check whether --enable-listctrl was given.
12462 if test "${enable_listctrl+set}" = set; then
12463   enableval=$enable_listctrl;
12464                           if test "$enableval" = yes; then
12465                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12466                           else
12467                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12468                           fi
12469                           cache=yes
12470
12471 else
12472
12473                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12474                           if test "x$LINE" != x ; then
12475                               eval "DEFAULT_$LINE"
12476                               cache=yes
12477                           else
12478                               cache=no
12479                           fi
12480
12481                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12482
12483 fi
12484
12485
12486           eval "$wx_cv_use_listctrl"
12487           if test "x$cache" = xyes; then
12488             echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
12489           fi
12490
12491           if test x"$enablestring" = xdisable; then
12492             if test $wxUSE_LISTCTRL = yes; then
12493               result=no
12494             else
12495               result=yes
12496             fi
12497           else
12498             result=$wxUSE_LISTCTRL
12499           fi
12500
12501           { echo "$as_me:$LINENO: result: $result" >&5
12502 echo "${ECHO_T}$result" >&6; }
12503
12504
12505           enablestring=
12506           defaultval=$wxUSE_ALL_FEATURES
12507           if test -z "$defaultval"; then
12508               if test x"$enablestring" = xdisable; then
12509                   defaultval=yes
12510               else
12511                   defaultval=no
12512               fi
12513           fi
12514
12515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12516 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12517           # Check whether --enable-notebook was given.
12518 if test "${enable_notebook+set}" = set; then
12519   enableval=$enable_notebook;
12520                           if test "$enableval" = yes; then
12521                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12522                           else
12523                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12524                           fi
12525                           cache=yes
12526
12527 else
12528
12529                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12530                           if test "x$LINE" != x ; then
12531                               eval "DEFAULT_$LINE"
12532                               cache=yes
12533                           else
12534                               cache=no
12535                           fi
12536
12537                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12538
12539 fi
12540
12541
12542           eval "$wx_cv_use_notebook"
12543           if test "x$cache" = xyes; then
12544             echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
12545           fi
12546
12547           if test x"$enablestring" = xdisable; then
12548             if test $wxUSE_NOTEBOOK = yes; then
12549               result=no
12550             else
12551               result=yes
12552             fi
12553           else
12554             result=$wxUSE_NOTEBOOK
12555           fi
12556
12557           { echo "$as_me:$LINENO: result: $result" >&5
12558 echo "${ECHO_T}$result" >&6; }
12559
12560
12561           enablestring=
12562           defaultval=$wxUSE_ALL_FEATURES
12563           if test -z "$defaultval"; then
12564               if test x"$enablestring" = xdisable; then
12565                   defaultval=yes
12566               else
12567                   defaultval=no
12568               fi
12569           fi
12570
12571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12572 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12573           # Check whether --enable-odcombobox was given.
12574 if test "${enable_odcombobox+set}" = set; then
12575   enableval=$enable_odcombobox;
12576                           if test "$enableval" = yes; then
12577                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12578                           else
12579                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12580                           fi
12581                           cache=yes
12582
12583 else
12584
12585                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12586                           if test "x$LINE" != x ; then
12587                               eval "DEFAULT_$LINE"
12588                               cache=yes
12589                           else
12590                               cache=no
12591                           fi
12592
12593                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12594
12595 fi
12596
12597
12598           eval "$wx_cv_use_odcombobox"
12599           if test "x$cache" = xyes; then
12600             echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
12601           fi
12602
12603           if test x"$enablestring" = xdisable; then
12604             if test $wxUSE_ODCOMBOBOX = yes; then
12605               result=no
12606             else
12607               result=yes
12608             fi
12609           else
12610             result=$wxUSE_ODCOMBOBOX
12611           fi
12612
12613           { echo "$as_me:$LINENO: result: $result" >&5
12614 echo "${ECHO_T}$result" >&6; }
12615
12616
12617           enablestring=
12618           defaultval=$wxUSE_ALL_FEATURES
12619           if test -z "$defaultval"; then
12620               if test x"$enablestring" = xdisable; then
12621                   defaultval=yes
12622               else
12623                   defaultval=no
12624               fi
12625           fi
12626
12627           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12628 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12629           # Check whether --enable-radiobox was given.
12630 if test "${enable_radiobox+set}" = set; then
12631   enableval=$enable_radiobox;
12632                           if test "$enableval" = yes; then
12633                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12634                           else
12635                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12636                           fi
12637                           cache=yes
12638
12639 else
12640
12641                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12642                           if test "x$LINE" != x ; then
12643                               eval "DEFAULT_$LINE"
12644                               cache=yes
12645                           else
12646                               cache=no
12647                           fi
12648
12649                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12650
12651 fi
12652
12653
12654           eval "$wx_cv_use_radiobox"
12655           if test "x$cache" = xyes; then
12656             echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
12657           fi
12658
12659           if test x"$enablestring" = xdisable; then
12660             if test $wxUSE_RADIOBOX = yes; then
12661               result=no
12662             else
12663               result=yes
12664             fi
12665           else
12666             result=$wxUSE_RADIOBOX
12667           fi
12668
12669           { echo "$as_me:$LINENO: result: $result" >&5
12670 echo "${ECHO_T}$result" >&6; }
12671
12672
12673           enablestring=
12674           defaultval=$wxUSE_ALL_FEATURES
12675           if test -z "$defaultval"; then
12676               if test x"$enablestring" = xdisable; then
12677                   defaultval=yes
12678               else
12679                   defaultval=no
12680               fi
12681           fi
12682
12683           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12684 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12685           # Check whether --enable-radiobtn was given.
12686 if test "${enable_radiobtn+set}" = set; then
12687   enableval=$enable_radiobtn;
12688                           if test "$enableval" = yes; then
12689                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12690                           else
12691                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12692                           fi
12693                           cache=yes
12694
12695 else
12696
12697                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12698                           if test "x$LINE" != x ; then
12699                               eval "DEFAULT_$LINE"
12700                               cache=yes
12701                           else
12702                               cache=no
12703                           fi
12704
12705                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12706
12707 fi
12708
12709
12710           eval "$wx_cv_use_radiobtn"
12711           if test "x$cache" = xyes; then
12712             echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
12713           fi
12714
12715           if test x"$enablestring" = xdisable; then
12716             if test $wxUSE_RADIOBTN = yes; then
12717               result=no
12718             else
12719               result=yes
12720             fi
12721           else
12722             result=$wxUSE_RADIOBTN
12723           fi
12724
12725           { echo "$as_me:$LINENO: result: $result" >&5
12726 echo "${ECHO_T}$result" >&6; }
12727
12728
12729           enablestring=
12730           defaultval=$wxUSE_ALL_FEATURES
12731           if test -z "$defaultval"; then
12732               if test x"$enablestring" = xdisable; then
12733                   defaultval=yes
12734               else
12735                   defaultval=no
12736               fi
12737           fi
12738
12739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12740 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12741           # Check whether --enable-sash was given.
12742 if test "${enable_sash+set}" = set; then
12743   enableval=$enable_sash;
12744                           if test "$enableval" = yes; then
12745                             wx_cv_use_sash='wxUSE_SASH=yes'
12746                           else
12747                             wx_cv_use_sash='wxUSE_SASH=no'
12748                           fi
12749                           cache=yes
12750
12751 else
12752
12753                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12754                           if test "x$LINE" != x ; then
12755                               eval "DEFAULT_$LINE"
12756                               cache=yes
12757                           else
12758                               cache=no
12759                           fi
12760
12761                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12762
12763 fi
12764
12765
12766           eval "$wx_cv_use_sash"
12767           if test "x$cache" = xyes; then
12768             echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
12769           fi
12770
12771           if test x"$enablestring" = xdisable; then
12772             if test $wxUSE_SASH = yes; then
12773               result=no
12774             else
12775               result=yes
12776             fi
12777           else
12778             result=$wxUSE_SASH
12779           fi
12780
12781           { echo "$as_me:$LINENO: result: $result" >&5
12782 echo "${ECHO_T}$result" >&6; }
12783
12784
12785           enablestring=
12786           defaultval=$wxUSE_ALL_FEATURES
12787           if test -z "$defaultval"; then
12788               if test x"$enablestring" = xdisable; then
12789                   defaultval=yes
12790               else
12791                   defaultval=no
12792               fi
12793           fi
12794
12795           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12796 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12797           # Check whether --enable-scrollbar was given.
12798 if test "${enable_scrollbar+set}" = set; then
12799   enableval=$enable_scrollbar;
12800                           if test "$enableval" = yes; then
12801                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12802                           else
12803                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12804                           fi
12805                           cache=yes
12806
12807 else
12808
12809                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12810                           if test "x$LINE" != x ; then
12811                               eval "DEFAULT_$LINE"
12812                               cache=yes
12813                           else
12814                               cache=no
12815                           fi
12816
12817                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12818
12819 fi
12820
12821
12822           eval "$wx_cv_use_scrollbar"
12823           if test "x$cache" = xyes; then
12824             echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
12825           fi
12826
12827           if test x"$enablestring" = xdisable; then
12828             if test $wxUSE_SCROLLBAR = yes; then
12829               result=no
12830             else
12831               result=yes
12832             fi
12833           else
12834             result=$wxUSE_SCROLLBAR
12835           fi
12836
12837           { echo "$as_me:$LINENO: result: $result" >&5
12838 echo "${ECHO_T}$result" >&6; }
12839
12840
12841           enablestring=
12842           defaultval=$wxUSE_ALL_FEATURES
12843           if test -z "$defaultval"; then
12844               if test x"$enablestring" = xdisable; then
12845                   defaultval=yes
12846               else
12847                   defaultval=no
12848               fi
12849           fi
12850
12851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12852 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12853           # Check whether --enable-searchctrl was given.
12854 if test "${enable_searchctrl+set}" = set; then
12855   enableval=$enable_searchctrl;
12856                           if test "$enableval" = yes; then
12857                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12858                           else
12859                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12860                           fi
12861                           cache=yes
12862
12863 else
12864
12865                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
12866                           if test "x$LINE" != x ; then
12867                               eval "DEFAULT_$LINE"
12868                               cache=yes
12869                           else
12870                               cache=no
12871                           fi
12872
12873                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12874
12875 fi
12876
12877
12878           eval "$wx_cv_use_searchctrl"
12879           if test "x$cache" = xyes; then
12880             echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
12881           fi
12882
12883           if test x"$enablestring" = xdisable; then
12884             if test $wxUSE_SEARCHCTRL = yes; then
12885               result=no
12886             else
12887               result=yes
12888             fi
12889           else
12890             result=$wxUSE_SEARCHCTRL
12891           fi
12892
12893           { echo "$as_me:$LINENO: result: $result" >&5
12894 echo "${ECHO_T}$result" >&6; }
12895
12896
12897           enablestring=
12898           defaultval=$wxUSE_ALL_FEATURES
12899           if test -z "$defaultval"; then
12900               if test x"$enablestring" = xdisable; then
12901                   defaultval=yes
12902               else
12903                   defaultval=no
12904               fi
12905           fi
12906
12907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12908 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12909           # Check whether --enable-slider was given.
12910 if test "${enable_slider+set}" = set; then
12911   enableval=$enable_slider;
12912                           if test "$enableval" = yes; then
12913                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12914                           else
12915                             wx_cv_use_slider='wxUSE_SLIDER=no'
12916                           fi
12917                           cache=yes
12918
12919 else
12920
12921                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
12922                           if test "x$LINE" != x ; then
12923                               eval "DEFAULT_$LINE"
12924                               cache=yes
12925                           else
12926                               cache=no
12927                           fi
12928
12929                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12930
12931 fi
12932
12933
12934           eval "$wx_cv_use_slider"
12935           if test "x$cache" = xyes; then
12936             echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
12937           fi
12938
12939           if test x"$enablestring" = xdisable; then
12940             if test $wxUSE_SLIDER = yes; then
12941               result=no
12942             else
12943               result=yes
12944             fi
12945           else
12946             result=$wxUSE_SLIDER
12947           fi
12948
12949           { echo "$as_me:$LINENO: result: $result" >&5
12950 echo "${ECHO_T}$result" >&6; }
12951
12952
12953           enablestring=
12954           defaultval=$wxUSE_ALL_FEATURES
12955           if test -z "$defaultval"; then
12956               if test x"$enablestring" = xdisable; then
12957                   defaultval=yes
12958               else
12959                   defaultval=no
12960               fi
12961           fi
12962
12963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12964 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12965           # Check whether --enable-spinbtn was given.
12966 if test "${enable_spinbtn+set}" = set; then
12967   enableval=$enable_spinbtn;
12968                           if test "$enableval" = yes; then
12969                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12970                           else
12971                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12972                           fi
12973                           cache=yes
12974
12975 else
12976
12977                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
12978                           if test "x$LINE" != x ; then
12979                               eval "DEFAULT_$LINE"
12980                               cache=yes
12981                           else
12982                               cache=no
12983                           fi
12984
12985                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12986
12987 fi
12988
12989
12990           eval "$wx_cv_use_spinbtn"
12991           if test "x$cache" = xyes; then
12992             echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
12993           fi
12994
12995           if test x"$enablestring" = xdisable; then
12996             if test $wxUSE_SPINBTN = yes; then
12997               result=no
12998             else
12999               result=yes
13000             fi
13001           else
13002             result=$wxUSE_SPINBTN
13003           fi
13004
13005           { echo "$as_me:$LINENO: result: $result" >&5
13006 echo "${ECHO_T}$result" >&6; }
13007
13008
13009           enablestring=
13010           defaultval=$wxUSE_ALL_FEATURES
13011           if test -z "$defaultval"; then
13012               if test x"$enablestring" = xdisable; then
13013                   defaultval=yes
13014               else
13015                   defaultval=no
13016               fi
13017           fi
13018
13019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
13020 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
13021           # Check whether --enable-spinctrl was given.
13022 if test "${enable_spinctrl+set}" = set; then
13023   enableval=$enable_spinctrl;
13024                           if test "$enableval" = yes; then
13025                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
13026                           else
13027                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
13028                           fi
13029                           cache=yes
13030
13031 else
13032
13033                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
13034                           if test "x$LINE" != x ; then
13035                               eval "DEFAULT_$LINE"
13036                               cache=yes
13037                           else
13038                               cache=no
13039                           fi
13040
13041                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
13042
13043 fi
13044
13045
13046           eval "$wx_cv_use_spinctrl"
13047           if test "x$cache" = xyes; then
13048             echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
13049           fi
13050
13051           if test x"$enablestring" = xdisable; then
13052             if test $wxUSE_SPINCTRL = yes; then
13053               result=no
13054             else
13055               result=yes
13056             fi
13057           else
13058             result=$wxUSE_SPINCTRL
13059           fi
13060
13061           { echo "$as_me:$LINENO: result: $result" >&5
13062 echo "${ECHO_T}$result" >&6; }
13063
13064
13065           enablestring=
13066           defaultval=$wxUSE_ALL_FEATURES
13067           if test -z "$defaultval"; then
13068               if test x"$enablestring" = xdisable; then
13069                   defaultval=yes
13070               else
13071                   defaultval=no
13072               fi
13073           fi
13074
13075           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
13076 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
13077           # Check whether --enable-splitter was given.
13078 if test "${enable_splitter+set}" = set; then
13079   enableval=$enable_splitter;
13080                           if test "$enableval" = yes; then
13081                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
13082                           else
13083                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
13084                           fi
13085                           cache=yes
13086
13087 else
13088
13089                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
13090                           if test "x$LINE" != x ; then
13091                               eval "DEFAULT_$LINE"
13092                               cache=yes
13093                           else
13094                               cache=no
13095                           fi
13096
13097                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
13098
13099 fi
13100
13101
13102           eval "$wx_cv_use_splitter"
13103           if test "x$cache" = xyes; then
13104             echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
13105           fi
13106
13107           if test x"$enablestring" = xdisable; then
13108             if test $wxUSE_SPLITTER = yes; then
13109               result=no
13110             else
13111               result=yes
13112             fi
13113           else
13114             result=$wxUSE_SPLITTER
13115           fi
13116
13117           { echo "$as_me:$LINENO: result: $result" >&5
13118 echo "${ECHO_T}$result" >&6; }
13119
13120
13121           enablestring=
13122           defaultval=$wxUSE_ALL_FEATURES
13123           if test -z "$defaultval"; then
13124               if test x"$enablestring" = xdisable; then
13125                   defaultval=yes
13126               else
13127                   defaultval=no
13128               fi
13129           fi
13130
13131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
13132 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
13133           # Check whether --enable-statbmp was given.
13134 if test "${enable_statbmp+set}" = set; then
13135   enableval=$enable_statbmp;
13136                           if test "$enableval" = yes; then
13137                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
13138                           else
13139                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
13140                           fi
13141                           cache=yes
13142
13143 else
13144
13145                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
13146                           if test "x$LINE" != x ; then
13147                               eval "DEFAULT_$LINE"
13148                               cache=yes
13149                           else
13150                               cache=no
13151                           fi
13152
13153                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
13154
13155 fi
13156
13157
13158           eval "$wx_cv_use_statbmp"
13159           if test "x$cache" = xyes; then
13160             echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
13161           fi
13162
13163           if test x"$enablestring" = xdisable; then
13164             if test $wxUSE_STATBMP = yes; then
13165               result=no
13166             else
13167               result=yes
13168             fi
13169           else
13170             result=$wxUSE_STATBMP
13171           fi
13172
13173           { echo "$as_me:$LINENO: result: $result" >&5
13174 echo "${ECHO_T}$result" >&6; }
13175
13176
13177           enablestring=
13178           defaultval=$wxUSE_ALL_FEATURES
13179           if test -z "$defaultval"; then
13180               if test x"$enablestring" = xdisable; then
13181                   defaultval=yes
13182               else
13183                   defaultval=no
13184               fi
13185           fi
13186
13187           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
13188 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
13189           # Check whether --enable-statbox was given.
13190 if test "${enable_statbox+set}" = set; then
13191   enableval=$enable_statbox;
13192                           if test "$enableval" = yes; then
13193                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
13194                           else
13195                             wx_cv_use_statbox='wxUSE_STATBOX=no'
13196                           fi
13197                           cache=yes
13198
13199 else
13200
13201                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
13202                           if test "x$LINE" != x ; then
13203                               eval "DEFAULT_$LINE"
13204                               cache=yes
13205                           else
13206                               cache=no
13207                           fi
13208
13209                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
13210
13211 fi
13212
13213
13214           eval "$wx_cv_use_statbox"
13215           if test "x$cache" = xyes; then
13216             echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
13217           fi
13218
13219           if test x"$enablestring" = xdisable; then
13220             if test $wxUSE_STATBOX = yes; then
13221               result=no
13222             else
13223               result=yes
13224             fi
13225           else
13226             result=$wxUSE_STATBOX
13227           fi
13228
13229           { echo "$as_me:$LINENO: result: $result" >&5
13230 echo "${ECHO_T}$result" >&6; }
13231
13232
13233           enablestring=
13234           defaultval=$wxUSE_ALL_FEATURES
13235           if test -z "$defaultval"; then
13236               if test x"$enablestring" = xdisable; then
13237                   defaultval=yes
13238               else
13239                   defaultval=no
13240               fi
13241           fi
13242
13243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
13244 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
13245           # Check whether --enable-statline was given.
13246 if test "${enable_statline+set}" = set; then
13247   enableval=$enable_statline;
13248                           if test "$enableval" = yes; then
13249                             wx_cv_use_statline='wxUSE_STATLINE=yes'
13250                           else
13251                             wx_cv_use_statline='wxUSE_STATLINE=no'
13252                           fi
13253                           cache=yes
13254
13255 else
13256
13257                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
13258                           if test "x$LINE" != x ; then
13259                               eval "DEFAULT_$LINE"
13260                               cache=yes
13261                           else
13262                               cache=no
13263                           fi
13264
13265                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
13266
13267 fi
13268
13269
13270           eval "$wx_cv_use_statline"
13271           if test "x$cache" = xyes; then
13272             echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
13273           fi
13274
13275           if test x"$enablestring" = xdisable; then
13276             if test $wxUSE_STATLINE = yes; then
13277               result=no
13278             else
13279               result=yes
13280             fi
13281           else
13282             result=$wxUSE_STATLINE
13283           fi
13284
13285           { echo "$as_me:$LINENO: result: $result" >&5
13286 echo "${ECHO_T}$result" >&6; }
13287
13288
13289           enablestring=
13290           defaultval=$wxUSE_ALL_FEATURES
13291           if test -z "$defaultval"; then
13292               if test x"$enablestring" = xdisable; then
13293                   defaultval=yes
13294               else
13295                   defaultval=no
13296               fi
13297           fi
13298
13299           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
13300 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
13301           # Check whether --enable-stattext was given.
13302 if test "${enable_stattext+set}" = set; then
13303   enableval=$enable_stattext;
13304                           if test "$enableval" = yes; then
13305                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
13306                           else
13307                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
13308                           fi
13309                           cache=yes
13310
13311 else
13312
13313                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
13314                           if test "x$LINE" != x ; then
13315                               eval "DEFAULT_$LINE"
13316                               cache=yes
13317                           else
13318                               cache=no
13319                           fi
13320
13321                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
13322
13323 fi
13324
13325
13326           eval "$wx_cv_use_stattext"
13327           if test "x$cache" = xyes; then
13328             echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
13329           fi
13330
13331           if test x"$enablestring" = xdisable; then
13332             if test $wxUSE_STATTEXT = yes; then
13333               result=no
13334             else
13335               result=yes
13336             fi
13337           else
13338             result=$wxUSE_STATTEXT
13339           fi
13340
13341           { echo "$as_me:$LINENO: result: $result" >&5
13342 echo "${ECHO_T}$result" >&6; }
13343
13344
13345           enablestring=
13346           defaultval=$wxUSE_ALL_FEATURES
13347           if test -z "$defaultval"; then
13348               if test x"$enablestring" = xdisable; then
13349                   defaultval=yes
13350               else
13351                   defaultval=no
13352               fi
13353           fi
13354
13355           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
13356 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
13357           # Check whether --enable-statusbar was given.
13358 if test "${enable_statusbar+set}" = set; then
13359   enableval=$enable_statusbar;
13360                           if test "$enableval" = yes; then
13361                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13362                           else
13363                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13364                           fi
13365                           cache=yes
13366
13367 else
13368
13369                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13370                           if test "x$LINE" != x ; then
13371                               eval "DEFAULT_$LINE"
13372                               cache=yes
13373                           else
13374                               cache=no
13375                           fi
13376
13377                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13378
13379 fi
13380
13381
13382           eval "$wx_cv_use_statusbar"
13383           if test "x$cache" = xyes; then
13384             echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
13385           fi
13386
13387           if test x"$enablestring" = xdisable; then
13388             if test $wxUSE_STATUSBAR = yes; then
13389               result=no
13390             else
13391               result=yes
13392             fi
13393           else
13394             result=$wxUSE_STATUSBAR
13395           fi
13396
13397           { echo "$as_me:$LINENO: result: $result" >&5
13398 echo "${ECHO_T}$result" >&6; }
13399
13400
13401           enablestring=
13402           defaultval=$wxUSE_ALL_FEATURES
13403           if test -z "$defaultval"; then
13404               if test x"$enablestring" = xdisable; then
13405                   defaultval=yes
13406               else
13407                   defaultval=no
13408               fi
13409           fi
13410
13411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13412 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13413           # Check whether --enable-tabdialog was given.
13414 if test "${enable_tabdialog+set}" = set; then
13415   enableval=$enable_tabdialog;
13416                           if test "$enableval" = yes; then
13417                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13418                           else
13419                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13420                           fi
13421                           cache=yes
13422
13423 else
13424
13425                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13426                           if test "x$LINE" != x ; then
13427                               eval "DEFAULT_$LINE"
13428                               cache=yes
13429                           else
13430                               cache=no
13431                           fi
13432
13433                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13434
13435 fi
13436
13437
13438           eval "$wx_cv_use_tabdialog"
13439           if test "x$cache" = xyes; then
13440             echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
13441           fi
13442
13443           if test x"$enablestring" = xdisable; then
13444             if test $wxUSE_TAB_DIALOG = yes; then
13445               result=no
13446             else
13447               result=yes
13448             fi
13449           else
13450             result=$wxUSE_TAB_DIALOG
13451           fi
13452
13453           { echo "$as_me:$LINENO: result: $result" >&5
13454 echo "${ECHO_T}$result" >&6; }
13455
13456
13457           enablestring=
13458           defaultval=$wxUSE_ALL_FEATURES
13459           if test -z "$defaultval"; then
13460               if test x"$enablestring" = xdisable; then
13461                   defaultval=yes
13462               else
13463                   defaultval=no
13464               fi
13465           fi
13466
13467           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13468 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13469           # Check whether --enable-taskbaricon was given.
13470 if test "${enable_taskbaricon+set}" = set; then
13471   enableval=$enable_taskbaricon;
13472                           if test "$enableval" = yes; then
13473                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13474                           else
13475                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13476                           fi
13477                           cache=yes
13478
13479 else
13480
13481                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13482                           if test "x$LINE" != x ; then
13483                               eval "DEFAULT_$LINE"
13484                               cache=yes
13485                           else
13486                               cache=no
13487                           fi
13488
13489                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13490
13491 fi
13492
13493
13494           eval "$wx_cv_use_taskbaricon"
13495           if test "x$cache" = xyes; then
13496             echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
13497           fi
13498
13499           if test x"$enablestring" = xdisable; then
13500             if test $wxUSE_TASKBARICON = yes; then
13501               result=no
13502             else
13503               result=yes
13504             fi
13505           else
13506             result=$wxUSE_TASKBARICON
13507           fi
13508
13509           { echo "$as_me:$LINENO: result: $result" >&5
13510 echo "${ECHO_T}$result" >&6; }
13511
13512
13513           enablestring=
13514           defaultval=$wxUSE_ALL_FEATURES
13515           if test -z "$defaultval"; then
13516               if test x"$enablestring" = xdisable; then
13517                   defaultval=yes
13518               else
13519                   defaultval=no
13520               fi
13521           fi
13522
13523           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13524 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13525           # Check whether --enable-textctrl was given.
13526 if test "${enable_textctrl+set}" = set; then
13527   enableval=$enable_textctrl;
13528                           if test "$enableval" = yes; then
13529                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13530                           else
13531                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13532                           fi
13533                           cache=yes
13534
13535 else
13536
13537                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13538                           if test "x$LINE" != x ; then
13539                               eval "DEFAULT_$LINE"
13540                               cache=yes
13541                           else
13542                               cache=no
13543                           fi
13544
13545                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13546
13547 fi
13548
13549
13550           eval "$wx_cv_use_textctrl"
13551           if test "x$cache" = xyes; then
13552             echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
13553           fi
13554
13555           if test x"$enablestring" = xdisable; then
13556             if test $wxUSE_TEXTCTRL = yes; then
13557               result=no
13558             else
13559               result=yes
13560             fi
13561           else
13562             result=$wxUSE_TEXTCTRL
13563           fi
13564
13565           { echo "$as_me:$LINENO: result: $result" >&5
13566 echo "${ECHO_T}$result" >&6; }
13567
13568
13569           enablestring=
13570           defaultval=$wxUSE_ALL_FEATURES
13571           if test -z "$defaultval"; then
13572               if test x"$enablestring" = xdisable; then
13573                   defaultval=yes
13574               else
13575                   defaultval=no
13576               fi
13577           fi
13578
13579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13580 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13581           # Check whether --enable-togglebtn was given.
13582 if test "${enable_togglebtn+set}" = set; then
13583   enableval=$enable_togglebtn;
13584                           if test "$enableval" = yes; then
13585                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13586                           else
13587                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13588                           fi
13589                           cache=yes
13590
13591 else
13592
13593                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13594                           if test "x$LINE" != x ; then
13595                               eval "DEFAULT_$LINE"
13596                               cache=yes
13597                           else
13598                               cache=no
13599                           fi
13600
13601                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13602
13603 fi
13604
13605
13606           eval "$wx_cv_use_togglebtn"
13607           if test "x$cache" = xyes; then
13608             echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
13609           fi
13610
13611           if test x"$enablestring" = xdisable; then
13612             if test $wxUSE_TOGGLEBTN = yes; then
13613               result=no
13614             else
13615               result=yes
13616             fi
13617           else
13618             result=$wxUSE_TOGGLEBTN
13619           fi
13620
13621           { echo "$as_me:$LINENO: result: $result" >&5
13622 echo "${ECHO_T}$result" >&6; }
13623
13624
13625           enablestring=
13626           defaultval=$wxUSE_ALL_FEATURES
13627           if test -z "$defaultval"; then
13628               if test x"$enablestring" = xdisable; then
13629                   defaultval=yes
13630               else
13631                   defaultval=no
13632               fi
13633           fi
13634
13635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13636 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13637           # Check whether --enable-toolbar was given.
13638 if test "${enable_toolbar+set}" = set; then
13639   enableval=$enable_toolbar;
13640                           if test "$enableval" = yes; then
13641                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13642                           else
13643                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13644                           fi
13645                           cache=yes
13646
13647 else
13648
13649                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13650                           if test "x$LINE" != x ; then
13651                               eval "DEFAULT_$LINE"
13652                               cache=yes
13653                           else
13654                               cache=no
13655                           fi
13656
13657                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13658
13659 fi
13660
13661
13662           eval "$wx_cv_use_toolbar"
13663           if test "x$cache" = xyes; then
13664             echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
13665           fi
13666
13667           if test x"$enablestring" = xdisable; then
13668             if test $wxUSE_TOOLBAR = yes; then
13669               result=no
13670             else
13671               result=yes
13672             fi
13673           else
13674             result=$wxUSE_TOOLBAR
13675           fi
13676
13677           { echo "$as_me:$LINENO: result: $result" >&5
13678 echo "${ECHO_T}$result" >&6; }
13679
13680
13681           enablestring=
13682           defaultval=$wxUSE_ALL_FEATURES
13683           if test -z "$defaultval"; then
13684               if test x"$enablestring" = xdisable; then
13685                   defaultval=yes
13686               else
13687                   defaultval=no
13688               fi
13689           fi
13690
13691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13692 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13693           # Check whether --enable-tbarnative was given.
13694 if test "${enable_tbarnative+set}" = set; then
13695   enableval=$enable_tbarnative;
13696                           if test "$enableval" = yes; then
13697                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13698                           else
13699                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13700                           fi
13701                           cache=yes
13702
13703 else
13704
13705                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13706                           if test "x$LINE" != x ; then
13707                               eval "DEFAULT_$LINE"
13708                               cache=yes
13709                           else
13710                               cache=no
13711                           fi
13712
13713                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13714
13715 fi
13716
13717
13718           eval "$wx_cv_use_tbarnative"
13719           if test "x$cache" = xyes; then
13720             echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
13721           fi
13722
13723           if test x"$enablestring" = xdisable; then
13724             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13725               result=no
13726             else
13727               result=yes
13728             fi
13729           else
13730             result=$wxUSE_TOOLBAR_NATIVE
13731           fi
13732
13733           { echo "$as_me:$LINENO: result: $result" >&5
13734 echo "${ECHO_T}$result" >&6; }
13735
13736
13737           enablestring=
13738           defaultval=$wxUSE_ALL_FEATURES
13739           if test -z "$defaultval"; then
13740               if test x"$enablestring" = xdisable; then
13741                   defaultval=yes
13742               else
13743                   defaultval=no
13744               fi
13745           fi
13746
13747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13748 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13749           # Check whether --enable-treebook was given.
13750 if test "${enable_treebook+set}" = set; then
13751   enableval=$enable_treebook;
13752                           if test "$enableval" = yes; then
13753                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13754                           else
13755                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13756                           fi
13757                           cache=yes
13758
13759 else
13760
13761                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13762                           if test "x$LINE" != x ; then
13763                               eval "DEFAULT_$LINE"
13764                               cache=yes
13765                           else
13766                               cache=no
13767                           fi
13768
13769                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13770
13771 fi
13772
13773
13774           eval "$wx_cv_use_treebook"
13775           if test "x$cache" = xyes; then
13776             echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
13777           fi
13778
13779           if test x"$enablestring" = xdisable; then
13780             if test $wxUSE_TREEBOOK = yes; then
13781               result=no
13782             else
13783               result=yes
13784             fi
13785           else
13786             result=$wxUSE_TREEBOOK
13787           fi
13788
13789           { echo "$as_me:$LINENO: result: $result" >&5
13790 echo "${ECHO_T}$result" >&6; }
13791
13792
13793           enablestring=
13794           defaultval=$wxUSE_ALL_FEATURES
13795           if test -z "$defaultval"; then
13796               if test x"$enablestring" = xdisable; then
13797                   defaultval=yes
13798               else
13799                   defaultval=no
13800               fi
13801           fi
13802
13803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13804 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13805           # Check whether --enable-toolbook was given.
13806 if test "${enable_toolbook+set}" = set; then
13807   enableval=$enable_toolbook;
13808                           if test "$enableval" = yes; then
13809                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13810                           else
13811                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13812                           fi
13813                           cache=yes
13814
13815 else
13816
13817                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13818                           if test "x$LINE" != x ; then
13819                               eval "DEFAULT_$LINE"
13820                               cache=yes
13821                           else
13822                               cache=no
13823                           fi
13824
13825                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13826
13827 fi
13828
13829
13830           eval "$wx_cv_use_toolbook"
13831           if test "x$cache" = xyes; then
13832             echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
13833           fi
13834
13835           if test x"$enablestring" = xdisable; then
13836             if test $wxUSE_TOOLBOOK = yes; then
13837               result=no
13838             else
13839               result=yes
13840             fi
13841           else
13842             result=$wxUSE_TOOLBOOK
13843           fi
13844
13845           { echo "$as_me:$LINENO: result: $result" >&5
13846 echo "${ECHO_T}$result" >&6; }
13847
13848
13849           enablestring=
13850           defaultval=$wxUSE_ALL_FEATURES
13851           if test -z "$defaultval"; then
13852               if test x"$enablestring" = xdisable; then
13853                   defaultval=yes
13854               else
13855                   defaultval=no
13856               fi
13857           fi
13858
13859           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
13860 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
13861           # Check whether --enable-treectrl was given.
13862 if test "${enable_treectrl+set}" = set; then
13863   enableval=$enable_treectrl;
13864                           if test "$enableval" = yes; then
13865                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
13866                           else
13867                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
13868                           fi
13869                           cache=yes
13870
13871 else
13872
13873                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
13874                           if test "x$LINE" != x ; then
13875                               eval "DEFAULT_$LINE"
13876                               cache=yes
13877                           else
13878                               cache=no
13879                           fi
13880
13881                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
13882
13883 fi
13884
13885
13886           eval "$wx_cv_use_treectrl"
13887           if test "x$cache" = xyes; then
13888             echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
13889           fi
13890
13891           if test x"$enablestring" = xdisable; then
13892             if test $wxUSE_TREECTRL = yes; then
13893               result=no
13894             else
13895               result=yes
13896             fi
13897           else
13898             result=$wxUSE_TREECTRL
13899           fi
13900
13901           { echo "$as_me:$LINENO: result: $result" >&5
13902 echo "${ECHO_T}$result" >&6; }
13903
13904
13905           enablestring=
13906           defaultval=$wxUSE_ALL_FEATURES
13907           if test -z "$defaultval"; then
13908               if test x"$enablestring" = xdisable; then
13909                   defaultval=yes
13910               else
13911                   defaultval=no
13912               fi
13913           fi
13914
13915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
13916 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
13917           # Check whether --enable-tipwindow was given.
13918 if test "${enable_tipwindow+set}" = set; then
13919   enableval=$enable_tipwindow;
13920                           if test "$enableval" = yes; then
13921                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
13922                           else
13923                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
13924                           fi
13925                           cache=yes
13926
13927 else
13928
13929                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
13930                           if test "x$LINE" != x ; then
13931                               eval "DEFAULT_$LINE"
13932                               cache=yes
13933                           else
13934                               cache=no
13935                           fi
13936
13937                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
13938
13939 fi
13940
13941
13942           eval "$wx_cv_use_tipwindow"
13943           if test "x$cache" = xyes; then
13944             echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
13945           fi
13946
13947           if test x"$enablestring" = xdisable; then
13948             if test $wxUSE_TIPWINDOW = yes; then
13949               result=no
13950             else
13951               result=yes
13952             fi
13953           else
13954             result=$wxUSE_TIPWINDOW
13955           fi
13956
13957           { echo "$as_me:$LINENO: result: $result" >&5
13958 echo "${ECHO_T}$result" >&6; }
13959
13960
13961           enablestring=
13962           defaultval=$wxUSE_ALL_FEATURES
13963           if test -z "$defaultval"; then
13964               if test x"$enablestring" = xdisable; then
13965                   defaultval=yes
13966               else
13967                   defaultval=no
13968               fi
13969           fi
13970
13971           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
13972 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
13973           # Check whether --enable-popupwin was given.
13974 if test "${enable_popupwin+set}" = set; then
13975   enableval=$enable_popupwin;
13976                           if test "$enableval" = yes; then
13977                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
13978                           else
13979                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
13980                           fi
13981                           cache=yes
13982
13983 else
13984
13985                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
13986                           if test "x$LINE" != x ; then
13987                               eval "DEFAULT_$LINE"
13988                               cache=yes
13989                           else
13990                               cache=no
13991                           fi
13992
13993                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
13994
13995 fi
13996
13997
13998           eval "$wx_cv_use_popupwin"
13999           if test "x$cache" = xyes; then
14000             echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
14001           fi
14002
14003           if test x"$enablestring" = xdisable; then
14004             if test $wxUSE_POPUPWIN = yes; then
14005               result=no
14006             else
14007               result=yes
14008             fi
14009           else
14010             result=$wxUSE_POPUPWIN
14011           fi
14012
14013           { echo "$as_me:$LINENO: result: $result" >&5
14014 echo "${ECHO_T}$result" >&6; }
14015
14016
14017
14018
14019           enablestring=
14020           defaultval=$wxUSE_ALL_FEATURES
14021           if test -z "$defaultval"; then
14022               if test x"$enablestring" = xdisable; then
14023                   defaultval=yes
14024               else
14025                   defaultval=no
14026               fi
14027           fi
14028
14029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
14030 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
14031           # Check whether --enable-commondlg was given.
14032 if test "${enable_commondlg+set}" = set; then
14033   enableval=$enable_commondlg;
14034                           if test "$enableval" = yes; then
14035                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
14036                           else
14037                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
14038                           fi
14039                           cache=yes
14040
14041 else
14042
14043                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
14044                           if test "x$LINE" != x ; then
14045                               eval "DEFAULT_$LINE"
14046                               cache=yes
14047                           else
14048                               cache=no
14049                           fi
14050
14051                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
14052
14053 fi
14054
14055
14056           eval "$wx_cv_use_commondlg"
14057           if test "x$cache" = xyes; then
14058             echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
14059           fi
14060
14061           if test x"$enablestring" = xdisable; then
14062             if test $wxUSE_COMMONDLGS = yes; then
14063               result=no
14064             else
14065               result=yes
14066             fi
14067           else
14068             result=$wxUSE_COMMONDLGS
14069           fi
14070
14071           { echo "$as_me:$LINENO: result: $result" >&5
14072 echo "${ECHO_T}$result" >&6; }
14073
14074
14075           enablestring=
14076           defaultval=$wxUSE_ALL_FEATURES
14077           if test -z "$defaultval"; then
14078               if test x"$enablestring" = xdisable; then
14079                   defaultval=yes
14080               else
14081                   defaultval=no
14082               fi
14083           fi
14084
14085           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
14086 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
14087           # Check whether --enable-aboutdlg was given.
14088 if test "${enable_aboutdlg+set}" = set; then
14089   enableval=$enable_aboutdlg;
14090                           if test "$enableval" = yes; then
14091                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
14092                           else
14093                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
14094                           fi
14095                           cache=yes
14096
14097 else
14098
14099                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
14100                           if test "x$LINE" != x ; then
14101                               eval "DEFAULT_$LINE"
14102                               cache=yes
14103                           else
14104                               cache=no
14105                           fi
14106
14107                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
14108
14109 fi
14110
14111
14112           eval "$wx_cv_use_aboutdlg"
14113           if test "x$cache" = xyes; then
14114             echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
14115           fi
14116
14117           if test x"$enablestring" = xdisable; then
14118             if test $wxUSE_ABOUTDLG = yes; then
14119               result=no
14120             else
14121               result=yes
14122             fi
14123           else
14124             result=$wxUSE_ABOUTDLG
14125           fi
14126
14127           { echo "$as_me:$LINENO: result: $result" >&5
14128 echo "${ECHO_T}$result" >&6; }
14129
14130
14131           enablestring=
14132           defaultval=$wxUSE_ALL_FEATURES
14133           if test -z "$defaultval"; then
14134               if test x"$enablestring" = xdisable; then
14135                   defaultval=yes
14136               else
14137                   defaultval=no
14138               fi
14139           fi
14140
14141           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
14142 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
14143           # Check whether --enable-choicedlg was given.
14144 if test "${enable_choicedlg+set}" = set; then
14145   enableval=$enable_choicedlg;
14146                           if test "$enableval" = yes; then
14147                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
14148                           else
14149                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
14150                           fi
14151                           cache=yes
14152
14153 else
14154
14155                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
14156                           if test "x$LINE" != x ; then
14157                               eval "DEFAULT_$LINE"
14158                               cache=yes
14159                           else
14160                               cache=no
14161                           fi
14162
14163                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
14164
14165 fi
14166
14167
14168           eval "$wx_cv_use_choicedlg"
14169           if test "x$cache" = xyes; then
14170             echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
14171           fi
14172
14173           if test x"$enablestring" = xdisable; then
14174             if test $wxUSE_CHOICEDLG = yes; then
14175               result=no
14176             else
14177               result=yes
14178             fi
14179           else
14180             result=$wxUSE_CHOICEDLG
14181           fi
14182
14183           { echo "$as_me:$LINENO: result: $result" >&5
14184 echo "${ECHO_T}$result" >&6; }
14185
14186
14187           enablestring=
14188           defaultval=$wxUSE_ALL_FEATURES
14189           if test -z "$defaultval"; then
14190               if test x"$enablestring" = xdisable; then
14191                   defaultval=yes
14192               else
14193                   defaultval=no
14194               fi
14195           fi
14196
14197           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
14198 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
14199           # Check whether --enable-coldlg was given.
14200 if test "${enable_coldlg+set}" = set; then
14201   enableval=$enable_coldlg;
14202                           if test "$enableval" = yes; then
14203                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
14204                           else
14205                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
14206                           fi
14207                           cache=yes
14208
14209 else
14210
14211                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
14212                           if test "x$LINE" != x ; then
14213                               eval "DEFAULT_$LINE"
14214                               cache=yes
14215                           else
14216                               cache=no
14217                           fi
14218
14219                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
14220
14221 fi
14222
14223
14224           eval "$wx_cv_use_coldlg"
14225           if test "x$cache" = xyes; then
14226             echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
14227           fi
14228
14229           if test x"$enablestring" = xdisable; then
14230             if test $wxUSE_COLOURDLG = yes; then
14231               result=no
14232             else
14233               result=yes
14234             fi
14235           else
14236             result=$wxUSE_COLOURDLG
14237           fi
14238
14239           { echo "$as_me:$LINENO: result: $result" >&5
14240 echo "${ECHO_T}$result" >&6; }
14241
14242
14243           enablestring=
14244           defaultval=$wxUSE_ALL_FEATURES
14245           if test -z "$defaultval"; then
14246               if test x"$enablestring" = xdisable; then
14247                   defaultval=yes
14248               else
14249                   defaultval=no
14250               fi
14251           fi
14252
14253           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
14254 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
14255           # Check whether --enable-filedlg was given.
14256 if test "${enable_filedlg+set}" = set; then
14257   enableval=$enable_filedlg;
14258                           if test "$enableval" = yes; then
14259                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
14260                           else
14261                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
14262                           fi
14263                           cache=yes
14264
14265 else
14266
14267                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
14268                           if test "x$LINE" != x ; then
14269                               eval "DEFAULT_$LINE"
14270                               cache=yes
14271                           else
14272                               cache=no
14273                           fi
14274
14275                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
14276
14277 fi
14278
14279
14280           eval "$wx_cv_use_filedlg"
14281           if test "x$cache" = xyes; then
14282             echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
14283           fi
14284
14285           if test x"$enablestring" = xdisable; then
14286             if test $wxUSE_FILEDLG = yes; then
14287               result=no
14288             else
14289               result=yes
14290             fi
14291           else
14292             result=$wxUSE_FILEDLG
14293           fi
14294
14295           { echo "$as_me:$LINENO: result: $result" >&5
14296 echo "${ECHO_T}$result" >&6; }
14297
14298
14299           enablestring=
14300           defaultval=$wxUSE_ALL_FEATURES
14301           if test -z "$defaultval"; then
14302               if test x"$enablestring" = xdisable; then
14303                   defaultval=yes
14304               else
14305                   defaultval=no
14306               fi
14307           fi
14308
14309           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
14310 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
14311           # Check whether --enable-finddlg was given.
14312 if test "${enable_finddlg+set}" = set; then
14313   enableval=$enable_finddlg;
14314                           if test "$enableval" = yes; then
14315                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
14316                           else
14317                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
14318                           fi
14319                           cache=yes
14320
14321 else
14322
14323                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
14324                           if test "x$LINE" != x ; then
14325                               eval "DEFAULT_$LINE"
14326                               cache=yes
14327                           else
14328                               cache=no
14329                           fi
14330
14331                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
14332
14333 fi
14334
14335
14336           eval "$wx_cv_use_finddlg"
14337           if test "x$cache" = xyes; then
14338             echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
14339           fi
14340
14341           if test x"$enablestring" = xdisable; then
14342             if test $wxUSE_FINDREPLDLG = yes; then
14343               result=no
14344             else
14345               result=yes
14346             fi
14347           else
14348             result=$wxUSE_FINDREPLDLG
14349           fi
14350
14351           { echo "$as_me:$LINENO: result: $result" >&5
14352 echo "${ECHO_T}$result" >&6; }
14353
14354
14355           enablestring=
14356           defaultval=$wxUSE_ALL_FEATURES
14357           if test -z "$defaultval"; then
14358               if test x"$enablestring" = xdisable; then
14359                   defaultval=yes
14360               else
14361                   defaultval=no
14362               fi
14363           fi
14364
14365           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
14366 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
14367           # Check whether --enable-fontdlg was given.
14368 if test "${enable_fontdlg+set}" = set; then
14369   enableval=$enable_fontdlg;
14370                           if test "$enableval" = yes; then
14371                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
14372                           else
14373                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
14374                           fi
14375                           cache=yes
14376
14377 else
14378
14379                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
14380                           if test "x$LINE" != x ; then
14381                               eval "DEFAULT_$LINE"
14382                               cache=yes
14383                           else
14384                               cache=no
14385                           fi
14386
14387                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
14388
14389 fi
14390
14391
14392           eval "$wx_cv_use_fontdlg"
14393           if test "x$cache" = xyes; then
14394             echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
14395           fi
14396
14397           if test x"$enablestring" = xdisable; then
14398             if test $wxUSE_FONTDLG = yes; then
14399               result=no
14400             else
14401               result=yes
14402             fi
14403           else
14404             result=$wxUSE_FONTDLG
14405           fi
14406
14407           { echo "$as_me:$LINENO: result: $result" >&5
14408 echo "${ECHO_T}$result" >&6; }
14409
14410
14411           enablestring=
14412           defaultval=$wxUSE_ALL_FEATURES
14413           if test -z "$defaultval"; then
14414               if test x"$enablestring" = xdisable; then
14415                   defaultval=yes
14416               else
14417                   defaultval=no
14418               fi
14419           fi
14420
14421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14422 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14423           # Check whether --enable-dirdlg was given.
14424 if test "${enable_dirdlg+set}" = set; then
14425   enableval=$enable_dirdlg;
14426                           if test "$enableval" = yes; then
14427                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14428                           else
14429                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14430                           fi
14431                           cache=yes
14432
14433 else
14434
14435                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14436                           if test "x$LINE" != x ; then
14437                               eval "DEFAULT_$LINE"
14438                               cache=yes
14439                           else
14440                               cache=no
14441                           fi
14442
14443                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14444
14445 fi
14446
14447
14448           eval "$wx_cv_use_dirdlg"
14449           if test "x$cache" = xyes; then
14450             echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
14451           fi
14452
14453           if test x"$enablestring" = xdisable; then
14454             if test $wxUSE_DIRDLG = yes; then
14455               result=no
14456             else
14457               result=yes
14458             fi
14459           else
14460             result=$wxUSE_DIRDLG
14461           fi
14462
14463           { echo "$as_me:$LINENO: result: $result" >&5
14464 echo "${ECHO_T}$result" >&6; }
14465
14466
14467           enablestring=
14468           defaultval=$wxUSE_ALL_FEATURES
14469           if test -z "$defaultval"; then
14470               if test x"$enablestring" = xdisable; then
14471                   defaultval=yes
14472               else
14473                   defaultval=no
14474               fi
14475           fi
14476
14477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14478 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14479           # Check whether --enable-msgdlg was given.
14480 if test "${enable_msgdlg+set}" = set; then
14481   enableval=$enable_msgdlg;
14482                           if test "$enableval" = yes; then
14483                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14484                           else
14485                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14486                           fi
14487                           cache=yes
14488
14489 else
14490
14491                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14492                           if test "x$LINE" != x ; then
14493                               eval "DEFAULT_$LINE"
14494                               cache=yes
14495                           else
14496                               cache=no
14497                           fi
14498
14499                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14500
14501 fi
14502
14503
14504           eval "$wx_cv_use_msgdlg"
14505           if test "x$cache" = xyes; then
14506             echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
14507           fi
14508
14509           if test x"$enablestring" = xdisable; then
14510             if test $wxUSE_MSGDLG = yes; then
14511               result=no
14512             else
14513               result=yes
14514             fi
14515           else
14516             result=$wxUSE_MSGDLG
14517           fi
14518
14519           { echo "$as_me:$LINENO: result: $result" >&5
14520 echo "${ECHO_T}$result" >&6; }
14521
14522
14523           enablestring=
14524           defaultval=$wxUSE_ALL_FEATURES
14525           if test -z "$defaultval"; then
14526               if test x"$enablestring" = xdisable; then
14527                   defaultval=yes
14528               else
14529                   defaultval=no
14530               fi
14531           fi
14532
14533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14534 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14535           # Check whether --enable-numberdlg was given.
14536 if test "${enable_numberdlg+set}" = set; then
14537   enableval=$enable_numberdlg;
14538                           if test "$enableval" = yes; then
14539                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14540                           else
14541                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14542                           fi
14543                           cache=yes
14544
14545 else
14546
14547                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14548                           if test "x$LINE" != x ; then
14549                               eval "DEFAULT_$LINE"
14550                               cache=yes
14551                           else
14552                               cache=no
14553                           fi
14554
14555                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14556
14557 fi
14558
14559
14560           eval "$wx_cv_use_numberdlg"
14561           if test "x$cache" = xyes; then
14562             echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
14563           fi
14564
14565           if test x"$enablestring" = xdisable; then
14566             if test $wxUSE_NUMBERDLG = yes; then
14567               result=no
14568             else
14569               result=yes
14570             fi
14571           else
14572             result=$wxUSE_NUMBERDLG
14573           fi
14574
14575           { echo "$as_me:$LINENO: result: $result" >&5
14576 echo "${ECHO_T}$result" >&6; }
14577
14578
14579           enablestring=
14580           defaultval=$wxUSE_ALL_FEATURES
14581           if test -z "$defaultval"; then
14582               if test x"$enablestring" = xdisable; then
14583                   defaultval=yes
14584               else
14585                   defaultval=no
14586               fi
14587           fi
14588
14589           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14590 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14591           # Check whether --enable-splash was given.
14592 if test "${enable_splash+set}" = set; then
14593   enableval=$enable_splash;
14594                           if test "$enableval" = yes; then
14595                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14596                           else
14597                             wx_cv_use_splash='wxUSE_SPLASH=no'
14598                           fi
14599                           cache=yes
14600
14601 else
14602
14603                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14604                           if test "x$LINE" != x ; then
14605                               eval "DEFAULT_$LINE"
14606                               cache=yes
14607                           else
14608                               cache=no
14609                           fi
14610
14611                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14612
14613 fi
14614
14615
14616           eval "$wx_cv_use_splash"
14617           if test "x$cache" = xyes; then
14618             echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
14619           fi
14620
14621           if test x"$enablestring" = xdisable; then
14622             if test $wxUSE_SPLASH = yes; then
14623               result=no
14624             else
14625               result=yes
14626             fi
14627           else
14628             result=$wxUSE_SPLASH
14629           fi
14630
14631           { echo "$as_me:$LINENO: result: $result" >&5
14632 echo "${ECHO_T}$result" >&6; }
14633
14634
14635           enablestring=
14636           defaultval=$wxUSE_ALL_FEATURES
14637           if test -z "$defaultval"; then
14638               if test x"$enablestring" = xdisable; then
14639                   defaultval=yes
14640               else
14641                   defaultval=no
14642               fi
14643           fi
14644
14645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14646 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14647           # Check whether --enable-textdlg was given.
14648 if test "${enable_textdlg+set}" = set; then
14649   enableval=$enable_textdlg;
14650                           if test "$enableval" = yes; then
14651                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14652                           else
14653                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14654                           fi
14655                           cache=yes
14656
14657 else
14658
14659                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14660                           if test "x$LINE" != x ; then
14661                               eval "DEFAULT_$LINE"
14662                               cache=yes
14663                           else
14664                               cache=no
14665                           fi
14666
14667                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14668
14669 fi
14670
14671
14672           eval "$wx_cv_use_textdlg"
14673           if test "x$cache" = xyes; then
14674             echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
14675           fi
14676
14677           if test x"$enablestring" = xdisable; then
14678             if test $wxUSE_TEXTDLG = yes; then
14679               result=no
14680             else
14681               result=yes
14682             fi
14683           else
14684             result=$wxUSE_TEXTDLG
14685           fi
14686
14687           { echo "$as_me:$LINENO: result: $result" >&5
14688 echo "${ECHO_T}$result" >&6; }
14689
14690
14691           enablestring=
14692           defaultval=$wxUSE_ALL_FEATURES
14693           if test -z "$defaultval"; then
14694               if test x"$enablestring" = xdisable; then
14695                   defaultval=yes
14696               else
14697                   defaultval=no
14698               fi
14699           fi
14700
14701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14702 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14703           # Check whether --enable-tipdlg was given.
14704 if test "${enable_tipdlg+set}" = set; then
14705   enableval=$enable_tipdlg;
14706                           if test "$enableval" = yes; then
14707                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14708                           else
14709                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14710                           fi
14711                           cache=yes
14712
14713 else
14714
14715                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14716                           if test "x$LINE" != x ; then
14717                               eval "DEFAULT_$LINE"
14718                               cache=yes
14719                           else
14720                               cache=no
14721                           fi
14722
14723                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14724
14725 fi
14726
14727
14728           eval "$wx_cv_use_tipdlg"
14729           if test "x$cache" = xyes; then
14730             echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
14731           fi
14732
14733           if test x"$enablestring" = xdisable; then
14734             if test $wxUSE_STARTUP_TIPS = yes; then
14735               result=no
14736             else
14737               result=yes
14738             fi
14739           else
14740             result=$wxUSE_STARTUP_TIPS
14741           fi
14742
14743           { echo "$as_me:$LINENO: result: $result" >&5
14744 echo "${ECHO_T}$result" >&6; }
14745
14746
14747           enablestring=
14748           defaultval=$wxUSE_ALL_FEATURES
14749           if test -z "$defaultval"; then
14750               if test x"$enablestring" = xdisable; then
14751                   defaultval=yes
14752               else
14753                   defaultval=no
14754               fi
14755           fi
14756
14757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14758 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14759           # Check whether --enable-progressdlg was given.
14760 if test "${enable_progressdlg+set}" = set; then
14761   enableval=$enable_progressdlg;
14762                           if test "$enableval" = yes; then
14763                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14764                           else
14765                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14766                           fi
14767                           cache=yes
14768
14769 else
14770
14771                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14772                           if test "x$LINE" != x ; then
14773                               eval "DEFAULT_$LINE"
14774                               cache=yes
14775                           else
14776                               cache=no
14777                           fi
14778
14779                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14780
14781 fi
14782
14783
14784           eval "$wx_cv_use_progressdlg"
14785           if test "x$cache" = xyes; then
14786             echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
14787           fi
14788
14789           if test x"$enablestring" = xdisable; then
14790             if test $wxUSE_PROGRESSDLG = yes; then
14791               result=no
14792             else
14793               result=yes
14794             fi
14795           else
14796             result=$wxUSE_PROGRESSDLG
14797           fi
14798
14799           { echo "$as_me:$LINENO: result: $result" >&5
14800 echo "${ECHO_T}$result" >&6; }
14801
14802
14803           enablestring=
14804           defaultval=$wxUSE_ALL_FEATURES
14805           if test -z "$defaultval"; then
14806               if test x"$enablestring" = xdisable; then
14807                   defaultval=yes
14808               else
14809                   defaultval=no
14810               fi
14811           fi
14812
14813           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14814 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14815           # Check whether --enable-wizarddlg was given.
14816 if test "${enable_wizarddlg+set}" = set; then
14817   enableval=$enable_wizarddlg;
14818                           if test "$enableval" = yes; then
14819                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14820                           else
14821                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14822                           fi
14823                           cache=yes
14824
14825 else
14826
14827                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14828                           if test "x$LINE" != x ; then
14829                               eval "DEFAULT_$LINE"
14830                               cache=yes
14831                           else
14832                               cache=no
14833                           fi
14834
14835                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14836
14837 fi
14838
14839
14840           eval "$wx_cv_use_wizarddlg"
14841           if test "x$cache" = xyes; then
14842             echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
14843           fi
14844
14845           if test x"$enablestring" = xdisable; then
14846             if test $wxUSE_WIZARDDLG = yes; then
14847               result=no
14848             else
14849               result=yes
14850             fi
14851           else
14852             result=$wxUSE_WIZARDDLG
14853           fi
14854
14855           { echo "$as_me:$LINENO: result: $result" >&5
14856 echo "${ECHO_T}$result" >&6; }
14857
14858
14859
14860
14861           enablestring=
14862           defaultval=$wxUSE_ALL_FEATURES
14863           if test -z "$defaultval"; then
14864               if test x"$enablestring" = xdisable; then
14865                   defaultval=yes
14866               else
14867                   defaultval=no
14868               fi
14869           fi
14870
14871           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
14872 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
14873           # Check whether --enable-menus was given.
14874 if test "${enable_menus+set}" = set; then
14875   enableval=$enable_menus;
14876                           if test "$enableval" = yes; then
14877                             wx_cv_use_menus='wxUSE_MENUS=yes'
14878                           else
14879                             wx_cv_use_menus='wxUSE_MENUS=no'
14880                           fi
14881                           cache=yes
14882
14883 else
14884
14885                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
14886                           if test "x$LINE" != x ; then
14887                               eval "DEFAULT_$LINE"
14888                               cache=yes
14889                           else
14890                               cache=no
14891                           fi
14892
14893                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
14894
14895 fi
14896
14897
14898           eval "$wx_cv_use_menus"
14899           if test "x$cache" = xyes; then
14900             echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
14901           fi
14902
14903           if test x"$enablestring" = xdisable; then
14904             if test $wxUSE_MENUS = yes; then
14905               result=no
14906             else
14907               result=yes
14908             fi
14909           else
14910             result=$wxUSE_MENUS
14911           fi
14912
14913           { echo "$as_me:$LINENO: result: $result" >&5
14914 echo "${ECHO_T}$result" >&6; }
14915
14916
14917           enablestring=
14918           defaultval=$wxUSE_ALL_FEATURES
14919           if test -z "$defaultval"; then
14920               if test x"$enablestring" = xdisable; then
14921                   defaultval=yes
14922               else
14923                   defaultval=no
14924               fi
14925           fi
14926
14927           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
14928 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
14929           # Check whether --enable-miniframe was given.
14930 if test "${enable_miniframe+set}" = set; then
14931   enableval=$enable_miniframe;
14932                           if test "$enableval" = yes; then
14933                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
14934                           else
14935                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
14936                           fi
14937                           cache=yes
14938
14939 else
14940
14941                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
14942                           if test "x$LINE" != x ; then
14943                               eval "DEFAULT_$LINE"
14944                               cache=yes
14945                           else
14946                               cache=no
14947                           fi
14948
14949                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
14950
14951 fi
14952
14953
14954           eval "$wx_cv_use_miniframe"
14955           if test "x$cache" = xyes; then
14956             echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
14957           fi
14958
14959           if test x"$enablestring" = xdisable; then
14960             if test $wxUSE_MINIFRAME = yes; then
14961               result=no
14962             else
14963               result=yes
14964             fi
14965           else
14966             result=$wxUSE_MINIFRAME
14967           fi
14968
14969           { echo "$as_me:$LINENO: result: $result" >&5
14970 echo "${ECHO_T}$result" >&6; }
14971
14972
14973           enablestring=
14974           defaultval=$wxUSE_ALL_FEATURES
14975           if test -z "$defaultval"; then
14976               if test x"$enablestring" = xdisable; then
14977                   defaultval=yes
14978               else
14979                   defaultval=no
14980               fi
14981           fi
14982
14983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
14984 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
14985           # Check whether --enable-tooltips was given.
14986 if test "${enable_tooltips+set}" = set; then
14987   enableval=$enable_tooltips;
14988                           if test "$enableval" = yes; then
14989                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
14990                           else
14991                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
14992                           fi
14993                           cache=yes
14994
14995 else
14996
14997                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
14998                           if test "x$LINE" != x ; then
14999                               eval "DEFAULT_$LINE"
15000                               cache=yes
15001                           else
15002                               cache=no
15003                           fi
15004
15005                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
15006
15007 fi
15008
15009
15010           eval "$wx_cv_use_tooltips"
15011           if test "x$cache" = xyes; then
15012             echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
15013           fi
15014
15015           if test x"$enablestring" = xdisable; then
15016             if test $wxUSE_TOOLTIPS = yes; then
15017               result=no
15018             else
15019               result=yes
15020             fi
15021           else
15022             result=$wxUSE_TOOLTIPS
15023           fi
15024
15025           { echo "$as_me:$LINENO: result: $result" >&5
15026 echo "${ECHO_T}$result" >&6; }
15027
15028
15029           enablestring=
15030           defaultval=$wxUSE_ALL_FEATURES
15031           if test -z "$defaultval"; then
15032               if test x"$enablestring" = xdisable; then
15033                   defaultval=yes
15034               else
15035                   defaultval=no
15036               fi
15037           fi
15038
15039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
15040 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
15041           # Check whether --enable-splines was given.
15042 if test "${enable_splines+set}" = set; then
15043   enableval=$enable_splines;
15044                           if test "$enableval" = yes; then
15045                             wx_cv_use_splines='wxUSE_SPLINES=yes'
15046                           else
15047                             wx_cv_use_splines='wxUSE_SPLINES=no'
15048                           fi
15049                           cache=yes
15050
15051 else
15052
15053                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
15054                           if test "x$LINE" != x ; then
15055                               eval "DEFAULT_$LINE"
15056                               cache=yes
15057                           else
15058                               cache=no
15059                           fi
15060
15061                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
15062
15063 fi
15064
15065
15066           eval "$wx_cv_use_splines"
15067           if test "x$cache" = xyes; then
15068             echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
15069           fi
15070
15071           if test x"$enablestring" = xdisable; then
15072             if test $wxUSE_SPLINES = yes; then
15073               result=no
15074             else
15075               result=yes
15076             fi
15077           else
15078             result=$wxUSE_SPLINES
15079           fi
15080
15081           { echo "$as_me:$LINENO: result: $result" >&5
15082 echo "${ECHO_T}$result" >&6; }
15083
15084
15085           enablestring=
15086           defaultval=$wxUSE_ALL_FEATURES
15087           if test -z "$defaultval"; then
15088               if test x"$enablestring" = xdisable; then
15089                   defaultval=yes
15090               else
15091                   defaultval=no
15092               fi
15093           fi
15094
15095           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
15096 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
15097           # Check whether --enable-mousewheel was given.
15098 if test "${enable_mousewheel+set}" = set; then
15099   enableval=$enable_mousewheel;
15100                           if test "$enableval" = yes; then
15101                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
15102                           else
15103                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
15104                           fi
15105                           cache=yes
15106
15107 else
15108
15109                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
15110                           if test "x$LINE" != x ; then
15111                               eval "DEFAULT_$LINE"
15112                               cache=yes
15113                           else
15114                               cache=no
15115                           fi
15116
15117                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
15118
15119 fi
15120
15121
15122           eval "$wx_cv_use_mousewheel"
15123           if test "x$cache" = xyes; then
15124             echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
15125           fi
15126
15127           if test x"$enablestring" = xdisable; then
15128             if test $wxUSE_MOUSEWHEEL = yes; then
15129               result=no
15130             else
15131               result=yes
15132             fi
15133           else
15134             result=$wxUSE_MOUSEWHEEL
15135           fi
15136
15137           { echo "$as_me:$LINENO: result: $result" >&5
15138 echo "${ECHO_T}$result" >&6; }
15139
15140
15141           enablestring=
15142           defaultval=$wxUSE_ALL_FEATURES
15143           if test -z "$defaultval"; then
15144               if test x"$enablestring" = xdisable; then
15145                   defaultval=yes
15146               else
15147                   defaultval=no
15148               fi
15149           fi
15150
15151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
15152 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
15153           # Check whether --enable-validators was given.
15154 if test "${enable_validators+set}" = set; then
15155   enableval=$enable_validators;
15156                           if test "$enableval" = yes; then
15157                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
15158                           else
15159                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
15160                           fi
15161                           cache=yes
15162
15163 else
15164
15165                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
15166                           if test "x$LINE" != x ; then
15167                               eval "DEFAULT_$LINE"
15168                               cache=yes
15169                           else
15170                               cache=no
15171                           fi
15172
15173                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
15174
15175 fi
15176
15177
15178           eval "$wx_cv_use_validators"
15179           if test "x$cache" = xyes; then
15180             echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
15181           fi
15182
15183           if test x"$enablestring" = xdisable; then
15184             if test $wxUSE_VALIDATORS = yes; then
15185               result=no
15186             else
15187               result=yes
15188             fi
15189           else
15190             result=$wxUSE_VALIDATORS
15191           fi
15192
15193           { echo "$as_me:$LINENO: result: $result" >&5
15194 echo "${ECHO_T}$result" >&6; }
15195
15196
15197           enablestring=
15198           defaultval=$wxUSE_ALL_FEATURES
15199           if test -z "$defaultval"; then
15200               if test x"$enablestring" = xdisable; then
15201                   defaultval=yes
15202               else
15203                   defaultval=no
15204               fi
15205           fi
15206
15207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
15208 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
15209           # Check whether --enable-busyinfo was given.
15210 if test "${enable_busyinfo+set}" = set; then
15211   enableval=$enable_busyinfo;
15212                           if test "$enableval" = yes; then
15213                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
15214                           else
15215                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
15216                           fi
15217                           cache=yes
15218
15219 else
15220
15221                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
15222                           if test "x$LINE" != x ; then
15223                               eval "DEFAULT_$LINE"
15224                               cache=yes
15225                           else
15226                               cache=no
15227                           fi
15228
15229                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
15230
15231 fi
15232
15233
15234           eval "$wx_cv_use_busyinfo"
15235           if test "x$cache" = xyes; then
15236             echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
15237           fi
15238
15239           if test x"$enablestring" = xdisable; then
15240             if test $wxUSE_BUSYINFO = yes; then
15241               result=no
15242             else
15243               result=yes
15244             fi
15245           else
15246             result=$wxUSE_BUSYINFO
15247           fi
15248
15249           { echo "$as_me:$LINENO: result: $result" >&5
15250 echo "${ECHO_T}$result" >&6; }
15251
15252
15253           enablestring=
15254           defaultval=$wxUSE_ALL_FEATURES
15255           if test -z "$defaultval"; then
15256               if test x"$enablestring" = xdisable; then
15257                   defaultval=yes
15258               else
15259                   defaultval=no
15260               fi
15261           fi
15262
15263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
15264 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
15265           # Check whether --enable-joystick was given.
15266 if test "${enable_joystick+set}" = set; then
15267   enableval=$enable_joystick;
15268                           if test "$enableval" = yes; then
15269                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
15270                           else
15271                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
15272                           fi
15273                           cache=yes
15274
15275 else
15276
15277                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
15278                           if test "x$LINE" != x ; then
15279                               eval "DEFAULT_$LINE"
15280                               cache=yes
15281                           else
15282                               cache=no
15283                           fi
15284
15285                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
15286
15287 fi
15288
15289
15290           eval "$wx_cv_use_joystick"
15291           if test "x$cache" = xyes; then
15292             echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
15293           fi
15294
15295           if test x"$enablestring" = xdisable; then
15296             if test $wxUSE_JOYSTICK = yes; then
15297               result=no
15298             else
15299               result=yes
15300             fi
15301           else
15302             result=$wxUSE_JOYSTICK
15303           fi
15304
15305           { echo "$as_me:$LINENO: result: $result" >&5
15306 echo "${ECHO_T}$result" >&6; }
15307
15308
15309           enablestring=
15310           defaultval=$wxUSE_ALL_FEATURES
15311           if test -z "$defaultval"; then
15312               if test x"$enablestring" = xdisable; then
15313                   defaultval=yes
15314               else
15315                   defaultval=no
15316               fi
15317           fi
15318
15319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
15320 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
15321           # Check whether --enable-metafile was given.
15322 if test "${enable_metafile+set}" = set; then
15323   enableval=$enable_metafile;
15324                           if test "$enableval" = yes; then
15325                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
15326                           else
15327                             wx_cv_use_metafile='wxUSE_METAFILE=no'
15328                           fi
15329                           cache=yes
15330
15331 else
15332
15333                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
15334                           if test "x$LINE" != x ; then
15335                               eval "DEFAULT_$LINE"
15336                               cache=yes
15337                           else
15338                               cache=no
15339                           fi
15340
15341                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
15342
15343 fi
15344
15345
15346           eval "$wx_cv_use_metafile"
15347           if test "x$cache" = xyes; then
15348             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
15349           fi
15350
15351           if test x"$enablestring" = xdisable; then
15352             if test $wxUSE_METAFILE = yes; then
15353               result=no
15354             else
15355               result=yes
15356             fi
15357           else
15358             result=$wxUSE_METAFILE
15359           fi
15360
15361           { echo "$as_me:$LINENO: result: $result" >&5
15362 echo "${ECHO_T}$result" >&6; }
15363
15364
15365           enablestring=
15366           defaultval=$wxUSE_ALL_FEATURES
15367           if test -z "$defaultval"; then
15368               if test x"$enablestring" = xdisable; then
15369                   defaultval=yes
15370               else
15371                   defaultval=no
15372               fi
15373           fi
15374
15375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
15376 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
15377           # Check whether --enable-dragimage was given.
15378 if test "${enable_dragimage+set}" = set; then
15379   enableval=$enable_dragimage;
15380                           if test "$enableval" = yes; then
15381                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
15382                           else
15383                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
15384                           fi
15385                           cache=yes
15386
15387 else
15388
15389                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
15390                           if test "x$LINE" != x ; then
15391                               eval "DEFAULT_$LINE"
15392                               cache=yes
15393                           else
15394                               cache=no
15395                           fi
15396
15397                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
15398
15399 fi
15400
15401
15402           eval "$wx_cv_use_dragimage"
15403           if test "x$cache" = xyes; then
15404             echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
15405           fi
15406
15407           if test x"$enablestring" = xdisable; then
15408             if test $wxUSE_DRAGIMAGE = yes; then
15409               result=no
15410             else
15411               result=yes
15412             fi
15413           else
15414             result=$wxUSE_DRAGIMAGE
15415           fi
15416
15417           { echo "$as_me:$LINENO: result: $result" >&5
15418 echo "${ECHO_T}$result" >&6; }
15419
15420
15421           enablestring=
15422           defaultval=$wxUSE_ALL_FEATURES
15423           if test -z "$defaultval"; then
15424               if test x"$enablestring" = xdisable; then
15425                   defaultval=yes
15426               else
15427                   defaultval=no
15428               fi
15429           fi
15430
15431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
15432 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
15433           # Check whether --enable-accessibility was given.
15434 if test "${enable_accessibility+set}" = set; then
15435   enableval=$enable_accessibility;
15436                           if test "$enableval" = yes; then
15437                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15438                           else
15439                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15440                           fi
15441                           cache=yes
15442
15443 else
15444
15445                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15446                           if test "x$LINE" != x ; then
15447                               eval "DEFAULT_$LINE"
15448                               cache=yes
15449                           else
15450                               cache=no
15451                           fi
15452
15453                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15454
15455 fi
15456
15457
15458           eval "$wx_cv_use_accessibility"
15459           if test "x$cache" = xyes; then
15460             echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
15461           fi
15462
15463           if test x"$enablestring" = xdisable; then
15464             if test $wxUSE_ACCESSIBILITY = yes; then
15465               result=no
15466             else
15467               result=yes
15468             fi
15469           else
15470             result=$wxUSE_ACCESSIBILITY
15471           fi
15472
15473           { echo "$as_me:$LINENO: result: $result" >&5
15474 echo "${ECHO_T}$result" >&6; }
15475
15476
15477
15478
15479           enablestring=
15480           defaultval=$wxUSE_ALL_FEATURES
15481           if test -z "$defaultval"; then
15482               if test x"$enablestring" = xdisable; then
15483                   defaultval=yes
15484               else
15485                   defaultval=no
15486               fi
15487           fi
15488
15489           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15490 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15491           # Check whether --enable-palette was given.
15492 if test "${enable_palette+set}" = set; then
15493   enableval=$enable_palette;
15494                           if test "$enableval" = yes; then
15495                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15496                           else
15497                             wx_cv_use_palette='wxUSE_PALETTE=no'
15498                           fi
15499                           cache=yes
15500
15501 else
15502
15503                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15504                           if test "x$LINE" != x ; then
15505                               eval "DEFAULT_$LINE"
15506                               cache=yes
15507                           else
15508                               cache=no
15509                           fi
15510
15511                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15512
15513 fi
15514
15515
15516           eval "$wx_cv_use_palette"
15517           if test "x$cache" = xyes; then
15518             echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
15519           fi
15520
15521           if test x"$enablestring" = xdisable; then
15522             if test $wxUSE_PALETTE = yes; then
15523               result=no
15524             else
15525               result=yes
15526             fi
15527           else
15528             result=$wxUSE_PALETTE
15529           fi
15530
15531           { echo "$as_me:$LINENO: result: $result" >&5
15532 echo "${ECHO_T}$result" >&6; }
15533
15534
15535           enablestring=
15536           defaultval=$wxUSE_ALL_FEATURES
15537           if test -z "$defaultval"; then
15538               if test x"$enablestring" = xdisable; then
15539                   defaultval=yes
15540               else
15541                   defaultval=no
15542               fi
15543           fi
15544
15545           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15546 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15547           # Check whether --enable-image was given.
15548 if test "${enable_image+set}" = set; then
15549   enableval=$enable_image;
15550                           if test "$enableval" = yes; then
15551                             wx_cv_use_image='wxUSE_IMAGE=yes'
15552                           else
15553                             wx_cv_use_image='wxUSE_IMAGE=no'
15554                           fi
15555                           cache=yes
15556
15557 else
15558
15559                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15560                           if test "x$LINE" != x ; then
15561                               eval "DEFAULT_$LINE"
15562                               cache=yes
15563                           else
15564                               cache=no
15565                           fi
15566
15567                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15568
15569 fi
15570
15571
15572           eval "$wx_cv_use_image"
15573           if test "x$cache" = xyes; then
15574             echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
15575           fi
15576
15577           if test x"$enablestring" = xdisable; then
15578             if test $wxUSE_IMAGE = yes; then
15579               result=no
15580             else
15581               result=yes
15582             fi
15583           else
15584             result=$wxUSE_IMAGE
15585           fi
15586
15587           { echo "$as_me:$LINENO: result: $result" >&5
15588 echo "${ECHO_T}$result" >&6; }
15589
15590
15591           enablestring=
15592           defaultval=$wxUSE_ALL_FEATURES
15593           if test -z "$defaultval"; then
15594               if test x"$enablestring" = xdisable; then
15595                   defaultval=yes
15596               else
15597                   defaultval=no
15598               fi
15599           fi
15600
15601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15602 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15603           # Check whether --enable-gif was given.
15604 if test "${enable_gif+set}" = set; then
15605   enableval=$enable_gif;
15606                           if test "$enableval" = yes; then
15607                             wx_cv_use_gif='wxUSE_GIF=yes'
15608                           else
15609                             wx_cv_use_gif='wxUSE_GIF=no'
15610                           fi
15611                           cache=yes
15612
15613 else
15614
15615                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15616                           if test "x$LINE" != x ; then
15617                               eval "DEFAULT_$LINE"
15618                               cache=yes
15619                           else
15620                               cache=no
15621                           fi
15622
15623                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15624
15625 fi
15626
15627
15628           eval "$wx_cv_use_gif"
15629           if test "x$cache" = xyes; then
15630             echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
15631           fi
15632
15633           if test x"$enablestring" = xdisable; then
15634             if test $wxUSE_GIF = yes; then
15635               result=no
15636             else
15637               result=yes
15638             fi
15639           else
15640             result=$wxUSE_GIF
15641           fi
15642
15643           { echo "$as_me:$LINENO: result: $result" >&5
15644 echo "${ECHO_T}$result" >&6; }
15645
15646
15647           enablestring=
15648           defaultval=$wxUSE_ALL_FEATURES
15649           if test -z "$defaultval"; then
15650               if test x"$enablestring" = xdisable; then
15651                   defaultval=yes
15652               else
15653                   defaultval=no
15654               fi
15655           fi
15656
15657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15658 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15659           # Check whether --enable-pcx was given.
15660 if test "${enable_pcx+set}" = set; then
15661   enableval=$enable_pcx;
15662                           if test "$enableval" = yes; then
15663                             wx_cv_use_pcx='wxUSE_PCX=yes'
15664                           else
15665                             wx_cv_use_pcx='wxUSE_PCX=no'
15666                           fi
15667                           cache=yes
15668
15669 else
15670
15671                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15672                           if test "x$LINE" != x ; then
15673                               eval "DEFAULT_$LINE"
15674                               cache=yes
15675                           else
15676                               cache=no
15677                           fi
15678
15679                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15680
15681 fi
15682
15683
15684           eval "$wx_cv_use_pcx"
15685           if test "x$cache" = xyes; then
15686             echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
15687           fi
15688
15689           if test x"$enablestring" = xdisable; then
15690             if test $wxUSE_PCX = yes; then
15691               result=no
15692             else
15693               result=yes
15694             fi
15695           else
15696             result=$wxUSE_PCX
15697           fi
15698
15699           { echo "$as_me:$LINENO: result: $result" >&5
15700 echo "${ECHO_T}$result" >&6; }
15701
15702
15703           enablestring=
15704           defaultval=$wxUSE_ALL_FEATURES
15705           if test -z "$defaultval"; then
15706               if test x"$enablestring" = xdisable; then
15707                   defaultval=yes
15708               else
15709                   defaultval=no
15710               fi
15711           fi
15712
15713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15714 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15715           # Check whether --enable-tga was given.
15716 if test "${enable_tga+set}" = set; then
15717   enableval=$enable_tga;
15718                           if test "$enableval" = yes; then
15719                             wx_cv_use_tga='wxUSE_TGA=yes'
15720                           else
15721                             wx_cv_use_tga='wxUSE_TGA=no'
15722                           fi
15723                           cache=yes
15724
15725 else
15726
15727                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15728                           if test "x$LINE" != x ; then
15729                               eval "DEFAULT_$LINE"
15730                               cache=yes
15731                           else
15732                               cache=no
15733                           fi
15734
15735                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15736
15737 fi
15738
15739
15740           eval "$wx_cv_use_tga"
15741           if test "x$cache" = xyes; then
15742             echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
15743           fi
15744
15745           if test x"$enablestring" = xdisable; then
15746             if test $wxUSE_TGA = yes; then
15747               result=no
15748             else
15749               result=yes
15750             fi
15751           else
15752             result=$wxUSE_TGA
15753           fi
15754
15755           { echo "$as_me:$LINENO: result: $result" >&5
15756 echo "${ECHO_T}$result" >&6; }
15757
15758
15759           enablestring=
15760           defaultval=$wxUSE_ALL_FEATURES
15761           if test -z "$defaultval"; then
15762               if test x"$enablestring" = xdisable; then
15763                   defaultval=yes
15764               else
15765                   defaultval=no
15766               fi
15767           fi
15768
15769           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15770 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15771           # Check whether --enable-iff was given.
15772 if test "${enable_iff+set}" = set; then
15773   enableval=$enable_iff;
15774                           if test "$enableval" = yes; then
15775                             wx_cv_use_iff='wxUSE_IFF=yes'
15776                           else
15777                             wx_cv_use_iff='wxUSE_IFF=no'
15778                           fi
15779                           cache=yes
15780
15781 else
15782
15783                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15784                           if test "x$LINE" != x ; then
15785                               eval "DEFAULT_$LINE"
15786                               cache=yes
15787                           else
15788                               cache=no
15789                           fi
15790
15791                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15792
15793 fi
15794
15795
15796           eval "$wx_cv_use_iff"
15797           if test "x$cache" = xyes; then
15798             echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
15799           fi
15800
15801           if test x"$enablestring" = xdisable; then
15802             if test $wxUSE_IFF = yes; then
15803               result=no
15804             else
15805               result=yes
15806             fi
15807           else
15808             result=$wxUSE_IFF
15809           fi
15810
15811           { echo "$as_me:$LINENO: result: $result" >&5
15812 echo "${ECHO_T}$result" >&6; }
15813
15814
15815           enablestring=
15816           defaultval=$wxUSE_ALL_FEATURES
15817           if test -z "$defaultval"; then
15818               if test x"$enablestring" = xdisable; then
15819                   defaultval=yes
15820               else
15821                   defaultval=no
15822               fi
15823           fi
15824
15825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15826 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15827           # Check whether --enable-pnm was given.
15828 if test "${enable_pnm+set}" = set; then
15829   enableval=$enable_pnm;
15830                           if test "$enableval" = yes; then
15831                             wx_cv_use_pnm='wxUSE_PNM=yes'
15832                           else
15833                             wx_cv_use_pnm='wxUSE_PNM=no'
15834                           fi
15835                           cache=yes
15836
15837 else
15838
15839                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
15840                           if test "x$LINE" != x ; then
15841                               eval "DEFAULT_$LINE"
15842                               cache=yes
15843                           else
15844                               cache=no
15845                           fi
15846
15847                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
15848
15849 fi
15850
15851
15852           eval "$wx_cv_use_pnm"
15853           if test "x$cache" = xyes; then
15854             echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
15855           fi
15856
15857           if test x"$enablestring" = xdisable; then
15858             if test $wxUSE_PNM = yes; then
15859               result=no
15860             else
15861               result=yes
15862             fi
15863           else
15864             result=$wxUSE_PNM
15865           fi
15866
15867           { echo "$as_me:$LINENO: result: $result" >&5
15868 echo "${ECHO_T}$result" >&6; }
15869
15870
15871           enablestring=
15872           defaultval=$wxUSE_ALL_FEATURES
15873           if test -z "$defaultval"; then
15874               if test x"$enablestring" = xdisable; then
15875                   defaultval=yes
15876               else
15877                   defaultval=no
15878               fi
15879           fi
15880
15881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
15882 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
15883           # Check whether --enable-xpm was given.
15884 if test "${enable_xpm+set}" = set; then
15885   enableval=$enable_xpm;
15886                           if test "$enableval" = yes; then
15887                             wx_cv_use_xpm='wxUSE_XPM=yes'
15888                           else
15889                             wx_cv_use_xpm='wxUSE_XPM=no'
15890                           fi
15891                           cache=yes
15892
15893 else
15894
15895                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
15896                           if test "x$LINE" != x ; then
15897                               eval "DEFAULT_$LINE"
15898                               cache=yes
15899                           else
15900                               cache=no
15901                           fi
15902
15903                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
15904
15905 fi
15906
15907
15908           eval "$wx_cv_use_xpm"
15909           if test "x$cache" = xyes; then
15910             echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
15911           fi
15912
15913           if test x"$enablestring" = xdisable; then
15914             if test $wxUSE_XPM = yes; then
15915               result=no
15916             else
15917               result=yes
15918             fi
15919           else
15920             result=$wxUSE_XPM
15921           fi
15922
15923           { echo "$as_me:$LINENO: result: $result" >&5
15924 echo "${ECHO_T}$result" >&6; }
15925
15926
15927           enablestring=
15928           defaultval=$wxUSE_ALL_FEATURES
15929           if test -z "$defaultval"; then
15930               if test x"$enablestring" = xdisable; then
15931                   defaultval=yes
15932               else
15933                   defaultval=no
15934               fi
15935           fi
15936
15937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
15938 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
15939           # Check whether --enable-ico_cur was given.
15940 if test "${enable_ico_cur+set}" = set; then
15941   enableval=$enable_ico_cur;
15942                           if test "$enableval" = yes; then
15943                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
15944                           else
15945                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
15946                           fi
15947                           cache=yes
15948
15949 else
15950
15951                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
15952                           if test "x$LINE" != x ; then
15953                               eval "DEFAULT_$LINE"
15954                               cache=yes
15955                           else
15956                               cache=no
15957                           fi
15958
15959                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
15960
15961 fi
15962
15963
15964           eval "$wx_cv_use_ico_cur"
15965           if test "x$cache" = xyes; then
15966             echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
15967           fi
15968
15969           if test x"$enablestring" = xdisable; then
15970             if test $wxUSE_ICO_CUR = yes; then
15971               result=no
15972             else
15973               result=yes
15974             fi
15975           else
15976             result=$wxUSE_ICO_CUR
15977           fi
15978
15979           { echo "$as_me:$LINENO: result: $result" >&5
15980 echo "${ECHO_T}$result" >&6; }
15981
15982
15983
15984
15985           enablestring=
15986           defaultval=$wxUSE_ALL_FEATURES
15987           if test -z "$defaultval"; then
15988               if test x"$enablestring" = xdisable; then
15989                   defaultval=yes
15990               else
15991                   defaultval=no
15992               fi
15993           fi
15994
15995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
15996 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
15997           # Check whether --enable-dccache was given.
15998 if test "${enable_dccache+set}" = set; then
15999   enableval=$enable_dccache;
16000                           if test "$enableval" = yes; then
16001                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
16002                           else
16003                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
16004                           fi
16005                           cache=yes
16006
16007 else
16008
16009                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
16010                           if test "x$LINE" != x ; then
16011                               eval "DEFAULT_$LINE"
16012                               cache=yes
16013                           else
16014                               cache=no
16015                           fi
16016
16017                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
16018
16019 fi
16020
16021
16022           eval "$wx_cv_use_dccache"
16023           if test "x$cache" = xyes; then
16024             echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
16025           fi
16026
16027           if test x"$enablestring" = xdisable; then
16028             if test $wxUSE_DC_CACHEING = yes; then
16029               result=no
16030             else
16031               result=yes
16032             fi
16033           else
16034             result=$wxUSE_DC_CACHEING
16035           fi
16036
16037           { echo "$as_me:$LINENO: result: $result" >&5
16038 echo "${ECHO_T}$result" >&6; }
16039
16040
16041           enablestring=
16042           defaultval=
16043           if test -z "$defaultval"; then
16044               if test x"$enablestring" = xdisable; then
16045                   defaultval=yes
16046               else
16047                   defaultval=no
16048               fi
16049           fi
16050
16051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
16052 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
16053           # Check whether --enable-iniconf was given.
16054 if test "${enable_iniconf+set}" = set; then
16055   enableval=$enable_iniconf;
16056                           if test "$enableval" = yes; then
16057                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
16058                           else
16059                             wx_cv_use_iniconf='wxUSE_INICONF=no'
16060                           fi
16061                           cache=yes
16062
16063 else
16064
16065                           LINE=`grep "^wxUSE_INICONF=" ${wx_arg_cache_file}`
16066                           if test "x$LINE" != x ; then
16067                               eval "DEFAULT_$LINE"
16068                               cache=yes
16069                           else
16070                               cache=no
16071                           fi
16072
16073                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
16074
16075 fi
16076
16077
16078           eval "$wx_cv_use_iniconf"
16079           if test "x$cache" = xyes; then
16080             echo "wxUSE_INICONF=$wxUSE_INICONF" >> ${wx_arg_cache_file}.tmp
16081           fi
16082
16083           if test x"$enablestring" = xdisable; then
16084             if test $wxUSE_INICONF = yes; then
16085               result=no
16086             else
16087               result=yes
16088             fi
16089           else
16090             result=$wxUSE_INICONF
16091           fi
16092
16093           { echo "$as_me:$LINENO: result: $result" >&5
16094 echo "${ECHO_T}$result" >&6; }
16095
16096
16097           enablestring=
16098           defaultval=$wxUSE_ALL_FEATURES
16099           if test -z "$defaultval"; then
16100               if test x"$enablestring" = xdisable; then
16101                   defaultval=yes
16102               else
16103                   defaultval=no
16104               fi
16105           fi
16106
16107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
16108 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
16109           # Check whether --enable-ps-in-msw was given.
16110 if test "${enable_ps_in_msw+set}" = set; then
16111   enableval=$enable_ps_in_msw;
16112                           if test "$enableval" = yes; then
16113                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
16114                           else
16115                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
16116                           fi
16117                           cache=yes
16118
16119 else
16120
16121                           LINE=`grep "^wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=" ${wx_arg_cache_file}`
16122                           if test "x$LINE" != x ; then
16123                               eval "DEFAULT_$LINE"
16124                               cache=yes
16125                           else
16126                               cache=no
16127                           fi
16128
16129                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
16130
16131 fi
16132
16133
16134           eval "$wx_cv_use_ps_in_msw"
16135           if test "x$cache" = xyes; then
16136             echo "wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" >> ${wx_arg_cache_file}.tmp
16137           fi
16138
16139           if test x"$enablestring" = xdisable; then
16140             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
16141               result=no
16142             else
16143               result=yes
16144             fi
16145           else
16146             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
16147           fi
16148
16149           { echo "$as_me:$LINENO: result: $result" >&5
16150 echo "${ECHO_T}$result" >&6; }
16151
16152
16153           enablestring=
16154           defaultval=$wxUSE_ALL_FEATURES
16155           if test -z "$defaultval"; then
16156               if test x"$enablestring" = xdisable; then
16157                   defaultval=yes
16158               else
16159                   defaultval=no
16160               fi
16161           fi
16162
16163           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
16164 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
16165           # Check whether --enable-ownerdrawn was given.
16166 if test "${enable_ownerdrawn+set}" = set; then
16167   enableval=$enable_ownerdrawn;
16168                           if test "$enableval" = yes; then
16169                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
16170                           else
16171                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
16172                           fi
16173                           cache=yes
16174
16175 else
16176
16177                           LINE=`grep "^wxUSE_OWNER_DRAWN=" ${wx_arg_cache_file}`
16178                           if test "x$LINE" != x ; then
16179                               eval "DEFAULT_$LINE"
16180                               cache=yes
16181                           else
16182                               cache=no
16183                           fi
16184
16185                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
16186
16187 fi
16188
16189
16190           eval "$wx_cv_use_ownerdrawn"
16191           if test "x$cache" = xyes; then
16192             echo "wxUSE_OWNER_DRAWN=$wxUSE_OWNER_DRAWN" >> ${wx_arg_cache_file}.tmp
16193           fi
16194
16195           if test x"$enablestring" = xdisable; then
16196             if test $wxUSE_OWNER_DRAWN = yes; then
16197               result=no
16198             else
16199               result=yes
16200             fi
16201           else
16202             result=$wxUSE_OWNER_DRAWN
16203           fi
16204
16205           { echo "$as_me:$LINENO: result: $result" >&5
16206 echo "${ECHO_T}$result" >&6; }
16207
16208
16209           enablestring=
16210           defaultval=$wxUSE_ALL_FEATURES
16211           if test -z "$defaultval"; then
16212               if test x"$enablestring" = xdisable; then
16213                   defaultval=yes
16214               else
16215                   defaultval=no
16216               fi
16217           fi
16218
16219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
16220 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
16221           # Check whether --enable-regkey was given.
16222 if test "${enable_regkey+set}" = set; then
16223   enableval=$enable_regkey;
16224                           if test "$enableval" = yes; then
16225                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
16226                           else
16227                             wx_cv_use_regkey='wxUSE_REGKEY=no'
16228                           fi
16229                           cache=yes
16230
16231 else
16232
16233                           LINE=`grep "^wxUSE_REGKEY=" ${wx_arg_cache_file}`
16234                           if test "x$LINE" != x ; then
16235                               eval "DEFAULT_$LINE"
16236                               cache=yes
16237                           else
16238                               cache=no
16239                           fi
16240
16241                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
16242
16243 fi
16244
16245
16246           eval "$wx_cv_use_regkey"
16247           if test "x$cache" = xyes; then
16248             echo "wxUSE_REGKEY=$wxUSE_REGKEY" >> ${wx_arg_cache_file}.tmp
16249           fi
16250
16251           if test x"$enablestring" = xdisable; then
16252             if test $wxUSE_REGKEY = yes; then
16253               result=no
16254             else
16255               result=yes
16256             fi
16257           else
16258             result=$wxUSE_REGKEY
16259           fi
16260
16261           { echo "$as_me:$LINENO: result: $result" >&5
16262 echo "${ECHO_T}$result" >&6; }
16263
16264
16265           enablestring=
16266           defaultval=$wxUSE_ALL_FEATURES
16267           if test -z "$defaultval"; then
16268               if test x"$enablestring" = xdisable; then
16269                   defaultval=yes
16270               else
16271                   defaultval=no
16272               fi
16273           fi
16274
16275           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
16276 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
16277           # Check whether --enable-uxtheme was given.
16278 if test "${enable_uxtheme+set}" = set; then
16279   enableval=$enable_uxtheme;
16280                           if test "$enableval" = yes; then
16281                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
16282                           else
16283                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
16284                           fi
16285                           cache=yes
16286
16287 else
16288
16289                           LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
16290                           if test "x$LINE" != x ; then
16291                               eval "DEFAULT_$LINE"
16292                               cache=yes
16293                           else
16294                               cache=no
16295                           fi
16296
16297                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
16298
16299 fi
16300
16301
16302           eval "$wx_cv_use_uxtheme"
16303           if test "x$cache" = xyes; then
16304             echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
16305           fi
16306
16307           if test x"$enablestring" = xdisable; then
16308             if test $wxUSE_UXTHEME = yes; then
16309               result=no
16310             else
16311               result=yes
16312             fi
16313           else
16314             result=$wxUSE_UXTHEME
16315           fi
16316
16317           { echo "$as_me:$LINENO: result: $result" >&5
16318 echo "${ECHO_T}$result" >&6; }
16319
16320
16321           enablestring=
16322           defaultval=$wxUSE_ALL_FEATURES
16323           if test -z "$defaultval"; then
16324               if test x"$enablestring" = xdisable; then
16325                   defaultval=yes
16326               else
16327                   defaultval=no
16328               fi
16329           fi
16330
16331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
16332 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
16333           # Check whether --enable-wxdib was given.
16334 if test "${enable_wxdib+set}" = set; then
16335   enableval=$enable_wxdib;
16336                           if test "$enableval" = yes; then
16337                             wx_cv_use_wxdib='wxUSE_DIB=yes'
16338                           else
16339                             wx_cv_use_wxdib='wxUSE_DIB=no'
16340                           fi
16341                           cache=yes
16342
16343 else
16344
16345                           LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
16346                           if test "x$LINE" != x ; then
16347                               eval "DEFAULT_$LINE"
16348                               cache=yes
16349                           else
16350                               cache=no
16351                           fi
16352
16353                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
16354
16355 fi
16356
16357
16358           eval "$wx_cv_use_wxdib"
16359           if test "x$cache" = xyes; then
16360             echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
16361           fi
16362
16363           if test x"$enablestring" = xdisable; then
16364             if test $wxUSE_DIB = yes; then
16365               result=no
16366             else
16367               result=yes
16368             fi
16369           else
16370             result=$wxUSE_DIB
16371           fi
16372
16373           { echo "$as_me:$LINENO: result: $result" >&5
16374 echo "${ECHO_T}$result" >&6; }
16375
16376
16377 fi
16378
16379
16380           echo "saving argument cache $wx_arg_cache_file"
16381           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
16382
16383
16384
16385 { echo "$as_me:$LINENO: checking for toolkit" >&5
16386 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
16387
16388 # In Wine, we need to default to MSW, not GTK or MOTIF
16389 if test "$wxUSE_WINE" = "yes"; then
16390     DEFAULT_DEFAULT_wxUSE_GTK=0
16391     DEFAULT_DEFAULT_wxUSE_MOTIF=0
16392     DEFAULT_DEFAULT_wxUSE_MSW=1
16393     wxUSE_SHARED=no
16394     CC=${CC:-winegcc}
16395     CXX=${CXX:-wineg++}
16396 fi
16397
16398
16399 if test "$wxUSE_GUI" = "yes"; then
16400
16401     if test "$USE_BEOS" = 1; then
16402         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
16403 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
16404    { (exit 1); exit 1; }; }
16405     fi
16406
16407     if test "$TOOLKIT_GIVEN" = 1; then
16408             for toolkit in `echo $ALL_TOOLKITS`; do
16409         var=wxUSE_$toolkit
16410         eval "value=\$${var}"
16411         if test "x$value" = "xno"; then
16412           eval "$var=0"
16413         elif test "x$value" != "x"; then
16414           eval "$var=1"
16415         fi
16416
16417         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
16418           eval "wx${toolkit}_VERSION=$value"
16419         fi
16420       done
16421     else
16422             for toolkit in `echo $ALL_TOOLKITS`; do
16423         if test "$has_toolkit_in_cache" != 1; then
16424           var=DEFAULT_DEFAULT_wxUSE_$toolkit
16425         else
16426           var=DEFAULT_wxUSE_$toolkit
16427
16428           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
16429           if test "x$version" != "x"; then
16430             eval "wx${toolkit}_VERSION=$version"
16431           fi
16432         fi
16433         eval "wxUSE_$toolkit=\$${var}"
16434       done
16435     fi
16436
16437             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
16438                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
16439                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
16440
16441         case "${host}" in
16442       *-pc-os2_emx | *-pc-os2-emx )
16443         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
16444     esac
16445
16446     case "$NUM_TOOLKITS" in
16447       1)
16448       ;;
16449       0)
16450         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
16451 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
16452    { (exit 1); exit 1; }; }
16453       ;;
16454       *)
16455         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
16456 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
16457    { (exit 1); exit 1; }; }
16458     esac
16459
16460     # to be removed when --disable-gtk2 isn't needed
16461     if test "x$wxUSE_GTK2" = "xyes"; then
16462         wxGTK_VERSION=2
16463     elif test "x$wxUSE_GTK2" = "xno"; then
16464         wxGTK_VERSION=1
16465     fi
16466
16467         for toolkit in `echo $ALL_TOOLKITS`; do
16468       var=wxUSE_$toolkit
16469       eval "value=\$${var}"
16470       if test "x$value" != x; then
16471         cache_var=CACHE_$toolkit
16472         eval "cache=\$${cache_var}"
16473         if test "$cache" = 1; then
16474           echo "$var=$value" >> ${wx_arg_cache_file}
16475           eval "version=\$wx${toolkit}_VERSION"
16476           if test "x$version" != "x"; then
16477             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
16478           fi
16479         fi
16480         if test "$value" = 1; then
16481           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
16482           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
16483 echo "${ECHO_T}$toolkit_echo" >&6; }
16484         fi
16485       fi
16486     done
16487 else
16488     if test "x$host_alias" != "x"; then
16489         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
16490 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
16491     else
16492         { echo "$as_me:$LINENO: result: base only" >&5
16493 echo "${ECHO_T}base only" >&6; }
16494     fi
16495 fi
16496
16497
16498 cat >confcache <<\_ACEOF
16499 # This file is a shell script that caches the results of configure
16500 # tests run on this system so they can be shared between configure
16501 # scripts and configure runs, see configure's option --config-cache.
16502 # It is not useful on other systems.  If it contains results you don't
16503 # want to keep, you may remove or edit it.
16504 #
16505 # config.status only pays attention to the cache file if you give it
16506 # the --recheck option to rerun configure.
16507 #
16508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16510 # following values.
16511
16512 _ACEOF
16513
16514 # The following way of writing the cache mishandles newlines in values,
16515 # but we know of no workaround that is simple, portable, and efficient.
16516 # So, we kill variables containing newlines.
16517 # Ultrix sh set writes to stderr and can't be redirected directly,
16518 # and sets the high bit in the cache file unless we assign to the vars.
16519 (
16520   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16521     eval ac_val=\$$ac_var
16522     case $ac_val in #(
16523     *${as_nl}*)
16524       case $ac_var in #(
16525       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16527       esac
16528       case $ac_var in #(
16529       _ | IFS | as_nl) ;; #(
16530       *) $as_unset $ac_var ;;
16531       esac ;;
16532     esac
16533   done
16534
16535   (set) 2>&1 |
16536     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16537     *${as_nl}ac_space=\ *)
16538       # `set' does not quote correctly, so add quotes (double-quote
16539       # substitution turns \\\\ into \\, and sed turns \\ into \).
16540       sed -n \
16541         "s/'/'\\\\''/g;
16542           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16543       ;; #(
16544     *)
16545       # `set' quotes correctly as required by POSIX, so do not add quotes.
16546       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16547       ;;
16548     esac |
16549     sort
16550 ) |
16551   sed '
16552      /^ac_cv_env_/b end
16553      t clear
16554      :clear
16555      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16556      t end
16557      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16558      :end' >>confcache
16559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16560   if test -w "$cache_file"; then
16561     test "x$cache_file" != "x/dev/null" &&
16562       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16563 echo "$as_me: updating cache $cache_file" >&6;}
16564     cat confcache >$cache_file
16565   else
16566     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16567 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16568   fi
16569 fi
16570 rm -f confcache
16571
16572 CFLAGS=${CFLAGS:=}
16573
16574
16575
16576     ac_ext=c
16577 ac_cpp='$CPP $CPPFLAGS'
16578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16581 if test -n "$ac_tool_prefix"; then
16582   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16583 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16586 if test "${ac_cv_prog_CC+set}" = set; then
16587   echo $ECHO_N "(cached) $ECHO_C" >&6
16588 else
16589   if test -n "$CC"; then
16590   ac_cv_prog_CC="$CC" # Let the user override the test.
16591 else
16592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16593 for as_dir in $PATH
16594 do
16595   IFS=$as_save_IFS
16596   test -z "$as_dir" && as_dir=.
16597   for ac_exec_ext in '' $ac_executable_extensions; do
16598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16599     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16601     break 2
16602   fi
16603 done
16604 done
16605 IFS=$as_save_IFS
16606
16607 fi
16608 fi
16609 CC=$ac_cv_prog_CC
16610 if test -n "$CC"; then
16611   { echo "$as_me:$LINENO: result: $CC" >&5
16612 echo "${ECHO_T}$CC" >&6; }
16613 else
16614   { echo "$as_me:$LINENO: result: no" >&5
16615 echo "${ECHO_T}no" >&6; }
16616 fi
16617
16618
16619 fi
16620 if test -z "$ac_cv_prog_CC"; then
16621   ac_ct_CC=$CC
16622   # Extract the first word of "gcc", so it can be a program name with args.
16623 set dummy gcc; ac_word=$2
16624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16627   echo $ECHO_N "(cached) $ECHO_C" >&6
16628 else
16629   if test -n "$ac_ct_CC"; then
16630   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16631 else
16632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16633 for as_dir in $PATH
16634 do
16635   IFS=$as_save_IFS
16636   test -z "$as_dir" && as_dir=.
16637   for ac_exec_ext in '' $ac_executable_extensions; do
16638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16639     ac_cv_prog_ac_ct_CC="gcc"
16640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16641     break 2
16642   fi
16643 done
16644 done
16645 IFS=$as_save_IFS
16646
16647 fi
16648 fi
16649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16650 if test -n "$ac_ct_CC"; then
16651   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16652 echo "${ECHO_T}$ac_ct_CC" >&6; }
16653 else
16654   { echo "$as_me:$LINENO: result: no" >&5
16655 echo "${ECHO_T}no" >&6; }
16656 fi
16657
16658   if test "x$ac_ct_CC" = x; then
16659     CC=""
16660   else
16661     case $cross_compiling:$ac_tool_warned in
16662 yes:)
16663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16664 whose name does not start with the host triplet.  If you think this
16665 configuration is useful to you, please write to autoconf@gnu.org." >&5
16666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16667 whose name does not start with the host triplet.  If you think this
16668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16669 ac_tool_warned=yes ;;
16670 esac
16671     CC=$ac_ct_CC
16672   fi
16673 else
16674   CC="$ac_cv_prog_CC"
16675 fi
16676
16677 if test -z "$CC"; then
16678           if test -n "$ac_tool_prefix"; then
16679     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16680 set dummy ${ac_tool_prefix}cc; ac_word=$2
16681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16683 if test "${ac_cv_prog_CC+set}" = set; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   if test -n "$CC"; then
16687   ac_cv_prog_CC="$CC" # Let the user override the test.
16688 else
16689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16690 for as_dir in $PATH
16691 do
16692   IFS=$as_save_IFS
16693   test -z "$as_dir" && as_dir=.
16694   for ac_exec_ext in '' $ac_executable_extensions; do
16695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16696     ac_cv_prog_CC="${ac_tool_prefix}cc"
16697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16698     break 2
16699   fi
16700 done
16701 done
16702 IFS=$as_save_IFS
16703
16704 fi
16705 fi
16706 CC=$ac_cv_prog_CC
16707 if test -n "$CC"; then
16708   { echo "$as_me:$LINENO: result: $CC" >&5
16709 echo "${ECHO_T}$CC" >&6; }
16710 else
16711   { echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6; }
16713 fi
16714
16715
16716   fi
16717 fi
16718 if test -z "$CC"; then
16719   # Extract the first word of "cc", so it can be a program name with args.
16720 set dummy cc; ac_word=$2
16721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16723 if test "${ac_cv_prog_CC+set}" = set; then
16724   echo $ECHO_N "(cached) $ECHO_C" >&6
16725 else
16726   if test -n "$CC"; then
16727   ac_cv_prog_CC="$CC" # Let the user override the test.
16728 else
16729   ac_prog_rejected=no
16730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16731 for as_dir in $PATH
16732 do
16733   IFS=$as_save_IFS
16734   test -z "$as_dir" && as_dir=.
16735   for ac_exec_ext in '' $ac_executable_extensions; do
16736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16737     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16738        ac_prog_rejected=yes
16739        continue
16740      fi
16741     ac_cv_prog_CC="cc"
16742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16743     break 2
16744   fi
16745 done
16746 done
16747 IFS=$as_save_IFS
16748
16749 if test $ac_prog_rejected = yes; then
16750   # We found a bogon in the path, so make sure we never use it.
16751   set dummy $ac_cv_prog_CC
16752   shift
16753   if test $# != 0; then
16754     # We chose a different compiler from the bogus one.
16755     # However, it has the same basename, so the bogon will be chosen
16756     # first if we set CC to just the basename; use the full file name.
16757     shift
16758     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16759   fi
16760 fi
16761 fi
16762 fi
16763 CC=$ac_cv_prog_CC
16764 if test -n "$CC"; then
16765   { echo "$as_me:$LINENO: result: $CC" >&5
16766 echo "${ECHO_T}$CC" >&6; }
16767 else
16768   { echo "$as_me:$LINENO: result: no" >&5
16769 echo "${ECHO_T}no" >&6; }
16770 fi
16771
16772
16773 fi
16774 if test -z "$CC"; then
16775   if test -n "$ac_tool_prefix"; then
16776   for ac_prog in cl.exe
16777   do
16778     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16782 if test "${ac_cv_prog_CC+set}" = set; then
16783   echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785   if test -n "$CC"; then
16786   ac_cv_prog_CC="$CC" # Let the user override the test.
16787 else
16788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16789 for as_dir in $PATH
16790 do
16791   IFS=$as_save_IFS
16792   test -z "$as_dir" && as_dir=.
16793   for ac_exec_ext in '' $ac_executable_extensions; do
16794   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16795     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16797     break 2
16798   fi
16799 done
16800 done
16801 IFS=$as_save_IFS
16802
16803 fi
16804 fi
16805 CC=$ac_cv_prog_CC
16806 if test -n "$CC"; then
16807   { echo "$as_me:$LINENO: result: $CC" >&5
16808 echo "${ECHO_T}$CC" >&6; }
16809 else
16810   { echo "$as_me:$LINENO: result: no" >&5
16811 echo "${ECHO_T}no" >&6; }
16812 fi
16813
16814
16815     test -n "$CC" && break
16816   done
16817 fi
16818 if test -z "$CC"; then
16819   ac_ct_CC=$CC
16820   for ac_prog in cl.exe
16821 do
16822   # Extract the first word of "$ac_prog", so it can be a program name with args.
16823 set dummy $ac_prog; ac_word=$2
16824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   if test -n "$ac_ct_CC"; then
16830   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16831 else
16832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16833 for as_dir in $PATH
16834 do
16835   IFS=$as_save_IFS
16836   test -z "$as_dir" && as_dir=.
16837   for ac_exec_ext in '' $ac_executable_extensions; do
16838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16839     ac_cv_prog_ac_ct_CC="$ac_prog"
16840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16841     break 2
16842   fi
16843 done
16844 done
16845 IFS=$as_save_IFS
16846
16847 fi
16848 fi
16849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16850 if test -n "$ac_ct_CC"; then
16851   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16852 echo "${ECHO_T}$ac_ct_CC" >&6; }
16853 else
16854   { echo "$as_me:$LINENO: result: no" >&5
16855 echo "${ECHO_T}no" >&6; }
16856 fi
16857
16858
16859   test -n "$ac_ct_CC" && break
16860 done
16861
16862   if test "x$ac_ct_CC" = x; then
16863     CC=""
16864   else
16865     case $cross_compiling:$ac_tool_warned in
16866 yes:)
16867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16868 whose name does not start with the host triplet.  If you think this
16869 configuration is useful to you, please write to autoconf@gnu.org." >&5
16870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16871 whose name does not start with the host triplet.  If you think this
16872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16873 ac_tool_warned=yes ;;
16874 esac
16875     CC=$ac_ct_CC
16876   fi
16877 fi
16878
16879 fi
16880
16881
16882 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
16883 See \`config.log' for more details." >&5
16884 echo "$as_me: error: no acceptable C compiler found in \$PATH
16885 See \`config.log' for more details." >&2;}
16886    { (exit 1); exit 1; }; }
16887
16888 # Provide some information about the compiler.
16889 echo "$as_me:$LINENO: checking for C compiler version" >&5
16890 ac_compiler=`set X $ac_compile; echo $2`
16891 { (ac_try="$ac_compiler --version >&5"
16892 case "(($ac_try" in
16893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894   *) ac_try_echo=$ac_try;;
16895 esac
16896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897   (eval "$ac_compiler --version >&5") 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }
16901 { (ac_try="$ac_compiler -v >&5"
16902 case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907   (eval "$ac_compiler -v >&5") 2>&5
16908   ac_status=$?
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); }
16911 { (ac_try="$ac_compiler -V >&5"
16912 case "(($ac_try" in
16913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914   *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917   (eval "$ac_compiler -V >&5") 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }
16921
16922 cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928
16929 int
16930 main ()
16931 {
16932
16933   ;
16934   return 0;
16935 }
16936 _ACEOF
16937 ac_clean_files_save=$ac_clean_files
16938 ac_clean_files="$ac_clean_files a.out a.exe b.out"
16939 # Try to create an executable without -o first, disregard a.out.
16940 # It will help us diagnose broken compilers, and finding out an intuition
16941 # of exeext.
16942 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
16943 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
16944 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
16945 #
16946 # List of possible output files, starting from the most likely.
16947 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
16948 # only as a last resort.  b.out is created by i960 compilers.
16949 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
16950 #
16951 # The IRIX 6 linker writes into existing files which may not be
16952 # executable, retaining their permissions.  Remove them first so a
16953 # subsequent execution test works.
16954 ac_rmfiles=
16955 for ac_file in $ac_files
16956 do
16957   case $ac_file in
16958     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16959     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
16960   esac
16961 done
16962 rm -f $ac_rmfiles
16963
16964 if { (ac_try="$ac_link_default"
16965 case "(($ac_try" in
16966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967   *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970   (eval "$ac_link_default") 2>&5
16971   ac_status=$?
16972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); }; then
16974   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
16975 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
16976 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
16977 # so that the user can short-circuit this test for compilers unknown to
16978 # Autoconf.
16979 for ac_file in $ac_files ''
16980 do
16981   test -f "$ac_file" || continue
16982   case $ac_file in
16983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
16984         ;;
16985     [ab].out )
16986         # We found the default executable, but exeext='' is most
16987         # certainly right.
16988         break;;
16989     *.* )
16990         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
16991         then :; else
16992            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16993         fi
16994         # We set ac_cv_exeext here because the later test for it is not
16995         # safe: cross compilers may not add the suffix if given an `-o'
16996         # argument, so we may need to know it at that point already.
16997         # Even if this section looks crufty: it has the advantage of
16998         # actually working.
16999         break;;
17000     * )
17001         break;;
17002   esac
17003 done
17004 test "$ac_cv_exeext" = no && ac_cv_exeext=
17005
17006 else
17007   ac_file=''
17008 fi
17009
17010 { echo "$as_me:$LINENO: result: $ac_file" >&5
17011 echo "${ECHO_T}$ac_file" >&6; }
17012 if test -z "$ac_file"; then
17013   echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
17017 See \`config.log' for more details." >&5
17018 echo "$as_me: error: C compiler cannot create executables
17019 See \`config.log' for more details." >&2;}
17020    { (exit 77); exit 77; }; }
17021 fi
17022
17023 ac_exeext=$ac_cv_exeext
17024
17025 # Check that the compiler produces executables we can run.  If not, either
17026 # the compiler is broken, or we cross compile.
17027 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
17028 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
17029 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
17030 # If not cross compiling, check that we can run a simple program.
17031 if test "$cross_compiling" != yes; then
17032   if { ac_try='./$ac_file'
17033   { (case "(($ac_try" in
17034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035   *) ac_try_echo=$ac_try;;
17036 esac
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038   (eval "$ac_try") 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); }; }; then
17042     cross_compiling=no
17043   else
17044     if test "$cross_compiling" = maybe; then
17045         cross_compiling=yes
17046     else
17047         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
17048 If you meant to cross compile, use \`--host'.
17049 See \`config.log' for more details." >&5
17050 echo "$as_me: error: cannot run C compiled programs.
17051 If you meant to cross compile, use \`--host'.
17052 See \`config.log' for more details." >&2;}
17053    { (exit 1); exit 1; }; }
17054     fi
17055   fi
17056 fi
17057 { echo "$as_me:$LINENO: result: yes" >&5
17058 echo "${ECHO_T}yes" >&6; }
17059
17060 rm -f a.out a.exe conftest$ac_cv_exeext b.out
17061 ac_clean_files=$ac_clean_files_save
17062 # Check that the compiler produces executables we can run.  If not, either
17063 # the compiler is broken, or we cross compile.
17064 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
17065 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
17066 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
17067 echo "${ECHO_T}$cross_compiling" >&6; }
17068
17069 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
17070 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074   *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077   (eval "$ac_link") 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; then
17081   # If both `conftest.exe' and `conftest' are `present' (well, observable)
17082 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
17083 # work properly (i.e., refer to `conftest.exe'), while it won't with
17084 # `rm'.
17085 for ac_file in conftest.exe conftest conftest.*; do
17086   test -f "$ac_file" || continue
17087   case $ac_file in
17088     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
17089     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17090           break;;
17091     * ) break;;
17092   esac
17093 done
17094 else
17095   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
17096 See \`config.log' for more details." >&5
17097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
17098 See \`config.log' for more details." >&2;}
17099    { (exit 1); exit 1; }; }
17100 fi
17101
17102 rm -f conftest$ac_cv_exeext
17103 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
17104 echo "${ECHO_T}$ac_cv_exeext" >&6; }
17105
17106 rm -f conftest.$ac_ext
17107 EXEEXT=$ac_cv_exeext
17108 ac_exeext=$EXEEXT
17109 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
17110 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
17111 if test "${ac_cv_objext+set}" = set; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114   cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h.  */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h.  */
17120
17121 int
17122 main ()
17123 {
17124
17125   ;
17126   return 0;
17127 }
17128 _ACEOF
17129 rm -f conftest.o conftest.obj
17130 if { (ac_try="$ac_compile"
17131 case "(($ac_try" in
17132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133   *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136   (eval "$ac_compile") 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; then
17140   for ac_file in conftest.o conftest.obj conftest.*; do
17141   test -f "$ac_file" || continue;
17142   case $ac_file in
17143     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
17144     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
17145        break;;
17146   esac
17147 done
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
17153 See \`config.log' for more details." >&5
17154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
17155 See \`config.log' for more details." >&2;}
17156    { (exit 1); exit 1; }; }
17157 fi
17158
17159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
17160 fi
17161 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
17162 echo "${ECHO_T}$ac_cv_objext" >&6; }
17163 OBJEXT=$ac_cv_objext
17164 ac_objext=$OBJEXT
17165 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
17166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
17167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
17168   echo $ECHO_N "(cached) $ECHO_C" >&6
17169 else
17170   cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17176
17177 int
17178 main ()
17179 {
17180 #ifndef __GNUC__
17181        choke me
17182 #endif
17183
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195   (eval "$ac_compile") 2>conftest.er1
17196   ac_status=$?
17197   grep -v '^ *+' conftest.er1 >conftest.err
17198   rm -f conftest.er1
17199   cat conftest.err >&5
17200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201   (exit $ac_status); } && {
17202          test -z "$ac_c_werror_flag" ||
17203          test ! -s conftest.err
17204        } && test -s conftest.$ac_objext; then
17205   ac_compiler_gnu=yes
17206 else
17207   echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210         ac_compiler_gnu=no
17211 fi
17212
17213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
17215
17216 fi
17217 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
17218 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
17219 GCC=`test $ac_compiler_gnu = yes && echo yes`
17220 ac_test_CFLAGS=${CFLAGS+set}
17221 ac_save_CFLAGS=$CFLAGS
17222 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17224 if test "${ac_cv_prog_cc_g+set}" = set; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   ac_save_c_werror_flag=$ac_c_werror_flag
17228    ac_c_werror_flag=yes
17229    ac_cv_prog_cc_g=no
17230    CFLAGS="-g"
17231    cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237
17238 int
17239 main ()
17240 {
17241
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 rm -f conftest.$ac_objext
17247 if { (ac_try="$ac_compile"
17248 case "(($ac_try" in
17249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17250   *) ac_try_echo=$ac_try;;
17251 esac
17252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17253   (eval "$ac_compile") 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } && {
17260          test -z "$ac_c_werror_flag" ||
17261          test ! -s conftest.err
17262        } && test -s conftest.$ac_objext; then
17263   ac_cv_prog_cc_g=yes
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268         CFLAGS=""
17269       cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275
17276 int
17277 main ()
17278 {
17279
17280   ;
17281   return 0;
17282 }
17283 _ACEOF
17284 rm -f conftest.$ac_objext
17285 if { (ac_try="$ac_compile"
17286 case "(($ac_try" in
17287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288   *) ac_try_echo=$ac_try;;
17289 esac
17290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291   (eval "$ac_compile") 2>conftest.er1
17292   ac_status=$?
17293   grep -v '^ *+' conftest.er1 >conftest.err
17294   rm -f conftest.er1
17295   cat conftest.err >&5
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); } && {
17298          test -z "$ac_c_werror_flag" ||
17299          test ! -s conftest.err
17300        } && test -s conftest.$ac_objext; then
17301   :
17302 else
17303   echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306         ac_c_werror_flag=$ac_save_c_werror_flag
17307          CFLAGS="-g"
17308          cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314
17315 int
17316 main ()
17317 {
17318
17319   ;
17320   return 0;
17321 }
17322 _ACEOF
17323 rm -f conftest.$ac_objext
17324 if { (ac_try="$ac_compile"
17325 case "(($ac_try" in
17326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327   *) ac_try_echo=$ac_try;;
17328 esac
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330   (eval "$ac_compile") 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } && {
17337          test -z "$ac_c_werror_flag" ||
17338          test ! -s conftest.err
17339        } && test -s conftest.$ac_objext; then
17340   ac_cv_prog_cc_g=yes
17341 else
17342   echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345
17346 fi
17347
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349 fi
17350
17351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17352 fi
17353
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355    ac_c_werror_flag=$ac_save_c_werror_flag
17356 fi
17357 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17358 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17359 if test "$ac_test_CFLAGS" = set; then
17360   CFLAGS=$ac_save_CFLAGS
17361 elif test $ac_cv_prog_cc_g = yes; then
17362   if test "$GCC" = yes; then
17363     CFLAGS="-g -O2"
17364   else
17365     CFLAGS="-g"
17366   fi
17367 else
17368   if test "$GCC" = yes; then
17369     CFLAGS="-O2"
17370   else
17371     CFLAGS=
17372   fi
17373 fi
17374 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
17375 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
17376 if test "${ac_cv_prog_cc_c89+set}" = set; then
17377   echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379   ac_cv_prog_cc_c89=no
17380 ac_save_CC=$CC
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387 #include <stdarg.h>
17388 #include <stdio.h>
17389 #include <sys/types.h>
17390 #include <sys/stat.h>
17391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
17392 struct buf { int x; };
17393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
17394 static char *e (p, i)
17395      char **p;
17396      int i;
17397 {
17398   return p[i];
17399 }
17400 static char *f (char * (*g) (char **, int), char **p, ...)
17401 {
17402   char *s;
17403   va_list v;
17404   va_start (v,p);
17405   s = g (p, va_arg (v,int));
17406   va_end (v);
17407   return s;
17408 }
17409
17410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17411    function prototypes and stuff, but not '\xHH' hex character constants.
17412    These don't provoke an error unfortunately, instead are silently treated
17413    as 'x'.  The following induces an error, until -std is added to get
17414    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17415    array size at least.  It's necessary to write '\x00'==0 to get something
17416    that's true only with -std.  */
17417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17418
17419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17420    inside strings and character constants.  */
17421 #define FOO(x) 'x'
17422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17423
17424 int test (int i, double x);
17425 struct s1 {int (*f) (int a);};
17426 struct s2 {int (*f) (double a);};
17427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17428 int argc;
17429 char **argv;
17430 int
17431 main ()
17432 {
17433 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
17434   ;
17435   return 0;
17436 }
17437 _ACEOF
17438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17439         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17440 do
17441   CC="$ac_save_CC $ac_arg"
17442   rm -f conftest.$ac_objext
17443 if { (ac_try="$ac_compile"
17444 case "(($ac_try" in
17445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446   *) ac_try_echo=$ac_try;;
17447 esac
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449   (eval "$ac_compile") 2>conftest.er1
17450   ac_status=$?
17451   grep -v '^ *+' conftest.er1 >conftest.err
17452   rm -f conftest.er1
17453   cat conftest.err >&5
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); } && {
17456          test -z "$ac_c_werror_flag" ||
17457          test ! -s conftest.err
17458        } && test -s conftest.$ac_objext; then
17459   ac_cv_prog_cc_c89=$ac_arg
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464
17465 fi
17466
17467 rm -f core conftest.err conftest.$ac_objext
17468   test "x$ac_cv_prog_cc_c89" != "xno" && break
17469 done
17470 rm -f conftest.$ac_ext
17471 CC=$ac_save_CC
17472
17473 fi
17474 # AC_CACHE_VAL
17475 case "x$ac_cv_prog_cc_c89" in
17476   x)
17477     { echo "$as_me:$LINENO: result: none needed" >&5
17478 echo "${ECHO_T}none needed" >&6; } ;;
17479   xno)
17480     { echo "$as_me:$LINENO: result: unsupported" >&5
17481 echo "${ECHO_T}unsupported" >&6; } ;;
17482   *)
17483     CC="$CC $ac_cv_prog_cc_c89"
17484     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
17485 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
17486 esac
17487
17488
17489 ac_ext=c
17490 ac_cpp='$CPP $CPPFLAGS'
17491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17494
17495
17496
17497
17498     ac_ext=c
17499 ac_cpp='$CPP $CPPFLAGS'
17500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17503
17504     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
17505 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
17506 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509   cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515
17516 int
17517 main ()
17518 {
17519
17520              #ifndef __INTEL_COMPILER
17521                 choke me
17522              #endif
17523
17524   ;
17525   return 0;
17526 }
17527 _ACEOF
17528 rm -f conftest.$ac_objext
17529 if { (ac_try="$ac_compile"
17530 case "(($ac_try" in
17531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532   *) ac_try_echo=$ac_try;;
17533 esac
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535   (eval "$ac_compile") 2>conftest.er1
17536   ac_status=$?
17537   grep -v '^ *+' conftest.er1 >conftest.err
17538   rm -f conftest.er1
17539   cat conftest.err >&5
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); } && {
17542          test -z "$ac_c_werror_flag" ||
17543          test ! -s conftest.err
17544        } && test -s conftest.$ac_objext; then
17545   bakefile_cv_c_compiler___INTEL_COMPILER=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550         bakefile_cv_c_compiler___INTEL_COMPILER=no
17551
17552 fi
17553
17554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555
17556
17557 fi
17558 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
17559 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
17560     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
17561         :; INTELCC=yes
17562     else
17563         :;
17564     fi
17565     ac_ext=c
17566 ac_cpp='$CPP $CPPFLAGS'
17567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17570
17571
17572
17573
17574         if test "x$GCC" != "xyes"; then
17575         if test "xCC" = "xC"; then
17576             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17577 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17578 if test "${bakefile_cv_c_exto+set}" = set; then
17579   echo $ECHO_N "(cached) $ECHO_C" >&6
17580 else
17581   cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587
17588 int
17589 main ()
17590 {
17591
17592   ;
17593   return 0;
17594 }
17595 _ACEOF
17596 rm -f conftest.$ac_objext conftest.$ac_ext.o
17597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17598   (eval $ac_compile) 2>&5
17599   ac_status=$?
17600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601   (exit $ac_status); }; then
17602   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17603     case $ac_file in
17604         conftest.$ac_ext.o)
17605             bakefile_cv_c_exto="-ext o"
17606             ;;
17607         *)
17608             ;;
17609     esac
17610 done
17611 else
17612   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17613 See \`config.log' for more details." >&5
17614 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17615 See \`config.log' for more details." >&2;}
17616    { (exit 1); exit 1; }; }
17617
17618 fi
17619
17620 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17621
17622 fi
17623 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17624 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17625 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17626     if test "c" = "c"; then
17627         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17628     fi
17629     if test "c" = "cxx"; then
17630         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17631     fi
17632 fi
17633
17634             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17635                 unset ac_cv_prog_cc_g
17636                 ac_test_CFLAGS=${CFLAGS+set}
17637 ac_save_CFLAGS=$CFLAGS
17638 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17639 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17640 if test "${ac_cv_prog_cc_g+set}" = set; then
17641   echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643   ac_save_c_werror_flag=$ac_c_werror_flag
17644    ac_c_werror_flag=yes
17645    ac_cv_prog_cc_g=no
17646    CFLAGS="-g"
17647    cat >conftest.$ac_ext <<_ACEOF
17648 /* confdefs.h.  */
17649 _ACEOF
17650 cat confdefs.h >>conftest.$ac_ext
17651 cat >>conftest.$ac_ext <<_ACEOF
17652 /* end confdefs.h.  */
17653
17654 int
17655 main ()
17656 {
17657
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 rm -f conftest.$ac_objext
17663 if { (ac_try="$ac_compile"
17664 case "(($ac_try" in
17665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666   *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669   (eval "$ac_compile") 2>conftest.er1
17670   ac_status=$?
17671   grep -v '^ *+' conftest.er1 >conftest.err
17672   rm -f conftest.er1
17673   cat conftest.err >&5
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); } && {
17676          test -z "$ac_c_werror_flag" ||
17677          test ! -s conftest.err
17678        } && test -s conftest.$ac_objext; then
17679   ac_cv_prog_cc_g=yes
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684         CFLAGS=""
17685       cat >conftest.$ac_ext <<_ACEOF
17686 /* confdefs.h.  */
17687 _ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h.  */
17691
17692 int
17693 main ()
17694 {
17695
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (ac_try="$ac_compile"
17702 case "(($ac_try" in
17703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704   *) ac_try_echo=$ac_try;;
17705 esac
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707   (eval "$ac_compile") 2>conftest.er1
17708   ac_status=$?
17709   grep -v '^ *+' conftest.er1 >conftest.err
17710   rm -f conftest.er1
17711   cat conftest.err >&5
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } && {
17714          test -z "$ac_c_werror_flag" ||
17715          test ! -s conftest.err
17716        } && test -s conftest.$ac_objext; then
17717   :
17718 else
17719   echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17721
17722         ac_c_werror_flag=$ac_save_c_werror_flag
17723          CFLAGS="-g"
17724          cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h.  */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h.  */
17730
17731 int
17732 main ()
17733 {
17734
17735   ;
17736   return 0;
17737 }
17738 _ACEOF
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743   *) ac_try_echo=$ac_try;;
17744 esac
17745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746   (eval "$ac_compile") 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } && {
17753          test -z "$ac_c_werror_flag" ||
17754          test ! -s conftest.err
17755        } && test -s conftest.$ac_objext; then
17756   ac_cv_prog_cc_g=yes
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761
17762 fi
17763
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 fi
17766
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 fi
17769
17770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17771    ac_c_werror_flag=$ac_save_c_werror_flag
17772 fi
17773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17774 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17775 if test "$ac_test_CFLAGS" = set; then
17776   CFLAGS=$ac_save_CFLAGS
17777 elif test $ac_cv_prog_cc_g = yes; then
17778   if test "$GCC" = yes; then
17779     CFLAGS="-g -O2"
17780   else
17781     CFLAGS="-g"
17782   fi
17783 else
17784   if test "$GCC" = yes; then
17785     CFLAGS="-O2"
17786   else
17787     CFLAGS=
17788   fi
17789 fi
17790             fi
17791         fi
17792
17793                         case `uname -s` in
17794             AIX*)
17795
17796
17797     ac_ext=c
17798 ac_cpp='$CPP $CPPFLAGS'
17799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17802
17803     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17804 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17805 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17806   echo $ECHO_N "(cached) $ECHO_C" >&6
17807 else
17808   cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h.  */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h.  */
17814
17815 int
17816 main ()
17817 {
17818
17819              #ifndef __xlC__
17820                 choke me
17821              #endif
17822
17823   ;
17824   return 0;
17825 }
17826 _ACEOF
17827 rm -f conftest.$ac_objext
17828 if { (ac_try="$ac_compile"
17829 case "(($ac_try" in
17830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831   *) ac_try_echo=$ac_try;;
17832 esac
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834   (eval "$ac_compile") 2>conftest.er1
17835   ac_status=$?
17836   grep -v '^ *+' conftest.er1 >conftest.err
17837   rm -f conftest.er1
17838   cat conftest.err >&5
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); } && {
17841          test -z "$ac_c_werror_flag" ||
17842          test ! -s conftest.err
17843        } && test -s conftest.$ac_objext; then
17844   bakefile_cv_c_compiler___xlC__=yes
17845 else
17846   echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849         bakefile_cv_c_compiler___xlC__=no
17850
17851 fi
17852
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854
17855
17856 fi
17857 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17858 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17859     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17860         :; XLCC=yes
17861     else
17862         :;
17863     fi
17864     ac_ext=c
17865 ac_cpp='$CPP $CPPFLAGS'
17866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17869
17870
17871
17872                 ;;
17873
17874             Darwin)
17875
17876
17877     ac_ext=c
17878 ac_cpp='$CPP $CPPFLAGS'
17879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17882
17883     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
17884 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
17885 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
17886   echo $ECHO_N "(cached) $ECHO_C" >&6
17887 else
17888   cat >conftest.$ac_ext <<_ACEOF
17889 /* confdefs.h.  */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h.  */
17894
17895 int
17896 main ()
17897 {
17898
17899              #ifndef __MWERKS__
17900                 choke me
17901              #endif
17902
17903   ;
17904   return 0;
17905 }
17906 _ACEOF
17907 rm -f conftest.$ac_objext
17908 if { (ac_try="$ac_compile"
17909 case "(($ac_try" in
17910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911   *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914   (eval "$ac_compile") 2>conftest.er1
17915   ac_status=$?
17916   grep -v '^ *+' conftest.er1 >conftest.err
17917   rm -f conftest.er1
17918   cat conftest.err >&5
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); } && {
17921          test -z "$ac_c_werror_flag" ||
17922          test ! -s conftest.err
17923        } && test -s conftest.$ac_objext; then
17924   bakefile_cv_c_compiler___MWERKS__=yes
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929         bakefile_cv_c_compiler___MWERKS__=no
17930
17931 fi
17932
17933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934
17935
17936 fi
17937 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
17938 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
17939     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
17940         :; MWCC=yes
17941     else
17942         :;
17943     fi
17944     ac_ext=c
17945 ac_cpp='$CPP $CPPFLAGS'
17946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17949
17950
17951
17952
17953
17954     ac_ext=c
17955 ac_cpp='$CPP $CPPFLAGS'
17956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17959
17960     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17961 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17962 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965   cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971
17972 int
17973 main ()
17974 {
17975
17976              #ifndef __xlC__
17977                 choke me
17978              #endif
17979
17980   ;
17981   return 0;
17982 }
17983 _ACEOF
17984 rm -f conftest.$ac_objext
17985 if { (ac_try="$ac_compile"
17986 case "(($ac_try" in
17987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988   *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991   (eval "$ac_compile") 2>conftest.er1
17992   ac_status=$?
17993   grep -v '^ *+' conftest.er1 >conftest.err
17994   rm -f conftest.er1
17995   cat conftest.err >&5
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); } && {
17998          test -z "$ac_c_werror_flag" ||
17999          test ! -s conftest.err
18000        } && test -s conftest.$ac_objext; then
18001   bakefile_cv_c_compiler___xlC__=yes
18002 else
18003   echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006         bakefile_cv_c_compiler___xlC__=no
18007
18008 fi
18009
18010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18011
18012
18013 fi
18014 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
18015 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
18016     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
18017         :; XLCC=yes
18018     else
18019         :;
18020     fi
18021     ac_ext=c
18022 ac_cpp='$CPP $CPPFLAGS'
18023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18026
18027
18028
18029                 ;;
18030
18031             IRIX*)
18032
18033
18034     ac_ext=c
18035 ac_cpp='$CPP $CPPFLAGS'
18036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18039
18040     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
18041 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
18042 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
18043   echo $ECHO_N "(cached) $ECHO_C" >&6
18044 else
18045   cat >conftest.$ac_ext <<_ACEOF
18046 /* confdefs.h.  */
18047 _ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h.  */
18051
18052 int
18053 main ()
18054 {
18055
18056              #ifndef _SGI_COMPILER_VERSION
18057                 choke me
18058              #endif
18059
18060   ;
18061   return 0;
18062 }
18063 _ACEOF
18064 rm -f conftest.$ac_objext
18065 if { (ac_try="$ac_compile"
18066 case "(($ac_try" in
18067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068   *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071   (eval "$ac_compile") 2>conftest.er1
18072   ac_status=$?
18073   grep -v '^ *+' conftest.er1 >conftest.err
18074   rm -f conftest.er1
18075   cat conftest.err >&5
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); } && {
18078          test -z "$ac_c_werror_flag" ||
18079          test ! -s conftest.err
18080        } && test -s conftest.$ac_objext; then
18081   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
18082 else
18083   echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18085
18086         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
18087
18088 fi
18089
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091
18092
18093 fi
18094 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
18095 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
18096     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18097         :; SGICC=yes
18098     else
18099         :;
18100     fi
18101     ac_ext=c
18102 ac_cpp='$CPP $CPPFLAGS'
18103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18106
18107
18108
18109                 ;;
18110
18111             Linux*)
18112
18113
18114     ac_ext=c
18115 ac_cpp='$CPP $CPPFLAGS'
18116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18119
18120     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18121 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
18122 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125   cat >conftest.$ac_ext <<_ACEOF
18126 /* confdefs.h.  */
18127 _ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h.  */
18131
18132 int
18133 main ()
18134 {
18135
18136              #ifndef __SUNPRO_C
18137                 choke me
18138              #endif
18139
18140   ;
18141   return 0;
18142 }
18143 _ACEOF
18144 rm -f conftest.$ac_objext
18145 if { (ac_try="$ac_compile"
18146 case "(($ac_try" in
18147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148   *) ac_try_echo=$ac_try;;
18149 esac
18150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151   (eval "$ac_compile") 2>conftest.er1
18152   ac_status=$?
18153   grep -v '^ *+' conftest.er1 >conftest.err
18154   rm -f conftest.er1
18155   cat conftest.err >&5
18156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157   (exit $ac_status); } && {
18158          test -z "$ac_c_werror_flag" ||
18159          test ! -s conftest.err
18160        } && test -s conftest.$ac_objext; then
18161   bakefile_cv_c_compiler___SUNPRO_C=yes
18162 else
18163   echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166         bakefile_cv_c_compiler___SUNPRO_C=no
18167
18168 fi
18169
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171
18172
18173 fi
18174 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18175 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
18176     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18177         :; SUNCC=yes
18178     else
18179         :;
18180     fi
18181     ac_ext=c
18182 ac_cpp='$CPP $CPPFLAGS'
18183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18186
18187
18188
18189                 ;;
18190
18191             HP-UX*)
18192
18193
18194     ac_ext=c
18195 ac_cpp='$CPP $CPPFLAGS'
18196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18199
18200     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
18201 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
18202 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
18203   echo $ECHO_N "(cached) $ECHO_C" >&6
18204 else
18205   cat >conftest.$ac_ext <<_ACEOF
18206 /* confdefs.h.  */
18207 _ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h.  */
18211
18212 int
18213 main ()
18214 {
18215
18216              #ifndef __HP_cc
18217                 choke me
18218              #endif
18219
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest.$ac_objext
18225 if { (ac_try="$ac_compile"
18226 case "(($ac_try" in
18227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228   *) ac_try_echo=$ac_try;;
18229 esac
18230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231   (eval "$ac_compile") 2>conftest.er1
18232   ac_status=$?
18233   grep -v '^ *+' conftest.er1 >conftest.err
18234   rm -f conftest.er1
18235   cat conftest.err >&5
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); } && {
18238          test -z "$ac_c_werror_flag" ||
18239          test ! -s conftest.err
18240        } && test -s conftest.$ac_objext; then
18241   bakefile_cv_c_compiler___HP_cc=yes
18242 else
18243   echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18245
18246         bakefile_cv_c_compiler___HP_cc=no
18247
18248 fi
18249
18250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251
18252
18253 fi
18254 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
18255 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
18256     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
18257         :; HPCC=yes
18258     else
18259         :;
18260     fi
18261     ac_ext=c
18262 ac_cpp='$CPP $CPPFLAGS'
18263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18266
18267
18268
18269                 ;;
18270
18271             OSF1)
18272
18273
18274     ac_ext=c
18275 ac_cpp='$CPP $CPPFLAGS'
18276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18279
18280     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
18281 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
18282 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
18283   echo $ECHO_N "(cached) $ECHO_C" >&6
18284 else
18285   cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291
18292 int
18293 main ()
18294 {
18295
18296              #ifndef __DECC
18297                 choke me
18298              #endif
18299
18300   ;
18301   return 0;
18302 }
18303 _ACEOF
18304 rm -f conftest.$ac_objext
18305 if { (ac_try="$ac_compile"
18306 case "(($ac_try" in
18307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308   *) ac_try_echo=$ac_try;;
18309 esac
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311   (eval "$ac_compile") 2>conftest.er1
18312   ac_status=$?
18313   grep -v '^ *+' conftest.er1 >conftest.err
18314   rm -f conftest.er1
18315   cat conftest.err >&5
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); } && {
18318          test -z "$ac_c_werror_flag" ||
18319          test ! -s conftest.err
18320        } && test -s conftest.$ac_objext; then
18321   bakefile_cv_c_compiler___DECC=yes
18322 else
18323   echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18325
18326         bakefile_cv_c_compiler___DECC=no
18327
18328 fi
18329
18330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331
18332
18333 fi
18334 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
18335 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
18336     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
18337         :; COMPAQCC=yes
18338     else
18339         :;
18340     fi
18341     ac_ext=c
18342 ac_cpp='$CPP $CPPFLAGS'
18343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18346
18347
18348
18349                 ;;
18350
18351             SunOS)
18352
18353
18354     ac_ext=c
18355 ac_cpp='$CPP $CPPFLAGS'
18356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18359
18360     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18361 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
18362 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18363   echo $ECHO_N "(cached) $ECHO_C" >&6
18364 else
18365   cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371
18372 int
18373 main ()
18374 {
18375
18376              #ifndef __SUNPRO_C
18377                 choke me
18378              #endif
18379
18380   ;
18381   return 0;
18382 }
18383 _ACEOF
18384 rm -f conftest.$ac_objext
18385 if { (ac_try="$ac_compile"
18386 case "(($ac_try" in
18387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388   *) ac_try_echo=$ac_try;;
18389 esac
18390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18391   (eval "$ac_compile") 2>conftest.er1
18392   ac_status=$?
18393   grep -v '^ *+' conftest.er1 >conftest.err
18394   rm -f conftest.er1
18395   cat conftest.err >&5
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); } && {
18398          test -z "$ac_c_werror_flag" ||
18399          test ! -s conftest.err
18400        } && test -s conftest.$ac_objext; then
18401   bakefile_cv_c_compiler___SUNPRO_C=yes
18402 else
18403   echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406         bakefile_cv_c_compiler___SUNPRO_C=no
18407
18408 fi
18409
18410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18411
18412
18413 fi
18414 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18415 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
18416     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18417         :; SUNCC=yes
18418     else
18419         :;
18420     fi
18421     ac_ext=c
18422 ac_cpp='$CPP $CPPFLAGS'
18423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18426
18427
18428
18429                 ;;
18430         esac
18431     fi
18432
18433
18434
18435 ac_ext=c
18436 ac_cpp='$CPP $CPPFLAGS'
18437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18440 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
18441 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
18442 # On Suns, sometimes $CPP names a directory.
18443 if test -n "$CPP" && test -d "$CPP"; then
18444   CPP=
18445 fi
18446 if test -z "$CPP"; then
18447   if test "${ac_cv_prog_CPP+set}" = set; then
18448   echo $ECHO_N "(cached) $ECHO_C" >&6
18449 else
18450       # Double quotes because CPP needs to be expanded
18451     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
18452     do
18453       ac_preproc_ok=false
18454 for ac_c_preproc_warn_flag in '' yes
18455 do
18456   # Use a header file that comes with gcc, so configuring glibc
18457   # with a fresh cross-compiler works.
18458   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18459   # <limits.h> exists even on freestanding compilers.
18460   # On the NeXT, cc -E runs the code through the compiler's parser,
18461   # not just through cpp. "Syntax error" is here to catch this case.
18462   cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h.  */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h.  */
18468 #ifdef __STDC__
18469 # include <limits.h>
18470 #else
18471 # include <assert.h>
18472 #endif
18473                      Syntax error
18474 _ACEOF
18475 if { (ac_try="$ac_cpp conftest.$ac_ext"
18476 case "(($ac_try" in
18477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478   *) ac_try_echo=$ac_try;;
18479 esac
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18482   ac_status=$?
18483   grep -v '^ *+' conftest.er1 >conftest.err
18484   rm -f conftest.er1
18485   cat conftest.err >&5
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); } >/dev/null && {
18488          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18489          test ! -s conftest.err
18490        }; then
18491   :
18492 else
18493   echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18495
18496   # Broken: fails on valid input.
18497 continue
18498 fi
18499
18500 rm -f conftest.err conftest.$ac_ext
18501
18502   # OK, works on sane cases.  Now check whether nonexistent headers
18503   # can be detected and how.
18504   cat >conftest.$ac_ext <<_ACEOF
18505 /* confdefs.h.  */
18506 _ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h.  */
18510 #include <ac_nonexistent.h>
18511 _ACEOF
18512 if { (ac_try="$ac_cpp conftest.$ac_ext"
18513 case "(($ac_try" in
18514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515   *) ac_try_echo=$ac_try;;
18516 esac
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18519   ac_status=$?
18520   grep -v '^ *+' conftest.er1 >conftest.err
18521   rm -f conftest.er1
18522   cat conftest.err >&5
18523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524   (exit $ac_status); } >/dev/null && {
18525          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18526          test ! -s conftest.err
18527        }; then
18528   # Broken: success on invalid input.
18529 continue
18530 else
18531   echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18533
18534   # Passes both tests.
18535 ac_preproc_ok=:
18536 break
18537 fi
18538
18539 rm -f conftest.err conftest.$ac_ext
18540
18541 done
18542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18543 rm -f conftest.err conftest.$ac_ext
18544 if $ac_preproc_ok; then
18545   break
18546 fi
18547
18548     done
18549     ac_cv_prog_CPP=$CPP
18550
18551 fi
18552   CPP=$ac_cv_prog_CPP
18553 else
18554   ac_cv_prog_CPP=$CPP
18555 fi
18556 { echo "$as_me:$LINENO: result: $CPP" >&5
18557 echo "${ECHO_T}$CPP" >&6; }
18558 ac_preproc_ok=false
18559 for ac_c_preproc_warn_flag in '' yes
18560 do
18561   # Use a header file that comes with gcc, so configuring glibc
18562   # with a fresh cross-compiler works.
18563   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18564   # <limits.h> exists even on freestanding compilers.
18565   # On the NeXT, cc -E runs the code through the compiler's parser,
18566   # not just through cpp. "Syntax error" is here to catch this case.
18567   cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573 #ifdef __STDC__
18574 # include <limits.h>
18575 #else
18576 # include <assert.h>
18577 #endif
18578                      Syntax error
18579 _ACEOF
18580 if { (ac_try="$ac_cpp conftest.$ac_ext"
18581 case "(($ac_try" in
18582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583   *) ac_try_echo=$ac_try;;
18584 esac
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18587   ac_status=$?
18588   grep -v '^ *+' conftest.er1 >conftest.err
18589   rm -f conftest.er1
18590   cat conftest.err >&5
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); } >/dev/null && {
18593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18594          test ! -s conftest.err
18595        }; then
18596   :
18597 else
18598   echo "$as_me: failed program was:" >&5
18599 sed 's/^/| /' conftest.$ac_ext >&5
18600
18601   # Broken: fails on valid input.
18602 continue
18603 fi
18604
18605 rm -f conftest.err conftest.$ac_ext
18606
18607   # OK, works on sane cases.  Now check whether nonexistent headers
18608   # can be detected and how.
18609   cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h.  */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h.  */
18615 #include <ac_nonexistent.h>
18616 _ACEOF
18617 if { (ac_try="$ac_cpp conftest.$ac_ext"
18618 case "(($ac_try" in
18619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620   *) ac_try_echo=$ac_try;;
18621 esac
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18624   ac_status=$?
18625   grep -v '^ *+' conftest.er1 >conftest.err
18626   rm -f conftest.er1
18627   cat conftest.err >&5
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); } >/dev/null && {
18630          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18631          test ! -s conftest.err
18632        }; then
18633   # Broken: success on invalid input.
18634 continue
18635 else
18636   echo "$as_me: failed program was:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18638
18639   # Passes both tests.
18640 ac_preproc_ok=:
18641 break
18642 fi
18643
18644 rm -f conftest.err conftest.$ac_ext
18645
18646 done
18647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18648 rm -f conftest.err conftest.$ac_ext
18649 if $ac_preproc_ok; then
18650   :
18651 else
18652   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18653 See \`config.log' for more details." >&5
18654 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18655 See \`config.log' for more details." >&2;}
18656    { (exit 1); exit 1; }; }
18657 fi
18658
18659 ac_ext=c
18660 ac_cpp='$CPP $CPPFLAGS'
18661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18664
18665
18666 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
18667 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
18668 if test "${ac_cv_path_GREP+set}" = set; then
18669   echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671   # Extract the first word of "grep ggrep" to use in msg output
18672 if test -z "$GREP"; then
18673 set dummy grep ggrep; ac_prog_name=$2
18674 if test "${ac_cv_path_GREP+set}" = set; then
18675   echo $ECHO_N "(cached) $ECHO_C" >&6
18676 else
18677   ac_path_GREP_found=false
18678 # Loop through the user's path and test for each of PROGNAME-LIST
18679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18681 do
18682   IFS=$as_save_IFS
18683   test -z "$as_dir" && as_dir=.
18684   for ac_prog in grep ggrep; do
18685   for ac_exec_ext in '' $ac_executable_extensions; do
18686     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18687     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18688     # Check for GNU ac_path_GREP and select it if it is found.
18689   # Check for GNU $ac_path_GREP
18690 case `"$ac_path_GREP" --version 2>&1` in
18691 *GNU*)
18692   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18693 *)
18694   ac_count=0
18695   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18696   while :
18697   do
18698     cat "conftest.in" "conftest.in" >"conftest.tmp"
18699     mv "conftest.tmp" "conftest.in"
18700     cp "conftest.in" "conftest.nl"
18701     echo 'GREP' >> "conftest.nl"
18702     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18703     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18704     ac_count=`expr $ac_count + 1`
18705     if test $ac_count -gt ${ac_path_GREP_max-0}; then
18706       # Best one so far, save it but keep looking for a better one
18707       ac_cv_path_GREP="$ac_path_GREP"
18708       ac_path_GREP_max=$ac_count
18709     fi
18710     # 10*(2^10) chars as input seems more than enough
18711     test $ac_count -gt 10 && break
18712   done
18713   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18714 esac
18715
18716
18717     $ac_path_GREP_found && break 3
18718   done
18719 done
18720
18721 done
18722 IFS=$as_save_IFS
18723
18724
18725 fi
18726
18727 GREP="$ac_cv_path_GREP"
18728 if test -z "$GREP"; then
18729   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18731    { (exit 1); exit 1; }; }
18732 fi
18733
18734 else
18735   ac_cv_path_GREP=$GREP
18736 fi
18737
18738
18739 fi
18740 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18741 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18742  GREP="$ac_cv_path_GREP"
18743
18744
18745 { echo "$as_me:$LINENO: checking for egrep" >&5
18746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18747 if test "${ac_cv_path_EGREP+set}" = set; then
18748   echo $ECHO_N "(cached) $ECHO_C" >&6
18749 else
18750   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18751    then ac_cv_path_EGREP="$GREP -E"
18752    else
18753      # Extract the first word of "egrep" to use in msg output
18754 if test -z "$EGREP"; then
18755 set dummy egrep; ac_prog_name=$2
18756 if test "${ac_cv_path_EGREP+set}" = set; then
18757   echo $ECHO_N "(cached) $ECHO_C" >&6
18758 else
18759   ac_path_EGREP_found=false
18760 # Loop through the user's path and test for each of PROGNAME-LIST
18761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18763 do
18764   IFS=$as_save_IFS
18765   test -z "$as_dir" && as_dir=.
18766   for ac_prog in egrep; do
18767   for ac_exec_ext in '' $ac_executable_extensions; do
18768     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18769     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18770     # Check for GNU ac_path_EGREP and select it if it is found.
18771   # Check for GNU $ac_path_EGREP
18772 case `"$ac_path_EGREP" --version 2>&1` in
18773 *GNU*)
18774   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18775 *)
18776   ac_count=0
18777   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18778   while :
18779   do
18780     cat "conftest.in" "conftest.in" >"conftest.tmp"
18781     mv "conftest.tmp" "conftest.in"
18782     cp "conftest.in" "conftest.nl"
18783     echo 'EGREP' >> "conftest.nl"
18784     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18785     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18786     ac_count=`expr $ac_count + 1`
18787     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18788       # Best one so far, save it but keep looking for a better one
18789       ac_cv_path_EGREP="$ac_path_EGREP"
18790       ac_path_EGREP_max=$ac_count
18791     fi
18792     # 10*(2^10) chars as input seems more than enough
18793     test $ac_count -gt 10 && break
18794   done
18795   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18796 esac
18797
18798
18799     $ac_path_EGREP_found && break 3
18800   done
18801 done
18802
18803 done
18804 IFS=$as_save_IFS
18805
18806
18807 fi
18808
18809 EGREP="$ac_cv_path_EGREP"
18810 if test -z "$EGREP"; then
18811   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18813    { (exit 1); exit 1; }; }
18814 fi
18815
18816 else
18817   ac_cv_path_EGREP=$EGREP
18818 fi
18819
18820
18821    fi
18822 fi
18823 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18824 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18825  EGREP="$ac_cv_path_EGREP"
18826
18827
18828 if test $ac_cv_c_compiler_gnu = yes; then
18829     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18830 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18831 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18832   echo $ECHO_N "(cached) $ECHO_C" >&6
18833 else
18834     ac_pattern="Autoconf.*'x'"
18835   cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h.  */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h.  */
18841 #include <sgtty.h>
18842 Autoconf TIOCGETP
18843 _ACEOF
18844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18845   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18846   ac_cv_prog_gcc_traditional=yes
18847 else
18848   ac_cv_prog_gcc_traditional=no
18849 fi
18850 rm -f conftest*
18851
18852
18853   if test $ac_cv_prog_gcc_traditional = no; then
18854     cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860 #include <termio.h>
18861 Autoconf TCGETA
18862 _ACEOF
18863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18864   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18865   ac_cv_prog_gcc_traditional=yes
18866 fi
18867 rm -f conftest*
18868
18869   fi
18870 fi
18871 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18872 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18873   if test $ac_cv_prog_gcc_traditional = yes; then
18874     CC="$CC -traditional"
18875   fi
18876 fi
18877
18878
18879 CXXFLAGS=${CXXFLAGS:=}
18880
18881
18882
18883     ac_ext=cpp
18884 ac_cpp='$CXXCPP $CPPFLAGS'
18885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18888 if test -z "$CXX"; then
18889   if test -n "$CCC"; then
18890     CXX=$CCC
18891   else
18892     if test -n "$ac_tool_prefix"; then
18893   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18894   do
18895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18899 if test "${ac_cv_prog_CXX+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   if test -n "$CXX"; then
18903   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18904 else
18905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18906 for as_dir in $PATH
18907 do
18908   IFS=$as_save_IFS
18909   test -z "$as_dir" && as_dir=.
18910   for ac_exec_ext in '' $ac_executable_extensions; do
18911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18912     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18914     break 2
18915   fi
18916 done
18917 done
18918 IFS=$as_save_IFS
18919
18920 fi
18921 fi
18922 CXX=$ac_cv_prog_CXX
18923 if test -n "$CXX"; then
18924   { echo "$as_me:$LINENO: result: $CXX" >&5
18925 echo "${ECHO_T}$CXX" >&6; }
18926 else
18927   { echo "$as_me:$LINENO: result: no" >&5
18928 echo "${ECHO_T}no" >&6; }
18929 fi
18930
18931
18932     test -n "$CXX" && break
18933   done
18934 fi
18935 if test -z "$CXX"; then
18936   ac_ct_CXX=$CXX
18937   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18938 do
18939   # Extract the first word of "$ac_prog", so it can be a program name with args.
18940 set dummy $ac_prog; ac_word=$2
18941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18943 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18944   echo $ECHO_N "(cached) $ECHO_C" >&6
18945 else
18946   if test -n "$ac_ct_CXX"; then
18947   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18948 else
18949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18950 for as_dir in $PATH
18951 do
18952   IFS=$as_save_IFS
18953   test -z "$as_dir" && as_dir=.
18954   for ac_exec_ext in '' $ac_executable_extensions; do
18955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18956     ac_cv_prog_ac_ct_CXX="$ac_prog"
18957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18958     break 2
18959   fi
18960 done
18961 done
18962 IFS=$as_save_IFS
18963
18964 fi
18965 fi
18966 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18967 if test -n "$ac_ct_CXX"; then
18968   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
18969 echo "${ECHO_T}$ac_ct_CXX" >&6; }
18970 else
18971   { echo "$as_me:$LINENO: result: no" >&5
18972 echo "${ECHO_T}no" >&6; }
18973 fi
18974
18975
18976   test -n "$ac_ct_CXX" && break
18977 done
18978
18979   if test "x$ac_ct_CXX" = x; then
18980     CXX="g++"
18981   else
18982     case $cross_compiling:$ac_tool_warned in
18983 yes:)
18984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18985 whose name does not start with the host triplet.  If you think this
18986 configuration is useful to you, please write to autoconf@gnu.org." >&5
18987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18988 whose name does not start with the host triplet.  If you think this
18989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18990 ac_tool_warned=yes ;;
18991 esac
18992     CXX=$ac_ct_CXX
18993   fi
18994 fi
18995
18996   fi
18997 fi
18998 # Provide some information about the compiler.
18999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19000 ac_compiler=`set X $ac_compile; echo $2`
19001 { (ac_try="$ac_compiler --version >&5"
19002 case "(($ac_try" in
19003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004   *) ac_try_echo=$ac_try;;
19005 esac
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007   (eval "$ac_compiler --version >&5") 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }
19011 { (ac_try="$ac_compiler -v >&5"
19012 case "(($ac_try" in
19013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014   *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017   (eval "$ac_compiler -v >&5") 2>&5
19018   ac_status=$?
19019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020   (exit $ac_status); }
19021 { (ac_try="$ac_compiler -V >&5"
19022 case "(($ac_try" in
19023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024   *) ac_try_echo=$ac_try;;
19025 esac
19026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027   (eval "$ac_compiler -V >&5") 2>&5
19028   ac_status=$?
19029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030   (exit $ac_status); }
19031
19032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
19034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19035   echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037   cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h.  */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h.  */
19043
19044 int
19045 main ()
19046 {
19047 #ifndef __GNUC__
19048        choke me
19049 #endif
19050
19051   ;
19052   return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (ac_try="$ac_compile"
19057 case "(($ac_try" in
19058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059   *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062   (eval "$ac_compile") 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } && {
19069          test -z "$ac_cxx_werror_flag" ||
19070          test ! -s conftest.err
19071        } && test -s conftest.$ac_objext; then
19072   ac_compiler_gnu=yes
19073 else
19074   echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.$ac_ext >&5
19076
19077         ac_compiler_gnu=no
19078 fi
19079
19080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19082
19083 fi
19084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
19086 GXX=`test $ac_compiler_gnu = yes && echo yes`
19087 ac_test_CXXFLAGS=${CXXFLAGS+set}
19088 ac_save_CXXFLAGS=$CXXFLAGS
19089 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19090 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
19091 if test "${ac_cv_prog_cxx_g+set}" = set; then
19092   echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19095    ac_cxx_werror_flag=yes
19096    ac_cv_prog_cxx_g=no
19097    CXXFLAGS="-g"
19098    cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h.  */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h.  */
19104
19105 int
19106 main ()
19107 {
19108
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext
19114 if { (ac_try="$ac_compile"
19115 case "(($ac_try" in
19116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117   *) ac_try_echo=$ac_try;;
19118 esac
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120   (eval "$ac_compile") 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } && {
19127          test -z "$ac_cxx_werror_flag" ||
19128          test ! -s conftest.err
19129        } && test -s conftest.$ac_objext; then
19130   ac_cv_prog_cxx_g=yes
19131 else
19132   echo "$as_me: failed program was:" >&5
19133 sed 's/^/| /' conftest.$ac_ext >&5
19134
19135         CXXFLAGS=""
19136       cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h.  */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h.  */
19142
19143 int
19144 main ()
19145 {
19146
19147   ;
19148   return 0;
19149 }
19150 _ACEOF
19151 rm -f conftest.$ac_objext
19152 if { (ac_try="$ac_compile"
19153 case "(($ac_try" in
19154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155   *) ac_try_echo=$ac_try;;
19156 esac
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158   (eval "$ac_compile") 2>conftest.er1
19159   ac_status=$?
19160   grep -v '^ *+' conftest.er1 >conftest.err
19161   rm -f conftest.er1
19162   cat conftest.err >&5
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); } && {
19165          test -z "$ac_cxx_werror_flag" ||
19166          test ! -s conftest.err
19167        } && test -s conftest.$ac_objext; then
19168   :
19169 else
19170   echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19172
19173         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19174          CXXFLAGS="-g"
19175          cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181
19182 int
19183 main ()
19184 {
19185
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_compile") 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } && {
19204          test -z "$ac_cxx_werror_flag" ||
19205          test ! -s conftest.err
19206        } && test -s conftest.$ac_objext; then
19207   ac_cv_prog_cxx_g=yes
19208 else
19209   echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19211
19212
19213 fi
19214
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 fi
19217
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 fi
19220
19221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19223 fi
19224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
19226 if test "$ac_test_CXXFLAGS" = set; then
19227   CXXFLAGS=$ac_save_CXXFLAGS
19228 elif test $ac_cv_prog_cxx_g = yes; then
19229   if test "$GXX" = yes; then
19230     CXXFLAGS="-g -O2"
19231   else
19232     CXXFLAGS="-g"
19233   fi
19234 else
19235   if test "$GXX" = yes; then
19236     CXXFLAGS="-O2"
19237   else
19238     CXXFLAGS=
19239   fi
19240 fi
19241 ac_ext=c
19242 ac_cpp='$CPP $CPPFLAGS'
19243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19246
19247
19248
19249
19250     ac_ext=cpp
19251 ac_cpp='$CXXCPP $CPPFLAGS'
19252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19255
19256     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
19257 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
19258 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
19259   echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261   cat >conftest.$ac_ext <<_ACEOF
19262 /* confdefs.h.  */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h.  */
19267
19268 int
19269 main ()
19270 {
19271
19272              #ifndef __INTEL_COMPILER
19273                 choke me
19274              #endif
19275
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19287   (eval "$ac_compile") 2>conftest.er1
19288   ac_status=$?
19289   grep -v '^ *+' conftest.er1 >conftest.err
19290   rm -f conftest.er1
19291   cat conftest.err >&5
19292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293   (exit $ac_status); } && {
19294          test -z "$ac_cxx_werror_flag" ||
19295          test ! -s conftest.err
19296        } && test -s conftest.$ac_objext; then
19297   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
19298 else
19299   echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
19303
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307
19308
19309 fi
19310 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
19311 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
19312     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
19313         :; INTELCXX=yes
19314     else
19315         :;
19316     fi
19317     ac_ext=c
19318 ac_cpp='$CPP $CPPFLAGS'
19319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19322
19323
19324
19325
19326         if test "x$GCXX" != "xyes"; then
19327         if test "xCXX" = "xC"; then
19328             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
19329 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
19330 if test "${bakefile_cv_c_exto+set}" = set; then
19331   echo $ECHO_N "(cached) $ECHO_C" >&6
19332 else
19333   cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h.  */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h.  */
19339
19340 int
19341 main ()
19342 {
19343
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext conftest.$ac_ext.o
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350   (eval $ac_compile) 2>&5
19351   ac_status=$?
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); }; then
19354   for ac_file in `(ls conftest.* 2>/dev/null)`; do
19355     case $ac_file in
19356         conftest.$ac_ext.o)
19357             bakefile_cv_c_exto="-ext o"
19358             ;;
19359         *)
19360             ;;
19361     esac
19362 done
19363 else
19364   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
19365 See \`config.log' for more details." >&5
19366 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
19367 See \`config.log' for more details." >&2;}
19368    { (exit 1); exit 1; }; }
19369
19370 fi
19371
19372 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
19373
19374 fi
19375 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
19376 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
19377 if test "x$bakefile_cv_c_exto" '!=' "x"; then
19378     if test "c" = "c"; then
19379         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
19380     fi
19381     if test "c" = "cxx"; then
19382         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
19383     fi
19384 fi
19385
19386             if test "x$bakefile_cv_c_exto" '!=' "x"; then
19387                 unset ac_cv_prog_cc_g
19388                 ac_test_CFLAGS=${CFLAGS+set}
19389 ac_save_CFLAGS=$CFLAGS
19390 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19391 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19392 if test "${ac_cv_prog_cc_g+set}" = set; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395   ac_save_c_werror_flag=$ac_c_werror_flag
19396    ac_c_werror_flag=yes
19397    ac_cv_prog_cc_g=no
19398    CFLAGS="-g"
19399    cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h.  */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h.  */
19405
19406 int
19407 main ()
19408 {
19409
19410   ;
19411   return 0;
19412 }
19413 _ACEOF
19414 rm -f conftest.$ac_objext
19415 if { (ac_try="$ac_compile"
19416 case "(($ac_try" in
19417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418   *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421   (eval "$ac_compile") 2>conftest.er1
19422   ac_status=$?
19423   grep -v '^ *+' conftest.er1 >conftest.err
19424   rm -f conftest.er1
19425   cat conftest.err >&5
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); } && {
19428          test -z "$ac_c_werror_flag" ||
19429          test ! -s conftest.err
19430        } && test -s conftest.$ac_objext; then
19431   ac_cv_prog_cc_g=yes
19432 else
19433   echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436         CFLAGS=""
19437       cat >conftest.$ac_ext <<_ACEOF
19438 /* confdefs.h.  */
19439 _ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h.  */
19443
19444 int
19445 main ()
19446 {
19447
19448   ;
19449   return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext
19453 if { (ac_try="$ac_compile"
19454 case "(($ac_try" in
19455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456   *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459   (eval "$ac_compile") 2>conftest.er1
19460   ac_status=$?
19461   grep -v '^ *+' conftest.er1 >conftest.err
19462   rm -f conftest.er1
19463   cat conftest.err >&5
19464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465   (exit $ac_status); } && {
19466          test -z "$ac_c_werror_flag" ||
19467          test ! -s conftest.err
19468        } && test -s conftest.$ac_objext; then
19469   :
19470 else
19471   echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474         ac_c_werror_flag=$ac_save_c_werror_flag
19475          CFLAGS="-g"
19476          cat >conftest.$ac_ext <<_ACEOF
19477 /* confdefs.h.  */
19478 _ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h.  */
19482
19483 int
19484 main ()
19485 {
19486
19487   ;
19488   return 0;
19489 }
19490 _ACEOF
19491 rm -f conftest.$ac_objext
19492 if { (ac_try="$ac_compile"
19493 case "(($ac_try" in
19494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495   *) ac_try_echo=$ac_try;;
19496 esac
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498   (eval "$ac_compile") 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } && {
19505          test -z "$ac_c_werror_flag" ||
19506          test ! -s conftest.err
19507        } && test -s conftest.$ac_objext; then
19508   ac_cv_prog_cc_g=yes
19509 else
19510   echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.$ac_ext >&5
19512
19513
19514 fi
19515
19516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19517 fi
19518
19519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19520 fi
19521
19522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19523    ac_c_werror_flag=$ac_save_c_werror_flag
19524 fi
19525 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19526 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19527 if test "$ac_test_CFLAGS" = set; then
19528   CFLAGS=$ac_save_CFLAGS
19529 elif test $ac_cv_prog_cc_g = yes; then
19530   if test "$GCC" = yes; then
19531     CFLAGS="-g -O2"
19532   else
19533     CFLAGS="-g"
19534   fi
19535 else
19536   if test "$GCC" = yes; then
19537     CFLAGS="-O2"
19538   else
19539     CFLAGS=
19540   fi
19541 fi
19542             fi
19543         fi
19544
19545                         case `uname -s` in
19546             AIX*)
19547
19548
19549     ac_ext=cpp
19550 ac_cpp='$CXXCPP $CPPFLAGS'
19551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19554
19555     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19556 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19557 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19558   echo $ECHO_N "(cached) $ECHO_C" >&6
19559 else
19560   cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h.  */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h.  */
19566
19567 int
19568 main ()
19569 {
19570
19571              #ifndef __xlC__
19572                 choke me
19573              #endif
19574
19575   ;
19576   return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext
19580 if { (ac_try="$ac_compile"
19581 case "(($ac_try" in
19582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583   *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586   (eval "$ac_compile") 2>conftest.er1
19587   ac_status=$?
19588   grep -v '^ *+' conftest.er1 >conftest.err
19589   rm -f conftest.er1
19590   cat conftest.err >&5
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); } && {
19593          test -z "$ac_cxx_werror_flag" ||
19594          test ! -s conftest.err
19595        } && test -s conftest.$ac_objext; then
19596   bakefile_cv_cxx_compiler___xlC__=yes
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601         bakefile_cv_cxx_compiler___xlC__=no
19602
19603 fi
19604
19605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19606
19607
19608 fi
19609 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19610 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19611     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19612         :; XLCXX=yes
19613     else
19614         :;
19615     fi
19616     ac_ext=c
19617 ac_cpp='$CPP $CPPFLAGS'
19618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621
19622
19623
19624                 ;;
19625
19626             Darwin)
19627
19628
19629     ac_ext=cpp
19630 ac_cpp='$CXXCPP $CPPFLAGS'
19631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19634
19635     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
19636 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
19637 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
19638   echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640   cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h.  */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h.  */
19646
19647 int
19648 main ()
19649 {
19650
19651              #ifndef __MWERKS__
19652                 choke me
19653              #endif
19654
19655   ;
19656   return 0;
19657 }
19658 _ACEOF
19659 rm -f conftest.$ac_objext
19660 if { (ac_try="$ac_compile"
19661 case "(($ac_try" in
19662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663   *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666   (eval "$ac_compile") 2>conftest.er1
19667   ac_status=$?
19668   grep -v '^ *+' conftest.er1 >conftest.err
19669   rm -f conftest.er1
19670   cat conftest.err >&5
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); } && {
19673          test -z "$ac_cxx_werror_flag" ||
19674          test ! -s conftest.err
19675        } && test -s conftest.$ac_objext; then
19676   bakefile_cv_cxx_compiler___MWERKS__=yes
19677 else
19678   echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19680
19681         bakefile_cv_cxx_compiler___MWERKS__=no
19682
19683 fi
19684
19685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686
19687
19688 fi
19689 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19690 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
19691     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19692         :; MWCXX=yes
19693     else
19694         :;
19695     fi
19696     ac_ext=c
19697 ac_cpp='$CPP $CPPFLAGS'
19698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19701
19702
19703
19704
19705
19706     ac_ext=cpp
19707 ac_cpp='$CXXCPP $CPPFLAGS'
19708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19711
19712     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19713 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19714 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723
19724 int
19725 main ()
19726 {
19727
19728              #ifndef __xlC__
19729                 choke me
19730              #endif
19731
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext
19737 if { (ac_try="$ac_compile"
19738 case "(($ac_try" in
19739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740   *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743   (eval "$ac_compile") 2>conftest.er1
19744   ac_status=$?
19745   grep -v '^ *+' conftest.er1 >conftest.err
19746   rm -f conftest.er1
19747   cat conftest.err >&5
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } && {
19750          test -z "$ac_cxx_werror_flag" ||
19751          test ! -s conftest.err
19752        } && test -s conftest.$ac_objext; then
19753   bakefile_cv_cxx_compiler___xlC__=yes
19754 else
19755   echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758         bakefile_cv_cxx_compiler___xlC__=no
19759
19760 fi
19761
19762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19763
19764
19765 fi
19766 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19767 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19768     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19769         :; XLCXX=yes
19770     else
19771         :;
19772     fi
19773     ac_ext=c
19774 ac_cpp='$CPP $CPPFLAGS'
19775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19778
19779
19780
19781                 ;;
19782
19783             IRIX*)
19784
19785
19786     ac_ext=cpp
19787 ac_cpp='$CXXCPP $CPPFLAGS'
19788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19791
19792     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19793 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19794 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19795   echo $ECHO_N "(cached) $ECHO_C" >&6
19796 else
19797   cat >conftest.$ac_ext <<_ACEOF
19798 /* confdefs.h.  */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h.  */
19803
19804 int
19805 main ()
19806 {
19807
19808              #ifndef _SGI_COMPILER_VERSION
19809                 choke me
19810              #endif
19811
19812   ;
19813   return 0;
19814 }
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820   *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823   (eval "$ac_compile") 2>conftest.er1
19824   ac_status=$?
19825   grep -v '^ *+' conftest.er1 >conftest.err
19826   rm -f conftest.er1
19827   cat conftest.err >&5
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); } && {
19830          test -z "$ac_cxx_werror_flag" ||
19831          test ! -s conftest.err
19832        } && test -s conftest.$ac_objext; then
19833   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19834 else
19835   echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19839
19840 fi
19841
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843
19844
19845 fi
19846 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19847 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19848     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19849         :; SGICXX=yes
19850     else
19851         :;
19852     fi
19853     ac_ext=c
19854 ac_cpp='$CPP $CPPFLAGS'
19855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19858
19859
19860
19861                 ;;
19862
19863             Linux*)
19864
19865
19866     ac_ext=cpp
19867 ac_cpp='$CXXCPP $CPPFLAGS'
19868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19871
19872     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19873 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19874 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19875   echo $ECHO_N "(cached) $ECHO_C" >&6
19876 else
19877   cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883
19884 int
19885 main ()
19886 {
19887
19888              #ifndef __SUNPRO_CC
19889                 choke me
19890              #endif
19891
19892   ;
19893   return 0;
19894 }
19895 _ACEOF
19896 rm -f conftest.$ac_objext
19897 if { (ac_try="$ac_compile"
19898 case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_compile") 2>conftest.er1
19904   ac_status=$?
19905   grep -v '^ *+' conftest.er1 >conftest.err
19906   rm -f conftest.er1
19907   cat conftest.err >&5
19908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909   (exit $ac_status); } && {
19910          test -z "$ac_cxx_werror_flag" ||
19911          test ! -s conftest.err
19912        } && test -s conftest.$ac_objext; then
19913   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19914 else
19915   echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19917
19918         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19919
19920 fi
19921
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923
19924
19925 fi
19926 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19927 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19928     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19929         :; SUNCXX=yes
19930     else
19931         :;
19932     fi
19933     ac_ext=c
19934 ac_cpp='$CPP $CPPFLAGS'
19935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19938
19939
19940
19941                 ;;
19942
19943             HP-UX*)
19944
19945
19946     ac_ext=cpp
19947 ac_cpp='$CXXCPP $CPPFLAGS'
19948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19951
19952     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
19953 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
19954 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
19955   echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957   cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963
19964 int
19965 main ()
19966 {
19967
19968              #ifndef __HP_aCC
19969                 choke me
19970              #endif
19971
19972   ;
19973   return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (ac_try="$ac_compile"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_compile") 2>conftest.er1
19984   ac_status=$?
19985   grep -v '^ *+' conftest.er1 >conftest.err
19986   rm -f conftest.er1
19987   cat conftest.err >&5
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); } && {
19990          test -z "$ac_cxx_werror_flag" ||
19991          test ! -s conftest.err
19992        } && test -s conftest.$ac_objext; then
19993   bakefile_cv_cxx_compiler___HP_aCC=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998         bakefile_cv_cxx_compiler___HP_aCC=no
19999
20000 fi
20001
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003
20004
20005 fi
20006 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
20007 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
20008     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
20009         :; HPCXX=yes
20010     else
20011         :;
20012     fi
20013     ac_ext=c
20014 ac_cpp='$CPP $CPPFLAGS'
20015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20018
20019
20020
20021                 ;;
20022
20023             OSF1)
20024
20025
20026     ac_ext=cpp
20027 ac_cpp='$CXXCPP $CPPFLAGS'
20028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20031
20032     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
20033 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
20034 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
20035   echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037   cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043
20044 int
20045 main ()
20046 {
20047
20048              #ifndef __DECCXX
20049                 choke me
20050              #endif
20051
20052   ;
20053   return 0;
20054 }
20055 _ACEOF
20056 rm -f conftest.$ac_objext
20057 if { (ac_try="$ac_compile"
20058 case "(($ac_try" in
20059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060   *) ac_try_echo=$ac_try;;
20061 esac
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063   (eval "$ac_compile") 2>conftest.er1
20064   ac_status=$?
20065   grep -v '^ *+' conftest.er1 >conftest.err
20066   rm -f conftest.er1
20067   cat conftest.err >&5
20068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069   (exit $ac_status); } && {
20070          test -z "$ac_cxx_werror_flag" ||
20071          test ! -s conftest.err
20072        } && test -s conftest.$ac_objext; then
20073   bakefile_cv_cxx_compiler___DECCXX=yes
20074 else
20075   echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20077
20078         bakefile_cv_cxx_compiler___DECCXX=no
20079
20080 fi
20081
20082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20083
20084
20085 fi
20086 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
20087 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
20088     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
20089         :; COMPAQCXX=yes
20090     else
20091         :;
20092     fi
20093     ac_ext=c
20094 ac_cpp='$CPP $CPPFLAGS'
20095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20098
20099
20100
20101                 ;;
20102
20103             SunOS)
20104
20105
20106     ac_ext=cpp
20107 ac_cpp='$CXXCPP $CPPFLAGS'
20108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20111
20112     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
20113 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
20114 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 else
20117   cat >conftest.$ac_ext <<_ACEOF
20118 /* confdefs.h.  */
20119 _ACEOF
20120 cat confdefs.h >>conftest.$ac_ext
20121 cat >>conftest.$ac_ext <<_ACEOF
20122 /* end confdefs.h.  */
20123
20124 int
20125 main ()
20126 {
20127
20128              #ifndef __SUNPRO_CC
20129                 choke me
20130              #endif
20131
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (ac_try="$ac_compile"
20138 case "(($ac_try" in
20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140   *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143   (eval "$ac_compile") 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } && {
20150          test -z "$ac_cxx_werror_flag" ||
20151          test ! -s conftest.err
20152        } && test -s conftest.$ac_objext; then
20153   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
20154 else
20155   echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158         bakefile_cv_cxx_compiler___SUNPRO_CC=no
20159
20160 fi
20161
20162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20163
20164
20165 fi
20166 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
20167 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
20168     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
20169         :; SUNCXX=yes
20170     else
20171         :;
20172     fi
20173     ac_ext=c
20174 ac_cpp='$CPP $CPPFLAGS'
20175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20178
20179
20180
20181                 ;;
20182         esac
20183     fi
20184
20185
20186
20187 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
20188     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
20189 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
20190    { (exit 1); exit 1; }; }
20191 fi
20192
20193 if test -n "$ac_tool_prefix"; then
20194   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20195 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20198 if test "${ac_cv_prog_RANLIB+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   if test -n "$RANLIB"; then
20202   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20203 else
20204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20205 for as_dir in $PATH
20206 do
20207   IFS=$as_save_IFS
20208   test -z "$as_dir" && as_dir=.
20209   for ac_exec_ext in '' $ac_executable_extensions; do
20210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20211     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20213     break 2
20214   fi
20215 done
20216 done
20217 IFS=$as_save_IFS
20218
20219 fi
20220 fi
20221 RANLIB=$ac_cv_prog_RANLIB
20222 if test -n "$RANLIB"; then
20223   { echo "$as_me:$LINENO: result: $RANLIB" >&5
20224 echo "${ECHO_T}$RANLIB" >&6; }
20225 else
20226   { echo "$as_me:$LINENO: result: no" >&5
20227 echo "${ECHO_T}no" >&6; }
20228 fi
20229
20230
20231 fi
20232 if test -z "$ac_cv_prog_RANLIB"; then
20233   ac_ct_RANLIB=$RANLIB
20234   # Extract the first word of "ranlib", so it can be a program name with args.
20235 set dummy ranlib; ac_word=$2
20236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20238 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
20239   echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241   if test -n "$ac_ct_RANLIB"; then
20242   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20243 else
20244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20245 for as_dir in $PATH
20246 do
20247   IFS=$as_save_IFS
20248   test -z "$as_dir" && as_dir=.
20249   for ac_exec_ext in '' $ac_executable_extensions; do
20250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20251     ac_cv_prog_ac_ct_RANLIB="ranlib"
20252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20253     break 2
20254   fi
20255 done
20256 done
20257 IFS=$as_save_IFS
20258
20259 fi
20260 fi
20261 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20262 if test -n "$ac_ct_RANLIB"; then
20263   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
20264 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
20265 else
20266   { echo "$as_me:$LINENO: result: no" >&5
20267 echo "${ECHO_T}no" >&6; }
20268 fi
20269
20270   if test "x$ac_ct_RANLIB" = x; then
20271     RANLIB=":"
20272   else
20273     case $cross_compiling:$ac_tool_warned in
20274 yes:)
20275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20276 whose name does not start with the host triplet.  If you think this
20277 configuration is useful to you, please write to autoconf@gnu.org." >&5
20278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20279 whose name does not start with the host triplet.  If you think this
20280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20281 ac_tool_warned=yes ;;
20282 esac
20283     RANLIB=$ac_ct_RANLIB
20284   fi
20285 else
20286   RANLIB="$ac_cv_prog_RANLIB"
20287 fi
20288
20289
20290 if test "x$SUNCXX" != xyes; then
20291     if test -n "$ac_tool_prefix"; then
20292   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20293 set dummy ${ac_tool_prefix}ar; ac_word=$2
20294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20296 if test "${ac_cv_prog_AR+set}" = set; then
20297   echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299   if test -n "$AR"; then
20300   ac_cv_prog_AR="$AR" # Let the user override the test.
20301 else
20302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20303 for as_dir in $PATH
20304 do
20305   IFS=$as_save_IFS
20306   test -z "$as_dir" && as_dir=.
20307   for ac_exec_ext in '' $ac_executable_extensions; do
20308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20309     ac_cv_prog_AR="${ac_tool_prefix}ar"
20310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20311     break 2
20312   fi
20313 done
20314 done
20315 IFS=$as_save_IFS
20316
20317 fi
20318 fi
20319 AR=$ac_cv_prog_AR
20320 if test -n "$AR"; then
20321   { echo "$as_me:$LINENO: result: $AR" >&5
20322 echo "${ECHO_T}$AR" >&6; }
20323 else
20324   { echo "$as_me:$LINENO: result: no" >&5
20325 echo "${ECHO_T}no" >&6; }
20326 fi
20327
20328
20329 fi
20330 if test -z "$ac_cv_prog_AR"; then
20331   ac_ct_AR=$AR
20332   # Extract the first word of "ar", so it can be a program name with args.
20333 set dummy ar; ac_word=$2
20334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   if test -n "$ac_ct_AR"; then
20340   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20341 else
20342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20343 for as_dir in $PATH
20344 do
20345   IFS=$as_save_IFS
20346   test -z "$as_dir" && as_dir=.
20347   for ac_exec_ext in '' $ac_executable_extensions; do
20348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20349     ac_cv_prog_ac_ct_AR="ar"
20350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20351     break 2
20352   fi
20353 done
20354 done
20355 IFS=$as_save_IFS
20356
20357 fi
20358 fi
20359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20360 if test -n "$ac_ct_AR"; then
20361   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20362 echo "${ECHO_T}$ac_ct_AR" >&6; }
20363 else
20364   { echo "$as_me:$LINENO: result: no" >&5
20365 echo "${ECHO_T}no" >&6; }
20366 fi
20367
20368   if test "x$ac_ct_AR" = x; then
20369     AR=""
20370   else
20371     case $cross_compiling:$ac_tool_warned in
20372 yes:)
20373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20374 whose name does not start with the host triplet.  If you think this
20375 configuration is useful to you, please write to autoconf@gnu.org." >&5
20376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20377 whose name does not start with the host triplet.  If you think this
20378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20379 ac_tool_warned=yes ;;
20380 esac
20381     AR=$ac_ct_AR
20382   fi
20383 else
20384   AR="$ac_cv_prog_AR"
20385 fi
20386
20387     if test "x$AR" = "x" ; then
20388         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
20389 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
20390    { (exit 1); exit 1; }; }
20391     fi
20392 fi
20393
20394 # Find a good install program.  We prefer a C program (faster),
20395 # so one script is as good as another.  But avoid the broken or
20396 # incompatible versions:
20397 # SysV /etc/install, /usr/sbin/install
20398 # SunOS /usr/etc/install
20399 # IRIX /sbin/install
20400 # AIX /bin/install
20401 # AmigaOS /C/install, which installs bootblocks on floppy discs
20402 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20403 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20404 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20405 # OS/2's system install, which has a completely different semantic
20406 # ./install, which can be erroneously created by make from ./install.sh.
20407 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20408 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20409 if test -z "$INSTALL"; then
20410 if test "${ac_cv_path_install+set}" = set; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20414 for as_dir in $PATH
20415 do
20416   IFS=$as_save_IFS
20417   test -z "$as_dir" && as_dir=.
20418   # Account for people who put trailing slashes in PATH elements.
20419 case $as_dir/ in
20420   ./ | .// | /cC/* | \
20421   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20422   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20423   /usr/ucb/* ) ;;
20424   *)
20425     # OSF1 and SCO ODT 3.0 have their own names for install.
20426     # Don't use installbsd from OSF since it installs stuff as root
20427     # by default.
20428     for ac_prog in ginstall scoinst install; do
20429       for ac_exec_ext in '' $ac_executable_extensions; do
20430         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20431           if test $ac_prog = install &&
20432             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20433             # AIX install.  It has an incompatible calling convention.
20434             :
20435           elif test $ac_prog = install &&
20436             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20437             # program-specific install script used by HP pwplus--don't use.
20438             :
20439           else
20440             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20441             break 3
20442           fi
20443         fi
20444       done
20445     done
20446     ;;
20447 esac
20448 done
20449 IFS=$as_save_IFS
20450
20451
20452 fi
20453   if test "${ac_cv_path_install+set}" = set; then
20454     INSTALL=$ac_cv_path_install
20455   else
20456     # As a last resort, use the slow shell script.  Don't cache a
20457     # value for INSTALL within a source directory, because that will
20458     # break other packages using the cache if that directory is
20459     # removed, or if the value is a relative name.
20460     INSTALL=$ac_install_sh
20461   fi
20462 fi
20463 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20464 echo "${ECHO_T}$INSTALL" >&6; }
20465
20466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20467 # It thinks the first close brace ends the variable substitution.
20468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20469
20470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20471
20472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20473
20474
20475 case ${INSTALL} in
20476   /* ) # Absolute
20477      ;;
20478   ?:* ) # Drive letter, considered as absolute.
20479      ;;
20480   *)
20481      INSTALL=`pwd`/${INSTALL} ;;
20482 esac
20483
20484 retest_macosx_linking=no
20485
20486 #if test "$wxUSE_MAC" = 1; then
20487     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
20488                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
20489             # Implicitly turn on the new --with-macosx-sdk using the default
20490             # SDK which provides the behavior this option has always had.
20491             if test "x$wxUSE_MACOSX_SDK" = "x"; then
20492                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
20493 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
20494                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
20495 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
20496                 wxUSE_MACOSX_SDK=yes
20497             fi
20498         else
20499             # Complain to user if he specified an argument to --enable-universal_binary
20500             # and also 1) specified --with-macosx-sdk using the default (yes) or
20501             # 2) specified --with-macosx-sdk using a path or 3) specified
20502             # --without-macosx-sdk (no).
20503             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
20504                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20505 See \`config.log' for more details." >&5
20506 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20507 See \`config.log' for more details." >&2;}
20508    { (exit 1); exit 1; }; }
20509             else
20510                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
20511                 # special-case the empty string because the below test simply
20512                 # converts "no" to the empty string anyway.
20513                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
20514                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
20515 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
20516             fi
20517         fi
20518                 OSX_UNIV_OPTS="-arch ppc -arch i386"
20519         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
20520         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
20521         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
20522                                                                                                                 retest_macosx_linking=yes
20523
20524                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
20525 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
20526         bk_use_pch=no
20527     fi
20528 #fi
20529
20530 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
20531     wxUSE_MACOSX_SDK=
20532 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
20533     # TODO: Search for most recent SDK and use it.
20534     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
20535 fi
20536
20537
20538 if test "x$wxUSE_MACOSX_SDK" != "x"; then
20539     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
20540 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
20541     if ! test -d "$wxUSE_MACOSX_SDK"; then
20542         { { echo "$as_me:$LINENO: error: not found
20543 See \`config.log' for more details." >&5
20544 echo "$as_me: error: not found
20545 See \`config.log' for more details." >&2;}
20546    { (exit 1); exit 1; }; }
20547     else
20548         { echo "$as_me:$LINENO: result: exists" >&5
20549 echo "${ECHO_T}exists" >&6; }
20550     fi
20551     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
20552     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
20553     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
20554     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
20555     retest_macosx_linking=yes
20556             fi
20557
20558 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
20559     wxUSE_MACOSX_VERSION_MIN=
20560 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
20561     if test "x$wxUSE_MACOSX_SDK" != "x"; then
20562         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
20563 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
20564
20565         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/'`
20566
20567         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
20568             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
20569             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
20570 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
20571         else
20572             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
20573 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
20574             wxUSE_MACOSX_VERSION_MIN=
20575         fi
20576     else
20577         wxUSE_MACOSX_VERSION_MIN=
20578     fi
20579 fi
20580
20581 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
20582     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
20583     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
20584     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
20585     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
20586     retest_macosx_linking=yes
20587 fi
20588
20589 if test "x$retest_macosx_linking" = "xyes"; then
20590     ac_ext=c
20591 ac_cpp='$CPP $CPPFLAGS'
20592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20595
20596     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
20597 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
20598     cat >conftest.$ac_ext <<_ACEOF
20599 /* confdefs.h.  */
20600 _ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h.  */
20604
20605 int
20606 main ()
20607 {
20608
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620   (eval "$ac_link") 2>conftest.er1
20621   ac_status=$?
20622   grep -v '^ *+' conftest.er1 >conftest.err
20623   rm -f conftest.er1
20624   cat conftest.err >&5
20625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626   (exit $ac_status); } && {
20627          test -z "$ac_c_werror_flag" ||
20628          test ! -s conftest.err
20629        } && test -s conftest$ac_exeext &&
20630        $as_test_x conftest$ac_exeext; then
20631   { echo "$as_me:$LINENO: result: yes" >&5
20632 echo "${ECHO_T}yes" >&6; }
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20638 See \`config.log' for more details." >&5
20639 echo "$as_me: error: no.  Try a different SDK
20640 See \`config.log' for more details." >&2;}
20641    { (exit 1); exit 1; }; }; exit 1
20642 fi
20643
20644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20645       conftest$ac_exeext conftest.$ac_ext
20646     ac_ext=c
20647 ac_cpp='$CPP $CPPFLAGS'
20648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20651
20652
20653     ac_ext=cpp
20654 ac_cpp='$CXXCPP $CPPFLAGS'
20655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20658
20659     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
20660 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
20661     cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667
20668 int
20669 main ()
20670 {
20671
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (ac_try="$ac_link"
20678 case "(($ac_try" in
20679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680   *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683   (eval "$ac_link") 2>conftest.er1
20684   ac_status=$?
20685   grep -v '^ *+' conftest.er1 >conftest.err
20686   rm -f conftest.er1
20687   cat conftest.err >&5
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); } && {
20690          test -z "$ac_cxx_werror_flag" ||
20691          test ! -s conftest.err
20692        } && test -s conftest$ac_exeext &&
20693        $as_test_x conftest$ac_exeext; then
20694   { echo "$as_me:$LINENO: result: yes" >&5
20695 echo "${ECHO_T}yes" >&6; }
20696 else
20697   echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20699
20700         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20701 See \`config.log' for more details." >&5
20702 echo "$as_me: error: no.  Try a different SDK
20703 See \`config.log' for more details." >&2;}
20704    { (exit 1); exit 1; }; }; exit 1
20705 fi
20706
20707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20708       conftest$ac_exeext conftest.$ac_ext
20709     ac_ext=c
20710 ac_cpp='$CPP $CPPFLAGS'
20711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20714
20715 fi
20716
20717
20718 case "${host}" in
20719
20720                 *-*-darwin* )
20721         INSTALL_PROGRAM="cp -fp"
20722         INSTALL_DATA="cp -fp"
20723         ;;
20724     *)
20725         ;;
20726 esac
20727
20728 if test -n "$ac_tool_prefix"; then
20729   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20730 set dummy ${ac_tool_prefix}strip; ac_word=$2
20731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20733 if test "${ac_cv_prog_STRIP+set}" = set; then
20734   echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736   if test -n "$STRIP"; then
20737   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20738 else
20739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20740 for as_dir in $PATH
20741 do
20742   IFS=$as_save_IFS
20743   test -z "$as_dir" && as_dir=.
20744   for ac_exec_ext in '' $ac_executable_extensions; do
20745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20746     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20748     break 2
20749   fi
20750 done
20751 done
20752 IFS=$as_save_IFS
20753
20754 fi
20755 fi
20756 STRIP=$ac_cv_prog_STRIP
20757 if test -n "$STRIP"; then
20758   { echo "$as_me:$LINENO: result: $STRIP" >&5
20759 echo "${ECHO_T}$STRIP" >&6; }
20760 else
20761   { echo "$as_me:$LINENO: result: no" >&5
20762 echo "${ECHO_T}no" >&6; }
20763 fi
20764
20765
20766 fi
20767 if test -z "$ac_cv_prog_STRIP"; then
20768   ac_ct_STRIP=$STRIP
20769   # Extract the first word of "strip", so it can be a program name with args.
20770 set dummy strip; ac_word=$2
20771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20773 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20774   echo $ECHO_N "(cached) $ECHO_C" >&6
20775 else
20776   if test -n "$ac_ct_STRIP"; then
20777   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20778 else
20779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20780 for as_dir in $PATH
20781 do
20782   IFS=$as_save_IFS
20783   test -z "$as_dir" && as_dir=.
20784   for ac_exec_ext in '' $ac_executable_extensions; do
20785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20786     ac_cv_prog_ac_ct_STRIP="strip"
20787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20788     break 2
20789   fi
20790 done
20791 done
20792 IFS=$as_save_IFS
20793
20794 fi
20795 fi
20796 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20797 if test -n "$ac_ct_STRIP"; then
20798   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
20799 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
20800 else
20801   { echo "$as_me:$LINENO: result: no" >&5
20802 echo "${ECHO_T}no" >&6; }
20803 fi
20804
20805   if test "x$ac_ct_STRIP" = x; then
20806     STRIP="true"
20807   else
20808     case $cross_compiling:$ac_tool_warned in
20809 yes:)
20810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20811 whose name does not start with the host triplet.  If you think this
20812 configuration is useful to you, please write to autoconf@gnu.org." >&5
20813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20814 whose name does not start with the host triplet.  If you think this
20815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20816 ac_tool_warned=yes ;;
20817 esac
20818     STRIP=$ac_ct_STRIP
20819   fi
20820 else
20821   STRIP="$ac_cv_prog_STRIP"
20822 fi
20823
20824
20825 if test "$wxUSE_WINE" = "yes"; then
20826     if test -n "$ac_tool_prefix"; then
20827   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
20828 set dummy ${ac_tool_prefix}wrc; ac_word=$2
20829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20831 if test "${ac_cv_prog_WINDRES+set}" = set; then
20832   echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834   if test -n "$WINDRES"; then
20835   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20836 else
20837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20838 for as_dir in $PATH
20839 do
20840   IFS=$as_save_IFS
20841   test -z "$as_dir" && as_dir=.
20842   for ac_exec_ext in '' $ac_executable_extensions; do
20843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20844     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
20845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20846     break 2
20847   fi
20848 done
20849 done
20850 IFS=$as_save_IFS
20851
20852 fi
20853 fi
20854 WINDRES=$ac_cv_prog_WINDRES
20855 if test -n "$WINDRES"; then
20856   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20857 echo "${ECHO_T}$WINDRES" >&6; }
20858 else
20859   { echo "$as_me:$LINENO: result: no" >&5
20860 echo "${ECHO_T}no" >&6; }
20861 fi
20862
20863
20864 fi
20865 if test -z "$ac_cv_prog_WINDRES"; then
20866   ac_ct_WINDRES=$WINDRES
20867   # Extract the first word of "wrc", so it can be a program name with args.
20868 set dummy wrc; ac_word=$2
20869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20871 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20872   echo $ECHO_N "(cached) $ECHO_C" >&6
20873 else
20874   if test -n "$ac_ct_WINDRES"; then
20875   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20876 else
20877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20878 for as_dir in $PATH
20879 do
20880   IFS=$as_save_IFS
20881   test -z "$as_dir" && as_dir=.
20882   for ac_exec_ext in '' $ac_executable_extensions; do
20883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20884     ac_cv_prog_ac_ct_WINDRES="wrc"
20885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20886     break 2
20887   fi
20888 done
20889 done
20890 IFS=$as_save_IFS
20891
20892 fi
20893 fi
20894 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20895 if test -n "$ac_ct_WINDRES"; then
20896   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20897 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20898 else
20899   { echo "$as_me:$LINENO: result: no" >&5
20900 echo "${ECHO_T}no" >&6; }
20901 fi
20902
20903   if test "x$ac_ct_WINDRES" = x; then
20904     WINDRES=""
20905   else
20906     case $cross_compiling:$ac_tool_warned in
20907 yes:)
20908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20909 whose name does not start with the host triplet.  If you think this
20910 configuration is useful to you, please write to autoconf@gnu.org." >&5
20911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20912 whose name does not start with the host triplet.  If you think this
20913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20914 ac_tool_warned=yes ;;
20915 esac
20916     WINDRES=$ac_ct_WINDRES
20917   fi
20918 else
20919   WINDRES="$ac_cv_prog_WINDRES"
20920 fi
20921
20922     RESCOMP="$WINDRES"
20923 else
20924     case "${host}" in
20925     *-*-cygwin* | *-*-mingw32* )
20926                                 if test -n "$ac_tool_prefix"; then
20927   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20928 set dummy ${ac_tool_prefix}windres; ac_word=$2
20929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20931 if test "${ac_cv_prog_WINDRES+set}" = set; then
20932   echo $ECHO_N "(cached) $ECHO_C" >&6
20933 else
20934   if test -n "$WINDRES"; then
20935   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20936 else
20937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20938 for as_dir in $PATH
20939 do
20940   IFS=$as_save_IFS
20941   test -z "$as_dir" && as_dir=.
20942   for ac_exec_ext in '' $ac_executable_extensions; do
20943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20944     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20946     break 2
20947   fi
20948 done
20949 done
20950 IFS=$as_save_IFS
20951
20952 fi
20953 fi
20954 WINDRES=$ac_cv_prog_WINDRES
20955 if test -n "$WINDRES"; then
20956   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20957 echo "${ECHO_T}$WINDRES" >&6; }
20958 else
20959   { echo "$as_me:$LINENO: result: no" >&5
20960 echo "${ECHO_T}no" >&6; }
20961 fi
20962
20963
20964 fi
20965 if test -z "$ac_cv_prog_WINDRES"; then
20966   ac_ct_WINDRES=$WINDRES
20967   # Extract the first word of "windres", so it can be a program name with args.
20968 set dummy windres; ac_word=$2
20969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20971 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20972   echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974   if test -n "$ac_ct_WINDRES"; then
20975   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20976 else
20977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20978 for as_dir in $PATH
20979 do
20980   IFS=$as_save_IFS
20981   test -z "$as_dir" && as_dir=.
20982   for ac_exec_ext in '' $ac_executable_extensions; do
20983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20984     ac_cv_prog_ac_ct_WINDRES="windres"
20985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20986     break 2
20987   fi
20988 done
20989 done
20990 IFS=$as_save_IFS
20991
20992 fi
20993 fi
20994 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20995 if test -n "$ac_ct_WINDRES"; then
20996   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20997 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20998 else
20999   { echo "$as_me:$LINENO: result: no" >&5
21000 echo "${ECHO_T}no" >&6; }
21001 fi
21002
21003   if test "x$ac_ct_WINDRES" = x; then
21004     WINDRES=""
21005   else
21006     case $cross_compiling:$ac_tool_warned in
21007 yes:)
21008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21009 whose name does not start with the host triplet.  If you think this
21010 configuration is useful to you, please write to autoconf@gnu.org." >&5
21011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21012 whose name does not start with the host triplet.  If you think this
21013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21014 ac_tool_warned=yes ;;
21015 esac
21016     WINDRES=$ac_ct_WINDRES
21017   fi
21018 else
21019   WINDRES="$ac_cv_prog_WINDRES"
21020 fi
21021
21022         RESCOMP="$WINDRES"
21023         if test -n "$ac_tool_prefix"; then
21024   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
21025 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
21026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21028 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
21029   echo $ECHO_N "(cached) $ECHO_C" >&6
21030 else
21031   if test -n "$DLLTOOL"; then
21032   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
21033 else
21034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21035 for as_dir in $PATH
21036 do
21037   IFS=$as_save_IFS
21038   test -z "$as_dir" && as_dir=.
21039   for ac_exec_ext in '' $ac_executable_extensions; do
21040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21041     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
21042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21043     break 2
21044   fi
21045 done
21046 done
21047 IFS=$as_save_IFS
21048
21049 fi
21050 fi
21051 DLLTOOL=$ac_cv_prog_DLLTOOL
21052 if test -n "$DLLTOOL"; then
21053   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
21054 echo "${ECHO_T}$DLLTOOL" >&6; }
21055 else
21056   { echo "$as_me:$LINENO: result: no" >&5
21057 echo "${ECHO_T}no" >&6; }
21058 fi
21059
21060
21061 fi
21062 if test -z "$ac_cv_prog_DLLTOOL"; then
21063   ac_ct_DLLTOOL=$DLLTOOL
21064   # Extract the first word of "dlltool", so it can be a program name with args.
21065 set dummy dlltool; ac_word=$2
21066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21068 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
21069   echo $ECHO_N "(cached) $ECHO_C" >&6
21070 else
21071   if test -n "$ac_ct_DLLTOOL"; then
21072   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
21073 else
21074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21075 for as_dir in $PATH
21076 do
21077   IFS=$as_save_IFS
21078   test -z "$as_dir" && as_dir=.
21079   for ac_exec_ext in '' $ac_executable_extensions; do
21080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21081     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
21082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21083     break 2
21084   fi
21085 done
21086 done
21087 IFS=$as_save_IFS
21088
21089 fi
21090 fi
21091 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
21092 if test -n "$ac_ct_DLLTOOL"; then
21093   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
21094 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
21095 else
21096   { echo "$as_me:$LINENO: result: no" >&5
21097 echo "${ECHO_T}no" >&6; }
21098 fi
21099
21100   if test "x$ac_ct_DLLTOOL" = x; then
21101     DLLTOOL=""
21102   else
21103     case $cross_compiling:$ac_tool_warned in
21104 yes:)
21105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21106 whose name does not start with the host triplet.  If you think this
21107 configuration is useful to you, please write to autoconf@gnu.org." >&5
21108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21109 whose name does not start with the host triplet.  If you think this
21110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21111 ac_tool_warned=yes ;;
21112 esac
21113     DLLTOOL=$ac_ct_DLLTOOL
21114   fi
21115 else
21116   DLLTOOL="$ac_cv_prog_DLLTOOL"
21117 fi
21118
21119         ;;
21120     esac
21121 fi
21122
21123 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
21124 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
21125 if test "${wx_cv_prog_makeisgnu+set}" = set; then
21126   echo $ECHO_N "(cached) $ECHO_C" >&6
21127 else
21128
21129     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
21130             $EGREP -s GNU > /dev/null); then
21131         wx_cv_prog_makeisgnu="yes"
21132     else
21133         wx_cv_prog_makeisgnu="no"
21134     fi
21135
21136 fi
21137 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
21138 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
21139
21140 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
21141     IF_GNU_MAKE=""
21142 else
21143     IF_GNU_MAKE="#"
21144 fi
21145
21146
21147
21148 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
21149 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
21150 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
21151 if test "${wx_cv_prog_makevpath+set}" = set; then
21152   echo $ECHO_N "(cached) $ECHO_C" >&6
21153 else
21154
21155 cat - << EOF > confMake
21156 check : file
21157         cp \$? \$@
21158         cp \$? final_file
21159 EOF
21160
21161 if test ! -d sub ; then
21162   mkdir sub
21163 fi
21164 echo dummy > sub/file
21165 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
21166 RESULT=$?
21167 rm -f sub/file check final_file confMake
21168 rmdir sub
21169 if test "$RESULT" = 0; then
21170   wx_cv_prog_makevpath="yes"
21171 else
21172   wx_cv_prog_makevpath="no"
21173 fi
21174
21175 fi
21176 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
21177 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
21178
21179 if test "x$wx_cv_prog_makevpath" != "xyes"; then
21180 { { echo "$as_me:$LINENO: error:
21181 You need a make-utility that is able to use the variable
21182 VPATH correctly.
21183 If your version of make does not support VPATH correctly,
21184 please install GNU-make (possibly as gmake), and start
21185 configure with the following command:
21186 export MAKE=gmake; ./configure  for sh-type shells
21187 setenv MAKE gmake; ./configure  for csh-type shells
21188 Also please do remember to use gmake in this case every time
21189 you are trying to compile.
21190 " >&5
21191 echo "$as_me: error:
21192 You need a make-utility that is able to use the variable
21193 VPATH correctly.
21194 If your version of make does not support VPATH correctly,
21195 please install GNU-make (possibly as gmake), and start
21196 configure with the following command:
21197 export MAKE=gmake; ./configure  for sh-type shells
21198 setenv MAKE gmake; ./configure  for csh-type shells
21199 Also please do remember to use gmake in this case every time
21200 you are trying to compile.
21201 " >&2;}
21202    { (exit 1); exit 1; }; }
21203 fi fi
21204 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
21205 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
21206 LN_S=$as_ln_s
21207 if test "$LN_S" = "ln -s"; then
21208   { echo "$as_me:$LINENO: result: yes" >&5
21209 echo "${ECHO_T}yes" >&6; }
21210 else
21211   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
21212 echo "${ECHO_T}no, using $LN_S" >&6; }
21213 fi
21214
21215
21216
21217
21218 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
21219     CXXFLAGS="-qunique $CXXFLAGS"
21220 fi
21221
21222 case "${host}" in
21223   powerpc-*-darwin* )
21224     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
21225 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
21226     cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232
21233 int
21234 main ()
21235 {
21236 #ifndef __POWERPC__
21237         choke me for lack of PowerPC
21238 #endif
21239
21240   ;
21241   return 0;
21242 }
21243 _ACEOF
21244 rm -f conftest.$ac_objext
21245 if { (ac_try="$ac_compile"
21246 case "(($ac_try" in
21247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248   *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251   (eval "$ac_compile") 2>conftest.er1
21252   ac_status=$?
21253   grep -v '^ *+' conftest.er1 >conftest.err
21254   rm -f conftest.er1
21255   cat conftest.err >&5
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } && {
21258          test -z "$ac_c_werror_flag" ||
21259          test ! -s conftest.err
21260        } && test -s conftest.$ac_objext; then
21261   { echo "$as_me:$LINENO: result: yes" >&5
21262 echo "${ECHO_T}yes" >&6; }
21263 else
21264   echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21266
21267         { echo "$as_me:$LINENO: result: no" >&5
21268 echo "${ECHO_T}no" >&6; }
21269         cat >>confdefs.h <<\_ACEOF
21270 #define __POWERPC__ 1
21271 _ACEOF
21272
21273
21274 fi
21275
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277   ;;
21278 esac
21279
21280 case "${host}" in
21281   *-*-darwin* )
21282     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
21283 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
21284     cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h.  */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h.  */
21290 #include <CoreFoundation/CFBase.h>
21291
21292 int
21293 main ()
21294 {
21295
21296   ;
21297   return 0;
21298 }
21299 _ACEOF
21300 rm -f conftest.$ac_objext
21301 if { (ac_try="$ac_compile"
21302 case "(($ac_try" in
21303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304   *) ac_try_echo=$ac_try;;
21305 esac
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307   (eval "$ac_compile") 2>conftest.er1
21308   ac_status=$?
21309   grep -v '^ *+' conftest.er1 >conftest.err
21310   rm -f conftest.er1
21311   cat conftest.err >&5
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); } && {
21314          test -z "$ac_c_werror_flag" ||
21315          test ! -s conftest.err
21316        } && test -s conftest.$ac_objext; then
21317   { echo "$as_me:$LINENO: result: yes" >&5
21318 echo "${ECHO_T}yes" >&6; }
21319 else
21320   echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21322
21323         { echo "$as_me:$LINENO: result: no" >&5
21324 echo "${ECHO_T}no" >&6; }
21325         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
21326 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
21327         cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h.  */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h.  */
21333 #define __CF_USE_FRAMEWORK_INCLUDES__
21334 #include <CoreFoundation/CFBase.h>
21335
21336 int
21337 main ()
21338 {
21339
21340   ;
21341   return 0;
21342 }
21343 _ACEOF
21344 rm -f conftest.$ac_objext
21345 if { (ac_try="$ac_compile"
21346 case "(($ac_try" in
21347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348   *) ac_try_echo=$ac_try;;
21349 esac
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351   (eval "$ac_compile") 2>conftest.er1
21352   ac_status=$?
21353   grep -v '^ *+' conftest.er1 >conftest.err
21354   rm -f conftest.er1
21355   cat conftest.err >&5
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } && {
21358          test -z "$ac_c_werror_flag" ||
21359          test ! -s conftest.err
21360        } && test -s conftest.$ac_objext; then
21361   { echo "$as_me:$LINENO: result: yes" >&5
21362 echo "${ECHO_T}yes" >&6; }
21363                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
21364 else
21365   echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21367
21368         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
21369 See \`config.log' for more details." >&5
21370 echo "$as_me: error: no.  CoreFoundation not available.
21371 See \`config.log' for more details." >&2;}
21372    { (exit 1); exit 1; }; }
21373
21374 fi
21375
21376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21377
21378
21379 fi
21380
21381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21382   ;;
21383 esac
21384
21385 wants_win32=0
21386 doesnt_want_win32=0
21387 case "${host}" in
21388   *-*-cygwin*)
21389       if test "$wxUSE_MSW" = 1 ; then
21390         wants_win32=1
21391       else
21392                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
21393 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
21394 if test "${wx_cv_nocygwin+set}" = set; then
21395   echo $ECHO_N "(cached) $ECHO_C" >&6
21396 else
21397
21398                 cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404
21405 int
21406 main ()
21407 {
21408
21409                         #ifdef __MINGW32__
21410                             choke me
21411                         #endif
21412
21413   ;
21414   return 0;
21415 }
21416 _ACEOF
21417 rm -f conftest.$ac_objext
21418 if { (ac_try="$ac_compile"
21419 case "(($ac_try" in
21420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21421   *) ac_try_echo=$ac_try;;
21422 esac
21423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21424   (eval "$ac_compile") 2>conftest.er1
21425   ac_status=$?
21426   grep -v '^ *+' conftest.er1 >conftest.err
21427   rm -f conftest.er1
21428   cat conftest.err >&5
21429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430   (exit $ac_status); } && {
21431          test -z "$ac_c_werror_flag" ||
21432          test ! -s conftest.err
21433        } && test -s conftest.$ac_objext; then
21434   wx_cv_nocygwin=no
21435 else
21436   echo "$as_me: failed program was:" >&5
21437 sed 's/^/| /' conftest.$ac_ext >&5
21438
21439         wx_cv_nocygwin=yes
21440
21441 fi
21442
21443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21444
21445
21446 fi
21447 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
21448 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
21449
21450         if test "$wx_cv_nocygwin" = "yes"; then
21451             wants_win32=1
21452         else
21453             doesnt_want_win32=1
21454         fi
21455       fi
21456       if test "$wants_win32" = 1 ; then
21457         BAKEFILE_FORCE_PLATFORM=win32
21458       fi
21459   ;;
21460   *-*-mingw*)
21461       wants_win32=1
21462   ;;
21463 esac
21464
21465 if test "$wxUSE_WINE" = "yes"; then
21466     wants_win32=1
21467     LDFLAGS_GUI="-mwindows"
21468 fi
21469
21470 if test "$wants_win32" = 1 ; then
21471     USE_UNIX=0
21472     USE_WIN32=1
21473     cat >>confdefs.h <<\_ACEOF
21474 #define __WIN32__ 1
21475 _ACEOF
21476
21477     cat >>confdefs.h <<\_ACEOF
21478 #define __WIN95__ 1
21479 _ACEOF
21480
21481     cat >>confdefs.h <<\_ACEOF
21482 #define __WINDOWS__ 1
21483 _ACEOF
21484
21485     cat >>confdefs.h <<\_ACEOF
21486 #define __GNUWIN32__ 1
21487 _ACEOF
21488
21489     cat >>confdefs.h <<\_ACEOF
21490 #define STRICT 1
21491 _ACEOF
21492
21493 fi
21494 if test "$doesnt_want_win32" = 1 ; then
21495     USE_UNIX=1
21496     USE_WIN32=0
21497 fi
21498
21499 if test "$USE_UNIX" = 1 ; then
21500     wxUSE_UNIX=yes
21501     cat >>confdefs.h <<\_ACEOF
21502 #define __UNIX__ 1
21503 _ACEOF
21504
21505 fi
21506
21507 case "${host}" in
21508   *-pc-os2_emx | *-pc-os2-emx )
21509                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
21510                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
21511 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
21512 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
21513   echo $ECHO_N "(cached) $ECHO_C" >&6
21514 else
21515   ac_check_lib_save_LIBS=$LIBS
21516 LIBS="-lcExt  $LIBS"
21517 cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h.  */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h.  */
21523
21524 /* Override any GCC internal prototype to avoid an error.
21525    Use char because int might match the return type of a GCC
21526    builtin and then its argument prototype would still apply.  */
21527 #ifdef __cplusplus
21528 extern "C"
21529 #endif
21530 char drand48 ();
21531 int
21532 main ()
21533 {
21534 return drand48 ();
21535   ;
21536   return 0;
21537 }
21538 _ACEOF
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543   *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546   (eval "$ac_link") 2>conftest.er1
21547   ac_status=$?
21548   grep -v '^ *+' conftest.er1 >conftest.err
21549   rm -f conftest.er1
21550   cat conftest.err >&5
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); } && {
21553          test -z "$ac_c_werror_flag" ||
21554          test ! -s conftest.err
21555        } && test -s conftest$ac_exeext &&
21556        $as_test_x conftest$ac_exeext; then
21557   ac_cv_lib_cExt_drand48=yes
21558 else
21559   echo "$as_me: failed program was:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21561
21562         ac_cv_lib_cExt_drand48=no
21563 fi
21564
21565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21566       conftest$ac_exeext conftest.$ac_ext
21567 LIBS=$ac_check_lib_save_LIBS
21568 fi
21569 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
21570 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
21571 if test $ac_cv_lib_cExt_drand48 = yes; then
21572   LIBS="$LIBS -lcExt"
21573 fi
21574
21575       else
21576                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
21577       fi
21578                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
21579 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
21580 if test "${wx_cv_gccversion+set}" = set; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583
21584           if test "$cross_compiling" = yes; then
21585                 wx_cv_gccversion="EMX2"
21586
21587 else
21588   cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h.  */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h.  */
21594
21595                   #include <stdio.h>
21596
21597                   int main()
21598                   {
21599                       FILE *f=fopen("conftestval", "w");
21600                       if (!f) exit(1);
21601                       fprintf(f,
21602                   #if (__GNUC__ < 3)
21603                               "EMX2"
21604                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
21605                               "EMX3"
21606                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
21607                               "Innotek5"
21608                   #else
21609                               "Innotek6"
21610                   #endif
21611                       );
21612                       exit(0);
21613                   }
21614
21615 _ACEOF
21616 rm -f conftest$ac_exeext
21617 if { (ac_try="$ac_link"
21618 case "(($ac_try" in
21619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620   *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623   (eval "$ac_link") 2>&5
21624   ac_status=$?
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21627   { (case "(($ac_try" in
21628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21629   *) ac_try_echo=$ac_try;;
21630 esac
21631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21632   (eval "$ac_try") 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; }; then
21636   wx_cv_gccversion=`cat conftestval`
21637 else
21638   echo "$as_me: program exited with status $ac_status" >&5
21639 echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21641
21642 ( exit $ac_status )
21643 wx_cv_gccversion="EMX2"
21644 fi
21645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21646 fi
21647
21648
21649
21650 fi
21651 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
21652 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
21653       if test "$wx_cv_gccversion" = "EMX2"; then
21654           LIBS="$LIBS -lstdcpp"
21655           LDFLAGS="$LDFLAGS -Zsysv-signals"
21656       else
21657           if test "$wx_cv_gccversion" = "EMX3"; then
21658               LIBS="$LIBS -lstdcxx -lgcc"
21659               LDFLAGS="$LDFLAGS -Zsysv-signals"
21660           else
21661               LIBS="$LIBS -lstdc++"
21662           fi
21663       fi
21664       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
21665         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
21666 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
21667         wxUSE_OMF=yes
21668         enable_omf=yes
21669       fi
21670         ;;
21671   *)
21672
21673       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
21674 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
21675 if test "${ac_cv_string_strcasecmp+set}" = set; then
21676   echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678
21679           cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h.  */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h.  */
21685
21686               #include <string.h>
21687
21688 int
21689 main ()
21690 {
21691
21692                   strcasecmp("foo", "bar");
21693
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 rm -f conftest.$ac_objext conftest$ac_exeext
21699 if { (ac_try="$ac_link"
21700 case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705   (eval "$ac_link") 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } && {
21712          test -z "$ac_c_werror_flag" ||
21713          test ! -s conftest.err
21714        } && test -s conftest$ac_exeext &&
21715        $as_test_x conftest$ac_exeext; then
21716   ac_cv_string_strcasecmp=yes
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721         ac_cv_string_strcasecmp=no
21722
21723 fi
21724
21725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21726       conftest$ac_exeext conftest.$ac_ext
21727
21728 fi
21729 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
21730 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
21731
21732       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
21733           cat >>confdefs.h <<\_ACEOF
21734 #define HAVE_STRCASECMP_IN_STRING_H 1
21735 _ACEOF
21736
21737       else
21738           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
21739 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
21740 if test "${ac_cv_strings_strcasecmp+set}" = set; then
21741   echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743
21744               cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h.  */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h.  */
21750
21751                   #include <strings.h>
21752
21753 int
21754 main ()
21755 {
21756
21757                       strcasecmp("foo", "bar");
21758
21759   ;
21760   return 0;
21761 }
21762 _ACEOF
21763 rm -f conftest.$ac_objext conftest$ac_exeext
21764 if { (ac_try="$ac_link"
21765 case "(($ac_try" in
21766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767   *) ac_try_echo=$ac_try;;
21768 esac
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770   (eval "$ac_link") 2>conftest.er1
21771   ac_status=$?
21772   grep -v '^ *+' conftest.er1 >conftest.err
21773   rm -f conftest.er1
21774   cat conftest.err >&5
21775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776   (exit $ac_status); } && {
21777          test -z "$ac_c_werror_flag" ||
21778          test ! -s conftest.err
21779        } && test -s conftest$ac_exeext &&
21780        $as_test_x conftest$ac_exeext; then
21781   ac_cv_strings_strcasecmp=yes
21782 else
21783   echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786         ac_cv_strings_strcasecmp=no
21787
21788 fi
21789
21790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21791       conftest$ac_exeext conftest.$ac_ext
21792
21793 fi
21794 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
21795 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
21796
21797           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
21798               cat >>confdefs.h <<\_ACEOF
21799 #define HAVE_STRCASECMP_IN_STRINGS_H 1
21800 _ACEOF
21801
21802           else
21803               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
21804 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
21805    { (exit 1); exit 1; }; }
21806           fi
21807       fi
21808
21809         ;;
21810 esac
21811
21812
21813 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21815 if test "${ac_cv_header_stdc+set}" = set; then
21816   echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818   cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 #include <stdlib.h>
21825 #include <stdarg.h>
21826 #include <string.h>
21827 #include <float.h>
21828
21829 int
21830 main ()
21831 {
21832
21833   ;
21834   return 0;
21835 }
21836 _ACEOF
21837 rm -f conftest.$ac_objext
21838 if { (ac_try="$ac_compile"
21839 case "(($ac_try" in
21840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841   *) ac_try_echo=$ac_try;;
21842 esac
21843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21844   (eval "$ac_compile") 2>conftest.er1
21845   ac_status=$?
21846   grep -v '^ *+' conftest.er1 >conftest.err
21847   rm -f conftest.er1
21848   cat conftest.err >&5
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); } && {
21851          test -z "$ac_c_werror_flag" ||
21852          test ! -s conftest.err
21853        } && test -s conftest.$ac_objext; then
21854   ac_cv_header_stdc=yes
21855 else
21856   echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21858
21859         ac_cv_header_stdc=no
21860 fi
21861
21862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21863
21864 if test $ac_cv_header_stdc = yes; then
21865   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21866   cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872 #include <string.h>
21873
21874 _ACEOF
21875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21876   $EGREP "memchr" >/dev/null 2>&1; then
21877   :
21878 else
21879   ac_cv_header_stdc=no
21880 fi
21881 rm -f conftest*
21882
21883 fi
21884
21885 if test $ac_cv_header_stdc = yes; then
21886   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21887   cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h.  */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h.  */
21893 #include <stdlib.h>
21894
21895 _ACEOF
21896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21897   $EGREP "free" >/dev/null 2>&1; then
21898   :
21899 else
21900   ac_cv_header_stdc=no
21901 fi
21902 rm -f conftest*
21903
21904 fi
21905
21906 if test $ac_cv_header_stdc = yes; then
21907   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21908   if test "$cross_compiling" = yes; then
21909   :
21910 else
21911   cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h.  */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h.  */
21917 #include <ctype.h>
21918 #include <stdlib.h>
21919 #if ((' ' & 0x0FF) == 0x020)
21920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21922 #else
21923 # define ISLOWER(c) \
21924                    (('a' <= (c) && (c) <= 'i') \
21925                      || ('j' <= (c) && (c) <= 'r') \
21926                      || ('s' <= (c) && (c) <= 'z'))
21927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21928 #endif
21929
21930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21931 int
21932 main ()
21933 {
21934   int i;
21935   for (i = 0; i < 256; i++)
21936     if (XOR (islower (i), ISLOWER (i))
21937         || toupper (i) != TOUPPER (i))
21938       return 2;
21939   return 0;
21940 }
21941 _ACEOF
21942 rm -f conftest$ac_exeext
21943 if { (ac_try="$ac_link"
21944 case "(($ac_try" in
21945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946   *) ac_try_echo=$ac_try;;
21947 esac
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949   (eval "$ac_link") 2>&5
21950   ac_status=$?
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21953   { (case "(($ac_try" in
21954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955   *) ac_try_echo=$ac_try;;
21956 esac
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958   (eval "$ac_try") 2>&5
21959   ac_status=$?
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); }; }; then
21962   :
21963 else
21964   echo "$as_me: program exited with status $ac_status" >&5
21965 echo "$as_me: failed program was:" >&5
21966 sed 's/^/| /' conftest.$ac_ext >&5
21967
21968 ( exit $ac_status )
21969 ac_cv_header_stdc=no
21970 fi
21971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21972 fi
21973
21974
21975 fi
21976 fi
21977 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21978 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21979 if test $ac_cv_header_stdc = yes; then
21980
21981 cat >>confdefs.h <<\_ACEOF
21982 #define STDC_HEADERS 1
21983 _ACEOF
21984
21985 fi
21986
21987 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21998                   inttypes.h stdint.h unistd.h
21999 do
22000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22004   echo $ECHO_N "(cached) $ECHO_C" >&6
22005 else
22006   cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h.  */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h.  */
22012 $ac_includes_default
22013
22014 #include <$ac_header>
22015 _ACEOF
22016 rm -f conftest.$ac_objext
22017 if { (ac_try="$ac_compile"
22018 case "(($ac_try" in
22019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020   *) ac_try_echo=$ac_try;;
22021 esac
22022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22023   (eval "$ac_compile") 2>conftest.er1
22024   ac_status=$?
22025   grep -v '^ *+' conftest.er1 >conftest.err
22026   rm -f conftest.er1
22027   cat conftest.err >&5
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } && {
22030          test -z "$ac_c_werror_flag" ||
22031          test ! -s conftest.err
22032        } && test -s conftest.$ac_objext; then
22033   eval "$as_ac_Header=yes"
22034 else
22035   echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038         eval "$as_ac_Header=no"
22039 fi
22040
22041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042 fi
22043 ac_res=`eval echo '${'$as_ac_Header'}'`
22044                { echo "$as_me:$LINENO: result: $ac_res" >&5
22045 echo "${ECHO_T}$ac_res" >&6; }
22046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22047   cat >>confdefs.h <<_ACEOF
22048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22049 _ACEOF
22050
22051 fi
22052
22053 done
22054
22055
22056
22057
22058
22059
22060
22061
22062 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
22063 do
22064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22068   echo $ECHO_N "(cached) $ECHO_C" >&6
22069 else
22070   cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076 $ac_includes_default
22077
22078 #include <$ac_header>
22079 _ACEOF
22080 rm -f conftest.$ac_objext
22081 if { (ac_try="$ac_compile"
22082 case "(($ac_try" in
22083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084   *) ac_try_echo=$ac_try;;
22085 esac
22086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22087   (eval "$ac_compile") 2>conftest.er1
22088   ac_status=$?
22089   grep -v '^ *+' conftest.er1 >conftest.err
22090   rm -f conftest.er1
22091   cat conftest.err >&5
22092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093   (exit $ac_status); } && {
22094          test -z "$ac_c_werror_flag" ||
22095          test ! -s conftest.err
22096        } && test -s conftest.$ac_objext; then
22097   eval "$as_ac_Header=yes"
22098 else
22099   echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22101
22102         eval "$as_ac_Header=no"
22103 fi
22104
22105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106 fi
22107 ac_res=`eval echo '${'$as_ac_Header'}'`
22108                { echo "$as_me:$LINENO: result: $ac_res" >&5
22109 echo "${ECHO_T}$ac_res" >&6; }
22110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22111   cat >>confdefs.h <<_ACEOF
22112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22113 _ACEOF
22114
22115 fi
22116
22117 done
22118
22119
22120 if test "$ac_cv_header_wchar_h" != "yes"; then
22121
22122 for ac_header in wcstr.h
22123 do
22124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22128   echo $ECHO_N "(cached) $ECHO_C" >&6
22129 else
22130   cat >conftest.$ac_ext <<_ACEOF
22131 /* confdefs.h.  */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h.  */
22136 $ac_includes_default
22137
22138 #include <$ac_header>
22139 _ACEOF
22140 rm -f conftest.$ac_objext
22141 if { (ac_try="$ac_compile"
22142 case "(($ac_try" in
22143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144   *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147   (eval "$ac_compile") 2>conftest.er1
22148   ac_status=$?
22149   grep -v '^ *+' conftest.er1 >conftest.err
22150   rm -f conftest.er1
22151   cat conftest.err >&5
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); } && {
22154          test -z "$ac_c_werror_flag" ||
22155          test ! -s conftest.err
22156        } && test -s conftest.$ac_objext; then
22157   eval "$as_ac_Header=yes"
22158 else
22159   echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162         eval "$as_ac_Header=no"
22163 fi
22164
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 fi
22167 ac_res=`eval echo '${'$as_ac_Header'}'`
22168                { echo "$as_me:$LINENO: result: $ac_res" >&5
22169 echo "${ECHO_T}$ac_res" >&6; }
22170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22171   cat >>confdefs.h <<_ACEOF
22172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22173 _ACEOF
22174
22175 fi
22176
22177 done
22178
22179 fi
22180
22181 case "${host}" in
22182   *-pc-os2_emx | *-pc-os2-emx )
22183                   if test $ac_cv_header_langinfo_h = "yes" \
22184                 -a \(   "$wx_cv_gccversion" = "EMX2" \
22185                      -o "$wx_cv_gccversion" = "EMX3" \
22186                      -o "$wx_cv_gccversion" = "Innotek5" \); then
22187           LIBS="$LIBS -lintl"
22188       fi
22189   ;;
22190 esac
22191
22192 if test "$USE_UNIX" = 1 ; then
22193
22194 for ac_header in sys/select.h
22195 do
22196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22200   echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202   cat >conftest.$ac_ext <<_ACEOF
22203 /* confdefs.h.  */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h.  */
22208 $ac_includes_default
22209
22210 #include <$ac_header>
22211 _ACEOF
22212 rm -f conftest.$ac_objext
22213 if { (ac_try="$ac_compile"
22214 case "(($ac_try" in
22215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216   *) ac_try_echo=$ac_try;;
22217 esac
22218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22219   (eval "$ac_compile") 2>conftest.er1
22220   ac_status=$?
22221   grep -v '^ *+' conftest.er1 >conftest.err
22222   rm -f conftest.er1
22223   cat conftest.err >&5
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); } && {
22226          test -z "$ac_c_werror_flag" ||
22227          test ! -s conftest.err
22228        } && test -s conftest.$ac_objext; then
22229   eval "$as_ac_Header=yes"
22230 else
22231   echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234         eval "$as_ac_Header=no"
22235 fi
22236
22237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22238 fi
22239 ac_res=`eval echo '${'$as_ac_Header'}'`
22240                { echo "$as_me:$LINENO: result: $ac_res" >&5
22241 echo "${ECHO_T}$ac_res" >&6; }
22242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22243   cat >>confdefs.h <<_ACEOF
22244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22245 _ACEOF
22246
22247 fi
22248
22249 done
22250
22251 fi
22252
22253
22254 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22255 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22256 if test "${ac_cv_c_const+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259   cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h.  */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h.  */
22265
22266 int
22267 main ()
22268 {
22269 /* FIXME: Include the comments suggested by Paul. */
22270 #ifndef __cplusplus
22271   /* Ultrix mips cc rejects this.  */
22272   typedef int charset[2];
22273   const charset cs;
22274   /* SunOS 4.1.1 cc rejects this.  */
22275   char const *const *pcpcc;
22276   char **ppc;
22277   /* NEC SVR4.0.2 mips cc rejects this.  */
22278   struct point {int x, y;};
22279   static struct point const zero = {0,0};
22280   /* AIX XL C 1.02.0.0 rejects this.
22281      It does not let you subtract one const X* pointer from another in
22282      an arm of an if-expression whose if-part is not a constant
22283      expression */
22284   const char *g = "string";
22285   pcpcc = &g + (g ? g-g : 0);
22286   /* HPUX 7.0 cc rejects these. */
22287   ++pcpcc;
22288   ppc = (char**) pcpcc;
22289   pcpcc = (char const *const *) ppc;
22290   { /* SCO 3.2v4 cc rejects this.  */
22291     char *t;
22292     char const *s = 0 ? (char *) 0 : (char const *) 0;
22293
22294     *t++ = 0;
22295     if (s) return 0;
22296   }
22297   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22298     int x[] = {25, 17};
22299     const int *foo = &x[0];
22300     ++foo;
22301   }
22302   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22303     typedef const int *iptr;
22304     iptr p = 0;
22305     ++p;
22306   }
22307   { /* AIX XL C 1.02.0.0 rejects this saying
22308        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22309     struct s { int j; const int *ap[3]; };
22310     struct s *b; b->j = 5;
22311   }
22312   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22313     const int foo = 10;
22314     if (!foo) return 0;
22315   }
22316   return !cs[0] && !zero.x;
22317 #endif
22318
22319   ;
22320   return 0;
22321 }
22322 _ACEOF
22323 rm -f conftest.$ac_objext
22324 if { (ac_try="$ac_compile"
22325 case "(($ac_try" in
22326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327   *) ac_try_echo=$ac_try;;
22328 esac
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330   (eval "$ac_compile") 2>conftest.er1
22331   ac_status=$?
22332   grep -v '^ *+' conftest.er1 >conftest.err
22333   rm -f conftest.er1
22334   cat conftest.err >&5
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); } && {
22337          test -z "$ac_c_werror_flag" ||
22338          test ! -s conftest.err
22339        } && test -s conftest.$ac_objext; then
22340   ac_cv_c_const=yes
22341 else
22342   echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22344
22345         ac_cv_c_const=no
22346 fi
22347
22348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22349 fi
22350 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22351 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22352 if test $ac_cv_c_const = no; then
22353
22354 cat >>confdefs.h <<\_ACEOF
22355 #define const
22356 _ACEOF
22357
22358 fi
22359
22360 { echo "$as_me:$LINENO: checking for inline" >&5
22361 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22362 if test "${ac_cv_c_inline+set}" = set; then
22363   echo $ECHO_N "(cached) $ECHO_C" >&6
22364 else
22365   ac_cv_c_inline=no
22366 for ac_kw in inline __inline__ __inline; do
22367   cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h.  */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h.  */
22373 #ifndef __cplusplus
22374 typedef int foo_t;
22375 static $ac_kw foo_t static_foo () {return 0; }
22376 $ac_kw foo_t foo () {return 0; }
22377 #endif
22378
22379 _ACEOF
22380 rm -f conftest.$ac_objext
22381 if { (ac_try="$ac_compile"
22382 case "(($ac_try" in
22383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22384   *) ac_try_echo=$ac_try;;
22385 esac
22386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22387   (eval "$ac_compile") 2>conftest.er1
22388   ac_status=$?
22389   grep -v '^ *+' conftest.er1 >conftest.err
22390   rm -f conftest.er1
22391   cat conftest.err >&5
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); } && {
22394          test -z "$ac_c_werror_flag" ||
22395          test ! -s conftest.err
22396        } && test -s conftest.$ac_objext; then
22397   ac_cv_c_inline=$ac_kw
22398 else
22399   echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22401
22402
22403 fi
22404
22405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406   test "$ac_cv_c_inline" != no && break
22407 done
22408
22409 fi
22410 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22411 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22412
22413
22414 case $ac_cv_c_inline in
22415   inline | yes) ;;
22416   *)
22417     case $ac_cv_c_inline in
22418       no) ac_val=;;
22419       *) ac_val=$ac_cv_c_inline;;
22420     esac
22421     cat >>confdefs.h <<_ACEOF
22422 #ifndef __cplusplus
22423 #define inline $ac_val
22424 #endif
22425 _ACEOF
22426     ;;
22427 esac
22428
22429
22430 { echo "$as_me:$LINENO: checking for short" >&5
22431 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22432 if test "${ac_cv_type_short+set}" = set; then
22433   echo $ECHO_N "(cached) $ECHO_C" >&6
22434 else
22435   cat >conftest.$ac_ext <<_ACEOF
22436 /* confdefs.h.  */
22437 _ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h.  */
22441 $ac_includes_default
22442 typedef short ac__type_new_;
22443 int
22444 main ()
22445 {
22446 if ((ac__type_new_ *) 0)
22447   return 0;
22448 if (sizeof (ac__type_new_))
22449   return 0;
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 rm -f conftest.$ac_objext
22455 if { (ac_try="$ac_compile"
22456 case "(($ac_try" in
22457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458   *) ac_try_echo=$ac_try;;
22459 esac
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461   (eval "$ac_compile") 2>conftest.er1
22462   ac_status=$?
22463   grep -v '^ *+' conftest.er1 >conftest.err
22464   rm -f conftest.er1
22465   cat conftest.err >&5
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); } && {
22468          test -z "$ac_c_werror_flag" ||
22469          test ! -s conftest.err
22470        } && test -s conftest.$ac_objext; then
22471   ac_cv_type_short=yes
22472 else
22473   echo "$as_me: failed program was:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22475
22476         ac_cv_type_short=no
22477 fi
22478
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480 fi
22481 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22482 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22483
22484 # The cast to long int works around a bug in the HP C Compiler
22485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22487 # This bug is HP SR number 8606223364.
22488 { echo "$as_me:$LINENO: checking size of short" >&5
22489 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
22490 if test "${ac_cv_sizeof_short+set}" = set; then
22491   echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493   if test "$cross_compiling" = yes; then
22494   # Depending upon the size, compute the lo and hi bounds.
22495 cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501 $ac_includes_default
22502    typedef short ac__type_sizeof_;
22503 int
22504 main ()
22505 {
22506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22507 test_array [0] = 0
22508
22509   ;
22510   return 0;
22511 }
22512 _ACEOF
22513 rm -f conftest.$ac_objext
22514 if { (ac_try="$ac_compile"
22515 case "(($ac_try" in
22516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517   *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520   (eval "$ac_compile") 2>conftest.er1
22521   ac_status=$?
22522   grep -v '^ *+' conftest.er1 >conftest.err
22523   rm -f conftest.er1
22524   cat conftest.err >&5
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); } && {
22527          test -z "$ac_c_werror_flag" ||
22528          test ! -s conftest.err
22529        } && test -s conftest.$ac_objext; then
22530   ac_lo=0 ac_mid=0
22531   while :; do
22532     cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538 $ac_includes_default
22539    typedef short ac__type_sizeof_;
22540 int
22541 main ()
22542 {
22543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22544 test_array [0] = 0
22545
22546   ;
22547   return 0;
22548 }
22549 _ACEOF
22550 rm -f conftest.$ac_objext
22551 if { (ac_try="$ac_compile"
22552 case "(($ac_try" in
22553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22554   *) ac_try_echo=$ac_try;;
22555 esac
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557   (eval "$ac_compile") 2>conftest.er1
22558   ac_status=$?
22559   grep -v '^ *+' conftest.er1 >conftest.err
22560   rm -f conftest.er1
22561   cat conftest.err >&5
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); } && {
22564          test -z "$ac_c_werror_flag" ||
22565          test ! -s conftest.err
22566        } && test -s conftest.$ac_objext; then
22567   ac_hi=$ac_mid; break
22568 else
22569   echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22571
22572         ac_lo=`expr $ac_mid + 1`
22573                         if test $ac_lo -le $ac_mid; then
22574                           ac_lo= ac_hi=
22575                           break
22576                         fi
22577                         ac_mid=`expr 2 '*' $ac_mid + 1`
22578 fi
22579
22580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581   done
22582 else
22583   echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22585
22586         cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h.  */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h.  */
22592 $ac_includes_default
22593    typedef short ac__type_sizeof_;
22594 int
22595 main ()
22596 {
22597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22598 test_array [0] = 0
22599
22600   ;
22601   return 0;
22602 }
22603 _ACEOF
22604 rm -f conftest.$ac_objext
22605 if { (ac_try="$ac_compile"
22606 case "(($ac_try" in
22607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22608   *) ac_try_echo=$ac_try;;
22609 esac
22610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22611   (eval "$ac_compile") 2>conftest.er1
22612   ac_status=$?
22613   grep -v '^ *+' conftest.er1 >conftest.err
22614   rm -f conftest.er1
22615   cat conftest.err >&5
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); } && {
22618          test -z "$ac_c_werror_flag" ||
22619          test ! -s conftest.err
22620        } && test -s conftest.$ac_objext; then
22621   ac_hi=-1 ac_mid=-1
22622   while :; do
22623     cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h.  */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h.  */
22629 $ac_includes_default
22630    typedef short ac__type_sizeof_;
22631 int
22632 main ()
22633 {
22634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22635 test_array [0] = 0
22636
22637   ;
22638   return 0;
22639 }
22640 _ACEOF
22641 rm -f conftest.$ac_objext
22642 if { (ac_try="$ac_compile"
22643 case "(($ac_try" in
22644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645   *) ac_try_echo=$ac_try;;
22646 esac
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648   (eval "$ac_compile") 2>conftest.er1
22649   ac_status=$?
22650   grep -v '^ *+' conftest.er1 >conftest.err
22651   rm -f conftest.er1
22652   cat conftest.err >&5
22653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654   (exit $ac_status); } && {
22655          test -z "$ac_c_werror_flag" ||
22656          test ! -s conftest.err
22657        } && test -s conftest.$ac_objext; then
22658   ac_lo=$ac_mid; break
22659 else
22660   echo "$as_me: failed program was:" >&5
22661 sed 's/^/| /' conftest.$ac_ext >&5
22662
22663         ac_hi=`expr '(' $ac_mid ')' - 1`
22664                         if test $ac_mid -le $ac_hi; then
22665                           ac_lo= ac_hi=
22666                           break
22667                         fi
22668                         ac_mid=`expr 2 '*' $ac_mid`
22669 fi
22670
22671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672   done
22673 else
22674   echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22676
22677         ac_lo= ac_hi=
22678 fi
22679
22680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681 fi
22682
22683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22684 # Binary search between lo and hi bounds.
22685 while test "x$ac_lo" != "x$ac_hi"; do
22686   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22687   cat >conftest.$ac_ext <<_ACEOF
22688 /* confdefs.h.  */
22689 _ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h.  */
22693 $ac_includes_default
22694    typedef short ac__type_sizeof_;
22695 int
22696 main ()
22697 {
22698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22699 test_array [0] = 0
22700
22701   ;
22702   return 0;
22703 }
22704 _ACEOF
22705 rm -f conftest.$ac_objext
22706 if { (ac_try="$ac_compile"
22707 case "(($ac_try" in
22708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22709   *) ac_try_echo=$ac_try;;
22710 esac
22711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22712   (eval "$ac_compile") 2>conftest.er1
22713   ac_status=$?
22714   grep -v '^ *+' conftest.er1 >conftest.err
22715   rm -f conftest.er1
22716   cat conftest.err >&5
22717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718   (exit $ac_status); } && {
22719          test -z "$ac_c_werror_flag" ||
22720          test ! -s conftest.err
22721        } && test -s conftest.$ac_objext; then
22722   ac_hi=$ac_mid
22723 else
22724   echo "$as_me: failed program was:" >&5
22725 sed 's/^/| /' conftest.$ac_ext >&5
22726
22727         ac_lo=`expr '(' $ac_mid ')' + 1`
22728 fi
22729
22730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22731 done
22732 case $ac_lo in
22733 ?*) ac_cv_sizeof_short=$ac_lo;;
22734 '') if test "$ac_cv_type_short" = yes; then
22735      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22736 See \`config.log' for more details." >&5
22737 echo "$as_me: error: cannot compute sizeof (short)
22738 See \`config.log' for more details." >&2;}
22739    { (exit 77); exit 77; }; }
22740    else
22741      ac_cv_sizeof_short=0
22742    fi ;;
22743 esac
22744 else
22745   cat >conftest.$ac_ext <<_ACEOF
22746 /* confdefs.h.  */
22747 _ACEOF
22748 cat confdefs.h >>conftest.$ac_ext
22749 cat >>conftest.$ac_ext <<_ACEOF
22750 /* end confdefs.h.  */
22751 $ac_includes_default
22752    typedef short ac__type_sizeof_;
22753 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22754 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22755 #include <stdio.h>
22756 #include <stdlib.h>
22757 int
22758 main ()
22759 {
22760
22761   FILE *f = fopen ("conftest.val", "w");
22762   if (! f)
22763     return 1;
22764   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22765     {
22766       long int i = longval ();
22767       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22768         return 1;
22769       fprintf (f, "%ld\n", i);
22770     }
22771   else
22772     {
22773       unsigned long int i = ulongval ();
22774       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22775         return 1;
22776       fprintf (f, "%lu\n", i);
22777     }
22778   return ferror (f) || fclose (f) != 0;
22779
22780   ;
22781   return 0;
22782 }
22783 _ACEOF
22784 rm -f conftest$ac_exeext
22785 if { (ac_try="$ac_link"
22786 case "(($ac_try" in
22787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788   *) ac_try_echo=$ac_try;;
22789 esac
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791   (eval "$ac_link") 2>&5
22792   ac_status=$?
22793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22795   { (case "(($ac_try" in
22796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797   *) ac_try_echo=$ac_try;;
22798 esac
22799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22800   (eval "$ac_try") 2>&5
22801   ac_status=$?
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); }; }; then
22804   ac_cv_sizeof_short=`cat conftest.val`
22805 else
22806   echo "$as_me: program exited with status $ac_status" >&5
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22809
22810 ( exit $ac_status )
22811 if test "$ac_cv_type_short" = yes; then
22812      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22813 See \`config.log' for more details." >&5
22814 echo "$as_me: error: cannot compute sizeof (short)
22815 See \`config.log' for more details." >&2;}
22816    { (exit 77); exit 77; }; }
22817    else
22818      ac_cv_sizeof_short=0
22819    fi
22820 fi
22821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22822 fi
22823 rm -f conftest.val
22824 fi
22825 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22826 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22827
22828
22829
22830 cat >>confdefs.h <<_ACEOF
22831 #define SIZEOF_SHORT $ac_cv_sizeof_short
22832 _ACEOF
22833
22834
22835 { echo "$as_me:$LINENO: checking for void *" >&5
22836 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22837 if test "${ac_cv_type_void_p+set}" = set; then
22838   echo $ECHO_N "(cached) $ECHO_C" >&6
22839 else
22840   cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h.  */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h.  */
22846 $ac_includes_default
22847 typedef void * ac__type_new_;
22848 int
22849 main ()
22850 {
22851 if ((ac__type_new_ *) 0)
22852   return 0;
22853 if (sizeof (ac__type_new_))
22854   return 0;
22855   ;
22856   return 0;
22857 }
22858 _ACEOF
22859 rm -f conftest.$ac_objext
22860 if { (ac_try="$ac_compile"
22861 case "(($ac_try" in
22862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863   *) ac_try_echo=$ac_try;;
22864 esac
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866   (eval "$ac_compile") 2>conftest.er1
22867   ac_status=$?
22868   grep -v '^ *+' conftest.er1 >conftest.err
22869   rm -f conftest.er1
22870   cat conftest.err >&5
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); } && {
22873          test -z "$ac_c_werror_flag" ||
22874          test ! -s conftest.err
22875        } && test -s conftest.$ac_objext; then
22876   ac_cv_type_void_p=yes
22877 else
22878   echo "$as_me: failed program was:" >&5
22879 sed 's/^/| /' conftest.$ac_ext >&5
22880
22881         ac_cv_type_void_p=no
22882 fi
22883
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 fi
22886 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22887 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22888
22889 # The cast to long int works around a bug in the HP C Compiler
22890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22892 # This bug is HP SR number 8606223364.
22893 { echo "$as_me:$LINENO: checking size of void *" >&5
22894 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22895 if test "${ac_cv_sizeof_void_p+set}" = set; then
22896   echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898   if test "$cross_compiling" = yes; then
22899   # Depending upon the size, compute the lo and hi bounds.
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h.  */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h.  */
22906 $ac_includes_default
22907    typedef void * ac__type_sizeof_;
22908 int
22909 main ()
22910 {
22911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22912 test_array [0] = 0
22913
22914   ;
22915   return 0;
22916 }
22917 _ACEOF
22918 rm -f conftest.$ac_objext
22919 if { (ac_try="$ac_compile"
22920 case "(($ac_try" in
22921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922   *) ac_try_echo=$ac_try;;
22923 esac
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925   (eval "$ac_compile") 2>conftest.er1
22926   ac_status=$?
22927   grep -v '^ *+' conftest.er1 >conftest.err
22928   rm -f conftest.er1
22929   cat conftest.err >&5
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); } && {
22932          test -z "$ac_c_werror_flag" ||
22933          test ! -s conftest.err
22934        } && test -s conftest.$ac_objext; then
22935   ac_lo=0 ac_mid=0
22936   while :; do
22937     cat >conftest.$ac_ext <<_ACEOF
22938 /* confdefs.h.  */
22939 _ACEOF
22940 cat confdefs.h >>conftest.$ac_ext
22941 cat >>conftest.$ac_ext <<_ACEOF
22942 /* end confdefs.h.  */
22943 $ac_includes_default
22944    typedef void * ac__type_sizeof_;
22945 int
22946 main ()
22947 {
22948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22949 test_array [0] = 0
22950
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 rm -f conftest.$ac_objext
22956 if { (ac_try="$ac_compile"
22957 case "(($ac_try" in
22958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959   *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962   (eval "$ac_compile") 2>conftest.er1
22963   ac_status=$?
22964   grep -v '^ *+' conftest.er1 >conftest.err
22965   rm -f conftest.er1
22966   cat conftest.err >&5
22967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968   (exit $ac_status); } && {
22969          test -z "$ac_c_werror_flag" ||
22970          test ! -s conftest.err
22971        } && test -s conftest.$ac_objext; then
22972   ac_hi=$ac_mid; break
22973 else
22974   echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977         ac_lo=`expr $ac_mid + 1`
22978                         if test $ac_lo -le $ac_mid; then
22979                           ac_lo= ac_hi=
22980                           break
22981                         fi
22982                         ac_mid=`expr 2 '*' $ac_mid + 1`
22983 fi
22984
22985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986   done
22987 else
22988   echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22990
22991         cat >conftest.$ac_ext <<_ACEOF
22992 /* confdefs.h.  */
22993 _ACEOF
22994 cat confdefs.h >>conftest.$ac_ext
22995 cat >>conftest.$ac_ext <<_ACEOF
22996 /* end confdefs.h.  */
22997 $ac_includes_default
22998    typedef void * ac__type_sizeof_;
22999 int
23000 main ()
23001 {
23002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23003 test_array [0] = 0
23004
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 rm -f conftest.$ac_objext
23010 if { (ac_try="$ac_compile"
23011 case "(($ac_try" in
23012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23013   *) ac_try_echo=$ac_try;;
23014 esac
23015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23016   (eval "$ac_compile") 2>conftest.er1
23017   ac_status=$?
23018   grep -v '^ *+' conftest.er1 >conftest.err
23019   rm -f conftest.er1
23020   cat conftest.err >&5
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); } && {
23023          test -z "$ac_c_werror_flag" ||
23024          test ! -s conftest.err
23025        } && test -s conftest.$ac_objext; then
23026   ac_hi=-1 ac_mid=-1
23027   while :; do
23028     cat >conftest.$ac_ext <<_ACEOF
23029 /* confdefs.h.  */
23030 _ACEOF
23031 cat confdefs.h >>conftest.$ac_ext
23032 cat >>conftest.$ac_ext <<_ACEOF
23033 /* end confdefs.h.  */
23034 $ac_includes_default
23035    typedef void * ac__type_sizeof_;
23036 int
23037 main ()
23038 {
23039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23040 test_array [0] = 0
23041
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 rm -f conftest.$ac_objext
23047 if { (ac_try="$ac_compile"
23048 case "(($ac_try" in
23049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050   *) ac_try_echo=$ac_try;;
23051 esac
23052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23053   (eval "$ac_compile") 2>conftest.er1
23054   ac_status=$?
23055   grep -v '^ *+' conftest.er1 >conftest.err
23056   rm -f conftest.er1
23057   cat conftest.err >&5
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); } && {
23060          test -z "$ac_c_werror_flag" ||
23061          test ! -s conftest.err
23062        } && test -s conftest.$ac_objext; then
23063   ac_lo=$ac_mid; break
23064 else
23065   echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23067
23068         ac_hi=`expr '(' $ac_mid ')' - 1`
23069                         if test $ac_mid -le $ac_hi; then
23070                           ac_lo= ac_hi=
23071                           break
23072                         fi
23073                         ac_mid=`expr 2 '*' $ac_mid`
23074 fi
23075
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077   done
23078 else
23079   echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23081
23082         ac_lo= ac_hi=
23083 fi
23084
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 fi
23087
23088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23089 # Binary search between lo and hi bounds.
23090 while test "x$ac_lo" != "x$ac_hi"; do
23091   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23092   cat >conftest.$ac_ext <<_ACEOF
23093 /* confdefs.h.  */
23094 _ACEOF
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h.  */
23098 $ac_includes_default
23099    typedef void * ac__type_sizeof_;
23100 int
23101 main ()
23102 {
23103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23104 test_array [0] = 0
23105
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114   *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117   (eval "$ac_compile") 2>conftest.er1
23118   ac_status=$?
23119   grep -v '^ *+' conftest.er1 >conftest.err
23120   rm -f conftest.er1
23121   cat conftest.err >&5
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); } && {
23124          test -z "$ac_c_werror_flag" ||
23125          test ! -s conftest.err
23126        } && test -s conftest.$ac_objext; then
23127   ac_hi=$ac_mid
23128 else
23129   echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23131
23132         ac_lo=`expr '(' $ac_mid ')' + 1`
23133 fi
23134
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23136 done
23137 case $ac_lo in
23138 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23139 '') if test "$ac_cv_type_void_p" = yes; then
23140      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23141 See \`config.log' for more details." >&5
23142 echo "$as_me: error: cannot compute sizeof (void *)
23143 See \`config.log' for more details." >&2;}
23144    { (exit 77); exit 77; }; }
23145    else
23146      ac_cv_sizeof_void_p=0
23147    fi ;;
23148 esac
23149 else
23150   cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h.  */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h.  */
23156 $ac_includes_default
23157    typedef void * ac__type_sizeof_;
23158 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23159 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23160 #include <stdio.h>
23161 #include <stdlib.h>
23162 int
23163 main ()
23164 {
23165
23166   FILE *f = fopen ("conftest.val", "w");
23167   if (! f)
23168     return 1;
23169   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23170     {
23171       long int i = longval ();
23172       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23173         return 1;
23174       fprintf (f, "%ld\n", i);
23175     }
23176   else
23177     {
23178       unsigned long int i = ulongval ();
23179       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23180         return 1;
23181       fprintf (f, "%lu\n", i);
23182     }
23183   return ferror (f) || fclose (f) != 0;
23184
23185   ;
23186   return 0;
23187 }
23188 _ACEOF
23189 rm -f conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193   *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196   (eval "$ac_link") 2>&5
23197   ac_status=$?
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23200   { (case "(($ac_try" in
23201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202   *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205   (eval "$ac_try") 2>&5
23206   ac_status=$?
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); }; }; then
23209   ac_cv_sizeof_void_p=`cat conftest.val`
23210 else
23211   echo "$as_me: program exited with status $ac_status" >&5
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23214
23215 ( exit $ac_status )
23216 if test "$ac_cv_type_void_p" = yes; then
23217      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23218 See \`config.log' for more details." >&5
23219 echo "$as_me: error: cannot compute sizeof (void *)
23220 See \`config.log' for more details." >&2;}
23221    { (exit 77); exit 77; }; }
23222    else
23223      ac_cv_sizeof_void_p=0
23224    fi
23225 fi
23226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23227 fi
23228 rm -f conftest.val
23229 fi
23230 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23231 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23232
23233
23234
23235 cat >>confdefs.h <<_ACEOF
23236 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23237 _ACEOF
23238
23239
23240 { echo "$as_me:$LINENO: checking for int" >&5
23241 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23242 if test "${ac_cv_type_int+set}" = set; then
23243   echo $ECHO_N "(cached) $ECHO_C" >&6
23244 else
23245   cat >conftest.$ac_ext <<_ACEOF
23246 /* confdefs.h.  */
23247 _ACEOF
23248 cat confdefs.h >>conftest.$ac_ext
23249 cat >>conftest.$ac_ext <<_ACEOF
23250 /* end confdefs.h.  */
23251 $ac_includes_default
23252 typedef int ac__type_new_;
23253 int
23254 main ()
23255 {
23256 if ((ac__type_new_ *) 0)
23257   return 0;
23258 if (sizeof (ac__type_new_))
23259   return 0;
23260   ;
23261   return 0;
23262 }
23263 _ACEOF
23264 rm -f conftest.$ac_objext
23265 if { (ac_try="$ac_compile"
23266 case "(($ac_try" in
23267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23268   *) ac_try_echo=$ac_try;;
23269 esac
23270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23271   (eval "$ac_compile") 2>conftest.er1
23272   ac_status=$?
23273   grep -v '^ *+' conftest.er1 >conftest.err
23274   rm -f conftest.er1
23275   cat conftest.err >&5
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } && {
23278          test -z "$ac_c_werror_flag" ||
23279          test ! -s conftest.err
23280        } && test -s conftest.$ac_objext; then
23281   ac_cv_type_int=yes
23282 else
23283   echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286         ac_cv_type_int=no
23287 fi
23288
23289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23290 fi
23291 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23292 echo "${ECHO_T}$ac_cv_type_int" >&6; }
23293
23294 # The cast to long int works around a bug in the HP C Compiler
23295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23297 # This bug is HP SR number 8606223364.
23298 { echo "$as_me:$LINENO: checking size of int" >&5
23299 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23300 if test "${ac_cv_sizeof_int+set}" = set; then
23301   echo $ECHO_N "(cached) $ECHO_C" >&6
23302 else
23303   if test "$cross_compiling" = yes; then
23304   # Depending upon the size, compute the lo and hi bounds.
23305 cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h.  */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h.  */
23311 $ac_includes_default
23312    typedef int ac__type_sizeof_;
23313 int
23314 main ()
23315 {
23316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23317 test_array [0] = 0
23318
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327   *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330   (eval "$ac_compile") 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } && {
23337          test -z "$ac_c_werror_flag" ||
23338          test ! -s conftest.err
23339        } && test -s conftest.$ac_objext; then
23340   ac_lo=0 ac_mid=0
23341   while :; do
23342     cat >conftest.$ac_ext <<_ACEOF
23343 /* confdefs.h.  */
23344 _ACEOF
23345 cat confdefs.h >>conftest.$ac_ext
23346 cat >>conftest.$ac_ext <<_ACEOF
23347 /* end confdefs.h.  */
23348 $ac_includes_default
23349    typedef int ac__type_sizeof_;
23350 int
23351 main ()
23352 {
23353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23354 test_array [0] = 0
23355
23356   ;
23357   return 0;
23358 }
23359 _ACEOF
23360 rm -f conftest.$ac_objext
23361 if { (ac_try="$ac_compile"
23362 case "(($ac_try" in
23363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364   *) ac_try_echo=$ac_try;;
23365 esac
23366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367   (eval "$ac_compile") 2>conftest.er1
23368   ac_status=$?
23369   grep -v '^ *+' conftest.er1 >conftest.err
23370   rm -f conftest.er1
23371   cat conftest.err >&5
23372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); } && {
23374          test -z "$ac_c_werror_flag" ||
23375          test ! -s conftest.err
23376        } && test -s conftest.$ac_objext; then
23377   ac_hi=$ac_mid; break
23378 else
23379   echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23381
23382         ac_lo=`expr $ac_mid + 1`
23383                         if test $ac_lo -le $ac_mid; then
23384                           ac_lo= ac_hi=
23385                           break
23386                         fi
23387                         ac_mid=`expr 2 '*' $ac_mid + 1`
23388 fi
23389
23390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23391   done
23392 else
23393   echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23395
23396         cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h.  */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h.  */
23402 $ac_includes_default
23403    typedef int ac__type_sizeof_;
23404 int
23405 main ()
23406 {
23407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23408 test_array [0] = 0
23409
23410   ;
23411   return 0;
23412 }
23413 _ACEOF
23414 rm -f conftest.$ac_objext
23415 if { (ac_try="$ac_compile"
23416 case "(($ac_try" in
23417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418   *) ac_try_echo=$ac_try;;
23419 esac
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421   (eval "$ac_compile") 2>conftest.er1
23422   ac_status=$?
23423   grep -v '^ *+' conftest.er1 >conftest.err
23424   rm -f conftest.er1
23425   cat conftest.err >&5
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); } && {
23428          test -z "$ac_c_werror_flag" ||
23429          test ! -s conftest.err
23430        } && test -s conftest.$ac_objext; then
23431   ac_hi=-1 ac_mid=-1
23432   while :; do
23433     cat >conftest.$ac_ext <<_ACEOF
23434 /* confdefs.h.  */
23435 _ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h.  */
23439 $ac_includes_default
23440    typedef int ac__type_sizeof_;
23441 int
23442 main ()
23443 {
23444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23445 test_array [0] = 0
23446
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext
23452 if { (ac_try="$ac_compile"
23453 case "(($ac_try" in
23454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455   *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458   (eval "$ac_compile") 2>conftest.er1
23459   ac_status=$?
23460   grep -v '^ *+' conftest.er1 >conftest.err
23461   rm -f conftest.er1
23462   cat conftest.err >&5
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); } && {
23465          test -z "$ac_c_werror_flag" ||
23466          test ! -s conftest.err
23467        } && test -s conftest.$ac_objext; then
23468   ac_lo=$ac_mid; break
23469 else
23470   echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23472
23473         ac_hi=`expr '(' $ac_mid ')' - 1`
23474                         if test $ac_mid -le $ac_hi; then
23475                           ac_lo= ac_hi=
23476                           break
23477                         fi
23478                         ac_mid=`expr 2 '*' $ac_mid`
23479 fi
23480
23481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23482   done
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487         ac_lo= ac_hi=
23488 fi
23489
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491 fi
23492
23493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23494 # Binary search between lo and hi bounds.
23495 while test "x$ac_lo" != "x$ac_hi"; do
23496   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23497   cat >conftest.$ac_ext <<_ACEOF
23498 /* confdefs.h.  */
23499 _ACEOF
23500 cat confdefs.h >>conftest.$ac_ext
23501 cat >>conftest.$ac_ext <<_ACEOF
23502 /* end confdefs.h.  */
23503 $ac_includes_default
23504    typedef int ac__type_sizeof_;
23505 int
23506 main ()
23507 {
23508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23509 test_array [0] = 0
23510
23511   ;
23512   return 0;
23513 }
23514 _ACEOF
23515 rm -f conftest.$ac_objext
23516 if { (ac_try="$ac_compile"
23517 case "(($ac_try" in
23518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519   *) ac_try_echo=$ac_try;;
23520 esac
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522   (eval "$ac_compile") 2>conftest.er1
23523   ac_status=$?
23524   grep -v '^ *+' conftest.er1 >conftest.err
23525   rm -f conftest.er1
23526   cat conftest.err >&5
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); } && {
23529          test -z "$ac_c_werror_flag" ||
23530          test ! -s conftest.err
23531        } && test -s conftest.$ac_objext; then
23532   ac_hi=$ac_mid
23533 else
23534   echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537         ac_lo=`expr '(' $ac_mid ')' + 1`
23538 fi
23539
23540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23541 done
23542 case $ac_lo in
23543 ?*) ac_cv_sizeof_int=$ac_lo;;
23544 '') if test "$ac_cv_type_int" = yes; then
23545      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23546 See \`config.log' for more details." >&5
23547 echo "$as_me: error: cannot compute sizeof (int)
23548 See \`config.log' for more details." >&2;}
23549    { (exit 77); exit 77; }; }
23550    else
23551      ac_cv_sizeof_int=0
23552    fi ;;
23553 esac
23554 else
23555   cat >conftest.$ac_ext <<_ACEOF
23556 /* confdefs.h.  */
23557 _ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h.  */
23561 $ac_includes_default
23562    typedef int ac__type_sizeof_;
23563 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23564 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23565 #include <stdio.h>
23566 #include <stdlib.h>
23567 int
23568 main ()
23569 {
23570
23571   FILE *f = fopen ("conftest.val", "w");
23572   if (! f)
23573     return 1;
23574   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23575     {
23576       long int i = longval ();
23577       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23578         return 1;
23579       fprintf (f, "%ld\n", i);
23580     }
23581   else
23582     {
23583       unsigned long int i = ulongval ();
23584       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23585         return 1;
23586       fprintf (f, "%lu\n", i);
23587     }
23588   return ferror (f) || fclose (f) != 0;
23589
23590   ;
23591   return 0;
23592 }
23593 _ACEOF
23594 rm -f conftest$ac_exeext
23595 if { (ac_try="$ac_link"
23596 case "(($ac_try" in
23597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23598   *) ac_try_echo=$ac_try;;
23599 esac
23600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23601   (eval "$ac_link") 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23605   { (case "(($ac_try" in
23606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607   *) ac_try_echo=$ac_try;;
23608 esac
23609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23610   (eval "$ac_try") 2>&5
23611   ac_status=$?
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); }; }; then
23614   ac_cv_sizeof_int=`cat conftest.val`
23615 else
23616   echo "$as_me: program exited with status $ac_status" >&5
23617 echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23619
23620 ( exit $ac_status )
23621 if test "$ac_cv_type_int" = yes; then
23622      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23623 See \`config.log' for more details." >&5
23624 echo "$as_me: error: cannot compute sizeof (int)
23625 See \`config.log' for more details." >&2;}
23626    { (exit 77); exit 77; }; }
23627    else
23628      ac_cv_sizeof_int=0
23629    fi
23630 fi
23631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23632 fi
23633 rm -f conftest.val
23634 fi
23635 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23636 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23637
23638
23639
23640 cat >>confdefs.h <<_ACEOF
23641 #define SIZEOF_INT $ac_cv_sizeof_int
23642 _ACEOF
23643
23644
23645 { echo "$as_me:$LINENO: checking for long" >&5
23646 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23647 if test "${ac_cv_type_long+set}" = set; then
23648   echo $ECHO_N "(cached) $ECHO_C" >&6
23649 else
23650   cat >conftest.$ac_ext <<_ACEOF
23651 /* confdefs.h.  */
23652 _ACEOF
23653 cat confdefs.h >>conftest.$ac_ext
23654 cat >>conftest.$ac_ext <<_ACEOF
23655 /* end confdefs.h.  */
23656 $ac_includes_default
23657 typedef long ac__type_new_;
23658 int
23659 main ()
23660 {
23661 if ((ac__type_new_ *) 0)
23662   return 0;
23663 if (sizeof (ac__type_new_))
23664   return 0;
23665   ;
23666   return 0;
23667 }
23668 _ACEOF
23669 rm -f conftest.$ac_objext
23670 if { (ac_try="$ac_compile"
23671 case "(($ac_try" in
23672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673   *) ac_try_echo=$ac_try;;
23674 esac
23675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676   (eval "$ac_compile") 2>conftest.er1
23677   ac_status=$?
23678   grep -v '^ *+' conftest.er1 >conftest.err
23679   rm -f conftest.er1
23680   cat conftest.err >&5
23681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); } && {
23683          test -z "$ac_c_werror_flag" ||
23684          test ! -s conftest.err
23685        } && test -s conftest.$ac_objext; then
23686   ac_cv_type_long=yes
23687 else
23688   echo "$as_me: failed program was:" >&5
23689 sed 's/^/| /' conftest.$ac_ext >&5
23690
23691         ac_cv_type_long=no
23692 fi
23693
23694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695 fi
23696 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23697 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23698
23699 # The cast to long int works around a bug in the HP C Compiler
23700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23702 # This bug is HP SR number 8606223364.
23703 { echo "$as_me:$LINENO: checking size of long" >&5
23704 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23705 if test "${ac_cv_sizeof_long+set}" = set; then
23706   echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708   if test "$cross_compiling" = yes; then
23709   # Depending upon the size, compute the lo and hi bounds.
23710 cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716 $ac_includes_default
23717    typedef long ac__type_sizeof_;
23718 int
23719 main ()
23720 {
23721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23722 test_array [0] = 0
23723
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext
23729 if { (ac_try="$ac_compile"
23730 case "(($ac_try" in
23731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732   *) ac_try_echo=$ac_try;;
23733 esac
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735   (eval "$ac_compile") 2>conftest.er1
23736   ac_status=$?
23737   grep -v '^ *+' conftest.er1 >conftest.err
23738   rm -f conftest.er1
23739   cat conftest.err >&5
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); } && {
23742          test -z "$ac_c_werror_flag" ||
23743          test ! -s conftest.err
23744        } && test -s conftest.$ac_objext; then
23745   ac_lo=0 ac_mid=0
23746   while :; do
23747     cat >conftest.$ac_ext <<_ACEOF
23748 /* confdefs.h.  */
23749 _ACEOF
23750 cat confdefs.h >>conftest.$ac_ext
23751 cat >>conftest.$ac_ext <<_ACEOF
23752 /* end confdefs.h.  */
23753 $ac_includes_default
23754    typedef long ac__type_sizeof_;
23755 int
23756 main ()
23757 {
23758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23759 test_array [0] = 0
23760
23761   ;
23762   return 0;
23763 }
23764 _ACEOF
23765 rm -f conftest.$ac_objext
23766 if { (ac_try="$ac_compile"
23767 case "(($ac_try" in
23768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769   *) ac_try_echo=$ac_try;;
23770 esac
23771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23772   (eval "$ac_compile") 2>conftest.er1
23773   ac_status=$?
23774   grep -v '^ *+' conftest.er1 >conftest.err
23775   rm -f conftest.er1
23776   cat conftest.err >&5
23777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778   (exit $ac_status); } && {
23779          test -z "$ac_c_werror_flag" ||
23780          test ! -s conftest.err
23781        } && test -s conftest.$ac_objext; then
23782   ac_hi=$ac_mid; break
23783 else
23784   echo "$as_me: failed program was:" >&5
23785 sed 's/^/| /' conftest.$ac_ext >&5
23786
23787         ac_lo=`expr $ac_mid + 1`
23788                         if test $ac_lo -le $ac_mid; then
23789                           ac_lo= ac_hi=
23790                           break
23791                         fi
23792                         ac_mid=`expr 2 '*' $ac_mid + 1`
23793 fi
23794
23795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23796   done
23797 else
23798   echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801         cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h.  */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h.  */
23807 $ac_includes_default
23808    typedef long ac__type_sizeof_;
23809 int
23810 main ()
23811 {
23812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23813 test_array [0] = 0
23814
23815   ;
23816   return 0;
23817 }
23818 _ACEOF
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826   (eval "$ac_compile") 2>conftest.er1
23827   ac_status=$?
23828   grep -v '^ *+' conftest.er1 >conftest.err
23829   rm -f conftest.er1
23830   cat conftest.err >&5
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } && {
23833          test -z "$ac_c_werror_flag" ||
23834          test ! -s conftest.err
23835        } && test -s conftest.$ac_objext; then
23836   ac_hi=-1 ac_mid=-1
23837   while :; do
23838     cat >conftest.$ac_ext <<_ACEOF
23839 /* confdefs.h.  */
23840 _ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h.  */
23844 $ac_includes_default
23845    typedef long ac__type_sizeof_;
23846 int
23847 main ()
23848 {
23849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23850 test_array [0] = 0
23851
23852   ;
23853   return 0;
23854 }
23855 _ACEOF
23856 rm -f conftest.$ac_objext
23857 if { (ac_try="$ac_compile"
23858 case "(($ac_try" in
23859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23860   *) ac_try_echo=$ac_try;;
23861 esac
23862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23863   (eval "$ac_compile") 2>conftest.er1
23864   ac_status=$?
23865   grep -v '^ *+' conftest.er1 >conftest.err
23866   rm -f conftest.er1
23867   cat conftest.err >&5
23868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869   (exit $ac_status); } && {
23870          test -z "$ac_c_werror_flag" ||
23871          test ! -s conftest.err
23872        } && test -s conftest.$ac_objext; then
23873   ac_lo=$ac_mid; break
23874 else
23875   echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23877
23878         ac_hi=`expr '(' $ac_mid ')' - 1`
23879                         if test $ac_mid -le $ac_hi; then
23880                           ac_lo= ac_hi=
23881                           break
23882                         fi
23883                         ac_mid=`expr 2 '*' $ac_mid`
23884 fi
23885
23886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23887   done
23888 else
23889   echo "$as_me: failed program was:" >&5
23890 sed 's/^/| /' conftest.$ac_ext >&5
23891
23892         ac_lo= ac_hi=
23893 fi
23894
23895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23896 fi
23897
23898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23899 # Binary search between lo and hi bounds.
23900 while test "x$ac_lo" != "x$ac_hi"; do
23901   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23902   cat >conftest.$ac_ext <<_ACEOF
23903 /* confdefs.h.  */
23904 _ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h.  */
23908 $ac_includes_default
23909    typedef long ac__type_sizeof_;
23910 int
23911 main ()
23912 {
23913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23914 test_array [0] = 0
23915
23916   ;
23917   return 0;
23918 }
23919 _ACEOF
23920 rm -f conftest.$ac_objext
23921 if { (ac_try="$ac_compile"
23922 case "(($ac_try" in
23923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23924   *) ac_try_echo=$ac_try;;
23925 esac
23926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23927   (eval "$ac_compile") 2>conftest.er1
23928   ac_status=$?
23929   grep -v '^ *+' conftest.er1 >conftest.err
23930   rm -f conftest.er1
23931   cat conftest.err >&5
23932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933   (exit $ac_status); } && {
23934          test -z "$ac_c_werror_flag" ||
23935          test ! -s conftest.err
23936        } && test -s conftest.$ac_objext; then
23937   ac_hi=$ac_mid
23938 else
23939   echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23941
23942         ac_lo=`expr '(' $ac_mid ')' + 1`
23943 fi
23944
23945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23946 done
23947 case $ac_lo in
23948 ?*) ac_cv_sizeof_long=$ac_lo;;
23949 '') if test "$ac_cv_type_long" = yes; then
23950      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23951 See \`config.log' for more details." >&5
23952 echo "$as_me: error: cannot compute sizeof (long)
23953 See \`config.log' for more details." >&2;}
23954    { (exit 77); exit 77; }; }
23955    else
23956      ac_cv_sizeof_long=0
23957    fi ;;
23958 esac
23959 else
23960   cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h.  */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h.  */
23966 $ac_includes_default
23967    typedef long ac__type_sizeof_;
23968 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23969 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23970 #include <stdio.h>
23971 #include <stdlib.h>
23972 int
23973 main ()
23974 {
23975
23976   FILE *f = fopen ("conftest.val", "w");
23977   if (! f)
23978     return 1;
23979   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23980     {
23981       long int i = longval ();
23982       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23983         return 1;
23984       fprintf (f, "%ld\n", i);
23985     }
23986   else
23987     {
23988       unsigned long int i = ulongval ();
23989       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23990         return 1;
23991       fprintf (f, "%lu\n", i);
23992     }
23993   return ferror (f) || fclose (f) != 0;
23994
23995   ;
23996   return 0;
23997 }
23998 _ACEOF
23999 rm -f conftest$ac_exeext
24000 if { (ac_try="$ac_link"
24001 case "(($ac_try" in
24002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003   *) ac_try_echo=$ac_try;;
24004 esac
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006   (eval "$ac_link") 2>&5
24007   ac_status=$?
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24010   { (case "(($ac_try" in
24011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012   *) ac_try_echo=$ac_try;;
24013 esac
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015   (eval "$ac_try") 2>&5
24016   ac_status=$?
24017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018   (exit $ac_status); }; }; then
24019   ac_cv_sizeof_long=`cat conftest.val`
24020 else
24021   echo "$as_me: program exited with status $ac_status" >&5
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24024
24025 ( exit $ac_status )
24026 if test "$ac_cv_type_long" = yes; then
24027      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24028 See \`config.log' for more details." >&5
24029 echo "$as_me: error: cannot compute sizeof (long)
24030 See \`config.log' for more details." >&2;}
24031    { (exit 77); exit 77; }; }
24032    else
24033      ac_cv_sizeof_long=0
24034    fi
24035 fi
24036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24037 fi
24038 rm -f conftest.val
24039 fi
24040 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24041 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
24042
24043
24044
24045 cat >>confdefs.h <<_ACEOF
24046 #define SIZEOF_LONG $ac_cv_sizeof_long
24047 _ACEOF
24048
24049
24050 { echo "$as_me:$LINENO: checking for size_t" >&5
24051 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24052 if test "${ac_cv_type_size_t+set}" = set; then
24053   echo $ECHO_N "(cached) $ECHO_C" >&6
24054 else
24055   cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h.  */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h.  */
24061 $ac_includes_default
24062 typedef size_t ac__type_new_;
24063 int
24064 main ()
24065 {
24066 if ((ac__type_new_ *) 0)
24067   return 0;
24068 if (sizeof (ac__type_new_))
24069   return 0;
24070   ;
24071   return 0;
24072 }
24073 _ACEOF
24074 rm -f conftest.$ac_objext
24075 if { (ac_try="$ac_compile"
24076 case "(($ac_try" in
24077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078   *) ac_try_echo=$ac_try;;
24079 esac
24080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081   (eval "$ac_compile") 2>conftest.er1
24082   ac_status=$?
24083   grep -v '^ *+' conftest.er1 >conftest.err
24084   rm -f conftest.er1
24085   cat conftest.err >&5
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); } && {
24088          test -z "$ac_c_werror_flag" ||
24089          test ! -s conftest.err
24090        } && test -s conftest.$ac_objext; then
24091   ac_cv_type_size_t=yes
24092 else
24093   echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24095
24096         ac_cv_type_size_t=no
24097 fi
24098
24099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24100 fi
24101 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24102 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24103
24104 # The cast to long int works around a bug in the HP C Compiler
24105 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24106 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24107 # This bug is HP SR number 8606223364.
24108 { echo "$as_me:$LINENO: checking size of size_t" >&5
24109 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
24110 if test "${ac_cv_sizeof_size_t+set}" = set; then
24111   echo $ECHO_N "(cached) $ECHO_C" >&6
24112 else
24113   if test "$cross_compiling" = yes; then
24114   # Depending upon the size, compute the lo and hi bounds.
24115 cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h.  */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h.  */
24121 $ac_includes_default
24122    typedef size_t ac__type_sizeof_;
24123 int
24124 main ()
24125 {
24126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24127 test_array [0] = 0
24128
24129   ;
24130   return 0;
24131 }
24132 _ACEOF
24133 rm -f conftest.$ac_objext
24134 if { (ac_try="$ac_compile"
24135 case "(($ac_try" in
24136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137   *) ac_try_echo=$ac_try;;
24138 esac
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140   (eval "$ac_compile") 2>conftest.er1
24141   ac_status=$?
24142   grep -v '^ *+' conftest.er1 >conftest.err
24143   rm -f conftest.er1
24144   cat conftest.err >&5
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); } && {
24147          test -z "$ac_c_werror_flag" ||
24148          test ! -s conftest.err
24149        } && test -s conftest.$ac_objext; then
24150   ac_lo=0 ac_mid=0
24151   while :; do
24152     cat >conftest.$ac_ext <<_ACEOF
24153 /* confdefs.h.  */
24154 _ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h.  */
24158 $ac_includes_default
24159    typedef size_t ac__type_sizeof_;
24160 int
24161 main ()
24162 {
24163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24164 test_array [0] = 0
24165
24166   ;
24167   return 0;
24168 }
24169 _ACEOF
24170 rm -f conftest.$ac_objext
24171 if { (ac_try="$ac_compile"
24172 case "(($ac_try" in
24173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24174   *) ac_try_echo=$ac_try;;
24175 esac
24176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24177   (eval "$ac_compile") 2>conftest.er1
24178   ac_status=$?
24179   grep -v '^ *+' conftest.er1 >conftest.err
24180   rm -f conftest.er1
24181   cat conftest.err >&5
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); } && {
24184          test -z "$ac_c_werror_flag" ||
24185          test ! -s conftest.err
24186        } && test -s conftest.$ac_objext; then
24187   ac_hi=$ac_mid; break
24188 else
24189   echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191
24192         ac_lo=`expr $ac_mid + 1`
24193                         if test $ac_lo -le $ac_mid; then
24194                           ac_lo= ac_hi=
24195                           break
24196                         fi
24197                         ac_mid=`expr 2 '*' $ac_mid + 1`
24198 fi
24199
24200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24201   done
24202 else
24203   echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206         cat >conftest.$ac_ext <<_ACEOF
24207 /* confdefs.h.  */
24208 _ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h.  */
24212 $ac_includes_default
24213    typedef size_t ac__type_sizeof_;
24214 int
24215 main ()
24216 {
24217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24218 test_array [0] = 0
24219
24220   ;
24221   return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest.$ac_objext
24225 if { (ac_try="$ac_compile"
24226 case "(($ac_try" in
24227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228   *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231   (eval "$ac_compile") 2>conftest.er1
24232   ac_status=$?
24233   grep -v '^ *+' conftest.er1 >conftest.err
24234   rm -f conftest.er1
24235   cat conftest.err >&5
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } && {
24238          test -z "$ac_c_werror_flag" ||
24239          test ! -s conftest.err
24240        } && test -s conftest.$ac_objext; then
24241   ac_hi=-1 ac_mid=-1
24242   while :; do
24243     cat >conftest.$ac_ext <<_ACEOF
24244 /* confdefs.h.  */
24245 _ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h.  */
24249 $ac_includes_default
24250    typedef size_t ac__type_sizeof_;
24251 int
24252 main ()
24253 {
24254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24255 test_array [0] = 0
24256
24257   ;
24258   return 0;
24259 }
24260 _ACEOF
24261 rm -f conftest.$ac_objext
24262 if { (ac_try="$ac_compile"
24263 case "(($ac_try" in
24264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265   *) ac_try_echo=$ac_try;;
24266 esac
24267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24268   (eval "$ac_compile") 2>conftest.er1
24269   ac_status=$?
24270   grep -v '^ *+' conftest.er1 >conftest.err
24271   rm -f conftest.er1
24272   cat conftest.err >&5
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); } && {
24275          test -z "$ac_c_werror_flag" ||
24276          test ! -s conftest.err
24277        } && test -s conftest.$ac_objext; then
24278   ac_lo=$ac_mid; break
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283         ac_hi=`expr '(' $ac_mid ')' - 1`
24284                         if test $ac_mid -le $ac_hi; then
24285                           ac_lo= ac_hi=
24286                           break
24287                         fi
24288                         ac_mid=`expr 2 '*' $ac_mid`
24289 fi
24290
24291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24292   done
24293 else
24294   echo "$as_me: failed program was:" >&5
24295 sed 's/^/| /' conftest.$ac_ext >&5
24296
24297         ac_lo= ac_hi=
24298 fi
24299
24300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24301 fi
24302
24303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 # Binary search between lo and hi bounds.
24305 while test "x$ac_lo" != "x$ac_hi"; do
24306   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24307   cat >conftest.$ac_ext <<_ACEOF
24308 /* confdefs.h.  */
24309 _ACEOF
24310 cat confdefs.h >>conftest.$ac_ext
24311 cat >>conftest.$ac_ext <<_ACEOF
24312 /* end confdefs.h.  */
24313 $ac_includes_default
24314    typedef size_t ac__type_sizeof_;
24315 int
24316 main ()
24317 {
24318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24319 test_array [0] = 0
24320
24321   ;
24322   return 0;
24323 }
24324 _ACEOF
24325 rm -f conftest.$ac_objext
24326 if { (ac_try="$ac_compile"
24327 case "(($ac_try" in
24328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329   *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332   (eval "$ac_compile") 2>conftest.er1
24333   ac_status=$?
24334   grep -v '^ *+' conftest.er1 >conftest.err
24335   rm -f conftest.er1
24336   cat conftest.err >&5
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); } && {
24339          test -z "$ac_c_werror_flag" ||
24340          test ! -s conftest.err
24341        } && test -s conftest.$ac_objext; then
24342   ac_hi=$ac_mid
24343 else
24344   echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24346
24347         ac_lo=`expr '(' $ac_mid ')' + 1`
24348 fi
24349
24350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 done
24352 case $ac_lo in
24353 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24354 '') if test "$ac_cv_type_size_t" = yes; then
24355      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24356 See \`config.log' for more details." >&5
24357 echo "$as_me: error: cannot compute sizeof (size_t)
24358 See \`config.log' for more details." >&2;}
24359    { (exit 77); exit 77; }; }
24360    else
24361      ac_cv_sizeof_size_t=0
24362    fi ;;
24363 esac
24364 else
24365   cat >conftest.$ac_ext <<_ACEOF
24366 /* confdefs.h.  */
24367 _ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h.  */
24371 $ac_includes_default
24372    typedef size_t ac__type_sizeof_;
24373 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24374 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24375 #include <stdio.h>
24376 #include <stdlib.h>
24377 int
24378 main ()
24379 {
24380
24381   FILE *f = fopen ("conftest.val", "w");
24382   if (! f)
24383     return 1;
24384   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24385     {
24386       long int i = longval ();
24387       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24388         return 1;
24389       fprintf (f, "%ld\n", i);
24390     }
24391   else
24392     {
24393       unsigned long int i = ulongval ();
24394       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24395         return 1;
24396       fprintf (f, "%lu\n", i);
24397     }
24398   return ferror (f) || fclose (f) != 0;
24399
24400   ;
24401   return 0;
24402 }
24403 _ACEOF
24404 rm -f conftest$ac_exeext
24405 if { (ac_try="$ac_link"
24406 case "(($ac_try" in
24407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24408   *) ac_try_echo=$ac_try;;
24409 esac
24410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24411   (eval "$ac_link") 2>&5
24412   ac_status=$?
24413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24415   { (case "(($ac_try" in
24416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417   *) ac_try_echo=$ac_try;;
24418 esac
24419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420   (eval "$ac_try") 2>&5
24421   ac_status=$?
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); }; }; then
24424   ac_cv_sizeof_size_t=`cat conftest.val`
24425 else
24426   echo "$as_me: program exited with status $ac_status" >&5
24427 echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24429
24430 ( exit $ac_status )
24431 if test "$ac_cv_type_size_t" = yes; then
24432      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24433 See \`config.log' for more details." >&5
24434 echo "$as_me: error: cannot compute sizeof (size_t)
24435 See \`config.log' for more details." >&2;}
24436    { (exit 77); exit 77; }; }
24437    else
24438      ac_cv_sizeof_size_t=0
24439    fi
24440 fi
24441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24442 fi
24443 rm -f conftest.val
24444 fi
24445 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24446 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
24447
24448
24449
24450 cat >>confdefs.h <<_ACEOF
24451 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24452 _ACEOF
24453
24454
24455
24456 case "${host}" in
24457     arm-*-linux* )
24458         { echo "$as_me:$LINENO: checking for long long" >&5
24459 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24460 if test "${ac_cv_type_long_long+set}" = set; then
24461   echo $ECHO_N "(cached) $ECHO_C" >&6
24462 else
24463   cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h.  */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h.  */
24469 $ac_includes_default
24470 typedef long long ac__type_new_;
24471 int
24472 main ()
24473 {
24474 if ((ac__type_new_ *) 0)
24475   return 0;
24476 if (sizeof (ac__type_new_))
24477   return 0;
24478   ;
24479   return 0;
24480 }
24481 _ACEOF
24482 rm -f conftest.$ac_objext
24483 if { (ac_try="$ac_compile"
24484 case "(($ac_try" in
24485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486   *) ac_try_echo=$ac_try;;
24487 esac
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489   (eval "$ac_compile") 2>conftest.er1
24490   ac_status=$?
24491   grep -v '^ *+' conftest.er1 >conftest.err
24492   rm -f conftest.er1
24493   cat conftest.err >&5
24494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); } && {
24496          test -z "$ac_c_werror_flag" ||
24497          test ! -s conftest.err
24498        } && test -s conftest.$ac_objext; then
24499   ac_cv_type_long_long=yes
24500 else
24501   echo "$as_me: failed program was:" >&5
24502 sed 's/^/| /' conftest.$ac_ext >&5
24503
24504         ac_cv_type_long_long=no
24505 fi
24506
24507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24508 fi
24509 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24510 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24511
24512 # The cast to long int works around a bug in the HP C Compiler
24513 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24514 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24515 # This bug is HP SR number 8606223364.
24516 { echo "$as_me:$LINENO: checking size of long long" >&5
24517 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24518 if test "${ac_cv_sizeof_long_long+set}" = set; then
24519   echo $ECHO_N "(cached) $ECHO_C" >&6
24520 else
24521   if test "$cross_compiling" = yes; then
24522   # Depending upon the size, compute the lo and hi bounds.
24523 cat >conftest.$ac_ext <<_ACEOF
24524 /* confdefs.h.  */
24525 _ACEOF
24526 cat confdefs.h >>conftest.$ac_ext
24527 cat >>conftest.$ac_ext <<_ACEOF
24528 /* end confdefs.h.  */
24529 $ac_includes_default
24530    typedef long long ac__type_sizeof_;
24531 int
24532 main ()
24533 {
24534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24535 test_array [0] = 0
24536
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 rm -f conftest.$ac_objext
24542 if { (ac_try="$ac_compile"
24543 case "(($ac_try" in
24544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545   *) ac_try_echo=$ac_try;;
24546 esac
24547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24548   (eval "$ac_compile") 2>conftest.er1
24549   ac_status=$?
24550   grep -v '^ *+' conftest.er1 >conftest.err
24551   rm -f conftest.er1
24552   cat conftest.err >&5
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); } && {
24555          test -z "$ac_c_werror_flag" ||
24556          test ! -s conftest.err
24557        } && test -s conftest.$ac_objext; then
24558   ac_lo=0 ac_mid=0
24559   while :; do
24560     cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566 $ac_includes_default
24567    typedef long long ac__type_sizeof_;
24568 int
24569 main ()
24570 {
24571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24572 test_array [0] = 0
24573
24574   ;
24575   return 0;
24576 }
24577 _ACEOF
24578 rm -f conftest.$ac_objext
24579 if { (ac_try="$ac_compile"
24580 case "(($ac_try" in
24581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582   *) ac_try_echo=$ac_try;;
24583 esac
24584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24585   (eval "$ac_compile") 2>conftest.er1
24586   ac_status=$?
24587   grep -v '^ *+' conftest.er1 >conftest.err
24588   rm -f conftest.er1
24589   cat conftest.err >&5
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); } && {
24592          test -z "$ac_c_werror_flag" ||
24593          test ! -s conftest.err
24594        } && test -s conftest.$ac_objext; then
24595   ac_hi=$ac_mid; break
24596 else
24597   echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600         ac_lo=`expr $ac_mid + 1`
24601                         if test $ac_lo -le $ac_mid; then
24602                           ac_lo= ac_hi=
24603                           break
24604                         fi
24605                         ac_mid=`expr 2 '*' $ac_mid + 1`
24606 fi
24607
24608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24609   done
24610 else
24611   echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24613
24614         cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620 $ac_includes_default
24621    typedef long long ac__type_sizeof_;
24622 int
24623 main ()
24624 {
24625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24626 test_array [0] = 0
24627
24628   ;
24629   return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext
24633 if { (ac_try="$ac_compile"
24634 case "(($ac_try" in
24635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636   *) ac_try_echo=$ac_try;;
24637 esac
24638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639   (eval "$ac_compile") 2>conftest.er1
24640   ac_status=$?
24641   grep -v '^ *+' conftest.er1 >conftest.err
24642   rm -f conftest.er1
24643   cat conftest.err >&5
24644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645   (exit $ac_status); } && {
24646          test -z "$ac_c_werror_flag" ||
24647          test ! -s conftest.err
24648        } && test -s conftest.$ac_objext; then
24649   ac_hi=-1 ac_mid=-1
24650   while :; do
24651     cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657 $ac_includes_default
24658    typedef long long ac__type_sizeof_;
24659 int
24660 main ()
24661 {
24662 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24663 test_array [0] = 0
24664
24665   ;
24666   return 0;
24667 }
24668 _ACEOF
24669 rm -f conftest.$ac_objext
24670 if { (ac_try="$ac_compile"
24671 case "(($ac_try" in
24672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24673   *) ac_try_echo=$ac_try;;
24674 esac
24675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24676   (eval "$ac_compile") 2>conftest.er1
24677   ac_status=$?
24678   grep -v '^ *+' conftest.er1 >conftest.err
24679   rm -f conftest.er1
24680   cat conftest.err >&5
24681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682   (exit $ac_status); } && {
24683          test -z "$ac_c_werror_flag" ||
24684          test ! -s conftest.err
24685        } && test -s conftest.$ac_objext; then
24686   ac_lo=$ac_mid; break
24687 else
24688   echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24690
24691         ac_hi=`expr '(' $ac_mid ')' - 1`
24692                         if test $ac_mid -le $ac_hi; then
24693                           ac_lo= ac_hi=
24694                           break
24695                         fi
24696                         ac_mid=`expr 2 '*' $ac_mid`
24697 fi
24698
24699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24700   done
24701 else
24702   echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24704
24705         ac_lo= ac_hi=
24706 fi
24707
24708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709 fi
24710
24711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24712 # Binary search between lo and hi bounds.
24713 while test "x$ac_lo" != "x$ac_hi"; do
24714   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24715   cat >conftest.$ac_ext <<_ACEOF
24716 /* confdefs.h.  */
24717 _ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h.  */
24721 $ac_includes_default
24722    typedef long long ac__type_sizeof_;
24723 int
24724 main ()
24725 {
24726 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24727 test_array [0] = 0
24728
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_compile") 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } && {
24747          test -z "$ac_c_werror_flag" ||
24748          test ! -s conftest.err
24749        } && test -s conftest.$ac_objext; then
24750   ac_hi=$ac_mid
24751 else
24752   echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24754
24755         ac_lo=`expr '(' $ac_mid ')' + 1`
24756 fi
24757
24758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24759 done
24760 case $ac_lo in
24761 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24762 '') if test "$ac_cv_type_long_long" = yes; then
24763      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24764 See \`config.log' for more details." >&5
24765 echo "$as_me: error: cannot compute sizeof (long long)
24766 See \`config.log' for more details." >&2;}
24767    { (exit 77); exit 77; }; }
24768    else
24769      ac_cv_sizeof_long_long=0
24770    fi ;;
24771 esac
24772 else
24773   cat >conftest.$ac_ext <<_ACEOF
24774 /* confdefs.h.  */
24775 _ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h.  */
24779 $ac_includes_default
24780    typedef long long ac__type_sizeof_;
24781 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24782 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24783 #include <stdio.h>
24784 #include <stdlib.h>
24785 int
24786 main ()
24787 {
24788
24789   FILE *f = fopen ("conftest.val", "w");
24790   if (! f)
24791     return 1;
24792   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24793     {
24794       long int i = longval ();
24795       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24796         return 1;
24797       fprintf (f, "%ld\n", i);
24798     }
24799   else
24800     {
24801       unsigned long int i = ulongval ();
24802       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24803         return 1;
24804       fprintf (f, "%lu\n", i);
24805     }
24806   return ferror (f) || fclose (f) != 0;
24807
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 rm -f conftest$ac_exeext
24813 if { (ac_try="$ac_link"
24814 case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819   (eval "$ac_link") 2>&5
24820   ac_status=$?
24821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24823   { (case "(($ac_try" in
24824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825   *) ac_try_echo=$ac_try;;
24826 esac
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828   (eval "$ac_try") 2>&5
24829   ac_status=$?
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); }; }; then
24832   ac_cv_sizeof_long_long=`cat conftest.val`
24833 else
24834   echo "$as_me: program exited with status $ac_status" >&5
24835 echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24837
24838 ( exit $ac_status )
24839 if test "$ac_cv_type_long_long" = yes; then
24840      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24841 See \`config.log' for more details." >&5
24842 echo "$as_me: error: cannot compute sizeof (long long)
24843 See \`config.log' for more details." >&2;}
24844    { (exit 77); exit 77; }; }
24845    else
24846      ac_cv_sizeof_long_long=0
24847    fi
24848 fi
24849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24850 fi
24851 rm -f conftest.val
24852 fi
24853 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24854 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24855
24856
24857
24858 cat >>confdefs.h <<_ACEOF
24859 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24860 _ACEOF
24861
24862
24863     ;;
24864     *-hp-hpux* )
24865         { echo "$as_me:$LINENO: checking for long long" >&5
24866 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24867 if test "${ac_cv_type_long_long+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   cat >conftest.$ac_ext <<_ACEOF
24871 /* confdefs.h.  */
24872 _ACEOF
24873 cat confdefs.h >>conftest.$ac_ext
24874 cat >>conftest.$ac_ext <<_ACEOF
24875 /* end confdefs.h.  */
24876 $ac_includes_default
24877 typedef long long ac__type_new_;
24878 int
24879 main ()
24880 {
24881 if ((ac__type_new_ *) 0)
24882   return 0;
24883 if (sizeof (ac__type_new_))
24884   return 0;
24885   ;
24886   return 0;
24887 }
24888 _ACEOF
24889 rm -f conftest.$ac_objext
24890 if { (ac_try="$ac_compile"
24891 case "(($ac_try" in
24892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24893   *) ac_try_echo=$ac_try;;
24894 esac
24895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24896   (eval "$ac_compile") 2>conftest.er1
24897   ac_status=$?
24898   grep -v '^ *+' conftest.er1 >conftest.err
24899   rm -f conftest.er1
24900   cat conftest.err >&5
24901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902   (exit $ac_status); } && {
24903          test -z "$ac_c_werror_flag" ||
24904          test ! -s conftest.err
24905        } && test -s conftest.$ac_objext; then
24906   ac_cv_type_long_long=yes
24907 else
24908   echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24910
24911         ac_cv_type_long_long=no
24912 fi
24913
24914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24915 fi
24916 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24917 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24918
24919 # The cast to long int works around a bug in the HP C Compiler
24920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24922 # This bug is HP SR number 8606223364.
24923 { echo "$as_me:$LINENO: checking size of long long" >&5
24924 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24925 if test "${ac_cv_sizeof_long_long+set}" = set; then
24926   echo $ECHO_N "(cached) $ECHO_C" >&6
24927 else
24928   if test "$cross_compiling" = yes; then
24929   # Depending upon the size, compute the lo and hi bounds.
24930 cat >conftest.$ac_ext <<_ACEOF
24931 /* confdefs.h.  */
24932 _ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h.  */
24936 $ac_includes_default
24937    typedef long long ac__type_sizeof_;
24938 int
24939 main ()
24940 {
24941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24942 test_array [0] = 0
24943
24944   ;
24945   return 0;
24946 }
24947 _ACEOF
24948 rm -f conftest.$ac_objext
24949 if { (ac_try="$ac_compile"
24950 case "(($ac_try" in
24951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24952   *) ac_try_echo=$ac_try;;
24953 esac
24954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24955   (eval "$ac_compile") 2>conftest.er1
24956   ac_status=$?
24957   grep -v '^ *+' conftest.er1 >conftest.err
24958   rm -f conftest.er1
24959   cat conftest.err >&5
24960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961   (exit $ac_status); } && {
24962          test -z "$ac_c_werror_flag" ||
24963          test ! -s conftest.err
24964        } && test -s conftest.$ac_objext; then
24965   ac_lo=0 ac_mid=0
24966   while :; do
24967     cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h.  */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h.  */
24973 $ac_includes_default
24974    typedef long long ac__type_sizeof_;
24975 int
24976 main ()
24977 {
24978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24979 test_array [0] = 0
24980
24981   ;
24982   return 0;
24983 }
24984 _ACEOF
24985 rm -f conftest.$ac_objext
24986 if { (ac_try="$ac_compile"
24987 case "(($ac_try" in
24988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989   *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992   (eval "$ac_compile") 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } && {
24999          test -z "$ac_c_werror_flag" ||
25000          test ! -s conftest.err
25001        } && test -s conftest.$ac_objext; then
25002   ac_hi=$ac_mid; break
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007         ac_lo=`expr $ac_mid + 1`
25008                         if test $ac_lo -le $ac_mid; then
25009                           ac_lo= ac_hi=
25010                           break
25011                         fi
25012                         ac_mid=`expr 2 '*' $ac_mid + 1`
25013 fi
25014
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016   done
25017 else
25018   echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25020
25021         cat >conftest.$ac_ext <<_ACEOF
25022 /* confdefs.h.  */
25023 _ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h.  */
25027 $ac_includes_default
25028    typedef long long ac__type_sizeof_;
25029 int
25030 main ()
25031 {
25032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25033 test_array [0] = 0
25034
25035   ;
25036   return 0;
25037 }
25038 _ACEOF
25039 rm -f conftest.$ac_objext
25040 if { (ac_try="$ac_compile"
25041 case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_compile") 2>conftest.er1
25047   ac_status=$?
25048   grep -v '^ *+' conftest.er1 >conftest.err
25049   rm -f conftest.er1
25050   cat conftest.err >&5
25051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052   (exit $ac_status); } && {
25053          test -z "$ac_c_werror_flag" ||
25054          test ! -s conftest.err
25055        } && test -s conftest.$ac_objext; then
25056   ac_hi=-1 ac_mid=-1
25057   while :; do
25058     cat >conftest.$ac_ext <<_ACEOF
25059 /* confdefs.h.  */
25060 _ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h.  */
25064 $ac_includes_default
25065    typedef long long ac__type_sizeof_;
25066 int
25067 main ()
25068 {
25069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25070 test_array [0] = 0
25071
25072   ;
25073   return 0;
25074 }
25075 _ACEOF
25076 rm -f conftest.$ac_objext
25077 if { (ac_try="$ac_compile"
25078 case "(($ac_try" in
25079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080   *) ac_try_echo=$ac_try;;
25081 esac
25082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25083   (eval "$ac_compile") 2>conftest.er1
25084   ac_status=$?
25085   grep -v '^ *+' conftest.er1 >conftest.err
25086   rm -f conftest.er1
25087   cat conftest.err >&5
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); } && {
25090          test -z "$ac_c_werror_flag" ||
25091          test ! -s conftest.err
25092        } && test -s conftest.$ac_objext; then
25093   ac_lo=$ac_mid; break
25094 else
25095   echo "$as_me: failed program was:" >&5
25096 sed 's/^/| /' conftest.$ac_ext >&5
25097
25098         ac_hi=`expr '(' $ac_mid ')' - 1`
25099                         if test $ac_mid -le $ac_hi; then
25100                           ac_lo= ac_hi=
25101                           break
25102                         fi
25103                         ac_mid=`expr 2 '*' $ac_mid`
25104 fi
25105
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25107   done
25108 else
25109   echo "$as_me: failed program was:" >&5
25110 sed 's/^/| /' conftest.$ac_ext >&5
25111
25112         ac_lo= ac_hi=
25113 fi
25114
25115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25116 fi
25117
25118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25119 # Binary search between lo and hi bounds.
25120 while test "x$ac_lo" != "x$ac_hi"; do
25121   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25122   cat >conftest.$ac_ext <<_ACEOF
25123 /* confdefs.h.  */
25124 _ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h.  */
25128 $ac_includes_default
25129    typedef long long ac__type_sizeof_;
25130 int
25131 main ()
25132 {
25133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25134 test_array [0] = 0
25135
25136   ;
25137   return 0;
25138 }
25139 _ACEOF
25140 rm -f conftest.$ac_objext
25141 if { (ac_try="$ac_compile"
25142 case "(($ac_try" in
25143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144   *) ac_try_echo=$ac_try;;
25145 esac
25146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147   (eval "$ac_compile") 2>conftest.er1
25148   ac_status=$?
25149   grep -v '^ *+' conftest.er1 >conftest.err
25150   rm -f conftest.er1
25151   cat conftest.err >&5
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); } && {
25154          test -z "$ac_c_werror_flag" ||
25155          test ! -s conftest.err
25156        } && test -s conftest.$ac_objext; then
25157   ac_hi=$ac_mid
25158 else
25159   echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25161
25162         ac_lo=`expr '(' $ac_mid ')' + 1`
25163 fi
25164
25165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25166 done
25167 case $ac_lo in
25168 ?*) ac_cv_sizeof_long_long=$ac_lo;;
25169 '') if test "$ac_cv_type_long_long" = yes; then
25170      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25171 See \`config.log' for more details." >&5
25172 echo "$as_me: error: cannot compute sizeof (long long)
25173 See \`config.log' for more details." >&2;}
25174    { (exit 77); exit 77; }; }
25175    else
25176      ac_cv_sizeof_long_long=0
25177    fi ;;
25178 esac
25179 else
25180   cat >conftest.$ac_ext <<_ACEOF
25181 /* confdefs.h.  */
25182 _ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h.  */
25186 $ac_includes_default
25187    typedef long long ac__type_sizeof_;
25188 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25189 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25190 #include <stdio.h>
25191 #include <stdlib.h>
25192 int
25193 main ()
25194 {
25195
25196   FILE *f = fopen ("conftest.val", "w");
25197   if (! f)
25198     return 1;
25199   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25200     {
25201       long int i = longval ();
25202       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25203         return 1;
25204       fprintf (f, "%ld\n", i);
25205     }
25206   else
25207     {
25208       unsigned long int i = ulongval ();
25209       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25210         return 1;
25211       fprintf (f, "%lu\n", i);
25212     }
25213   return ferror (f) || fclose (f) != 0;
25214
25215   ;
25216   return 0;
25217 }
25218 _ACEOF
25219 rm -f conftest$ac_exeext
25220 if { (ac_try="$ac_link"
25221 case "(($ac_try" in
25222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223   *) ac_try_echo=$ac_try;;
25224 esac
25225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25226   (eval "$ac_link") 2>&5
25227   ac_status=$?
25228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25230   { (case "(($ac_try" in
25231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232   *) ac_try_echo=$ac_try;;
25233 esac
25234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25235   (eval "$ac_try") 2>&5
25236   ac_status=$?
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); }; }; then
25239   ac_cv_sizeof_long_long=`cat conftest.val`
25240 else
25241   echo "$as_me: program exited with status $ac_status" >&5
25242 echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25244
25245 ( exit $ac_status )
25246 if test "$ac_cv_type_long_long" = yes; then
25247      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25248 See \`config.log' for more details." >&5
25249 echo "$as_me: error: cannot compute sizeof (long long)
25250 See \`config.log' for more details." >&2;}
25251    { (exit 77); exit 77; }; }
25252    else
25253      ac_cv_sizeof_long_long=0
25254    fi
25255 fi
25256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25257 fi
25258 rm -f conftest.val
25259 fi
25260 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25261 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25262
25263
25264
25265 cat >>confdefs.h <<_ACEOF
25266 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25267 _ACEOF
25268
25269
25270         if test "$ac_cv_sizeof_long_long" != "0"; then
25271                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
25272         fi
25273     ;;
25274     * )
25275         { echo "$as_me:$LINENO: checking for long long" >&5
25276 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
25277 if test "${ac_cv_type_long_long+set}" = set; then
25278   echo $ECHO_N "(cached) $ECHO_C" >&6
25279 else
25280   cat >conftest.$ac_ext <<_ACEOF
25281 /* confdefs.h.  */
25282 _ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h.  */
25286 $ac_includes_default
25287 typedef long long ac__type_new_;
25288 int
25289 main ()
25290 {
25291 if ((ac__type_new_ *) 0)
25292   return 0;
25293 if (sizeof (ac__type_new_))
25294   return 0;
25295   ;
25296   return 0;
25297 }
25298 _ACEOF
25299 rm -f conftest.$ac_objext
25300 if { (ac_try="$ac_compile"
25301 case "(($ac_try" in
25302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303   *) ac_try_echo=$ac_try;;
25304 esac
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306   (eval "$ac_compile") 2>conftest.er1
25307   ac_status=$?
25308   grep -v '^ *+' conftest.er1 >conftest.err
25309   rm -f conftest.er1
25310   cat conftest.err >&5
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); } && {
25313          test -z "$ac_c_werror_flag" ||
25314          test ! -s conftest.err
25315        } && test -s conftest.$ac_objext; then
25316   ac_cv_type_long_long=yes
25317 else
25318   echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25320
25321         ac_cv_type_long_long=no
25322 fi
25323
25324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25325 fi
25326 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25327 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
25328
25329 # The cast to long int works around a bug in the HP C Compiler
25330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25332 # This bug is HP SR number 8606223364.
25333 { echo "$as_me:$LINENO: checking size of long long" >&5
25334 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
25335 if test "${ac_cv_sizeof_long_long+set}" = set; then
25336   echo $ECHO_N "(cached) $ECHO_C" >&6
25337 else
25338   if test "$cross_compiling" = yes; then
25339   # Depending upon the size, compute the lo and hi bounds.
25340 cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h.  */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h.  */
25346 $ac_includes_default
25347    typedef long long ac__type_sizeof_;
25348 int
25349 main ()
25350 {
25351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25352 test_array [0] = 0
25353
25354   ;
25355   return 0;
25356 }
25357 _ACEOF
25358 rm -f conftest.$ac_objext
25359 if { (ac_try="$ac_compile"
25360 case "(($ac_try" in
25361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25362   *) ac_try_echo=$ac_try;;
25363 esac
25364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25365   (eval "$ac_compile") 2>conftest.er1
25366   ac_status=$?
25367   grep -v '^ *+' conftest.er1 >conftest.err
25368   rm -f conftest.er1
25369   cat conftest.err >&5
25370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371   (exit $ac_status); } && {
25372          test -z "$ac_c_werror_flag" ||
25373          test ! -s conftest.err
25374        } && test -s conftest.$ac_objext; then
25375   ac_lo=0 ac_mid=0
25376   while :; do
25377     cat >conftest.$ac_ext <<_ACEOF
25378 /* confdefs.h.  */
25379 _ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h.  */
25383 $ac_includes_default
25384    typedef long long ac__type_sizeof_;
25385 int
25386 main ()
25387 {
25388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25389 test_array [0] = 0
25390
25391   ;
25392   return 0;
25393 }
25394 _ACEOF
25395 rm -f conftest.$ac_objext
25396 if { (ac_try="$ac_compile"
25397 case "(($ac_try" in
25398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399   *) ac_try_echo=$ac_try;;
25400 esac
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402   (eval "$ac_compile") 2>conftest.er1
25403   ac_status=$?
25404   grep -v '^ *+' conftest.er1 >conftest.err
25405   rm -f conftest.er1
25406   cat conftest.err >&5
25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); } && {
25409          test -z "$ac_c_werror_flag" ||
25410          test ! -s conftest.err
25411        } && test -s conftest.$ac_objext; then
25412   ac_hi=$ac_mid; break
25413 else
25414   echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25416
25417         ac_lo=`expr $ac_mid + 1`
25418                         if test $ac_lo -le $ac_mid; then
25419                           ac_lo= ac_hi=
25420                           break
25421                         fi
25422                         ac_mid=`expr 2 '*' $ac_mid + 1`
25423 fi
25424
25425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25426   done
25427 else
25428   echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25430
25431         cat >conftest.$ac_ext <<_ACEOF
25432 /* confdefs.h.  */
25433 _ACEOF
25434 cat confdefs.h >>conftest.$ac_ext
25435 cat >>conftest.$ac_ext <<_ACEOF
25436 /* end confdefs.h.  */
25437 $ac_includes_default
25438    typedef long long ac__type_sizeof_;
25439 int
25440 main ()
25441 {
25442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25443 test_array [0] = 0
25444
25445   ;
25446   return 0;
25447 }
25448 _ACEOF
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453   *) ac_try_echo=$ac_try;;
25454 esac
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456   (eval "$ac_compile") 2>conftest.er1
25457   ac_status=$?
25458   grep -v '^ *+' conftest.er1 >conftest.err
25459   rm -f conftest.er1
25460   cat conftest.err >&5
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); } && {
25463          test -z "$ac_c_werror_flag" ||
25464          test ! -s conftest.err
25465        } && test -s conftest.$ac_objext; then
25466   ac_hi=-1 ac_mid=-1
25467   while :; do
25468     cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h.  */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h.  */
25474 $ac_includes_default
25475    typedef long long ac__type_sizeof_;
25476 int
25477 main ()
25478 {
25479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25480 test_array [0] = 0
25481
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 rm -f conftest.$ac_objext
25487 if { (ac_try="$ac_compile"
25488 case "(($ac_try" in
25489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490   *) ac_try_echo=$ac_try;;
25491 esac
25492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25493   (eval "$ac_compile") 2>conftest.er1
25494   ac_status=$?
25495   grep -v '^ *+' conftest.er1 >conftest.err
25496   rm -f conftest.er1
25497   cat conftest.err >&5
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); } && {
25500          test -z "$ac_c_werror_flag" ||
25501          test ! -s conftest.err
25502        } && test -s conftest.$ac_objext; then
25503   ac_lo=$ac_mid; break
25504 else
25505   echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25507
25508         ac_hi=`expr '(' $ac_mid ')' - 1`
25509                         if test $ac_mid -le $ac_hi; then
25510                           ac_lo= ac_hi=
25511                           break
25512                         fi
25513                         ac_mid=`expr 2 '*' $ac_mid`
25514 fi
25515
25516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25517   done
25518 else
25519   echo "$as_me: failed program was:" >&5
25520 sed 's/^/| /' conftest.$ac_ext >&5
25521
25522         ac_lo= ac_hi=
25523 fi
25524
25525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25526 fi
25527
25528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25529 # Binary search between lo and hi bounds.
25530 while test "x$ac_lo" != "x$ac_hi"; do
25531   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25532   cat >conftest.$ac_ext <<_ACEOF
25533 /* confdefs.h.  */
25534 _ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h.  */
25538 $ac_includes_default
25539    typedef long long ac__type_sizeof_;
25540 int
25541 main ()
25542 {
25543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25544 test_array [0] = 0
25545
25546   ;
25547   return 0;
25548 }
25549 _ACEOF
25550 rm -f conftest.$ac_objext
25551 if { (ac_try="$ac_compile"
25552 case "(($ac_try" in
25553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25554   *) ac_try_echo=$ac_try;;
25555 esac
25556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25557   (eval "$ac_compile") 2>conftest.er1
25558   ac_status=$?
25559   grep -v '^ *+' conftest.er1 >conftest.err
25560   rm -f conftest.er1
25561   cat conftest.err >&5
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); } && {
25564          test -z "$ac_c_werror_flag" ||
25565          test ! -s conftest.err
25566        } && test -s conftest.$ac_objext; then
25567   ac_hi=$ac_mid
25568 else
25569   echo "$as_me: failed program was:" >&5
25570 sed 's/^/| /' conftest.$ac_ext >&5
25571
25572         ac_lo=`expr '(' $ac_mid ')' + 1`
25573 fi
25574
25575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25576 done
25577 case $ac_lo in
25578 ?*) ac_cv_sizeof_long_long=$ac_lo;;
25579 '') if test "$ac_cv_type_long_long" = yes; then
25580      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25581 See \`config.log' for more details." >&5
25582 echo "$as_me: error: cannot compute sizeof (long long)
25583 See \`config.log' for more details." >&2;}
25584    { (exit 77); exit 77; }; }
25585    else
25586      ac_cv_sizeof_long_long=0
25587    fi ;;
25588 esac
25589 else
25590   cat >conftest.$ac_ext <<_ACEOF
25591 /* confdefs.h.  */
25592 _ACEOF
25593 cat confdefs.h >>conftest.$ac_ext
25594 cat >>conftest.$ac_ext <<_ACEOF
25595 /* end confdefs.h.  */
25596 $ac_includes_default
25597    typedef long long ac__type_sizeof_;
25598 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25599 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25600 #include <stdio.h>
25601 #include <stdlib.h>
25602 int
25603 main ()
25604 {
25605
25606   FILE *f = fopen ("conftest.val", "w");
25607   if (! f)
25608     return 1;
25609   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25610     {
25611       long int i = longval ();
25612       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25613         return 1;
25614       fprintf (f, "%ld\n", i);
25615     }
25616   else
25617     {
25618       unsigned long int i = ulongval ();
25619       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25620         return 1;
25621       fprintf (f, "%lu\n", i);
25622     }
25623   return ferror (f) || fclose (f) != 0;
25624
25625   ;
25626   return 0;
25627 }
25628 _ACEOF
25629 rm -f conftest$ac_exeext
25630 if { (ac_try="$ac_link"
25631 case "(($ac_try" in
25632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633   *) ac_try_echo=$ac_try;;
25634 esac
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636   (eval "$ac_link") 2>&5
25637   ac_status=$?
25638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25640   { (case "(($ac_try" in
25641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25642   *) ac_try_echo=$ac_try;;
25643 esac
25644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25645   (eval "$ac_try") 2>&5
25646   ac_status=$?
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); }; }; then
25649   ac_cv_sizeof_long_long=`cat conftest.val`
25650 else
25651   echo "$as_me: program exited with status $ac_status" >&5
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655 ( exit $ac_status )
25656 if test "$ac_cv_type_long_long" = yes; then
25657      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25658 See \`config.log' for more details." >&5
25659 echo "$as_me: error: cannot compute sizeof (long long)
25660 See \`config.log' for more details." >&2;}
25661    { (exit 77); exit 77; }; }
25662    else
25663      ac_cv_sizeof_long_long=0
25664    fi
25665 fi
25666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25667 fi
25668 rm -f conftest.val
25669 fi
25670 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25671 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25672
25673
25674
25675 cat >>confdefs.h <<_ACEOF
25676 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25677 _ACEOF
25678
25679
25680 esac
25681
25682 { echo "$as_me:$LINENO: checking for wchar_t" >&5
25683 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25684 if test "${ac_cv_type_wchar_t+set}" = set; then
25685   echo $ECHO_N "(cached) $ECHO_C" >&6
25686 else
25687   cat >conftest.$ac_ext <<_ACEOF
25688 /* confdefs.h.  */
25689 _ACEOF
25690 cat confdefs.h >>conftest.$ac_ext
25691 cat >>conftest.$ac_ext <<_ACEOF
25692 /* end confdefs.h.  */
25693
25694         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25695         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25696         #  error "fake wchar_t"
25697         #endif
25698         #ifdef HAVE_WCHAR_H
25699         #  ifdef __CYGWIN__
25700         #    include <stddef.h>
25701         #  endif
25702         #  include <wchar.h>
25703         #endif
25704         #ifdef HAVE_STDLIB_H
25705         #  include <stdlib.h>
25706         #endif
25707         #include <stdio.h>
25708
25709
25710
25711 typedef wchar_t ac__type_new_;
25712 int
25713 main ()
25714 {
25715 if ((ac__type_new_ *) 0)
25716   return 0;
25717 if (sizeof (ac__type_new_))
25718   return 0;
25719   ;
25720   return 0;
25721 }
25722 _ACEOF
25723 rm -f conftest.$ac_objext
25724 if { (ac_try="$ac_compile"
25725 case "(($ac_try" in
25726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25727   *) ac_try_echo=$ac_try;;
25728 esac
25729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25730   (eval "$ac_compile") 2>conftest.er1
25731   ac_status=$?
25732   grep -v '^ *+' conftest.er1 >conftest.err
25733   rm -f conftest.er1
25734   cat conftest.err >&5
25735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736   (exit $ac_status); } && {
25737          test -z "$ac_c_werror_flag" ||
25738          test ! -s conftest.err
25739        } && test -s conftest.$ac_objext; then
25740   ac_cv_type_wchar_t=yes
25741 else
25742   echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25744
25745         ac_cv_type_wchar_t=no
25746 fi
25747
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25749 fi
25750 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
25751 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
25752
25753 # The cast to long int works around a bug in the HP C Compiler
25754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25756 # This bug is HP SR number 8606223364.
25757 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
25758 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
25759 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25760   echo $ECHO_N "(cached) $ECHO_C" >&6
25761 else
25762   if test "$cross_compiling" = yes; then
25763   # Depending upon the size, compute the lo and hi bounds.
25764 cat >conftest.$ac_ext <<_ACEOF
25765 /* confdefs.h.  */
25766 _ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h.  */
25770
25771         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25772         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25773         #  error "fake wchar_t"
25774         #endif
25775         #ifdef HAVE_WCHAR_H
25776         #  ifdef __CYGWIN__
25777         #    include <stddef.h>
25778         #  endif
25779         #  include <wchar.h>
25780         #endif
25781         #ifdef HAVE_STDLIB_H
25782         #  include <stdlib.h>
25783         #endif
25784         #include <stdio.h>
25785
25786
25787
25788    typedef wchar_t ac__type_sizeof_;
25789 int
25790 main ()
25791 {
25792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25793 test_array [0] = 0
25794
25795   ;
25796   return 0;
25797 }
25798 _ACEOF
25799 rm -f conftest.$ac_objext
25800 if { (ac_try="$ac_compile"
25801 case "(($ac_try" in
25802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803   *) ac_try_echo=$ac_try;;
25804 esac
25805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25806   (eval "$ac_compile") 2>conftest.er1
25807   ac_status=$?
25808   grep -v '^ *+' conftest.er1 >conftest.err
25809   rm -f conftest.er1
25810   cat conftest.err >&5
25811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); } && {
25813          test -z "$ac_c_werror_flag" ||
25814          test ! -s conftest.err
25815        } && test -s conftest.$ac_objext; then
25816   ac_lo=0 ac_mid=0
25817   while :; do
25818     cat >conftest.$ac_ext <<_ACEOF
25819 /* confdefs.h.  */
25820 _ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h.  */
25824
25825         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25826         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25827         #  error "fake wchar_t"
25828         #endif
25829         #ifdef HAVE_WCHAR_H
25830         #  ifdef __CYGWIN__
25831         #    include <stddef.h>
25832         #  endif
25833         #  include <wchar.h>
25834         #endif
25835         #ifdef HAVE_STDLIB_H
25836         #  include <stdlib.h>
25837         #endif
25838         #include <stdio.h>
25839
25840
25841
25842    typedef wchar_t ac__type_sizeof_;
25843 int
25844 main ()
25845 {
25846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25847 test_array [0] = 0
25848
25849   ;
25850   return 0;
25851 }
25852 _ACEOF
25853 rm -f conftest.$ac_objext
25854 if { (ac_try="$ac_compile"
25855 case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_compile") 2>conftest.er1
25861   ac_status=$?
25862   grep -v '^ *+' conftest.er1 >conftest.err
25863   rm -f conftest.er1
25864   cat conftest.err >&5
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); } && {
25867          test -z "$ac_c_werror_flag" ||
25868          test ! -s conftest.err
25869        } && test -s conftest.$ac_objext; then
25870   ac_hi=$ac_mid; break
25871 else
25872   echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25874
25875         ac_lo=`expr $ac_mid + 1`
25876                         if test $ac_lo -le $ac_mid; then
25877                           ac_lo= ac_hi=
25878                           break
25879                         fi
25880                         ac_mid=`expr 2 '*' $ac_mid + 1`
25881 fi
25882
25883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884   done
25885 else
25886   echo "$as_me: failed program was:" >&5
25887 sed 's/^/| /' conftest.$ac_ext >&5
25888
25889         cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h.  */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h.  */
25895
25896         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25897         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25898         #  error "fake wchar_t"
25899         #endif
25900         #ifdef HAVE_WCHAR_H
25901         #  ifdef __CYGWIN__
25902         #    include <stddef.h>
25903         #  endif
25904         #  include <wchar.h>
25905         #endif
25906         #ifdef HAVE_STDLIB_H
25907         #  include <stdlib.h>
25908         #endif
25909         #include <stdio.h>
25910
25911
25912
25913    typedef wchar_t ac__type_sizeof_;
25914 int
25915 main ()
25916 {
25917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25918 test_array [0] = 0
25919
25920   ;
25921   return 0;
25922 }
25923 _ACEOF
25924 rm -f conftest.$ac_objext
25925 if { (ac_try="$ac_compile"
25926 case "(($ac_try" in
25927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928   *) ac_try_echo=$ac_try;;
25929 esac
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931   (eval "$ac_compile") 2>conftest.er1
25932   ac_status=$?
25933   grep -v '^ *+' conftest.er1 >conftest.err
25934   rm -f conftest.er1
25935   cat conftest.err >&5
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } && {
25938          test -z "$ac_c_werror_flag" ||
25939          test ! -s conftest.err
25940        } && test -s conftest.$ac_objext; then
25941   ac_hi=-1 ac_mid=-1
25942   while :; do
25943     cat >conftest.$ac_ext <<_ACEOF
25944 /* confdefs.h.  */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h.  */
25949
25950         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25951         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25952         #  error "fake wchar_t"
25953         #endif
25954         #ifdef HAVE_WCHAR_H
25955         #  ifdef __CYGWIN__
25956         #    include <stddef.h>
25957         #  endif
25958         #  include <wchar.h>
25959         #endif
25960         #ifdef HAVE_STDLIB_H
25961         #  include <stdlib.h>
25962         #endif
25963         #include <stdio.h>
25964
25965
25966
25967    typedef wchar_t ac__type_sizeof_;
25968 int
25969 main ()
25970 {
25971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25972 test_array [0] = 0
25973
25974   ;
25975   return 0;
25976 }
25977 _ACEOF
25978 rm -f conftest.$ac_objext
25979 if { (ac_try="$ac_compile"
25980 case "(($ac_try" in
25981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982   *) ac_try_echo=$ac_try;;
25983 esac
25984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25985   (eval "$ac_compile") 2>conftest.er1
25986   ac_status=$?
25987   grep -v '^ *+' conftest.er1 >conftest.err
25988   rm -f conftest.er1
25989   cat conftest.err >&5
25990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991   (exit $ac_status); } && {
25992          test -z "$ac_c_werror_flag" ||
25993          test ! -s conftest.err
25994        } && test -s conftest.$ac_objext; then
25995   ac_lo=$ac_mid; break
25996 else
25997   echo "$as_me: failed program was:" >&5
25998 sed 's/^/| /' conftest.$ac_ext >&5
25999
26000         ac_hi=`expr '(' $ac_mid ')' - 1`
26001                         if test $ac_mid -le $ac_hi; then
26002                           ac_lo= ac_hi=
26003                           break
26004                         fi
26005                         ac_mid=`expr 2 '*' $ac_mid`
26006 fi
26007
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009   done
26010 else
26011   echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26013
26014         ac_lo= ac_hi=
26015 fi
26016
26017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26018 fi
26019
26020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 # Binary search between lo and hi bounds.
26022 while test "x$ac_lo" != "x$ac_hi"; do
26023   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26024   cat >conftest.$ac_ext <<_ACEOF
26025 /* confdefs.h.  */
26026 _ACEOF
26027 cat confdefs.h >>conftest.$ac_ext
26028 cat >>conftest.$ac_ext <<_ACEOF
26029 /* end confdefs.h.  */
26030
26031         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
26032         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
26033         #  error "fake wchar_t"
26034         #endif
26035         #ifdef HAVE_WCHAR_H
26036         #  ifdef __CYGWIN__
26037         #    include <stddef.h>
26038         #  endif
26039         #  include <wchar.h>
26040         #endif
26041         #ifdef HAVE_STDLIB_H
26042         #  include <stdlib.h>
26043         #endif
26044         #include <stdio.h>
26045
26046
26047
26048    typedef wchar_t ac__type_sizeof_;
26049 int
26050 main ()
26051 {
26052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26053 test_array [0] = 0
26054
26055   ;
26056   return 0;
26057 }
26058 _ACEOF
26059 rm -f conftest.$ac_objext
26060 if { (ac_try="$ac_compile"
26061 case "(($ac_try" in
26062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26063   *) ac_try_echo=$ac_try;;
26064 esac
26065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066   (eval "$ac_compile") 2>conftest.er1
26067   ac_status=$?
26068   grep -v '^ *+' conftest.er1 >conftest.err
26069   rm -f conftest.er1
26070   cat conftest.err >&5
26071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); } && {
26073          test -z "$ac_c_werror_flag" ||
26074          test ! -s conftest.err
26075        } && test -s conftest.$ac_objext; then
26076   ac_hi=$ac_mid
26077 else
26078   echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081         ac_lo=`expr '(' $ac_mid ')' + 1`
26082 fi
26083
26084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26085 done
26086 case $ac_lo in
26087 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
26088 '') if test "$ac_cv_type_wchar_t" = yes; then
26089      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
26090 See \`config.log' for more details." >&5
26091 echo "$as_me: error: cannot compute sizeof (wchar_t)
26092 See \`config.log' for more details." >&2;}
26093    { (exit 77); exit 77; }; }
26094    else
26095      ac_cv_sizeof_wchar_t=0
26096    fi ;;
26097 esac
26098 else
26099   cat >conftest.$ac_ext <<_ACEOF
26100 /* confdefs.h.  */
26101 _ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h.  */
26105
26106         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
26107         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
26108         #  error "fake wchar_t"
26109         #endif
26110         #ifdef HAVE_WCHAR_H
26111         #  ifdef __CYGWIN__
26112         #    include <stddef.h>
26113         #  endif
26114         #  include <wchar.h>
26115         #endif
26116         #ifdef HAVE_STDLIB_H
26117         #  include <stdlib.h>
26118         #endif
26119         #include <stdio.h>
26120
26121
26122
26123    typedef wchar_t ac__type_sizeof_;
26124 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26125 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26126 #include <stdio.h>
26127 #include <stdlib.h>
26128 int
26129 main ()
26130 {
26131
26132   FILE *f = fopen ("conftest.val", "w");
26133   if (! f)
26134     return 1;
26135   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26136     {
26137       long int i = longval ();
26138       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26139         return 1;
26140       fprintf (f, "%ld\n", i);
26141     }
26142   else
26143     {
26144       unsigned long int i = ulongval ();
26145       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26146         return 1;
26147       fprintf (f, "%lu\n", i);
26148     }
26149   return ferror (f) || fclose (f) != 0;
26150
26151   ;
26152   return 0;
26153 }
26154 _ACEOF
26155 rm -f conftest$ac_exeext
26156 if { (ac_try="$ac_link"
26157 case "(($ac_try" in
26158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26159   *) ac_try_echo=$ac_try;;
26160 esac
26161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26162   (eval "$ac_link") 2>&5
26163   ac_status=$?
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26166   { (case "(($ac_try" in
26167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168   *) ac_try_echo=$ac_try;;
26169 esac
26170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26171   (eval "$ac_try") 2>&5
26172   ac_status=$?
26173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174   (exit $ac_status); }; }; then
26175   ac_cv_sizeof_wchar_t=`cat conftest.val`
26176 else
26177   echo "$as_me: program exited with status $ac_status" >&5
26178 echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26180
26181 ( exit $ac_status )
26182 if test "$ac_cv_type_wchar_t" = yes; then
26183      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
26184 See \`config.log' for more details." >&5
26185 echo "$as_me: error: cannot compute sizeof (wchar_t)
26186 See \`config.log' for more details." >&2;}
26187    { (exit 77); exit 77; }; }
26188    else
26189      ac_cv_sizeof_wchar_t=0
26190    fi
26191 fi
26192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26193 fi
26194 rm -f conftest.val
26195 fi
26196 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
26197 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
26198
26199
26200
26201 cat >>confdefs.h <<_ACEOF
26202 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
26203 _ACEOF
26204
26205
26206 if test "$ac_cv_sizeof_wchar_t" != "0"; then
26207     wxUSE_WCHAR_T=yes
26208 else
26209     wxUSE_WCHAR_T=no
26210 fi
26211
26212 { echo "$as_me:$LINENO: checking for va_copy" >&5
26213 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
26214 if test "${wx_cv_func_va_copy+set}" = set; then
26215   echo $ECHO_N "(cached) $ECHO_C" >&6
26216 else
26217
26218         ac_ext=cpp
26219 ac_cpp='$CXXCPP $CPPFLAGS'
26220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26223
26224         cat >conftest.$ac_ext <<_ACEOF
26225
26226             #include <stdarg.h>
26227             void foo(char *f, ...)
26228             {
26229                 va_list ap1, ap2;
26230                 va_start(ap1, f);
26231                 va_copy(ap2, ap1);
26232                 va_end(ap2);
26233                 va_end(ap1);
26234             }
26235             int main()
26236             {
26237                 foo("hi", 17);
26238                 return 0;
26239             }
26240 _ACEOF
26241 rm -f conftest.$ac_objext conftest$ac_exeext
26242 if { (ac_try="$ac_link"
26243 case "(($ac_try" in
26244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245   *) ac_try_echo=$ac_try;;
26246 esac
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248   (eval "$ac_link") 2>conftest.er1
26249   ac_status=$?
26250   grep -v '^ *+' conftest.er1 >conftest.err
26251   rm -f conftest.er1
26252   cat conftest.err >&5
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); } && {
26255          test -z "$ac_cxx_werror_flag" ||
26256          test ! -s conftest.err
26257        } && test -s conftest$ac_exeext &&
26258        $as_test_x conftest$ac_exeext; then
26259   wx_cv_func_va_copy=yes
26260 else
26261   echo "$as_me: failed program was:" >&5
26262 sed 's/^/| /' conftest.$ac_ext >&5
26263
26264         wx_cv_func_va_copy=no
26265
26266 fi
26267
26268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26269       conftest$ac_exeext conftest.$ac_ext
26270         ac_ext=c
26271 ac_cpp='$CPP $CPPFLAGS'
26272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26275
26276
26277
26278 fi
26279 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
26280 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
26281
26282 if test $wx_cv_func_va_copy = "yes"; then
26283     cat >>confdefs.h <<\_ACEOF
26284 #define HAVE_VA_COPY 1
26285 _ACEOF
26286
26287 else
26288         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
26289 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
26290 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
26291   echo $ECHO_N "(cached) $ECHO_C" >&6
26292 else
26293
26294             if test "$cross_compiling" = yes; then
26295                   wx_cv_type_va_list_lvalue=yes
26296
26297 else
26298   cat >conftest.$ac_ext <<_ACEOF
26299
26300                 #include <stdarg.h>
26301                 int foo(char *f, ...)
26302                 {
26303                     va_list ap1, ap2;
26304                     va_start(ap1, f);
26305                     ap2 = ap1;
26306                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
26307                         return 1;
26308                     va_end(ap2);
26309                     va_end(ap1);
26310                     return 0;
26311                 }
26312                 int main()
26313                 {
26314                     return foo("hi", 17);
26315                 }
26316 _ACEOF
26317 rm -f conftest$ac_exeext
26318 if { (ac_try="$ac_link"
26319 case "(($ac_try" in
26320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26321   *) ac_try_echo=$ac_try;;
26322 esac
26323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26324   (eval "$ac_link") 2>&5
26325   ac_status=$?
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26328   { (case "(($ac_try" in
26329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330   *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333   (eval "$ac_try") 2>&5
26334   ac_status=$?
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); }; }; then
26337   wx_cv_type_va_list_lvalue=yes
26338 else
26339   echo "$as_me: program exited with status $ac_status" >&5
26340 echo "$as_me: failed program was:" >&5
26341 sed 's/^/| /' conftest.$ac_ext >&5
26342
26343 ( exit $ac_status )
26344 wx_cv_type_va_list_lvalue=no
26345 fi
26346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26347 fi
26348
26349
26350
26351
26352 fi
26353 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
26354 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
26355
26356     if test $wx_cv_type_va_list_lvalue != "yes"; then
26357                         cat >>confdefs.h <<\_ACEOF
26358 #define VA_LIST_IS_ARRAY 1
26359 _ACEOF
26360
26361     fi
26362 fi
26363
26364 if test "$wxUSE_VARARG_MACROS" = "yes"; then
26365
26366 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
26367 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
26368 if test "${wx_cv_have_variadic_macros+set}" = set; then
26369   echo $ECHO_N "(cached) $ECHO_C" >&6
26370 else
26371
26372                         ac_ext=cpp
26373 ac_cpp='$CXXCPP $CPPFLAGS'
26374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26377
26378         cat >conftest.$ac_ext <<_ACEOF
26379 /* confdefs.h.  */
26380 _ACEOF
26381 cat confdefs.h >>conftest.$ac_ext
26382 cat >>conftest.$ac_ext <<_ACEOF
26383 /* end confdefs.h.  */
26384
26385                     #include <stdio.h>
26386                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
26387
26388 int
26389 main ()
26390 {
26391
26392                     test("%s %d %p", "test", 1, 0);
26393
26394
26395   ;
26396   return 0;
26397 }
26398 _ACEOF
26399 rm -f conftest.$ac_objext
26400 if { (ac_try="$ac_compile"
26401 case "(($ac_try" in
26402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403   *) ac_try_echo=$ac_try;;
26404 esac
26405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406   (eval "$ac_compile") 2>conftest.er1
26407   ac_status=$?
26408   grep -v '^ *+' conftest.er1 >conftest.err
26409   rm -f conftest.er1
26410   cat conftest.err >&5
26411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412   (exit $ac_status); } && {
26413          test -z "$ac_cxx_werror_flag" ||
26414          test ! -s conftest.err
26415        } && test -s conftest.$ac_objext; then
26416   wx_cv_have_variadic_macros=yes
26417 else
26418   echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
26421         wx_cv_have_variadic_macros=no
26422
26423 fi
26424
26425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26426         ac_ext=c
26427 ac_cpp='$CPP $CPPFLAGS'
26428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26431
26432
26433
26434 fi
26435 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
26436 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
26437
26438 if test $wx_cv_have_variadic_macros = "yes"; then
26439     cat >>confdefs.h <<\_ACEOF
26440 #define HAVE_VARIADIC_MACROS 1
26441 _ACEOF
26442
26443 fi
26444
26445 fi
26446 # Check whether --enable-largefile was given.
26447 if test "${enable_largefile+set}" = set; then
26448   enableval=$enable_largefile;
26449 fi
26450
26451 if test "$enable_largefile" != no; then
26452             wx_largefile=no
26453
26454     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26455 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
26456 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26457   echo $ECHO_N "(cached) $ECHO_C" >&6
26458 else
26459
26460           cat >conftest.$ac_ext <<_ACEOF
26461 /* confdefs.h.  */
26462 _ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h.  */
26466 #define _FILE_OFFSET_BITS 64
26467                           #include <sys/types.h>
26468 int
26469 main ()
26470 {
26471 typedef struct {
26472     unsigned int field: sizeof(off_t) == 8;
26473 } wxlf;
26474
26475   ;
26476   return 0;
26477 }
26478 _ACEOF
26479 rm -f conftest.$ac_objext
26480 if { (ac_try="$ac_compile"
26481 case "(($ac_try" in
26482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26483   *) ac_try_echo=$ac_try;;
26484 esac
26485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26486   (eval "$ac_compile") 2>conftest.er1
26487   ac_status=$?
26488   grep -v '^ *+' conftest.er1 >conftest.err
26489   rm -f conftest.er1
26490   cat conftest.err >&5
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); } && {
26493          test -z "$ac_c_werror_flag" ||
26494          test ! -s conftest.err
26495        } && test -s conftest.$ac_objext; then
26496   ac_cv_sys_file_offset_bits=64
26497 else
26498   echo "$as_me: failed program was:" >&5
26499 sed 's/^/| /' conftest.$ac_ext >&5
26500
26501         ac_cv_sys_file_offset_bits=no
26502 fi
26503
26504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26505
26506
26507 fi
26508 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26509 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
26510
26511     if test "$ac_cv_sys_file_offset_bits" != no; then
26512         wx_largefile=yes
26513         cat >>confdefs.h <<_ACEOF
26514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26515 _ACEOF
26516
26517     fi
26518
26519     if test "x$wx_largefile" != "xyes"; then
26520
26521     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26522 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
26523 if test "${ac_cv_sys_large_files+set}" = set; then
26524   echo $ECHO_N "(cached) $ECHO_C" >&6
26525 else
26526
26527           cat >conftest.$ac_ext <<_ACEOF
26528 /* confdefs.h.  */
26529 _ACEOF
26530 cat confdefs.h >>conftest.$ac_ext
26531 cat >>conftest.$ac_ext <<_ACEOF
26532 /* end confdefs.h.  */
26533 #define _LARGE_FILES 1
26534                           #include <sys/types.h>
26535 int
26536 main ()
26537 {
26538 typedef struct {
26539     unsigned int field: sizeof(off_t) == 8;
26540 } wxlf;
26541
26542   ;
26543   return 0;
26544 }
26545 _ACEOF
26546 rm -f conftest.$ac_objext
26547 if { (ac_try="$ac_compile"
26548 case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553   (eval "$ac_compile") 2>conftest.er1
26554   ac_status=$?
26555   grep -v '^ *+' conftest.er1 >conftest.err
26556   rm -f conftest.er1
26557   cat conftest.err >&5
26558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559   (exit $ac_status); } && {
26560          test -z "$ac_c_werror_flag" ||
26561          test ! -s conftest.err
26562        } && test -s conftest.$ac_objext; then
26563   ac_cv_sys_large_files=1
26564 else
26565   echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26567
26568         ac_cv_sys_large_files=no
26569 fi
26570
26571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26572
26573
26574 fi
26575 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26576 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
26577
26578     if test "$ac_cv_sys_large_files" != no; then
26579         wx_largefile=yes
26580         cat >>confdefs.h <<_ACEOF
26581 #define _LARGE_FILES $ac_cv_sys_large_files
26582 _ACEOF
26583
26584     fi
26585
26586     fi
26587
26588     { echo "$as_me:$LINENO: checking if large file support is available" >&5
26589 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
26590     if test "x$wx_largefile" = "xyes"; then
26591         cat >>confdefs.h <<\_ACEOF
26592 #define HAVE_LARGEFILE_SUPPORT 1
26593 _ACEOF
26594
26595     fi
26596     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
26597 echo "${ECHO_T}$wx_largefile" >&6; }
26598 fi
26599
26600
26601 if test "x$wx_largefile" = "xyes"; then
26602     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
26603         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
26604
26605                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
26606             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
26607 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
26608 if test "${wx_cv_STDC_EXT_required+set}" = set; then
26609   echo $ECHO_N "(cached) $ECHO_C" >&6
26610 else
26611
26612                     ac_ext=cpp
26613 ac_cpp='$CXXCPP $CPPFLAGS'
26614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26617
26618                     cat >conftest.$ac_ext <<_ACEOF
26619 /* confdefs.h.  */
26620 _ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h.  */
26624
26625 int
26626 main ()
26627 {
26628
26629                             #ifndef __STDC_EXT__
26630                                 choke me
26631                             #endif
26632
26633   ;
26634   return 0;
26635 }
26636 _ACEOF
26637 rm -f conftest.$ac_objext
26638 if { (ac_try="$ac_compile"
26639 case "(($ac_try" in
26640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641   *) ac_try_echo=$ac_try;;
26642 esac
26643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26644   (eval "$ac_compile") 2>conftest.er1
26645   ac_status=$?
26646   grep -v '^ *+' conftest.er1 >conftest.err
26647   rm -f conftest.er1
26648   cat conftest.err >&5
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); } && {
26651          test -z "$ac_cxx_werror_flag" ||
26652          test ! -s conftest.err
26653        } && test -s conftest.$ac_objext; then
26654   wx_cv_STDC_EXT_required=no
26655 else
26656   echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26658
26659         wx_cv_STDC_EXT_required=yes
26660
26661 fi
26662
26663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26664                     ac_ext=c
26665 ac_cpp='$CPP $CPPFLAGS'
26666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26669
26670
26671
26672 fi
26673 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
26674 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
26675             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
26676                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
26677             fi
26678         fi
26679     else
26680         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
26681     fi
26682         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26683 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
26684 if test "${ac_cv_sys_largefile_source+set}" = set; then
26685   echo $ECHO_N "(cached) $ECHO_C" >&6
26686 else
26687   while :; do
26688   cat >conftest.$ac_ext <<_ACEOF
26689 /* confdefs.h.  */
26690 _ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h.  */
26694 #include <sys/types.h> /* for off_t */
26695      #include <stdio.h>
26696 int
26697 main ()
26698 {
26699 int (*fp) (FILE *, off_t, int) = fseeko;
26700      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26701   ;
26702   return 0;
26703 }
26704 _ACEOF
26705 rm -f conftest.$ac_objext conftest$ac_exeext
26706 if { (ac_try="$ac_link"
26707 case "(($ac_try" in
26708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709   *) ac_try_echo=$ac_try;;
26710 esac
26711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26712   (eval "$ac_link") 2>conftest.er1
26713   ac_status=$?
26714   grep -v '^ *+' conftest.er1 >conftest.err
26715   rm -f conftest.er1
26716   cat conftest.err >&5
26717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718   (exit $ac_status); } && {
26719          test -z "$ac_c_werror_flag" ||
26720          test ! -s conftest.err
26721        } && test -s conftest$ac_exeext &&
26722        $as_test_x conftest$ac_exeext; then
26723   ac_cv_sys_largefile_source=no; break
26724 else
26725   echo "$as_me: failed program was:" >&5
26726 sed 's/^/| /' conftest.$ac_ext >&5
26727
26728
26729 fi
26730
26731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26732       conftest$ac_exeext conftest.$ac_ext
26733   cat >conftest.$ac_ext <<_ACEOF
26734 /* confdefs.h.  */
26735 _ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h.  */
26739 #define _LARGEFILE_SOURCE 1
26740 #include <sys/types.h> /* for off_t */
26741      #include <stdio.h>
26742 int
26743 main ()
26744 {
26745 int (*fp) (FILE *, off_t, int) = fseeko;
26746      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26747   ;
26748   return 0;
26749 }
26750 _ACEOF
26751 rm -f conftest.$ac_objext conftest$ac_exeext
26752 if { (ac_try="$ac_link"
26753 case "(($ac_try" in
26754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26755   *) ac_try_echo=$ac_try;;
26756 esac
26757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26758   (eval "$ac_link") 2>conftest.er1
26759   ac_status=$?
26760   grep -v '^ *+' conftest.er1 >conftest.err
26761   rm -f conftest.er1
26762   cat conftest.err >&5
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); } && {
26765          test -z "$ac_c_werror_flag" ||
26766          test ! -s conftest.err
26767        } && test -s conftest$ac_exeext &&
26768        $as_test_x conftest$ac_exeext; then
26769   ac_cv_sys_largefile_source=1; break
26770 else
26771   echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26773
26774
26775 fi
26776
26777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26778       conftest$ac_exeext conftest.$ac_ext
26779   ac_cv_sys_largefile_source=unknown
26780   break
26781 done
26782 fi
26783 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26784 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
26785 case $ac_cv_sys_largefile_source in #(
26786   no | unknown) ;;
26787   *)
26788 cat >>confdefs.h <<_ACEOF
26789 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26790 _ACEOF
26791 ;;
26792 esac
26793 rm -f conftest*
26794
26795 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26796 # in glibc 2.1.3, but that breaks too many other things.
26797 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26798 if test $ac_cv_sys_largefile_source != unknown; then
26799
26800 cat >>confdefs.h <<\_ACEOF
26801 #define HAVE_FSEEKO 1
26802 _ACEOF
26803
26804 fi
26805
26806     if test "$ac_cv_sys_largefile_source" != no; then
26807         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
26808     fi
26809 fi
26810
26811 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26812 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
26813 if test "${ac_cv_c_bigendian+set}" = set; then
26814   echo $ECHO_N "(cached) $ECHO_C" >&6
26815 else
26816   ac_cv_c_bigendian=unknown
26817 # See if sys/param.h defines the BYTE_ORDER macro.
26818 cat >conftest.$ac_ext <<_ACEOF
26819 /* confdefs.h.  */
26820 _ACEOF
26821 cat confdefs.h >>conftest.$ac_ext
26822 cat >>conftest.$ac_ext <<_ACEOF
26823 /* end confdefs.h.  */
26824 #include <sys/types.h>
26825 #include <sys/param.h>
26826 int
26827 main ()
26828 {
26829
26830 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26831  bogus endian macros
26832 #endif
26833   ;
26834   return 0;
26835 }
26836 _ACEOF
26837 rm -f conftest.$ac_objext
26838 if { (ac_try="$ac_compile"
26839 case "(($ac_try" in
26840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26841   *) ac_try_echo=$ac_try;;
26842 esac
26843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26844   (eval "$ac_compile") 2>conftest.er1
26845   ac_status=$?
26846   grep -v '^ *+' conftest.er1 >conftest.err
26847   rm -f conftest.er1
26848   cat conftest.err >&5
26849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850   (exit $ac_status); } && {
26851          test -z "$ac_c_werror_flag" ||
26852          test ! -s conftest.err
26853        } && test -s conftest.$ac_objext; then
26854   # It does; now see whether it defined to BIG_ENDIAN or not.
26855 cat >conftest.$ac_ext <<_ACEOF
26856 /* confdefs.h.  */
26857 _ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h.  */
26861 #include <sys/types.h>
26862 #include <sys/param.h>
26863 int
26864 main ()
26865 {
26866
26867 #if BYTE_ORDER != BIG_ENDIAN
26868  not big endian
26869 #endif
26870   ;
26871   return 0;
26872 }
26873 _ACEOF
26874 rm -f conftest.$ac_objext
26875 if { (ac_try="$ac_compile"
26876 case "(($ac_try" in
26877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878   *) ac_try_echo=$ac_try;;
26879 esac
26880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881   (eval "$ac_compile") 2>conftest.er1
26882   ac_status=$?
26883   grep -v '^ *+' conftest.er1 >conftest.err
26884   rm -f conftest.er1
26885   cat conftest.err >&5
26886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887   (exit $ac_status); } && {
26888          test -z "$ac_c_werror_flag" ||
26889          test ! -s conftest.err
26890        } && test -s conftest.$ac_objext; then
26891   ac_cv_c_bigendian=yes
26892 else
26893   echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26895
26896         ac_cv_c_bigendian=no
26897 fi
26898
26899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26900 else
26901   echo "$as_me: failed program was:" >&5
26902 sed 's/^/| /' conftest.$ac_ext >&5
26903
26904
26905 fi
26906
26907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26908 if test $ac_cv_c_bigendian = unknown; then
26909 if test "$cross_compiling" = yes; then
26910   ac_cv_c_bigendian=unknown
26911 else
26912   cat >conftest.$ac_ext <<_ACEOF
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918 main () {
26919   /* Are we little or big endian?  From Harbison&Steele.  */
26920   union
26921   {
26922     long l;
26923     char c[sizeof (long)];
26924   } u;
26925   u.l = 1;
26926   exit (u.c[sizeof (long) - 1] == 1);
26927 }
26928 _ACEOF
26929 rm -f conftest$ac_exeext
26930 if { (ac_try="$ac_link"
26931 case "(($ac_try" in
26932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933   *) ac_try_echo=$ac_try;;
26934 esac
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936   (eval "$ac_link") 2>&5
26937   ac_status=$?
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26940   { (case "(($ac_try" in
26941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942   *) ac_try_echo=$ac_try;;
26943 esac
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945   (eval "$ac_try") 2>&5
26946   ac_status=$?
26947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26948   (exit $ac_status); }; }; then
26949   ac_cv_c_bigendian=no
26950 else
26951   echo "$as_me: program exited with status $ac_status" >&5
26952 echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26954
26955 ( exit $ac_status )
26956 ac_cv_c_bigendian=yes
26957 fi
26958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26959 fi
26960
26961
26962 fi
26963 fi
26964 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26965 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26966 if test $ac_cv_c_bigendian = unknown; then
26967   { 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
26968 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;}
26969 fi
26970 if test $ac_cv_c_bigendian = yes; then
26971   cat >>confdefs.h <<\_ACEOF
26972 #define WORDS_BIGENDIAN 1
26973 _ACEOF
26974
26975 fi
26976
26977
26978
26979
26980     ac_ext=cpp
26981 ac_cpp='$CXXCPP $CPPFLAGS'
26982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26985
26986
26987
26988 for ac_header in iostream
26989 do
26990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26994   echo $ECHO_N "(cached) $ECHO_C" >&6
26995 else
26996   cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002
27003
27004 #include <$ac_header>
27005 _ACEOF
27006 rm -f conftest.$ac_objext
27007 if { (ac_try="$ac_compile"
27008 case "(($ac_try" in
27009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010   *) ac_try_echo=$ac_try;;
27011 esac
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013   (eval "$ac_compile") 2>conftest.er1
27014   ac_status=$?
27015   grep -v '^ *+' conftest.er1 >conftest.err
27016   rm -f conftest.er1
27017   cat conftest.err >&5
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); } && {
27020          test -z "$ac_cxx_werror_flag" ||
27021          test ! -s conftest.err
27022        } && test -s conftest.$ac_objext; then
27023   eval "$as_ac_Header=yes"
27024 else
27025   echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27027
27028         eval "$as_ac_Header=no"
27029 fi
27030
27031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27032 fi
27033 ac_res=`eval echo '${'$as_ac_Header'}'`
27034                { echo "$as_me:$LINENO: result: $ac_res" >&5
27035 echo "${ECHO_T}$ac_res" >&6; }
27036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27037   cat >>confdefs.h <<_ACEOF
27038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27039 _ACEOF
27040
27041 fi
27042
27043 done
27044
27045
27046     if test "$ac_cv_header_iostream" = "yes" ; then
27047       :
27048     else
27049       cat >>confdefs.h <<\_ACEOF
27050 #define wxUSE_IOSTREAMH 1
27051 _ACEOF
27052
27053     fi
27054
27055     ac_ext=c
27056 ac_cpp='$CPP $CPPFLAGS'
27057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27060
27061
27062
27063
27064   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
27065 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
27066 if test "${wx_cv_cpp_bool+set}" = set; then
27067   echo $ECHO_N "(cached) $ECHO_C" >&6
27068 else
27069
27070
27071     ac_ext=cpp
27072 ac_cpp='$CXXCPP $CPPFLAGS'
27073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27076
27077
27078     cat >conftest.$ac_ext <<_ACEOF
27079 /* confdefs.h.  */
27080 _ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h.  */
27084
27085
27086 int
27087 main ()
27088 {
27089
27090         bool b = true;
27091
27092         return 0;
27093
27094   ;
27095   return 0;
27096 }
27097 _ACEOF
27098 rm -f conftest.$ac_objext
27099 if { (ac_try="$ac_compile"
27100 case "(($ac_try" in
27101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27102   *) ac_try_echo=$ac_try;;
27103 esac
27104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27105   (eval "$ac_compile") 2>conftest.er1
27106   ac_status=$?
27107   grep -v '^ *+' conftest.er1 >conftest.err
27108   rm -f conftest.er1
27109   cat conftest.err >&5
27110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); } && {
27112          test -z "$ac_cxx_werror_flag" ||
27113          test ! -s conftest.err
27114        } && test -s conftest.$ac_objext; then
27115
27116         wx_cv_cpp_bool=yes
27117
27118 else
27119   echo "$as_me: failed program was:" >&5
27120 sed 's/^/| /' conftest.$ac_ext >&5
27121
27122
27123         wx_cv_cpp_bool=no
27124
27125
27126 fi
27127
27128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27129
27130     ac_ext=c
27131 ac_cpp='$CPP $CPPFLAGS'
27132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27135
27136
27137 fi
27138 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
27139 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
27140
27141   if test "$wx_cv_cpp_bool" = "yes"; then
27142     cat >>confdefs.h <<\_ACEOF
27143 #define HAVE_BOOL 1
27144 _ACEOF
27145
27146   fi
27147
27148
27149
27150   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
27151 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
27152 if test "${wx_cv_explicit+set}" = set; then
27153   echo $ECHO_N "(cached) $ECHO_C" >&6
27154 else
27155
27156
27157     ac_ext=cpp
27158 ac_cpp='$CXXCPP $CPPFLAGS'
27159 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27160 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27161 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27162
27163
27164             cat >conftest.$ac_ext <<_ACEOF
27165 /* confdefs.h.  */
27166 _ACEOF
27167 cat confdefs.h >>conftest.$ac_ext
27168 cat >>conftest.$ac_ext <<_ACEOF
27169 /* end confdefs.h.  */
27170
27171         class Foo { public: explicit Foo(int) {} };
27172
27173 int
27174 main ()
27175 {
27176
27177         return 0;
27178
27179   ;
27180   return 0;
27181 }
27182 _ACEOF
27183 rm -f conftest.$ac_objext
27184 if { (ac_try="$ac_compile"
27185 case "(($ac_try" in
27186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187   *) ac_try_echo=$ac_try;;
27188 esac
27189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190   (eval "$ac_compile") 2>conftest.er1
27191   ac_status=$?
27192   grep -v '^ *+' conftest.er1 >conftest.err
27193   rm -f conftest.er1
27194   cat conftest.err >&5
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); } && {
27197          test -z "$ac_cxx_werror_flag" ||
27198          test ! -s conftest.err
27199        } && test -s conftest.$ac_objext; then
27200
27201         cat >conftest.$ac_ext <<_ACEOF
27202 /* confdefs.h.  */
27203 _ACEOF
27204 cat confdefs.h >>conftest.$ac_ext
27205 cat >>conftest.$ac_ext <<_ACEOF
27206 /* end confdefs.h.  */
27207
27208                 class Foo { public: explicit Foo(int) {} };
27209                 static void TakeFoo(const Foo& foo) { }
27210
27211 int
27212 main ()
27213 {
27214
27215                 TakeFoo(17);
27216                 return 0;
27217
27218   ;
27219   return 0;
27220 }
27221 _ACEOF
27222 rm -f conftest.$ac_objext
27223 if { (ac_try="$ac_compile"
27224 case "(($ac_try" in
27225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226   *) ac_try_echo=$ac_try;;
27227 esac
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229   (eval "$ac_compile") 2>conftest.er1
27230   ac_status=$?
27231   grep -v '^ *+' conftest.er1 >conftest.err
27232   rm -f conftest.er1
27233   cat conftest.err >&5
27234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235   (exit $ac_status); } && {
27236          test -z "$ac_cxx_werror_flag" ||
27237          test ! -s conftest.err
27238        } && test -s conftest.$ac_objext; then
27239   wx_cv_explicit=no
27240 else
27241   echo "$as_me: failed program was:" >&5
27242 sed 's/^/| /' conftest.$ac_ext >&5
27243
27244         wx_cv_explicit=yes
27245
27246 fi
27247
27248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27249
27250 else
27251   echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27253
27254         wx_cv_explicit=no
27255
27256 fi
27257
27258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27259
27260     ac_ext=c
27261 ac_cpp='$CPP $CPPFLAGS'
27262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27265
27266
27267 fi
27268 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
27269 echo "${ECHO_T}$wx_cv_explicit" >&6; }
27270
27271   if test "$wx_cv_explicit" = "yes"; then
27272     cat >>confdefs.h <<\_ACEOF
27273 #define HAVE_EXPLICIT 1
27274 _ACEOF
27275
27276   fi
27277
27278
27279 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
27280 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
27281 if test "${ac_cv_cxx_const_cast+set}" = set; then
27282   echo $ECHO_N "(cached) $ECHO_C" >&6
27283 else
27284
27285  ac_ext=cpp
27286 ac_cpp='$CXXCPP $CPPFLAGS'
27287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27290
27291  cat >conftest.$ac_ext <<_ACEOF
27292 /* confdefs.h.  */
27293 _ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h.  */
27297
27298 int
27299 main ()
27300 {
27301 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
27302   ;
27303   return 0;
27304 }
27305 _ACEOF
27306 rm -f conftest.$ac_objext
27307 if { (ac_try="$ac_compile"
27308 case "(($ac_try" in
27309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310   *) ac_try_echo=$ac_try;;
27311 esac
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313   (eval "$ac_compile") 2>conftest.er1
27314   ac_status=$?
27315   grep -v '^ *+' conftest.er1 >conftest.err
27316   rm -f conftest.er1
27317   cat conftest.err >&5
27318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319   (exit $ac_status); } && {
27320          test -z "$ac_cxx_werror_flag" ||
27321          test ! -s conftest.err
27322        } && test -s conftest.$ac_objext; then
27323   ac_cv_cxx_const_cast=yes
27324 else
27325   echo "$as_me: failed program was:" >&5
27326 sed 's/^/| /' conftest.$ac_ext >&5
27327
27328         ac_cv_cxx_const_cast=no
27329 fi
27330
27331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27332  ac_ext=c
27333 ac_cpp='$CPP $CPPFLAGS'
27334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27337
27338
27339 fi
27340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
27341 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
27342 if test "$ac_cv_cxx_const_cast" = yes; then
27343
27344 cat >>confdefs.h <<\_ACEOF
27345 #define HAVE_CONST_CAST
27346 _ACEOF
27347
27348 fi
27349
27350 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
27351 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
27352 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
27353   echo $ECHO_N "(cached) $ECHO_C" >&6
27354 else
27355
27356  ac_ext=cpp
27357 ac_cpp='$CXXCPP $CPPFLAGS'
27358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27361
27362  cat >conftest.$ac_ext <<_ACEOF
27363 /* confdefs.h.  */
27364 _ACEOF
27365 cat confdefs.h >>conftest.$ac_ext
27366 cat >>conftest.$ac_ext <<_ACEOF
27367 /* end confdefs.h.  */
27368 #include <typeinfo>
27369 class Base { public : Base () {} virtual void f () = 0;};
27370 class Derived : public Base { public : Derived () {} virtual void f () {} };
27371 class Unrelated { public : Unrelated () {} };
27372 int g (Unrelated&) { return 0; }
27373 int
27374 main ()
27375 {
27376
27377 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
27378   ;
27379   return 0;
27380 }
27381 _ACEOF
27382 rm -f conftest.$ac_objext
27383 if { (ac_try="$ac_compile"
27384 case "(($ac_try" in
27385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386   *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389   (eval "$ac_compile") 2>conftest.er1
27390   ac_status=$?
27391   grep -v '^ *+' conftest.er1 >conftest.err
27392   rm -f conftest.er1
27393   cat conftest.err >&5
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); } && {
27396          test -z "$ac_cxx_werror_flag" ||
27397          test ! -s conftest.err
27398        } && test -s conftest.$ac_objext; then
27399   ac_cv_cxx_reinterpret_cast=yes
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404         ac_cv_cxx_reinterpret_cast=no
27405 fi
27406
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408  ac_ext=c
27409 ac_cpp='$CPP $CPPFLAGS'
27410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27413
27414
27415 fi
27416 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
27417 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
27418 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
27419
27420 cat >>confdefs.h <<\_ACEOF
27421 #define HAVE_REINTERPRET_CAST
27422 _ACEOF
27423
27424 fi
27425
27426 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
27427 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
27428 if test "${ac_cv_cxx_static_cast+set}" = set; then
27429   echo $ECHO_N "(cached) $ECHO_C" >&6
27430 else
27431
27432  ac_ext=cpp
27433 ac_cpp='$CXXCPP $CPPFLAGS'
27434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27437
27438  cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h.  */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h.  */
27444 #include <typeinfo>
27445 class Base { public : Base () {} virtual void f () = 0; };
27446 class Derived : public Base { public : Derived () {} virtual void f () {} };
27447 int g (Derived&) { return 0; }
27448 int
27449 main ()
27450 {
27451
27452 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
27453   ;
27454   return 0;
27455 }
27456 _ACEOF
27457 rm -f conftest.$ac_objext
27458 if { (ac_try="$ac_compile"
27459 case "(($ac_try" in
27460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461   *) ac_try_echo=$ac_try;;
27462 esac
27463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464   (eval "$ac_compile") 2>conftest.er1
27465   ac_status=$?
27466   grep -v '^ *+' conftest.er1 >conftest.err
27467   rm -f conftest.er1
27468   cat conftest.err >&5
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); } && {
27471          test -z "$ac_cxx_werror_flag" ||
27472          test ! -s conftest.err
27473        } && test -s conftest.$ac_objext; then
27474   ac_cv_cxx_static_cast=yes
27475 else
27476   echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27478
27479         ac_cv_cxx_static_cast=no
27480 fi
27481
27482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27483  ac_ext=c
27484 ac_cpp='$CPP $CPPFLAGS'
27485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27488
27489
27490 fi
27491 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
27492 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
27493 if test "$ac_cv_cxx_static_cast" = yes; then
27494
27495 cat >>confdefs.h <<\_ACEOF
27496 #define HAVE_STATIC_CAST
27497 _ACEOF
27498
27499 fi
27500
27501
27502 if test "x$SUNCXX" = xyes; then
27503     CXXFLAGS="-features=tmplife $CXXFLAGS"
27504 fi
27505
27506 if test "x$SUNCC" = xyes; then
27507     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
27508 fi
27509
27510 if test "x$SGICC" = "xyes"; then
27511     CFLAGS="-woff 3970 $CFLAGS"
27512 fi
27513 if test "x$SGICXX" = "xyes"; then
27514     CXXFLAGS="-woff 3970 $CXXFLAGS"
27515 fi
27516
27517 if test "x$HPCC" = "xyes"; then
27518                     CFLAGS="+W 2011,2450 $CFLAGS"
27519 fi
27520 if test "x$HPCXX" = "xyes"; then
27521             CXXFLAGS="+W 2340 $CXXFLAGS"
27522 fi
27523
27524 if test "x$COMPAQCXX" = "xyes"; then
27525                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
27526 fi
27527
27528 ac_ext=cpp
27529 ac_cpp='$CXXCPP $CPPFLAGS'
27530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27533
27534
27535 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
27536     if test "$wxUSE_UNICODE" = "yes"; then
27537         std_string="std::wstring"
27538         char_type="wchar_t"
27539     else
27540         std_string="std::string"
27541         char_type="char"
27542     fi
27543
27544         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
27545 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
27546 if test "${wx_cv_class_stdstring+set}" = set; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549
27550             cat >conftest.$ac_ext <<_ACEOF
27551 /* confdefs.h.  */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h.  */
27556 #include <string>
27557 int
27558 main ()
27559 {
27560 $std_string foo;
27561   ;
27562   return 0;
27563 }
27564 _ACEOF
27565 rm -f conftest.$ac_objext
27566 if { (ac_try="$ac_compile"
27567 case "(($ac_try" in
27568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569   *) ac_try_echo=$ac_try;;
27570 esac
27571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572   (eval "$ac_compile") 2>conftest.er1
27573   ac_status=$?
27574   grep -v '^ *+' conftest.er1 >conftest.err
27575   rm -f conftest.er1
27576   cat conftest.err >&5
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); } && {
27579          test -z "$ac_cxx_werror_flag" ||
27580          test ! -s conftest.err
27581        } && test -s conftest.$ac_objext; then
27582   wx_cv_class_stdstring=yes
27583 else
27584   echo "$as_me: failed program was:" >&5
27585 sed 's/^/| /' conftest.$ac_ext >&5
27586
27587         wx_cv_class_stdstring=no
27588
27589 fi
27590
27591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27592
27593
27594 fi
27595 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
27596 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
27597
27598     if test "$wx_cv_class_stdstring" = yes; then
27599         if test "$wxUSE_UNICODE" = "yes"; then
27600             cat >>confdefs.h <<\_ACEOF
27601 #define HAVE_STD_WSTRING 1
27602 _ACEOF
27603
27604         fi
27605                     else
27606         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
27607 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
27608 if test "${wx_cv_class_stdbasicstring+set}" = set; then
27609   echo $ECHO_N "(cached) $ECHO_C" >&6
27610 else
27611
27612                 cat >conftest.$ac_ext <<_ACEOF
27613 /* confdefs.h.  */
27614 _ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h.  */
27618
27619                     #ifdef HAVE_WCHAR_H
27620                     #  ifdef __CYGWIN__
27621                     #    include <stddef.h>
27622                     #  endif
27623                     #  include <wchar.h>
27624                     #endif
27625                     #ifdef HAVE_STDLIB_H
27626                     #  include <stdlib.h>
27627                     #endif
27628                     #include <stdio.h>
27629                     #include <string>
27630
27631 int
27632 main ()
27633 {
27634 std::basic_string<$char_type> foo;
27635                      const $char_type* dummy = foo.c_str();
27636   ;
27637   return 0;
27638 }
27639 _ACEOF
27640 rm -f conftest.$ac_objext
27641 if { (ac_try="$ac_compile"
27642 case "(($ac_try" in
27643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644   *) ac_try_echo=$ac_try;;
27645 esac
27646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27647   (eval "$ac_compile") 2>conftest.er1
27648   ac_status=$?
27649   grep -v '^ *+' conftest.er1 >conftest.err
27650   rm -f conftest.er1
27651   cat conftest.err >&5
27652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653   (exit $ac_status); } && {
27654          test -z "$ac_cxx_werror_flag" ||
27655          test ! -s conftest.err
27656        } && test -s conftest.$ac_objext; then
27657   wx_cv_class_stdbasicstring=yes
27658 else
27659   echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27661
27662         wx_cv_class_stdbasicstring=no
27663
27664 fi
27665
27666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27667
27668
27669 fi
27670 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
27671 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
27672
27673         if test "$wx_cv_class_stdbasicstring" != yes; then
27674             if test "$wxUSE_STL" = "yes"; then
27675                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
27676 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
27677    { (exit 1); exit 1; }; }
27678             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
27679                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
27680 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
27681    { (exit 1); exit 1; }; }
27682             else
27683                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
27684 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
27685                 wxUSE_STD_STRING=no
27686             fi
27687         fi
27688     fi
27689 fi
27690
27691 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
27692     { echo "$as_me:$LINENO: checking for std::istream" >&5
27693 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
27694 if test "${ac_cv_type_std__istream+set}" = set; then
27695   echo $ECHO_N "(cached) $ECHO_C" >&6
27696 else
27697   cat >conftest.$ac_ext <<_ACEOF
27698 /* confdefs.h.  */
27699 _ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h.  */
27703 #include <iostream>
27704
27705 typedef std::istream ac__type_new_;
27706 int
27707 main ()
27708 {
27709 if ((ac__type_new_ *) 0)
27710   return 0;
27711 if (sizeof (ac__type_new_))
27712   return 0;
27713   ;
27714   return 0;
27715 }
27716 _ACEOF
27717 rm -f conftest.$ac_objext
27718 if { (ac_try="$ac_compile"
27719 case "(($ac_try" in
27720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27721   *) ac_try_echo=$ac_try;;
27722 esac
27723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27724   (eval "$ac_compile") 2>conftest.er1
27725   ac_status=$?
27726   grep -v '^ *+' conftest.er1 >conftest.err
27727   rm -f conftest.er1
27728   cat conftest.err >&5
27729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730   (exit $ac_status); } && {
27731          test -z "$ac_cxx_werror_flag" ||
27732          test ! -s conftest.err
27733        } && test -s conftest.$ac_objext; then
27734   ac_cv_type_std__istream=yes
27735 else
27736   echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27738
27739         ac_cv_type_std__istream=no
27740 fi
27741
27742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27743 fi
27744 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
27745 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
27746 if test $ac_cv_type_std__istream = yes; then
27747
27748 cat >>confdefs.h <<_ACEOF
27749 #define HAVE_STD__ISTREAM 1
27750 _ACEOF
27751
27752
27753 else
27754   wxUSE_STD_IOSTREAM=no
27755 fi
27756 { echo "$as_me:$LINENO: checking for std::ostream" >&5
27757 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
27758 if test "${ac_cv_type_std__ostream+set}" = set; then
27759   echo $ECHO_N "(cached) $ECHO_C" >&6
27760 else
27761   cat >conftest.$ac_ext <<_ACEOF
27762 /* confdefs.h.  */
27763 _ACEOF
27764 cat confdefs.h >>conftest.$ac_ext
27765 cat >>conftest.$ac_ext <<_ACEOF
27766 /* end confdefs.h.  */
27767 #include <iostream>
27768
27769 typedef std::ostream ac__type_new_;
27770 int
27771 main ()
27772 {
27773 if ((ac__type_new_ *) 0)
27774   return 0;
27775 if (sizeof (ac__type_new_))
27776   return 0;
27777   ;
27778   return 0;
27779 }
27780 _ACEOF
27781 rm -f conftest.$ac_objext
27782 if { (ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
27796          test ! -s conftest.err
27797        } && test -s conftest.$ac_objext; then
27798   ac_cv_type_std__ostream=yes
27799 else
27800   echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27802
27803         ac_cv_type_std__ostream=no
27804 fi
27805
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27807 fi
27808 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
27809 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
27810 if test $ac_cv_type_std__ostream = yes; then
27811
27812 cat >>confdefs.h <<_ACEOF
27813 #define HAVE_STD__OSTREAM 1
27814 _ACEOF
27815
27816
27817 else
27818   wxUSE_STD_IOSTREAM=no
27819 fi
27820
27821
27822     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
27823         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
27824             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
27825 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
27826    { (exit 1); exit 1; }; }
27827         else
27828             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
27829 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
27830         fi
27831     fi
27832 fi
27833
27834 if test "$wxUSE_STL" = "yes"; then
27835         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
27836 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
27837 if test "${wx_cv_lib_stl+set}" = set; then
27838   echo $ECHO_N "(cached) $ECHO_C" >&6
27839 else
27840   cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h.  */
27846 #include <string>
27847             #include <functional>
27848             #include <algorithm>
27849             #include <vector>
27850             #include <list>
27851 int
27852 main ()
27853 {
27854 std::vector<int> moo;
27855              std::list<int> foo;
27856              std::vector<int>::iterator it =
27857                  std::find_if(moo.begin(), moo.end(),
27858                               std::bind2nd(std::less<int>(), 3));
27859   ;
27860   return 0;
27861 }
27862 _ACEOF
27863 rm -f conftest.$ac_objext
27864 if { (ac_try="$ac_compile"
27865 case "(($ac_try" in
27866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867   *) ac_try_echo=$ac_try;;
27868 esac
27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870   (eval "$ac_compile") 2>conftest.er1
27871   ac_status=$?
27872   grep -v '^ *+' conftest.er1 >conftest.err
27873   rm -f conftest.er1
27874   cat conftest.err >&5
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); } && {
27877          test -z "$ac_cxx_werror_flag" ||
27878          test ! -s conftest.err
27879        } && test -s conftest.$ac_objext; then
27880   wx_cv_lib_stl=yes
27881 else
27882   echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27884
27885         wx_cv_lib_stl=no
27886
27887 fi
27888
27889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27890
27891 fi
27892 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
27893 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
27894
27895     if test "$wx_cv_lib_stl" != yes; then
27896          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
27897 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
27898    { (exit 1); exit 1; }; }
27899     fi
27900
27901         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
27902 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
27903 if test "${wx_cv_func_stdstring_compare+set}" = set; then
27904   echo $ECHO_N "(cached) $ECHO_C" >&6
27905 else
27906   cat >conftest.$ac_ext <<_ACEOF
27907 /* confdefs.h.  */
27908 _ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h.  */
27912 #include <string>
27913 int
27914 main ()
27915 {
27916 std::string foo, bar;
27917             foo.compare(bar);
27918             foo.compare(1, 1, bar);
27919             foo.compare(1, 1, bar, 1, 1);
27920             foo.compare("");
27921             foo.compare(1, 1, "");
27922             foo.compare(1, 1, "", 2);
27923   ;
27924   return 0;
27925 }
27926 _ACEOF
27927 rm -f conftest.$ac_objext
27928 if { (ac_try="$ac_compile"
27929 case "(($ac_try" in
27930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27931   *) ac_try_echo=$ac_try;;
27932 esac
27933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27934   (eval "$ac_compile") 2>conftest.er1
27935   ac_status=$?
27936   grep -v '^ *+' conftest.er1 >conftest.err
27937   rm -f conftest.er1
27938   cat conftest.err >&5
27939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); } && {
27941          test -z "$ac_cxx_werror_flag" ||
27942          test ! -s conftest.err
27943        } && test -s conftest.$ac_objext; then
27944   wx_cv_func_stdstring_compare=yes
27945 else
27946   echo "$as_me: failed program was:" >&5
27947 sed 's/^/| /' conftest.$ac_ext >&5
27948
27949         wx_cv_func_stdstring_compare=no
27950
27951 fi
27952
27953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27954
27955 fi
27956 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27957 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27958
27959     if test "$wx_cv_func_stdstring_compare" = yes; then
27960         cat >>confdefs.h <<\_ACEOF
27961 #define HAVE_STD_STRING_COMPARE 1
27962 _ACEOF
27963
27964     fi
27965
27966         { echo "$as_me:$LINENO: checking for hash_map" >&5
27967 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27968 if test "${ac_cv_header_hash_map+set}" = set; then
27969   echo $ECHO_N "(cached) $ECHO_C" >&6
27970 else
27971   cat >conftest.$ac_ext <<_ACEOF
27972 /* confdefs.h.  */
27973 _ACEOF
27974 cat confdefs.h >>conftest.$ac_ext
27975 cat >>conftest.$ac_ext <<_ACEOF
27976 /* end confdefs.h.  */
27977
27978
27979
27980 #include <hash_map>
27981 _ACEOF
27982 rm -f conftest.$ac_objext
27983 if { (ac_try="$ac_compile"
27984 case "(($ac_try" in
27985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986   *) ac_try_echo=$ac_try;;
27987 esac
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989   (eval "$ac_compile") 2>conftest.er1
27990   ac_status=$?
27991   grep -v '^ *+' conftest.er1 >conftest.err
27992   rm -f conftest.er1
27993   cat conftest.err >&5
27994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); } && {
27996          test -z "$ac_cxx_werror_flag" ||
27997          test ! -s conftest.err
27998        } && test -s conftest.$ac_objext; then
27999   ac_cv_header_hash_map=yes
28000 else
28001   echo "$as_me: failed program was:" >&5
28002 sed 's/^/| /' conftest.$ac_ext >&5
28003
28004         ac_cv_header_hash_map=no
28005 fi
28006
28007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28008 fi
28009 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
28010 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
28011 if test $ac_cv_header_hash_map = yes; then
28012   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
28013 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
28014 if test "${wx_cv_class_stdhashmapset+set}" = set; then
28015   echo $ECHO_N "(cached) $ECHO_C" >&6
28016 else
28017   cat >conftest.$ac_ext <<_ACEOF
28018 /* confdefs.h.  */
28019 _ACEOF
28020 cat confdefs.h >>conftest.$ac_ext
28021 cat >>conftest.$ac_ext <<_ACEOF
28022 /* end confdefs.h.  */
28023 #include <hash_map>
28024                 #include <hash_set>
28025 int
28026 main ()
28027 {
28028 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
28029                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
28030   ;
28031   return 0;
28032 }
28033 _ACEOF
28034 rm -f conftest.$ac_objext
28035 if { (ac_try="$ac_compile"
28036 case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041   (eval "$ac_compile") 2>conftest.er1
28042   ac_status=$?
28043   grep -v '^ *+' conftest.er1 >conftest.err
28044   rm -f conftest.er1
28045   cat conftest.err >&5
28046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047   (exit $ac_status); } && {
28048          test -z "$ac_cxx_werror_flag" ||
28049          test ! -s conftest.err
28050        } && test -s conftest.$ac_objext; then
28051   wx_cv_class_stdhashmapset=yes
28052 else
28053   echo "$as_me: failed program was:" >&5
28054 sed 's/^/| /' conftest.$ac_ext >&5
28055
28056         wx_cv_class_stdhashmapset=no
28057 fi
28058
28059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28060
28061
28062 fi
28063 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
28064 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
28065 fi
28066
28067
28068
28069     if test "$wx_cv_class_stdhashmapset" = yes; then
28070         cat >>confdefs.h <<\_ACEOF
28071 #define HAVE_HASH_MAP 1
28072 _ACEOF
28073
28074         cat >>confdefs.h <<\_ACEOF
28075 #define HAVE_STD_HASH_MAP 1
28076 _ACEOF
28077
28078     fi
28079
28080     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
28081 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
28082 if test "${ac_cv_header_ext_hash_map+set}" = set; then
28083   echo $ECHO_N "(cached) $ECHO_C" >&6
28084 else
28085   cat >conftest.$ac_ext <<_ACEOF
28086 /* confdefs.h.  */
28087 _ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h.  */
28091
28092
28093
28094 #include <ext/hash_map>
28095 _ACEOF
28096 rm -f conftest.$ac_objext
28097 if { (ac_try="$ac_compile"
28098 case "(($ac_try" in
28099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100   *) ac_try_echo=$ac_try;;
28101 esac
28102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28103   (eval "$ac_compile") 2>conftest.er1
28104   ac_status=$?
28105   grep -v '^ *+' conftest.er1 >conftest.err
28106   rm -f conftest.er1
28107   cat conftest.err >&5
28108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109   (exit $ac_status); } && {
28110          test -z "$ac_cxx_werror_flag" ||
28111          test ! -s conftest.err
28112        } && test -s conftest.$ac_objext; then
28113   ac_cv_header_ext_hash_map=yes
28114 else
28115   echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118         ac_cv_header_ext_hash_map=no
28119 fi
28120
28121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28122 fi
28123 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
28124 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
28125 if test $ac_cv_header_ext_hash_map = yes; then
28126   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
28127 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
28128 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
28129   echo $ECHO_N "(cached) $ECHO_C" >&6
28130 else
28131   cat >conftest.$ac_ext <<_ACEOF
28132 /* confdefs.h.  */
28133 _ACEOF
28134 cat confdefs.h >>conftest.$ac_ext
28135 cat >>conftest.$ac_ext <<_ACEOF
28136 /* end confdefs.h.  */
28137 #include <ext/hash_map>
28138                 #include <ext/hash_set>
28139 int
28140 main ()
28141 {
28142 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
28143                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
28144   ;
28145   return 0;
28146 }
28147 _ACEOF
28148 rm -f conftest.$ac_objext
28149 if { (ac_try="$ac_compile"
28150 case "(($ac_try" in
28151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28152   *) ac_try_echo=$ac_try;;
28153 esac
28154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28155   (eval "$ac_compile") 2>conftest.er1
28156   ac_status=$?
28157   grep -v '^ *+' conftest.er1 >conftest.err
28158   rm -f conftest.er1
28159   cat conftest.err >&5
28160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161   (exit $ac_status); } && {
28162          test -z "$ac_cxx_werror_flag" ||
28163          test ! -s conftest.err
28164        } && test -s conftest.$ac_objext; then
28165   wx_cv_class_gnuhashmapset=yes
28166 else
28167   echo "$as_me: failed program was:" >&5
28168 sed 's/^/| /' conftest.$ac_ext >&5
28169
28170         wx_cv_class_gnuhashmapset=no
28171 fi
28172
28173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28174
28175
28176 fi
28177 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
28178 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
28179 fi
28180
28181
28182
28183     if test "$wx_cv_class_gnuhashmapset" = yes; then
28184          cat >>confdefs.h <<\_ACEOF
28185 #define HAVE_EXT_HASH_MAP 1
28186 _ACEOF
28187
28188          cat >>confdefs.h <<\_ACEOF
28189 #define HAVE_GNU_CXX_HASH_MAP 1
28190 _ACEOF
28191
28192     fi
28193 fi
28194
28195 ac_ext=c
28196 ac_cpp='$CPP $CPPFLAGS'
28197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28200
28201
28202
28203 SEARCH_INCLUDE="\
28204     /usr/local/include        \
28205                               \
28206     /usr/Motif-2.1/include    \
28207     /usr/Motif-1.2/include    \
28208     /usr/include/Motif1.2     \
28209                               \
28210     /usr/dt/include           \
28211     /usr/openwin/include      \
28212                               \
28213     /usr/include/Xm           \
28214                               \
28215     /usr/X11R6/include        \
28216     /usr/X11R6.4/include      \
28217     /usr/X11R5/include        \
28218     /usr/X11R4/include        \
28219                               \
28220     /usr/include/X11R6        \
28221     /usr/include/X11R5        \
28222     /usr/include/X11R4        \
28223                               \
28224     /usr/local/X11R6/include  \
28225     /usr/local/X11R5/include  \
28226     /usr/local/X11R4/include  \
28227                               \
28228     /usr/local/include/X11R6  \
28229     /usr/local/include/X11R5  \
28230     /usr/local/include/X11R4  \
28231                               \
28232     /usr/X11/include          \
28233     /usr/include/X11          \
28234     /usr/local/X11/include    \
28235     /usr/local/include/X11    \
28236                               \
28237     /usr/XFree86/include/X11  \
28238     /usr/pkg/include          \
28239                               \
28240     /usr/openwin/share/include"
28241
28242 { echo "$as_me:$LINENO: checking for libraries directory" >&5
28243 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
28244
28245 case "${host}" in
28246     *-*-irix6* )
28247         if test "${wx_cv_std_libpath+set}" = set; then
28248   echo $ECHO_N "(cached) $ECHO_C" >&6
28249 else
28250
28251                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
28252                     for e in a so sl dylib dll.a; do
28253                         libc="$d/libc.$e"
28254                         if test -f $libc; then
28255                             save_LIBS="$LIBS"
28256                             LIBS="$libc"
28257                             cat >conftest.$ac_ext <<_ACEOF
28258 int main() { return 0; }
28259 _ACEOF
28260 rm -f conftest.$ac_objext conftest$ac_exeext
28261 if { (ac_try="$ac_link"
28262 case "(($ac_try" in
28263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28264   *) ac_try_echo=$ac_try;;
28265 esac
28266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28267   (eval "$ac_link") 2>conftest.er1
28268   ac_status=$?
28269   grep -v '^ *+' conftest.er1 >conftest.err
28270   rm -f conftest.er1
28271   cat conftest.err >&5
28272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273   (exit $ac_status); } && {
28274          test -z "$ac_c_werror_flag" ||
28275          test ! -s conftest.err
28276        } && test -s conftest$ac_exeext &&
28277        $as_test_x conftest$ac_exeext; then
28278   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
28279 else
28280   echo "$as_me: failed program was:" >&5
28281 sed 's/^/| /' conftest.$ac_ext >&5
28282
28283
28284 fi
28285
28286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28287       conftest$ac_exeext conftest.$ac_ext
28288                             LIBS="$save_LIBS"
28289                             if test "x$wx_cv_std_libpath" != "x"; then
28290                                 break 2
28291                             fi
28292                         fi
28293                     done
28294                 done
28295                 if test "x$wx_cv_std_libpath" = "x"; then
28296                     wx_cv_std_libpath="lib"
28297                 fi
28298
28299
28300 fi
28301
28302         ;;
28303
28304     *-*-solaris2* )
28305                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
28306             wx_cv_std_libpath="lib/64"
28307         else
28308             wx_cv_std_libpath="lib"
28309         fi
28310         ;;
28311
28312     *-*-linux* )
28313                 if test "$ac_cv_sizeof_void_p" = 8 -a \
28314                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
28315             wx_cv_std_libpath="lib64"
28316         else
28317             wx_cv_std_libpath="lib"
28318         fi
28319         ;;
28320
28321     *)
28322         wx_cv_std_libpath="lib";
28323         ;;
28324 esac
28325
28326 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
28327 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
28328
28329 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
28330
28331 if test "$build" != "$host" -a "$GCC" = yes; then
28332                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
28333         cross_root=`dirname $cross_root`
28334         cross_root=`dirname $cross_root`
28335
28336                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
28337         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
28338         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
28339
28340                 if test -z "$PKG_CONFIG_PATH"; then
28341             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
28342             export PKG_CONFIG_PATH
28343         fi
28344
28345                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
28346
28347 ac_find_includes=
28348 for ac_dir in $SEARCH_INCLUDE /usr/include;
28349   do
28350     if test -f "$ac_dir/X11/Intrinsic.h"; then
28351       ac_find_includes=$ac_dir
28352       break
28353     fi
28354   done
28355
28356             x_includes=$ac_find_includes
28357         fi
28358         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
28359
28360   ac_find_libraries=
28361   for ac_dir in $SEARCH_LIB;
28362   do
28363     for ac_extension in a so sl dylib dll.a; do
28364       if test -f "$ac_dir/libXt.$ac_extension"; then
28365         ac_find_libraries=$ac_dir
28366         break 2
28367       fi
28368     done
28369   done
28370
28371             x_libraries=$ac_find_libraries
28372         fi
28373     fi
28374 fi
28375
28376
28377 cat >confcache <<\_ACEOF
28378 # This file is a shell script that caches the results of configure
28379 # tests run on this system so they can be shared between configure
28380 # scripts and configure runs, see configure's option --config-cache.
28381 # It is not useful on other systems.  If it contains results you don't
28382 # want to keep, you may remove or edit it.
28383 #
28384 # config.status only pays attention to the cache file if you give it
28385 # the --recheck option to rerun configure.
28386 #
28387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28389 # following values.
28390
28391 _ACEOF
28392
28393 # The following way of writing the cache mishandles newlines in values,
28394 # but we know of no workaround that is simple, portable, and efficient.
28395 # So, we kill variables containing newlines.
28396 # Ultrix sh set writes to stderr and can't be redirected directly,
28397 # and sets the high bit in the cache file unless we assign to the vars.
28398 (
28399   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28400     eval ac_val=\$$ac_var
28401     case $ac_val in #(
28402     *${as_nl}*)
28403       case $ac_var in #(
28404       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28405 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28406       esac
28407       case $ac_var in #(
28408       _ | IFS | as_nl) ;; #(
28409       *) $as_unset $ac_var ;;
28410       esac ;;
28411     esac
28412   done
28413
28414   (set) 2>&1 |
28415     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28416     *${as_nl}ac_space=\ *)
28417       # `set' does not quote correctly, so add quotes (double-quote
28418       # substitution turns \\\\ into \\, and sed turns \\ into \).
28419       sed -n \
28420         "s/'/'\\\\''/g;
28421           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28422       ;; #(
28423     *)
28424       # `set' quotes correctly as required by POSIX, so do not add quotes.
28425       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28426       ;;
28427     esac |
28428     sort
28429 ) |
28430   sed '
28431      /^ac_cv_env_/b end
28432      t clear
28433      :clear
28434      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28435      t end
28436      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28437      :end' >>confcache
28438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28439   if test -w "$cache_file"; then
28440     test "x$cache_file" != "x/dev/null" &&
28441       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28442 echo "$as_me: updating cache $cache_file" >&6;}
28443     cat confcache >$cache_file
28444   else
28445     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28446 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28447   fi
28448 fi
28449 rm -f confcache
28450
28451 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
28452     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
28453 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
28454 if test "${wx_cv_lib_glibc21+set}" = set; then
28455   echo $ECHO_N "(cached) $ECHO_C" >&6
28456 else
28457
28458         cat >conftest.$ac_ext <<_ACEOF
28459 /* confdefs.h.  */
28460 _ACEOF
28461 cat confdefs.h >>conftest.$ac_ext
28462 cat >>conftest.$ac_ext <<_ACEOF
28463 /* end confdefs.h.  */
28464 #include <features.h>
28465 int
28466 main ()
28467 {
28468
28469                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
28470                 not glibc 2.1
28471                 #endif
28472
28473   ;
28474   return 0;
28475 }
28476 _ACEOF
28477 rm -f conftest.$ac_objext
28478 if { (ac_try="$ac_compile"
28479 case "(($ac_try" in
28480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481   *) ac_try_echo=$ac_try;;
28482 esac
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484   (eval "$ac_compile") 2>conftest.er1
28485   ac_status=$?
28486   grep -v '^ *+' conftest.er1 >conftest.err
28487   rm -f conftest.er1
28488   cat conftest.err >&5
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); } && {
28491          test -z "$ac_c_werror_flag" ||
28492          test ! -s conftest.err
28493        } && test -s conftest.$ac_objext; then
28494
28495                 wx_cv_lib_glibc21=yes
28496
28497 else
28498   echo "$as_me: failed program was:" >&5
28499 sed 's/^/| /' conftest.$ac_ext >&5
28500
28501
28502                 wx_cv_lib_glibc21=no
28503
28504
28505 fi
28506
28507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28508
28509 fi
28510 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
28511 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
28512     if test "$wx_cv_lib_glibc21" = "yes"; then
28513         cat >>confdefs.h <<\_ACEOF
28514 #define wxHAVE_GLIBC2 1
28515 _ACEOF
28516
28517     fi
28518 fi
28519
28520 if test "x$wx_cv_lib_glibc21" = "xyes"; then
28521     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
28522         cat >>confdefs.h <<\_ACEOF
28523 #define _GNU_SOURCE 1
28524 _ACEOF
28525
28526     fi
28527 fi
28528
28529 have_cos=0
28530 have_floor=0
28531
28532 for ac_func in cos
28533 do
28534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28535 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28537 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28538   echo $ECHO_N "(cached) $ECHO_C" >&6
28539 else
28540   cat >conftest.$ac_ext <<_ACEOF
28541 /* confdefs.h.  */
28542 _ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h.  */
28546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28548 #define $ac_func innocuous_$ac_func
28549
28550 /* System header to define __stub macros and hopefully few prototypes,
28551     which can conflict with char $ac_func (); below.
28552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28553     <limits.h> exists even on freestanding compilers.  */
28554
28555 #ifdef __STDC__
28556 # include <limits.h>
28557 #else
28558 # include <assert.h>
28559 #endif
28560
28561 #undef $ac_func
28562
28563 /* Override any GCC internal prototype to avoid an error.
28564    Use char because int might match the return type of a GCC
28565    builtin and then its argument prototype would still apply.  */
28566 #ifdef __cplusplus
28567 extern "C"
28568 #endif
28569 char $ac_func ();
28570 /* The GNU C library defines this for functions which it implements
28571     to always fail with ENOSYS.  Some functions are actually named
28572     something starting with __ and the normal name is an alias.  */
28573 #if defined __stub_$ac_func || defined __stub___$ac_func
28574 choke me
28575 #endif
28576
28577 int
28578 main ()
28579 {
28580 return $ac_func ();
28581   ;
28582   return 0;
28583 }
28584 _ACEOF
28585 rm -f conftest.$ac_objext conftest$ac_exeext
28586 if { (ac_try="$ac_link"
28587 case "(($ac_try" in
28588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589   *) ac_try_echo=$ac_try;;
28590 esac
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592   (eval "$ac_link") 2>conftest.er1
28593   ac_status=$?
28594   grep -v '^ *+' conftest.er1 >conftest.err
28595   rm -f conftest.er1
28596   cat conftest.err >&5
28597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598   (exit $ac_status); } && {
28599          test -z "$ac_c_werror_flag" ||
28600          test ! -s conftest.err
28601        } && test -s conftest$ac_exeext &&
28602        $as_test_x conftest$ac_exeext; then
28603   eval "$as_ac_var=yes"
28604 else
28605   echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28607
28608         eval "$as_ac_var=no"
28609 fi
28610
28611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28612       conftest$ac_exeext conftest.$ac_ext
28613 fi
28614 ac_res=`eval echo '${'$as_ac_var'}'`
28615                { echo "$as_me:$LINENO: result: $ac_res" >&5
28616 echo "${ECHO_T}$ac_res" >&6; }
28617 if test `eval echo '${'$as_ac_var'}'` = yes; then
28618   cat >>confdefs.h <<_ACEOF
28619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28620 _ACEOF
28621  have_cos=1
28622 fi
28623 done
28624
28625
28626 for ac_func in floor
28627 do
28628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28632   echo $ECHO_N "(cached) $ECHO_C" >&6
28633 else
28634   cat >conftest.$ac_ext <<_ACEOF
28635 /* confdefs.h.  */
28636 _ACEOF
28637 cat confdefs.h >>conftest.$ac_ext
28638 cat >>conftest.$ac_ext <<_ACEOF
28639 /* end confdefs.h.  */
28640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28642 #define $ac_func innocuous_$ac_func
28643
28644 /* System header to define __stub macros and hopefully few prototypes,
28645     which can conflict with char $ac_func (); below.
28646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28647     <limits.h> exists even on freestanding compilers.  */
28648
28649 #ifdef __STDC__
28650 # include <limits.h>
28651 #else
28652 # include <assert.h>
28653 #endif
28654
28655 #undef $ac_func
28656
28657 /* Override any GCC internal prototype to avoid an error.
28658    Use char because int might match the return type of a GCC
28659    builtin and then its argument prototype would still apply.  */
28660 #ifdef __cplusplus
28661 extern "C"
28662 #endif
28663 char $ac_func ();
28664 /* The GNU C library defines this for functions which it implements
28665     to always fail with ENOSYS.  Some functions are actually named
28666     something starting with __ and the normal name is an alias.  */
28667 #if defined __stub_$ac_func || defined __stub___$ac_func
28668 choke me
28669 #endif
28670
28671 int
28672 main ()
28673 {
28674 return $ac_func ();
28675   ;
28676   return 0;
28677 }
28678 _ACEOF
28679 rm -f conftest.$ac_objext conftest$ac_exeext
28680 if { (ac_try="$ac_link"
28681 case "(($ac_try" in
28682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683   *) ac_try_echo=$ac_try;;
28684 esac
28685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28686   (eval "$ac_link") 2>conftest.er1
28687   ac_status=$?
28688   grep -v '^ *+' conftest.er1 >conftest.err
28689   rm -f conftest.er1
28690   cat conftest.err >&5
28691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); } && {
28693          test -z "$ac_c_werror_flag" ||
28694          test ! -s conftest.err
28695        } && test -s conftest$ac_exeext &&
28696        $as_test_x conftest$ac_exeext; then
28697   eval "$as_ac_var=yes"
28698 else
28699   echo "$as_me: failed program was:" >&5
28700 sed 's/^/| /' conftest.$ac_ext >&5
28701
28702         eval "$as_ac_var=no"
28703 fi
28704
28705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28706       conftest$ac_exeext conftest.$ac_ext
28707 fi
28708 ac_res=`eval echo '${'$as_ac_var'}'`
28709                { echo "$as_me:$LINENO: result: $ac_res" >&5
28710 echo "${ECHO_T}$ac_res" >&6; }
28711 if test `eval echo '${'$as_ac_var'}'` = yes; then
28712   cat >>confdefs.h <<_ACEOF
28713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28714 _ACEOF
28715  have_floor=1
28716 fi
28717 done
28718
28719 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28720 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
28721 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28722     { echo "$as_me:$LINENO: result: yes" >&5
28723 echo "${ECHO_T}yes" >&6; }
28724 else
28725     { echo "$as_me:$LINENO: result: no" >&5
28726 echo "${ECHO_T}no" >&6; }
28727     LIBS="$LIBS -lm"
28728     # use different functions to avoid configure caching
28729     have_sin=0
28730     have_ceil=0
28731
28732 for ac_func in sin
28733 do
28734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28738   echo $ECHO_N "(cached) $ECHO_C" >&6
28739 else
28740   cat >conftest.$ac_ext <<_ACEOF
28741 /* confdefs.h.  */
28742 _ACEOF
28743 cat confdefs.h >>conftest.$ac_ext
28744 cat >>conftest.$ac_ext <<_ACEOF
28745 /* end confdefs.h.  */
28746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28748 #define $ac_func innocuous_$ac_func
28749
28750 /* System header to define __stub macros and hopefully few prototypes,
28751     which can conflict with char $ac_func (); below.
28752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28753     <limits.h> exists even on freestanding compilers.  */
28754
28755 #ifdef __STDC__
28756 # include <limits.h>
28757 #else
28758 # include <assert.h>
28759 #endif
28760
28761 #undef $ac_func
28762
28763 /* Override any GCC internal prototype to avoid an error.
28764    Use char because int might match the return type of a GCC
28765    builtin and then its argument prototype would still apply.  */
28766 #ifdef __cplusplus
28767 extern "C"
28768 #endif
28769 char $ac_func ();
28770 /* The GNU C library defines this for functions which it implements
28771     to always fail with ENOSYS.  Some functions are actually named
28772     something starting with __ and the normal name is an alias.  */
28773 #if defined __stub_$ac_func || defined __stub___$ac_func
28774 choke me
28775 #endif
28776
28777 int
28778 main ()
28779 {
28780 return $ac_func ();
28781   ;
28782   return 0;
28783 }
28784 _ACEOF
28785 rm -f conftest.$ac_objext conftest$ac_exeext
28786 if { (ac_try="$ac_link"
28787 case "(($ac_try" in
28788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789   *) ac_try_echo=$ac_try;;
28790 esac
28791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792   (eval "$ac_link") 2>conftest.er1
28793   ac_status=$?
28794   grep -v '^ *+' conftest.er1 >conftest.err
28795   rm -f conftest.er1
28796   cat conftest.err >&5
28797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798   (exit $ac_status); } && {
28799          test -z "$ac_c_werror_flag" ||
28800          test ! -s conftest.err
28801        } && test -s conftest$ac_exeext &&
28802        $as_test_x conftest$ac_exeext; then
28803   eval "$as_ac_var=yes"
28804 else
28805   echo "$as_me: failed program was:" >&5
28806 sed 's/^/| /' conftest.$ac_ext >&5
28807
28808         eval "$as_ac_var=no"
28809 fi
28810
28811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28812       conftest$ac_exeext conftest.$ac_ext
28813 fi
28814 ac_res=`eval echo '${'$as_ac_var'}'`
28815                { echo "$as_me:$LINENO: result: $ac_res" >&5
28816 echo "${ECHO_T}$ac_res" >&6; }
28817 if test `eval echo '${'$as_ac_var'}'` = yes; then
28818   cat >>confdefs.h <<_ACEOF
28819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28820 _ACEOF
28821  have_sin=1
28822 fi
28823 done
28824
28825
28826 for ac_func in ceil
28827 do
28828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28832   echo $ECHO_N "(cached) $ECHO_C" >&6
28833 else
28834   cat >conftest.$ac_ext <<_ACEOF
28835 /* confdefs.h.  */
28836 _ACEOF
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h.  */
28840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28842 #define $ac_func innocuous_$ac_func
28843
28844 /* System header to define __stub macros and hopefully few prototypes,
28845     which can conflict with char $ac_func (); below.
28846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28847     <limits.h> exists even on freestanding compilers.  */
28848
28849 #ifdef __STDC__
28850 # include <limits.h>
28851 #else
28852 # include <assert.h>
28853 #endif
28854
28855 #undef $ac_func
28856
28857 /* Override any GCC internal prototype to avoid an error.
28858    Use char because int might match the return type of a GCC
28859    builtin and then its argument prototype would still apply.  */
28860 #ifdef __cplusplus
28861 extern "C"
28862 #endif
28863 char $ac_func ();
28864 /* The GNU C library defines this for functions which it implements
28865     to always fail with ENOSYS.  Some functions are actually named
28866     something starting with __ and the normal name is an alias.  */
28867 #if defined __stub_$ac_func || defined __stub___$ac_func
28868 choke me
28869 #endif
28870
28871 int
28872 main ()
28873 {
28874 return $ac_func ();
28875   ;
28876   return 0;
28877 }
28878 _ACEOF
28879 rm -f conftest.$ac_objext conftest$ac_exeext
28880 if { (ac_try="$ac_link"
28881 case "(($ac_try" in
28882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883   *) ac_try_echo=$ac_try;;
28884 esac
28885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886   (eval "$ac_link") 2>conftest.er1
28887   ac_status=$?
28888   grep -v '^ *+' conftest.er1 >conftest.err
28889   rm -f conftest.er1
28890   cat conftest.err >&5
28891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892   (exit $ac_status); } && {
28893          test -z "$ac_c_werror_flag" ||
28894          test ! -s conftest.err
28895        } && test -s conftest$ac_exeext &&
28896        $as_test_x conftest$ac_exeext; then
28897   eval "$as_ac_var=yes"
28898 else
28899   echo "$as_me: failed program was:" >&5
28900 sed 's/^/| /' conftest.$ac_ext >&5
28901
28902         eval "$as_ac_var=no"
28903 fi
28904
28905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28906       conftest$ac_exeext conftest.$ac_ext
28907 fi
28908 ac_res=`eval echo '${'$as_ac_var'}'`
28909                { echo "$as_me:$LINENO: result: $ac_res" >&5
28910 echo "${ECHO_T}$ac_res" >&6; }
28911 if test `eval echo '${'$as_ac_var'}'` = yes; then
28912   cat >>confdefs.h <<_ACEOF
28913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28914 _ACEOF
28915  have_ceil=1
28916 fi
28917 done
28918
28919     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28920 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28921     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28922         { echo "$as_me:$LINENO: result: yes" >&5
28923 echo "${ECHO_T}yes" >&6; }
28924     else
28925         { echo "$as_me:$LINENO: result: no" >&5
28926 echo "${ECHO_T}no" >&6; }
28927         # not sure we should warn the user, crash, etc.
28928     fi
28929 fi
28930
28931 ac_ext=cpp
28932 ac_cpp='$CXXCPP $CPPFLAGS'
28933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28936
28937 if test "wxUSE_UNICODE" = "yes"; then
28938
28939   for wx_func in wcstoull
28940   do
28941     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28942 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28943 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28944   echo $ECHO_N "(cached) $ECHO_C" >&6
28945 else
28946
28947         cat >conftest.$ac_ext <<_ACEOF
28948
28949             /* confdefs.h.  */
28950 _ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h.  */
28954
28955
28956                 $ac_includes_default
28957
28958 int
28959 main ()
28960 {
28961
28962                 #ifndef $wx_func
28963                   &$wx_func;
28964                 #endif
28965
28966
28967   ;
28968   return 0;
28969 }
28970
28971 _ACEOF
28972 rm -f conftest.$ac_objext conftest$ac_exeext
28973 if { (ac_try="$ac_link"
28974 case "(($ac_try" in
28975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28976   *) ac_try_echo=$ac_try;;
28977 esac
28978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28979   (eval "$ac_link") 2>conftest.er1
28980   ac_status=$?
28981   grep -v '^ *+' conftest.er1 >conftest.err
28982   rm -f conftest.er1
28983   cat conftest.err >&5
28984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985   (exit $ac_status); } && {
28986          test -z "$ac_cxx_werror_flag" ||
28987          test ! -s conftest.err
28988        } && test -s conftest$ac_exeext &&
28989        $as_test_x conftest$ac_exeext; then
28990   eval wx_cv_func_$wx_func=yes
28991 else
28992   echo "$as_me: failed program was:" >&5
28993 sed 's/^/| /' conftest.$ac_ext >&5
28994
28995         eval wx_cv_func_$wx_func=no
28996 fi
28997
28998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28999       conftest$ac_exeext conftest.$ac_ext
29000
29001 fi
29002 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
29003                { echo "$as_me:$LINENO: result: $ac_res" >&5
29004 echo "${ECHO_T}$ac_res" >&6; }
29005
29006     if eval test \$wx_cv_func_$wx_func = yes
29007     then
29008       cat >>confdefs.h <<_ACEOF
29009 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
29010 _ACEOF
29011
29012
29013     else
29014       :
29015
29016     fi
29017   done
29018
29019 else
29020
29021   for wx_func in strtoull
29022   do
29023     { echo "$as_me:$LINENO: checking for $wx_func" >&5
29024 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
29025 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
29026   echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028
29029         cat >conftest.$ac_ext <<_ACEOF
29030
29031             /* confdefs.h.  */
29032 _ACEOF
29033 cat confdefs.h >>conftest.$ac_ext
29034 cat >>conftest.$ac_ext <<_ACEOF
29035 /* end confdefs.h.  */
29036
29037
29038                 $ac_includes_default
29039
29040 int
29041 main ()
29042 {
29043
29044                 #ifndef $wx_func
29045                   &$wx_func;
29046                 #endif
29047
29048
29049   ;
29050   return 0;
29051 }
29052
29053 _ACEOF
29054 rm -f conftest.$ac_objext conftest$ac_exeext
29055 if { (ac_try="$ac_link"
29056 case "(($ac_try" in
29057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058   *) ac_try_echo=$ac_try;;
29059 esac
29060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061   (eval "$ac_link") 2>conftest.er1
29062   ac_status=$?
29063   grep -v '^ *+' conftest.er1 >conftest.err
29064   rm -f conftest.er1
29065   cat conftest.err >&5
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); } && {
29068          test -z "$ac_cxx_werror_flag" ||
29069          test ! -s conftest.err
29070        } && test -s conftest$ac_exeext &&
29071        $as_test_x conftest$ac_exeext; then
29072   eval wx_cv_func_$wx_func=yes
29073 else
29074   echo "$as_me: failed program was:" >&5
29075 sed 's/^/| /' conftest.$ac_ext >&5
29076
29077         eval wx_cv_func_$wx_func=no
29078 fi
29079
29080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29081       conftest$ac_exeext conftest.$ac_ext
29082
29083 fi
29084 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
29085                { echo "$as_me:$LINENO: result: $ac_res" >&5
29086 echo "${ECHO_T}$ac_res" >&6; }
29087
29088     if eval test \$wx_cv_func_$wx_func = yes
29089     then
29090       cat >>confdefs.h <<_ACEOF
29091 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
29092 _ACEOF
29093
29094
29095     else
29096       :
29097
29098     fi
29099   done
29100
29101 fi
29102 ac_ext=c
29103 ac_cpp='$CPP $CPPFLAGS'
29104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29107
29108
29109
29110
29111 if test "$wxUSE_REGEX" != "no"; then
29112     cat >>confdefs.h <<\_ACEOF
29113 #define wxUSE_REGEX 1
29114 _ACEOF
29115
29116
29117     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
29118         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
29119 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
29120         wxUSE_REGEX=builtin
29121     fi
29122
29123     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
29124                         { echo "$as_me:$LINENO: checking for regex.h" >&5
29125 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
29126 if test "${ac_cv_header_regex_h+set}" = set; then
29127   echo $ECHO_N "(cached) $ECHO_C" >&6
29128 else
29129   cat >conftest.$ac_ext <<_ACEOF
29130 /* confdefs.h.  */
29131 _ACEOF
29132 cat confdefs.h >>conftest.$ac_ext
29133 cat >>conftest.$ac_ext <<_ACEOF
29134 /* end confdefs.h.  */
29135
29136
29137 #include <regex.h>
29138 _ACEOF
29139 rm -f conftest.$ac_objext
29140 if { (ac_try="$ac_compile"
29141 case "(($ac_try" in
29142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29143   *) ac_try_echo=$ac_try;;
29144 esac
29145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29146   (eval "$ac_compile") 2>conftest.er1
29147   ac_status=$?
29148   grep -v '^ *+' conftest.er1 >conftest.err
29149   rm -f conftest.er1
29150   cat conftest.err >&5
29151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152   (exit $ac_status); } && {
29153          test -z "$ac_c_werror_flag" ||
29154          test ! -s conftest.err
29155        } && test -s conftest.$ac_objext; then
29156   ac_cv_header_regex_h=yes
29157 else
29158   echo "$as_me: failed program was:" >&5
29159 sed 's/^/| /' conftest.$ac_ext >&5
29160
29161         ac_cv_header_regex_h=no
29162 fi
29163
29164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29165 fi
29166 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
29167 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
29168 if test $ac_cv_header_regex_h = yes; then
29169
29170
29171 for ac_func in regcomp re_search
29172 do
29173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29177   echo $ECHO_N "(cached) $ECHO_C" >&6
29178 else
29179   cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h.  */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h.  */
29185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29187 #define $ac_func innocuous_$ac_func
29188
29189 /* System header to define __stub macros and hopefully few prototypes,
29190     which can conflict with char $ac_func (); below.
29191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29192     <limits.h> exists even on freestanding compilers.  */
29193
29194 #ifdef __STDC__
29195 # include <limits.h>
29196 #else
29197 # include <assert.h>
29198 #endif
29199
29200 #undef $ac_func
29201
29202 /* Override any GCC internal prototype to avoid an error.
29203    Use char because int might match the return type of a GCC
29204    builtin and then its argument prototype would still apply.  */
29205 #ifdef __cplusplus
29206 extern "C"
29207 #endif
29208 char $ac_func ();
29209 /* The GNU C library defines this for functions which it implements
29210     to always fail with ENOSYS.  Some functions are actually named
29211     something starting with __ and the normal name is an alias.  */
29212 #if defined __stub_$ac_func || defined __stub___$ac_func
29213 choke me
29214 #endif
29215
29216 int
29217 main ()
29218 {
29219 return $ac_func ();
29220   ;
29221   return 0;
29222 }
29223 _ACEOF
29224 rm -f conftest.$ac_objext conftest$ac_exeext
29225 if { (ac_try="$ac_link"
29226 case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29231   (eval "$ac_link") 2>conftest.er1
29232   ac_status=$?
29233   grep -v '^ *+' conftest.er1 >conftest.err
29234   rm -f conftest.er1
29235   cat conftest.err >&5
29236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237   (exit $ac_status); } && {
29238          test -z "$ac_c_werror_flag" ||
29239          test ! -s conftest.err
29240        } && test -s conftest$ac_exeext &&
29241        $as_test_x conftest$ac_exeext; then
29242   eval "$as_ac_var=yes"
29243 else
29244   echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247         eval "$as_ac_var=no"
29248 fi
29249
29250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29251       conftest$ac_exeext conftest.$ac_ext
29252 fi
29253 ac_res=`eval echo '${'$as_ac_var'}'`
29254                { echo "$as_me:$LINENO: result: $ac_res" >&5
29255 echo "${ECHO_T}$ac_res" >&6; }
29256 if test `eval echo '${'$as_ac_var'}'` = yes; then
29257   cat >>confdefs.h <<_ACEOF
29258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29259 _ACEOF
29260
29261 fi
29262 done
29263
29264 fi
29265
29266
29267
29268         if test "x$ac_cv_func_regcomp" != "xyes"; then
29269             if test "$wxUSE_REGEX" = "sys" ; then
29270                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
29271 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
29272    { (exit 1); exit 1; }; }
29273             else
29274                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
29275 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
29276                 wxUSE_REGEX=builtin
29277             fi
29278         else
29279                         wxUSE_REGEX=sys
29280                         cat >>confdefs.h <<\_ACEOF
29281 #define WX_NO_REGEX_ADVANCED 1
29282 _ACEOF
29283
29284         fi
29285     fi
29286 fi
29287
29288
29289 ZLIB_LINK=
29290 if test "$wxUSE_ZLIB" != "no" ; then
29291     cat >>confdefs.h <<\_ACEOF
29292 #define wxUSE_ZLIB 1
29293 _ACEOF
29294
29295
29296     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
29297                                                 if test "$USE_DARWIN" = 1; then
29298             system_zlib_h_ok="yes"
29299         else
29300                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
29301 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
29302 if test "${ac_cv_header_zlib_h+set}" = set; then
29303   echo $ECHO_N "(cached) $ECHO_C" >&6
29304 else
29305   if test "$cross_compiling" = yes; then
29306                       unset ac_cv_header_zlib_h
29307
29308 else
29309   cat >conftest.$ac_ext <<_ACEOF
29310 /* confdefs.h.  */
29311 _ACEOF
29312 cat confdefs.h >>conftest.$ac_ext
29313 cat >>conftest.$ac_ext <<_ACEOF
29314 /* end confdefs.h.  */
29315
29316                         #include <zlib.h>
29317                         #include <stdio.h>
29318
29319                         int main()
29320                         {
29321                             FILE *f=fopen("conftestval", "w");
29322                             if (!f) exit(1);
29323                             fprintf(f, "%s",
29324                                     ZLIB_VERSION[0] == '1' &&
29325                                     (ZLIB_VERSION[2] > '1' ||
29326                                     (ZLIB_VERSION[2] == '1' &&
29327                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
29328                             exit(0);
29329                         }
29330
29331 _ACEOF
29332 rm -f conftest$ac_exeext
29333 if { (ac_try="$ac_link"
29334 case "(($ac_try" in
29335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336   *) ac_try_echo=$ac_try;;
29337 esac
29338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339   (eval "$ac_link") 2>&5
29340   ac_status=$?
29341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29343   { (case "(($ac_try" in
29344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345   *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348   (eval "$ac_try") 2>&5
29349   ac_status=$?
29350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351   (exit $ac_status); }; }; then
29352   ac_cv_header_zlib_h=`cat conftestval`
29353 else
29354   echo "$as_me: program exited with status $ac_status" >&5
29355 echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29357
29358 ( exit $ac_status )
29359 ac_cv_header_zlib_h=no
29360 fi
29361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29362 fi
29363
29364
29365
29366 fi
29367 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29368 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29369                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
29370 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
29371 if test "${ac_cv_header_zlib_h+set}" = set; then
29372   echo $ECHO_N "(cached) $ECHO_C" >&6
29373 else
29374   cat >conftest.$ac_ext <<_ACEOF
29375 /* confdefs.h.  */
29376 _ACEOF
29377 cat confdefs.h >>conftest.$ac_ext
29378 cat >>conftest.$ac_ext <<_ACEOF
29379 /* end confdefs.h.  */
29380
29381
29382 #include <zlib.h>
29383 _ACEOF
29384 rm -f conftest.$ac_objext
29385 if { (ac_try="$ac_compile"
29386 case "(($ac_try" in
29387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388   *) ac_try_echo=$ac_try;;
29389 esac
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391   (eval "$ac_compile") 2>conftest.er1
29392   ac_status=$?
29393   grep -v '^ *+' conftest.er1 >conftest.err
29394   rm -f conftest.er1
29395   cat conftest.err >&5
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); } && {
29398          test -z "$ac_c_werror_flag" ||
29399          test ! -s conftest.err
29400        } && test -s conftest.$ac_objext; then
29401   ac_cv_header_zlib_h=yes
29402 else
29403   echo "$as_me: failed program was:" >&5
29404 sed 's/^/| /' conftest.$ac_ext >&5
29405
29406         ac_cv_header_zlib_h=no
29407 fi
29408
29409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29410 fi
29411 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29412 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29413
29414
29415
29416             system_zlib_h_ok=$ac_cv_header_zlib_h
29417         fi
29418
29419         if test "$system_zlib_h_ok" = "yes"; then
29420             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29421 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29422 if test "${ac_cv_lib_z_deflate+set}" = set; then
29423   echo $ECHO_N "(cached) $ECHO_C" >&6
29424 else
29425   ac_check_lib_save_LIBS=$LIBS
29426 LIBS="-lz  $LIBS"
29427 cat >conftest.$ac_ext <<_ACEOF
29428 /* confdefs.h.  */
29429 _ACEOF
29430 cat confdefs.h >>conftest.$ac_ext
29431 cat >>conftest.$ac_ext <<_ACEOF
29432 /* end confdefs.h.  */
29433
29434 /* Override any GCC internal prototype to avoid an error.
29435    Use char because int might match the return type of a GCC
29436    builtin and then its argument prototype would still apply.  */
29437 #ifdef __cplusplus
29438 extern "C"
29439 #endif
29440 char deflate ();
29441 int
29442 main ()
29443 {
29444 return deflate ();
29445   ;
29446   return 0;
29447 }
29448 _ACEOF
29449 rm -f conftest.$ac_objext conftest$ac_exeext
29450 if { (ac_try="$ac_link"
29451 case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_link") 2>conftest.er1
29457   ac_status=$?
29458   grep -v '^ *+' conftest.er1 >conftest.err
29459   rm -f conftest.er1
29460   cat conftest.err >&5
29461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462   (exit $ac_status); } && {
29463          test -z "$ac_c_werror_flag" ||
29464          test ! -s conftest.err
29465        } && test -s conftest$ac_exeext &&
29466        $as_test_x conftest$ac_exeext; then
29467   ac_cv_lib_z_deflate=yes
29468 else
29469   echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29471
29472         ac_cv_lib_z_deflate=no
29473 fi
29474
29475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29476       conftest$ac_exeext conftest.$ac_ext
29477 LIBS=$ac_check_lib_save_LIBS
29478 fi
29479 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29480 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29481 if test $ac_cv_lib_z_deflate = yes; then
29482   ZLIB_LINK=" -lz"
29483 fi
29484
29485         fi
29486
29487         if test "x$ZLIB_LINK" = "x" ; then
29488             if test "$wxUSE_ZLIB" = "sys" ; then
29489                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
29490 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
29491    { (exit 1); exit 1; }; }
29492             else
29493                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
29494 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
29495                 wxUSE_ZLIB=builtin
29496             fi
29497         else
29498                         wxUSE_ZLIB=sys
29499         fi
29500     fi
29501 fi
29502
29503
29504 PNG_LINK=
29505 if test "$wxUSE_LIBPNG" != "no" ; then
29506     cat >>confdefs.h <<\_ACEOF
29507 #define wxUSE_LIBPNG 1
29508 _ACEOF
29509
29510
29511     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
29512         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
29513 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
29514         wxUSE_LIBPNG=sys
29515     fi
29516
29517                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
29518         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
29519 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
29520         wxUSE_LIBPNG=builtin
29521     fi
29522
29523     if test "$wxUSE_MGL" != 1 ; then
29524                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
29525                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
29526 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
29527 if test "${ac_cv_header_png_h+set}" = set; then
29528   echo $ECHO_N "(cached) $ECHO_C" >&6
29529 else
29530   if test "$cross_compiling" = yes; then
29531                       unset ac_cv_header_png_h
29532
29533 else
29534   cat >conftest.$ac_ext <<_ACEOF
29535 /* confdefs.h.  */
29536 _ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h.  */
29540
29541                         #include <png.h>
29542                         #include <stdio.h>
29543
29544                         int main()
29545                         {
29546                             FILE *f=fopen("conftestval", "w");
29547                             if (!f) exit(1);
29548                             fprintf(f, "%s",
29549                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
29550                             exit(0);
29551                         }
29552
29553 _ACEOF
29554 rm -f conftest$ac_exeext
29555 if { (ac_try="$ac_link"
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_link") 2>&5
29562   ac_status=$?
29563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29565   { (case "(($ac_try" in
29566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567   *) ac_try_echo=$ac_try;;
29568 esac
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570   (eval "$ac_try") 2>&5
29571   ac_status=$?
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); }; }; then
29574   ac_cv_header_png_h=`cat conftestval`
29575 else
29576   echo "$as_me: program exited with status $ac_status" >&5
29577 echo "$as_me: failed program was:" >&5
29578 sed 's/^/| /' conftest.$ac_ext >&5
29579
29580 ( exit $ac_status )
29581 ac_cv_header_png_h=no
29582 fi
29583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29584 fi
29585
29586
29587
29588 fi
29589 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29590 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29591             { echo "$as_me:$LINENO: checking for png.h" >&5
29592 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29593 if test "${ac_cv_header_png_h+set}" = set; then
29594   echo $ECHO_N "(cached) $ECHO_C" >&6
29595 else
29596   cat >conftest.$ac_ext <<_ACEOF
29597 /* confdefs.h.  */
29598 _ACEOF
29599 cat confdefs.h >>conftest.$ac_ext
29600 cat >>conftest.$ac_ext <<_ACEOF
29601 /* end confdefs.h.  */
29602
29603
29604 #include <png.h>
29605 _ACEOF
29606 rm -f conftest.$ac_objext
29607 if { (ac_try="$ac_compile"
29608 case "(($ac_try" in
29609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610   *) ac_try_echo=$ac_try;;
29611 esac
29612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613   (eval "$ac_compile") 2>conftest.er1
29614   ac_status=$?
29615   grep -v '^ *+' conftest.er1 >conftest.err
29616   rm -f conftest.er1
29617   cat conftest.err >&5
29618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619   (exit $ac_status); } && {
29620          test -z "$ac_c_werror_flag" ||
29621          test ! -s conftest.err
29622        } && test -s conftest.$ac_objext; then
29623   ac_cv_header_png_h=yes
29624 else
29625   echo "$as_me: failed program was:" >&5
29626 sed 's/^/| /' conftest.$ac_ext >&5
29627
29628         ac_cv_header_png_h=no
29629 fi
29630
29631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29632 fi
29633 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29634 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29635
29636
29637
29638             if test "$ac_cv_header_png_h" = "yes"; then
29639                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29640 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29641 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29642   echo $ECHO_N "(cached) $ECHO_C" >&6
29643 else
29644   ac_check_lib_save_LIBS=$LIBS
29645 LIBS="-lpng -lz -lm $LIBS"
29646 cat >conftest.$ac_ext <<_ACEOF
29647 /* confdefs.h.  */
29648 _ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h.  */
29652
29653 /* Override any GCC internal prototype to avoid an error.
29654    Use char because int might match the return type of a GCC
29655    builtin and then its argument prototype would still apply.  */
29656 #ifdef __cplusplus
29657 extern "C"
29658 #endif
29659 char png_check_sig ();
29660 int
29661 main ()
29662 {
29663 return png_check_sig ();
29664   ;
29665   return 0;
29666 }
29667 _ACEOF
29668 rm -f conftest.$ac_objext conftest$ac_exeext
29669 if { (ac_try="$ac_link"
29670 case "(($ac_try" in
29671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672   *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675   (eval "$ac_link") 2>conftest.er1
29676   ac_status=$?
29677   grep -v '^ *+' conftest.er1 >conftest.err
29678   rm -f conftest.er1
29679   cat conftest.err >&5
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); } && {
29682          test -z "$ac_c_werror_flag" ||
29683          test ! -s conftest.err
29684        } && test -s conftest$ac_exeext &&
29685        $as_test_x conftest$ac_exeext; then
29686   ac_cv_lib_png_png_check_sig=yes
29687 else
29688   echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29690
29691         ac_cv_lib_png_png_check_sig=no
29692 fi
29693
29694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29695       conftest$ac_exeext conftest.$ac_ext
29696 LIBS=$ac_check_lib_save_LIBS
29697 fi
29698 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29699 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29700 if test $ac_cv_lib_png_png_check_sig = yes; then
29701   PNG_LINK=" -lpng -lz"
29702 fi
29703
29704             fi
29705
29706             if test "x$PNG_LINK" = "x" ; then
29707                 if test "$wxUSE_LIBPNG" = "sys" ; then
29708                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29709 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29710    { (exit 1); exit 1; }; }
29711                 else
29712                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29713 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29714                     wxUSE_LIBPNG=builtin
29715                 fi
29716             else
29717                                 wxUSE_LIBPNG=sys
29718             fi
29719         fi
29720     fi
29721
29722     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
29723 fi
29724
29725
29726 JPEG_LINK=
29727 if test "$wxUSE_LIBJPEG" != "no" ; then
29728     cat >>confdefs.h <<\_ACEOF
29729 #define wxUSE_LIBJPEG 1
29730 _ACEOF
29731
29732
29733     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29734         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29735 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29736         wxUSE_LIBJPEG=sys
29737     fi
29738
29739     if test "$wxUSE_MGL" != 1 ; then
29740                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29741                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29742 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29743             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29744   echo $ECHO_N "(cached) $ECHO_C" >&6
29745 else
29746   cat >conftest.$ac_ext <<_ACEOF
29747 /* confdefs.h.  */
29748 _ACEOF
29749 cat confdefs.h >>conftest.$ac_ext
29750 cat >>conftest.$ac_ext <<_ACEOF
29751 /* end confdefs.h.  */
29752
29753                         #undef HAVE_STDLIB_H
29754                         #include <stdio.h>
29755                         #include <jpeglib.h>
29756
29757 int
29758 main ()
29759 {
29760
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_cv_header_jpeglib_h=yes
29784 else
29785   echo "$as_me: failed program was:" >&5
29786 sed 's/^/| /' conftest.$ac_ext >&5
29787
29788         ac_cv_header_jpeglib_h=no
29789
29790 fi
29791
29792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29793
29794 fi
29795
29796             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29797 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29798
29799             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29800                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29801 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29802 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29803   echo $ECHO_N "(cached) $ECHO_C" >&6
29804 else
29805   ac_check_lib_save_LIBS=$LIBS
29806 LIBS="-ljpeg  $LIBS"
29807 cat >conftest.$ac_ext <<_ACEOF
29808 /* confdefs.h.  */
29809 _ACEOF
29810 cat confdefs.h >>conftest.$ac_ext
29811 cat >>conftest.$ac_ext <<_ACEOF
29812 /* end confdefs.h.  */
29813
29814 /* Override any GCC internal prototype to avoid an error.
29815    Use char because int might match the return type of a GCC
29816    builtin and then its argument prototype would still apply.  */
29817 #ifdef __cplusplus
29818 extern "C"
29819 #endif
29820 char jpeg_read_header ();
29821 int
29822 main ()
29823 {
29824 return jpeg_read_header ();
29825   ;
29826   return 0;
29827 }
29828 _ACEOF
29829 rm -f conftest.$ac_objext conftest$ac_exeext
29830 if { (ac_try="$ac_link"
29831 case "(($ac_try" in
29832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29833   *) ac_try_echo=$ac_try;;
29834 esac
29835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29836   (eval "$ac_link") 2>conftest.er1
29837   ac_status=$?
29838   grep -v '^ *+' conftest.er1 >conftest.err
29839   rm -f conftest.er1
29840   cat conftest.err >&5
29841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842   (exit $ac_status); } && {
29843          test -z "$ac_c_werror_flag" ||
29844          test ! -s conftest.err
29845        } && test -s conftest$ac_exeext &&
29846        $as_test_x conftest$ac_exeext; then
29847   ac_cv_lib_jpeg_jpeg_read_header=yes
29848 else
29849   echo "$as_me: failed program was:" >&5
29850 sed 's/^/| /' conftest.$ac_ext >&5
29851
29852         ac_cv_lib_jpeg_jpeg_read_header=no
29853 fi
29854
29855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29856       conftest$ac_exeext conftest.$ac_ext
29857 LIBS=$ac_check_lib_save_LIBS
29858 fi
29859 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29860 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29861 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29862   JPEG_LINK=" -ljpeg"
29863 fi
29864
29865             fi
29866
29867             if test "x$JPEG_LINK" = "x" ; then
29868                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29869                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29870 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29871    { (exit 1); exit 1; }; }
29872                 else
29873                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29874 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29875                     wxUSE_LIBJPEG=builtin
29876                 fi
29877             else
29878                                 wxUSE_LIBJPEG=sys
29879
29880                 if test "$wxUSE_MSW" = 1; then
29881                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29882 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29883 if test "${ac_cv_type_boolean+set}" = set; then
29884   echo $ECHO_N "(cached) $ECHO_C" >&6
29885 else
29886   cat >conftest.$ac_ext <<_ACEOF
29887 /* confdefs.h.  */
29888 _ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h.  */
29892 #include <windows.h>
29893
29894 typedef boolean ac__type_new_;
29895 int
29896 main ()
29897 {
29898 if ((ac__type_new_ *) 0)
29899   return 0;
29900 if (sizeof (ac__type_new_))
29901   return 0;
29902   ;
29903   return 0;
29904 }
29905 _ACEOF
29906 rm -f conftest.$ac_objext
29907 if { (ac_try="$ac_compile"
29908 case "(($ac_try" in
29909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910   *) ac_try_echo=$ac_try;;
29911 esac
29912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29913   (eval "$ac_compile") 2>conftest.er1
29914   ac_status=$?
29915   grep -v '^ *+' conftest.er1 >conftest.err
29916   rm -f conftest.er1
29917   cat conftest.err >&5
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); } && {
29920          test -z "$ac_c_werror_flag" ||
29921          test ! -s conftest.err
29922        } && test -s conftest.$ac_objext; then
29923   ac_cv_type_boolean=yes
29924 else
29925   echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29927
29928         ac_cv_type_boolean=no
29929 fi
29930
29931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29932 fi
29933 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29934 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29935 if test $ac_cv_type_boolean = yes; then
29936
29937 cat >>confdefs.h <<_ACEOF
29938 #define HAVE_BOOLEAN 1
29939 _ACEOF
29940
29941
29942                             { echo "$as_me:$LINENO: checking for boolean" >&5
29943 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29944 if test "${ac_cv_type_boolean+set}" = set; then
29945   echo $ECHO_N "(cached) $ECHO_C" >&6
29946 else
29947   cat >conftest.$ac_ext <<_ACEOF
29948 /* confdefs.h.  */
29949 _ACEOF
29950 cat confdefs.h >>conftest.$ac_ext
29951 cat >>conftest.$ac_ext <<_ACEOF
29952 /* end confdefs.h.  */
29953
29954                                     #undef HAVE_BOOLEAN
29955                                     #include <stdio.h>
29956                                     #include <jpeglib.h>
29957
29958
29959 typedef boolean ac__type_new_;
29960 int
29961 main ()
29962 {
29963 if ((ac__type_new_ *) 0)
29964   return 0;
29965 if (sizeof (ac__type_new_))
29966   return 0;
29967   ;
29968   return 0;
29969 }
29970 _ACEOF
29971 rm -f conftest.$ac_objext
29972 if { (ac_try="$ac_compile"
29973 case "(($ac_try" in
29974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975   *) ac_try_echo=$ac_try;;
29976 esac
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978   (eval "$ac_compile") 2>conftest.er1
29979   ac_status=$?
29980   grep -v '^ *+' conftest.er1 >conftest.err
29981   rm -f conftest.er1
29982   cat conftest.err >&5
29983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984   (exit $ac_status); } && {
29985          test -z "$ac_c_werror_flag" ||
29986          test ! -s conftest.err
29987        } && test -s conftest.$ac_objext; then
29988   ac_cv_type_boolean=yes
29989 else
29990   echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29992
29993         ac_cv_type_boolean=no
29994 fi
29995
29996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29997 fi
29998 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29999 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
30000
30001 # The cast to long int works around a bug in the HP C Compiler
30002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30004 # This bug is HP SR number 8606223364.
30005 { echo "$as_me:$LINENO: checking size of boolean" >&5
30006 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
30007 if test "${ac_cv_sizeof_boolean+set}" = set; then
30008   echo $ECHO_N "(cached) $ECHO_C" >&6
30009 else
30010   if test "$cross_compiling" = yes; then
30011   # Depending upon the size, compute the lo and hi bounds.
30012 cat >conftest.$ac_ext <<_ACEOF
30013 /* confdefs.h.  */
30014 _ACEOF
30015 cat confdefs.h >>conftest.$ac_ext
30016 cat >>conftest.$ac_ext <<_ACEOF
30017 /* end confdefs.h.  */
30018
30019                                     #undef HAVE_BOOLEAN
30020                                     #include <stdio.h>
30021                                     #include <jpeglib.h>
30022
30023
30024    typedef boolean ac__type_sizeof_;
30025 int
30026 main ()
30027 {
30028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
30029 test_array [0] = 0
30030
30031   ;
30032   return 0;
30033 }
30034 _ACEOF
30035 rm -f conftest.$ac_objext
30036 if { (ac_try="$ac_compile"
30037 case "(($ac_try" in
30038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039   *) ac_try_echo=$ac_try;;
30040 esac
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042   (eval "$ac_compile") 2>conftest.er1
30043   ac_status=$?
30044   grep -v '^ *+' conftest.er1 >conftest.err
30045   rm -f conftest.er1
30046   cat conftest.err >&5
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); } && {
30049          test -z "$ac_c_werror_flag" ||
30050          test ! -s conftest.err
30051        } && test -s conftest.$ac_objext; then
30052   ac_lo=0 ac_mid=0
30053   while :; do
30054     cat >conftest.$ac_ext <<_ACEOF
30055 /* confdefs.h.  */
30056 _ACEOF
30057 cat confdefs.h >>conftest.$ac_ext
30058 cat >>conftest.$ac_ext <<_ACEOF
30059 /* end confdefs.h.  */
30060
30061                                     #undef HAVE_BOOLEAN
30062                                     #include <stdio.h>
30063                                     #include <jpeglib.h>
30064
30065
30066    typedef boolean ac__type_sizeof_;
30067 int
30068 main ()
30069 {
30070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30071 test_array [0] = 0
30072
30073   ;
30074   return 0;
30075 }
30076 _ACEOF
30077 rm -f conftest.$ac_objext
30078 if { (ac_try="$ac_compile"
30079 case "(($ac_try" in
30080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30081   *) ac_try_echo=$ac_try;;
30082 esac
30083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30084   (eval "$ac_compile") 2>conftest.er1
30085   ac_status=$?
30086   grep -v '^ *+' conftest.er1 >conftest.err
30087   rm -f conftest.er1
30088   cat conftest.err >&5
30089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090   (exit $ac_status); } && {
30091          test -z "$ac_c_werror_flag" ||
30092          test ! -s conftest.err
30093        } && test -s conftest.$ac_objext; then
30094   ac_hi=$ac_mid; break
30095 else
30096   echo "$as_me: failed program was:" >&5
30097 sed 's/^/| /' conftest.$ac_ext >&5
30098
30099         ac_lo=`expr $ac_mid + 1`
30100                         if test $ac_lo -le $ac_mid; then
30101                           ac_lo= ac_hi=
30102                           break
30103                         fi
30104                         ac_mid=`expr 2 '*' $ac_mid + 1`
30105 fi
30106
30107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30108   done
30109 else
30110   echo "$as_me: failed program was:" >&5
30111 sed 's/^/| /' conftest.$ac_ext >&5
30112
30113         cat >conftest.$ac_ext <<_ACEOF
30114 /* confdefs.h.  */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h.  */
30119
30120                                     #undef HAVE_BOOLEAN
30121                                     #include <stdio.h>
30122                                     #include <jpeglib.h>
30123
30124
30125    typedef boolean ac__type_sizeof_;
30126 int
30127 main ()
30128 {
30129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
30130 test_array [0] = 0
30131
30132   ;
30133   return 0;
30134 }
30135 _ACEOF
30136 rm -f conftest.$ac_objext
30137 if { (ac_try="$ac_compile"
30138 case "(($ac_try" in
30139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30140   *) ac_try_echo=$ac_try;;
30141 esac
30142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30143   (eval "$ac_compile") 2>conftest.er1
30144   ac_status=$?
30145   grep -v '^ *+' conftest.er1 >conftest.err
30146   rm -f conftest.er1
30147   cat conftest.err >&5
30148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30149   (exit $ac_status); } && {
30150          test -z "$ac_c_werror_flag" ||
30151          test ! -s conftest.err
30152        } && test -s conftest.$ac_objext; then
30153   ac_hi=-1 ac_mid=-1
30154   while :; do
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
30162                                     #undef HAVE_BOOLEAN
30163                                     #include <stdio.h>
30164                                     #include <jpeglib.h>
30165
30166
30167    typedef boolean ac__type_sizeof_;
30168 int
30169 main ()
30170 {
30171 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30172 test_array [0] = 0
30173
30174   ;
30175   return 0;
30176 }
30177 _ACEOF
30178 rm -f conftest.$ac_objext
30179 if { (ac_try="$ac_compile"
30180 case "(($ac_try" in
30181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182   *) ac_try_echo=$ac_try;;
30183 esac
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185   (eval "$ac_compile") 2>conftest.er1
30186   ac_status=$?
30187   grep -v '^ *+' conftest.er1 >conftest.err
30188   rm -f conftest.er1
30189   cat conftest.err >&5
30190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191   (exit $ac_status); } && {
30192          test -z "$ac_c_werror_flag" ||
30193          test ! -s conftest.err
30194        } && test -s conftest.$ac_objext; then
30195   ac_lo=$ac_mid; break
30196 else
30197   echo "$as_me: failed program was:" >&5
30198 sed 's/^/| /' conftest.$ac_ext >&5
30199
30200         ac_hi=`expr '(' $ac_mid ')' - 1`
30201                         if test $ac_mid -le $ac_hi; then
30202                           ac_lo= ac_hi=
30203                           break
30204                         fi
30205                         ac_mid=`expr 2 '*' $ac_mid`
30206 fi
30207
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30209   done
30210 else
30211   echo "$as_me: failed program was:" >&5
30212 sed 's/^/| /' conftest.$ac_ext >&5
30213
30214         ac_lo= ac_hi=
30215 fi
30216
30217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30218 fi
30219
30220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30221 # Binary search between lo and hi bounds.
30222 while test "x$ac_lo" != "x$ac_hi"; do
30223   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30224   cat >conftest.$ac_ext <<_ACEOF
30225 /* confdefs.h.  */
30226 _ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h.  */
30230
30231                                     #undef HAVE_BOOLEAN
30232                                     #include <stdio.h>
30233                                     #include <jpeglib.h>
30234
30235
30236    typedef boolean ac__type_sizeof_;
30237 int
30238 main ()
30239 {
30240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30241 test_array [0] = 0
30242
30243   ;
30244   return 0;
30245 }
30246 _ACEOF
30247 rm -f conftest.$ac_objext
30248 if { (ac_try="$ac_compile"
30249 case "(($ac_try" in
30250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251   *) ac_try_echo=$ac_try;;
30252 esac
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254   (eval "$ac_compile") 2>conftest.er1
30255   ac_status=$?
30256   grep -v '^ *+' conftest.er1 >conftest.err
30257   rm -f conftest.er1
30258   cat conftest.err >&5
30259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); } && {
30261          test -z "$ac_c_werror_flag" ||
30262          test ! -s conftest.err
30263        } && test -s conftest.$ac_objext; then
30264   ac_hi=$ac_mid
30265 else
30266   echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30268
30269         ac_lo=`expr '(' $ac_mid ')' + 1`
30270 fi
30271
30272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30273 done
30274 case $ac_lo in
30275 ?*) ac_cv_sizeof_boolean=$ac_lo;;
30276 '') if test "$ac_cv_type_boolean" = yes; then
30277      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
30278 See \`config.log' for more details." >&5
30279 echo "$as_me: error: cannot compute sizeof (boolean)
30280 See \`config.log' for more details." >&2;}
30281    { (exit 77); exit 77; }; }
30282    else
30283      ac_cv_sizeof_boolean=0
30284    fi ;;
30285 esac
30286 else
30287   cat >conftest.$ac_ext <<_ACEOF
30288 /* confdefs.h.  */
30289 _ACEOF
30290 cat confdefs.h >>conftest.$ac_ext
30291 cat >>conftest.$ac_ext <<_ACEOF
30292 /* end confdefs.h.  */
30293
30294                                     #undef HAVE_BOOLEAN
30295                                     #include <stdio.h>
30296                                     #include <jpeglib.h>
30297
30298
30299    typedef boolean ac__type_sizeof_;
30300 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30301 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30302 #include <stdio.h>
30303 #include <stdlib.h>
30304 int
30305 main ()
30306 {
30307
30308   FILE *f = fopen ("conftest.val", "w");
30309   if (! f)
30310     return 1;
30311   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30312     {
30313       long int i = longval ();
30314       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30315         return 1;
30316       fprintf (f, "%ld\n", i);
30317     }
30318   else
30319     {
30320       unsigned long int i = ulongval ();
30321       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30322         return 1;
30323       fprintf (f, "%lu\n", i);
30324     }
30325   return ferror (f) || fclose (f) != 0;
30326
30327   ;
30328   return 0;
30329 }
30330 _ACEOF
30331 rm -f conftest$ac_exeext
30332 if { (ac_try="$ac_link"
30333 case "(($ac_try" in
30334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335   *) ac_try_echo=$ac_try;;
30336 esac
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338   (eval "$ac_link") 2>&5
30339   ac_status=$?
30340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30342   { (case "(($ac_try" in
30343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30344   *) ac_try_echo=$ac_try;;
30345 esac
30346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30347   (eval "$ac_try") 2>&5
30348   ac_status=$?
30349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350   (exit $ac_status); }; }; then
30351   ac_cv_sizeof_boolean=`cat conftest.val`
30352 else
30353   echo "$as_me: program exited with status $ac_status" >&5
30354 echo "$as_me: failed program was:" >&5
30355 sed 's/^/| /' conftest.$ac_ext >&5
30356
30357 ( exit $ac_status )
30358 if test "$ac_cv_type_boolean" = yes; then
30359      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
30360 See \`config.log' for more details." >&5
30361 echo "$as_me: error: cannot compute sizeof (boolean)
30362 See \`config.log' for more details." >&2;}
30363    { (exit 77); exit 77; }; }
30364    else
30365      ac_cv_sizeof_boolean=0
30366    fi
30367 fi
30368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30369 fi
30370 rm -f conftest.val
30371 fi
30372 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
30373 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
30374
30375
30376
30377 cat >>confdefs.h <<_ACEOF
30378 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
30379 _ACEOF
30380
30381
30382                             cat >>confdefs.h <<_ACEOF
30383 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
30384 _ACEOF
30385
30386
30387 fi
30388
30389                 fi
30390             fi
30391         fi
30392     fi
30393 fi
30394
30395
30396 TIFF_LINK=
30397 TIFF_PREREQ_LINKS=-lm
30398 if test "$wxUSE_LIBTIFF" != "no" ; then
30399     cat >>confdefs.h <<\_ACEOF
30400 #define wxUSE_LIBTIFF 1
30401 _ACEOF
30402
30403
30404     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
30405                         if test "$wxUSE_LIBJPEG" = "sys"; then
30406             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
30407         fi
30408         if test "$wxUSE_ZLIB" = "sys"; then
30409             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
30410         fi
30411         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
30412 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
30413 if test "${ac_cv_header_tiffio_h+set}" = set; then
30414   echo $ECHO_N "(cached) $ECHO_C" >&6
30415 else
30416   cat >conftest.$ac_ext <<_ACEOF
30417 /* confdefs.h.  */
30418 _ACEOF
30419 cat confdefs.h >>conftest.$ac_ext
30420 cat >>conftest.$ac_ext <<_ACEOF
30421 /* end confdefs.h.  */
30422
30423
30424
30425 #include <tiffio.h>
30426 _ACEOF
30427 rm -f conftest.$ac_objext
30428 if { (ac_try="$ac_compile"
30429 case "(($ac_try" in
30430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431   *) ac_try_echo=$ac_try;;
30432 esac
30433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434   (eval "$ac_compile") 2>conftest.er1
30435   ac_status=$?
30436   grep -v '^ *+' conftest.er1 >conftest.err
30437   rm -f conftest.er1
30438   cat conftest.err >&5
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); } && {
30441          test -z "$ac_c_werror_flag" ||
30442          test ! -s conftest.err
30443        } && test -s conftest.$ac_objext; then
30444   ac_cv_header_tiffio_h=yes
30445 else
30446   echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.$ac_ext >&5
30448
30449         ac_cv_header_tiffio_h=no
30450 fi
30451
30452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30453 fi
30454 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
30455 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
30456 if test $ac_cv_header_tiffio_h = yes; then
30457
30458                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
30459 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
30460 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
30461   echo $ECHO_N "(cached) $ECHO_C" >&6
30462 else
30463   ac_check_lib_save_LIBS=$LIBS
30464 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
30465 cat >conftest.$ac_ext <<_ACEOF
30466 /* confdefs.h.  */
30467 _ACEOF
30468 cat confdefs.h >>conftest.$ac_ext
30469 cat >>conftest.$ac_ext <<_ACEOF
30470 /* end confdefs.h.  */
30471
30472 /* Override any GCC internal prototype to avoid an error.
30473    Use char because int might match the return type of a GCC
30474    builtin and then its argument prototype would still apply.  */
30475 #ifdef __cplusplus
30476 extern "C"
30477 #endif
30478 char TIFFError ();
30479 int
30480 main ()
30481 {
30482 return TIFFError ();
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494   (eval "$ac_link") 2>conftest.er1
30495   ac_status=$?
30496   grep -v '^ *+' conftest.er1 >conftest.err
30497   rm -f conftest.er1
30498   cat conftest.err >&5
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); } && {
30501          test -z "$ac_c_werror_flag" ||
30502          test ! -s conftest.err
30503        } && test -s conftest$ac_exeext &&
30504        $as_test_x conftest$ac_exeext; then
30505   ac_cv_lib_tiff_TIFFError=yes
30506 else
30507   echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30509
30510         ac_cv_lib_tiff_TIFFError=no
30511 fi
30512
30513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30514       conftest$ac_exeext conftest.$ac_ext
30515 LIBS=$ac_check_lib_save_LIBS
30516 fi
30517 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
30518 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
30519 if test $ac_cv_lib_tiff_TIFFError = yes; then
30520   TIFF_LINK=" -ltiff"
30521 fi
30522
30523
30524 fi
30525
30526
30527
30528         if test "x$TIFF_LINK" = "x" ; then
30529             if test "$wxUSE_LIBTIFF" = "sys" ; then
30530                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
30531 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
30532    { (exit 1); exit 1; }; }
30533             else
30534                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
30535 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
30536                 wxUSE_LIBTIFF=builtin
30537             fi
30538         else
30539                         wxUSE_LIBTIFF=sys
30540         fi
30541     fi
30542 fi
30543
30544
30545 if test "$wxUSE_WCHAR_T" != "yes"; then
30546     if test "$wxUSE_EXPAT" != "no"; then
30547         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
30548 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
30549         wxUSE_EXPAT=no
30550     fi
30551     if test "$wxUSE_XML" != "no"; then
30552         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30553 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30554         wxUSE_XML=no
30555     fi
30556 fi
30557
30558 if test "$wxUSE_EXPAT" != "no"; then
30559     wxUSE_XML=yes
30560     cat >>confdefs.h <<\_ACEOF
30561 #define wxUSE_EXPAT 1
30562 _ACEOF
30563
30564     cat >>confdefs.h <<\_ACEOF
30565 #define wxUSE_XML 1
30566 _ACEOF
30567
30568
30569     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30570         { echo "$as_me:$LINENO: checking for expat.h" >&5
30571 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30572 if test "${ac_cv_header_expat_h+set}" = set; then
30573   echo $ECHO_N "(cached) $ECHO_C" >&6
30574 else
30575   cat >conftest.$ac_ext <<_ACEOF
30576 /* confdefs.h.  */
30577 _ACEOF
30578 cat confdefs.h >>conftest.$ac_ext
30579 cat >>conftest.$ac_ext <<_ACEOF
30580 /* end confdefs.h.  */
30581
30582
30583 #include <expat.h>
30584 _ACEOF
30585 rm -f conftest.$ac_objext
30586 if { (ac_try="$ac_compile"
30587 case "(($ac_try" in
30588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30589   *) ac_try_echo=$ac_try;;
30590 esac
30591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30592   (eval "$ac_compile") 2>conftest.er1
30593   ac_status=$?
30594   grep -v '^ *+' conftest.er1 >conftest.err
30595   rm -f conftest.er1
30596   cat conftest.err >&5
30597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598   (exit $ac_status); } && {
30599          test -z "$ac_c_werror_flag" ||
30600          test ! -s conftest.err
30601        } && test -s conftest.$ac_objext; then
30602   ac_cv_header_expat_h=yes
30603 else
30604   echo "$as_me: failed program was:" >&5
30605 sed 's/^/| /' conftest.$ac_ext >&5
30606
30607         ac_cv_header_expat_h=no
30608 fi
30609
30610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30611 fi
30612 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30613 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30614 if test $ac_cv_header_expat_h = yes; then
30615   found_expat_h=1
30616 fi
30617
30618
30619         if test "x$found_expat_h" = "x1"; then
30620                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30621 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30622 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30623   echo $ECHO_N "(cached) $ECHO_C" >&6
30624 else
30625
30626                 ac_ext=cpp
30627 ac_cpp='$CXXCPP $CPPFLAGS'
30628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30631
30632                 cat >conftest.$ac_ext <<_ACEOF
30633 /* confdefs.h.  */
30634 _ACEOF
30635 cat confdefs.h >>conftest.$ac_ext
30636 cat >>conftest.$ac_ext <<_ACEOF
30637 /* end confdefs.h.  */
30638 #include <expat.h>
30639 int
30640 main ()
30641 {
30642
30643   ;
30644   return 0;
30645 }
30646 _ACEOF
30647 rm -f conftest.$ac_objext
30648 if { (ac_try="$ac_compile"
30649 case "(($ac_try" in
30650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651   *) ac_try_echo=$ac_try;;
30652 esac
30653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654   (eval "$ac_compile") 2>conftest.er1
30655   ac_status=$?
30656   grep -v '^ *+' conftest.er1 >conftest.err
30657   rm -f conftest.er1
30658   cat conftest.err >&5
30659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660   (exit $ac_status); } && {
30661          test -z "$ac_cxx_werror_flag" ||
30662          test ! -s conftest.err
30663        } && test -s conftest.$ac_objext; then
30664   wx_cv_expat_is_not_broken=yes
30665 else
30666   echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30668
30669         wx_cv_expat_is_not_broken=no
30670
30671 fi
30672
30673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30674                 ac_ext=c
30675 ac_cpp='$CPP $CPPFLAGS'
30676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30679
30680
30681
30682 fi
30683 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30684 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30685             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30686                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30687 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30688 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30689   echo $ECHO_N "(cached) $ECHO_C" >&6
30690 else
30691   ac_check_lib_save_LIBS=$LIBS
30692 LIBS="-lexpat  $LIBS"
30693 cat >conftest.$ac_ext <<_ACEOF
30694 /* confdefs.h.  */
30695 _ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h.  */
30699
30700 /* Override any GCC internal prototype to avoid an error.
30701    Use char because int might match the return type of a GCC
30702    builtin and then its argument prototype would still apply.  */
30703 #ifdef __cplusplus
30704 extern "C"
30705 #endif
30706 char XML_ParserCreate ();
30707 int
30708 main ()
30709 {
30710 return XML_ParserCreate ();
30711   ;
30712   return 0;
30713 }
30714 _ACEOF
30715 rm -f conftest.$ac_objext conftest$ac_exeext
30716 if { (ac_try="$ac_link"
30717 case "(($ac_try" in
30718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719   *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722   (eval "$ac_link") 2>conftest.er1
30723   ac_status=$?
30724   grep -v '^ *+' conftest.er1 >conftest.err
30725   rm -f conftest.er1
30726   cat conftest.err >&5
30727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728   (exit $ac_status); } && {
30729          test -z "$ac_c_werror_flag" ||
30730          test ! -s conftest.err
30731        } && test -s conftest$ac_exeext &&
30732        $as_test_x conftest$ac_exeext; then
30733   ac_cv_lib_expat_XML_ParserCreate=yes
30734 else
30735   echo "$as_me: failed program was:" >&5
30736 sed 's/^/| /' conftest.$ac_ext >&5
30737
30738         ac_cv_lib_expat_XML_ParserCreate=no
30739 fi
30740
30741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30742       conftest$ac_exeext conftest.$ac_ext
30743 LIBS=$ac_check_lib_save_LIBS
30744 fi
30745 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30746 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30747 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30748   EXPAT_LINK=" -lexpat"
30749 fi
30750
30751             fi
30752         fi
30753         if test "x$EXPAT_LINK" = "x" ; then
30754             if test "$wxUSE_EXPAT" = "sys" ; then
30755                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30756 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30757    { (exit 1); exit 1; }; }
30758             else
30759                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30760 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30761                 wxUSE_EXPAT=builtin
30762             fi
30763         else
30764                         wxUSE_EXPAT=sys
30765         fi
30766     fi
30767     if test "$wxUSE_EXPAT" = "builtin" ; then
30768                 subdirs="$subdirs src/expat"
30769
30770     fi
30771 fi
30772
30773
30774
30775 if test "$wxUSE_LIBMSPACK" != "no"; then
30776     { echo "$as_me:$LINENO: checking for mspack.h" >&5
30777 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30778 if test "${ac_cv_header_mspack_h+set}" = set; then
30779   echo $ECHO_N "(cached) $ECHO_C" >&6
30780 else
30781   cat >conftest.$ac_ext <<_ACEOF
30782 /* confdefs.h.  */
30783 _ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h.  */
30787
30788
30789 #include <mspack.h>
30790 _ACEOF
30791 rm -f conftest.$ac_objext
30792 if { (ac_try="$ac_compile"
30793 case "(($ac_try" in
30794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30795   *) ac_try_echo=$ac_try;;
30796 esac
30797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30798   (eval "$ac_compile") 2>conftest.er1
30799   ac_status=$?
30800   grep -v '^ *+' conftest.er1 >conftest.err
30801   rm -f conftest.er1
30802   cat conftest.err >&5
30803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804   (exit $ac_status); } && {
30805          test -z "$ac_c_werror_flag" ||
30806          test ! -s conftest.err
30807        } && test -s conftest.$ac_objext; then
30808   ac_cv_header_mspack_h=yes
30809 else
30810   echo "$as_me: failed program was:" >&5
30811 sed 's/^/| /' conftest.$ac_ext >&5
30812
30813         ac_cv_header_mspack_h=no
30814 fi
30815
30816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30817 fi
30818 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30819 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30820 if test $ac_cv_header_mspack_h = yes; then
30821   found_mspack_h=1
30822 fi
30823
30824
30825     if test "x$found_mspack_h" = "x1"; then
30826         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
30827 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
30828 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
30829   echo $ECHO_N "(cached) $ECHO_C" >&6
30830 else
30831   ac_check_lib_save_LIBS=$LIBS
30832 LIBS="-lmspack  $LIBS"
30833 cat >conftest.$ac_ext <<_ACEOF
30834 /* confdefs.h.  */
30835 _ACEOF
30836 cat confdefs.h >>conftest.$ac_ext
30837 cat >>conftest.$ac_ext <<_ACEOF
30838 /* end confdefs.h.  */
30839
30840 /* Override any GCC internal prototype to avoid an error.
30841    Use char because int might match the return type of a GCC
30842    builtin and then its argument prototype would still apply.  */
30843 #ifdef __cplusplus
30844 extern "C"
30845 #endif
30846 char mspack_create_chm_decompressor ();
30847 int
30848 main ()
30849 {
30850 return mspack_create_chm_decompressor ();
30851   ;
30852   return 0;
30853 }
30854 _ACEOF
30855 rm -f conftest.$ac_objext conftest$ac_exeext
30856 if { (ac_try="$ac_link"
30857 case "(($ac_try" in
30858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859   *) ac_try_echo=$ac_try;;
30860 esac
30861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862   (eval "$ac_link") 2>conftest.er1
30863   ac_status=$?
30864   grep -v '^ *+' conftest.er1 >conftest.err
30865   rm -f conftest.er1
30866   cat conftest.err >&5
30867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868   (exit $ac_status); } && {
30869          test -z "$ac_c_werror_flag" ||
30870          test ! -s conftest.err
30871        } && test -s conftest$ac_exeext &&
30872        $as_test_x conftest$ac_exeext; then
30873   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
30874 else
30875   echo "$as_me: failed program was:" >&5
30876 sed 's/^/| /' conftest.$ac_ext >&5
30877
30878         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
30879 fi
30880
30881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30882       conftest$ac_exeext conftest.$ac_ext
30883 LIBS=$ac_check_lib_save_LIBS
30884 fi
30885 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
30886 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
30887 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
30888   MSPACK_LINK=" -lmspack"
30889 fi
30890
30891     fi
30892     if test "x$MSPACK_LINK" = "x" ; then
30893         wxUSE_LIBMSPACK=no
30894     fi
30895 fi
30896
30897 if test "$wxUSE_LIBMSPACK" != "no"; then
30898     cat >>confdefs.h <<\_ACEOF
30899 #define wxUSE_LIBMSPACK 1
30900 _ACEOF
30901
30902 fi
30903
30904
30905
30906 AFMINSTALL=
30907 WIN32INSTALL=
30908
30909 TOOLKIT=
30910 TOOLKIT_INCLUDE=
30911 WIDGET_SET=
30912
30913 if test "$USE_WIN32" = 1 ; then
30914
30915 for ac_header in w32api.h
30916 do
30917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30921   echo $ECHO_N "(cached) $ECHO_C" >&6
30922 else
30923   cat >conftest.$ac_ext <<_ACEOF
30924 /* confdefs.h.  */
30925 _ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h.  */
30929
30930
30931 #include <$ac_header>
30932 _ACEOF
30933 rm -f conftest.$ac_objext
30934 if { (ac_try="$ac_compile"
30935 case "(($ac_try" in
30936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937   *) ac_try_echo=$ac_try;;
30938 esac
30939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940   (eval "$ac_compile") 2>conftest.er1
30941   ac_status=$?
30942   grep -v '^ *+' conftest.er1 >conftest.err
30943   rm -f conftest.er1
30944   cat conftest.err >&5
30945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946   (exit $ac_status); } && {
30947          test -z "$ac_c_werror_flag" ||
30948          test ! -s conftest.err
30949        } && test -s conftest.$ac_objext; then
30950   eval "$as_ac_Header=yes"
30951 else
30952   echo "$as_me: failed program was:" >&5
30953 sed 's/^/| /' conftest.$ac_ext >&5
30954
30955         eval "$as_ac_Header=no"
30956 fi
30957
30958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30959 fi
30960 ac_res=`eval echo '${'$as_ac_Header'}'`
30961                { echo "$as_me:$LINENO: result: $ac_res" >&5
30962 echo "${ECHO_T}$ac_res" >&6; }
30963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30964   cat >>confdefs.h <<_ACEOF
30965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30966 _ACEOF
30967
30968 fi
30969
30970 done
30971
30972     { echo "$as_me:$LINENO: checking for windows.h" >&5
30973 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30974 if test "${ac_cv_header_windows_h+set}" = set; then
30975   echo $ECHO_N "(cached) $ECHO_C" >&6
30976 else
30977   cat >conftest.$ac_ext <<_ACEOF
30978 /* confdefs.h.  */
30979 _ACEOF
30980 cat confdefs.h >>conftest.$ac_ext
30981 cat >>conftest.$ac_ext <<_ACEOF
30982 /* end confdefs.h.  */
30983
30984
30985 #include <windows.h>
30986 _ACEOF
30987 rm -f conftest.$ac_objext
30988 if { (ac_try="$ac_compile"
30989 case "(($ac_try" in
30990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30991   *) ac_try_echo=$ac_try;;
30992 esac
30993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30994   (eval "$ac_compile") 2>conftest.er1
30995   ac_status=$?
30996   grep -v '^ *+' conftest.er1 >conftest.err
30997   rm -f conftest.er1
30998   cat conftest.err >&5
30999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000   (exit $ac_status); } && {
31001          test -z "$ac_c_werror_flag" ||
31002          test ! -s conftest.err
31003        } && test -s conftest.$ac_objext; then
31004   ac_cv_header_windows_h=yes
31005 else
31006   echo "$as_me: failed program was:" >&5
31007 sed 's/^/| /' conftest.$ac_ext >&5
31008
31009         ac_cv_header_windows_h=no
31010 fi
31011
31012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31013 fi
31014 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
31015 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
31016 if test $ac_cv_header_windows_h = yes; then
31017   :
31018 else
31019
31020         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
31021 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
31022    { (exit 1); exit 1; }; }
31023
31024 fi
31025
31026
31027
31028             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
31029
31030     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
31031         LIBS="$LIBS -loleacc"
31032     fi
31033
31034     case "${host}" in
31035         *-*-cygwin* )
31036                         LIBS="$LIBS -lkernel32 -luser32"
31037     esac
31038
31039         if test "$wxUSE_ODBC" = "sys" ; then
31040         wxUSE_ODBC = "yes"
31041     fi
31042     if test "$wxUSE_ODBC" = "yes" ; then
31043         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
31044         cat >>confdefs.h <<\_ACEOF
31045 #define wxUSE_ODBC 1
31046 _ACEOF
31047
31048     fi
31049
31050         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
31051     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
31052
31053                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
31054
31055         WIN32INSTALL=win32install
31056
31057         { echo "$as_me:$LINENO: checking for pbt.h" >&5
31058 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
31059 if test "${ac_cv_header_pbt_h+set}" = set; then
31060   echo $ECHO_N "(cached) $ECHO_C" >&6
31061 else
31062   cat >conftest.$ac_ext <<_ACEOF
31063 /* confdefs.h.  */
31064 _ACEOF
31065 cat confdefs.h >>conftest.$ac_ext
31066 cat >>conftest.$ac_ext <<_ACEOF
31067 /* end confdefs.h.  */
31068
31069
31070 #include <pbt.h>
31071 _ACEOF
31072 rm -f conftest.$ac_objext
31073 if { (ac_try="$ac_compile"
31074 case "(($ac_try" in
31075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076   *) ac_try_echo=$ac_try;;
31077 esac
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079   (eval "$ac_compile") 2>conftest.er1
31080   ac_status=$?
31081   grep -v '^ *+' conftest.er1 >conftest.err
31082   rm -f conftest.er1
31083   cat conftest.err >&5
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); } && {
31086          test -z "$ac_c_werror_flag" ||
31087          test ! -s conftest.err
31088        } && test -s conftest.$ac_objext; then
31089   ac_cv_header_pbt_h=yes
31090 else
31091   echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31093
31094         ac_cv_header_pbt_h=no
31095 fi
31096
31097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31098 fi
31099 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
31100 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
31101 if test $ac_cv_header_pbt_h = yes; then
31102   :
31103 else
31104   cat >>confdefs.h <<\_ACEOF
31105 #define NEED_PBT_H 1
31106 _ACEOF
31107
31108 fi
31109
31110
31111 fi
31112
31113 if test "$wxUSE_GUI" = "yes"; then
31114     USE_GUI=1
31115
31116     GUI_TK_LIBRARY=
31117
31118     WXGTK12=
31119     WXGTK127=
31120     WXGTK20=
31121     WXGPE=
31122
31123     if test "$wxUSE_COCOA" = 1 ; then
31124         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
31125             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
31126 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
31127             wxUSE_PRINTING_ARCHITECTURE=no
31128         fi
31129         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
31130             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
31131 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
31132             wxUSE_DRAG_AND_DROP=no
31133         fi
31134         if test "$wxUSE_DRAGIMAGE" = "yes"; then
31135             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
31136 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
31137             wxUSE_DRAGIMAGE=no
31138         fi
31139     fi
31140
31141     if test "$wxUSE_MSW" = 1 ; then
31142         TOOLKIT=MSW
31143         GUIDIST=MSW_DIST
31144
31145                 case "${host}" in
31146             *-*-mingw32* )
31147                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
31148         esac
31149     fi
31150
31151     if test "$wxUSE_GTK" = 1; then
31152                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
31153 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
31154
31155         gtk_version_cached=1
31156         if test "${wx_cv_lib_gtk+set}" = set; then
31157   echo $ECHO_N "(cached) $ECHO_C" >&6
31158 else
31159
31160                                                 gtk_version_cached=0
31161                 { echo "$as_me:$LINENO: result: " >&5
31162 echo "${ECHO_T}" >&6; }
31163
31164                                                 GTK_MODULES=
31165                 if test "$wxUSE_THREADS" = "yes"; then
31166                     GTK_MODULES=gthread
31167                 fi
31168
31169                                 wx_cv_lib_gtk=
31170                 if test "x$wxGTK_VERSION" != "x1"
31171                 then
31172                                                                                 case "${host}" in
31173                         *-*-solaris2* )
31174                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
31175                                 enable_gtktest=no
31176                             fi
31177                     esac
31178
31179                     # Check whether --enable-gtktest was given.
31180 if test "${enable_gtktest+set}" = set; then
31181   enableval=$enable_gtktest;
31182 else
31183   enable_gtktest=yes
31184 fi
31185
31186
31187   pkg_config_args=gtk+-2.0
31188   for module in . $GTK_MODULES
31189   do
31190       case "$module" in
31191          gthread)
31192              pkg_config_args="$pkg_config_args gthread-2.0"
31193          ;;
31194       esac
31195   done
31196
31197   no_gtk=""
31198
31199   # Extract the first word of "pkg-config", so it can be a program name with args.
31200 set dummy pkg-config; ac_word=$2
31201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31203 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31204   echo $ECHO_N "(cached) $ECHO_C" >&6
31205 else
31206   case $PKG_CONFIG in
31207   [\\/]* | ?:[\\/]*)
31208   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31209   ;;
31210   *)
31211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31212 for as_dir in $PATH
31213 do
31214   IFS=$as_save_IFS
31215   test -z "$as_dir" && as_dir=.
31216   for ac_exec_ext in '' $ac_executable_extensions; do
31217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31218     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31220     break 2
31221   fi
31222 done
31223 done
31224 IFS=$as_save_IFS
31225
31226   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
31227   ;;
31228 esac
31229 fi
31230 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31231 if test -n "$PKG_CONFIG"; then
31232   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31233 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31234 else
31235   { echo "$as_me:$LINENO: result: no" >&5
31236 echo "${ECHO_T}no" >&6; }
31237 fi
31238
31239
31240
31241   if test x$PKG_CONFIG != xno ; then
31242     if pkg-config --atleast-pkgconfig-version 0.7 ; then
31243       :
31244     else
31245       echo "*** pkg-config too old; version 0.7 or better required."
31246       no_gtk=yes
31247       PKG_CONFIG=no
31248     fi
31249   else
31250     no_gtk=yes
31251   fi
31252
31253   min_gtk_version=2.0.0
31254   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
31255 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
31256
31257   if test x$PKG_CONFIG != xno ; then
31258     ## don't try to run the test against uninstalled libtool libs
31259     if $PKG_CONFIG --uninstalled $pkg_config_args; then
31260           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
31261           enable_gtktest=no
31262     fi
31263
31264     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
31265           :
31266     else
31267           no_gtk=yes
31268     fi
31269   fi
31270
31271   if test x"$no_gtk" = x ; then
31272     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
31273     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
31274     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31275            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31276     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31277            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31278     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31279            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31280     if test "x$enable_gtktest" = "xyes" ; then
31281       ac_save_CFLAGS="$CFLAGS"
31282       ac_save_LIBS="$LIBS"
31283       CFLAGS="$CFLAGS $GTK_CFLAGS"
31284       LIBS="$GTK_LIBS $LIBS"
31285       rm -f conf.gtktest
31286       if test "$cross_compiling" = yes; then
31287   echo $ac_n "cross compiling; assumed OK... $ac_c"
31288 else
31289   cat >conftest.$ac_ext <<_ACEOF
31290 /* confdefs.h.  */
31291 _ACEOF
31292 cat confdefs.h >>conftest.$ac_ext
31293 cat >>conftest.$ac_ext <<_ACEOF
31294 /* end confdefs.h.  */
31295
31296 #include <gtk/gtk.h>
31297 #include <stdio.h>
31298 #include <stdlib.h>
31299
31300 int
31301 main ()
31302 {
31303   int major, minor, micro;
31304   char *tmp_version;
31305
31306   system ("touch conf.gtktest");
31307
31308   /* HP/UX 9 (%@#!) writes to sscanf strings */
31309   tmp_version = g_strdup("$min_gtk_version");
31310   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31311      printf("%s, bad version string\n", "$min_gtk_version");
31312      exit(1);
31313    }
31314
31315   if ((gtk_major_version != $gtk_config_major_version) ||
31316       (gtk_minor_version != $gtk_config_minor_version) ||
31317       (gtk_micro_version != $gtk_config_micro_version))
31318     {
31319       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31320              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31321              gtk_major_version, gtk_minor_version, gtk_micro_version);
31322       printf ("*** was found! If pkg-config was correct, then it is best\n");
31323       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31324       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31325       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31326       printf("*** required on your system.\n");
31327       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
31328       printf("*** to point to the correct configuration files\n");
31329     }
31330   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31331            (gtk_minor_version != GTK_MINOR_VERSION) ||
31332            (gtk_micro_version != GTK_MICRO_VERSION))
31333     {
31334       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31335              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31336       printf("*** library (version %d.%d.%d)\n",
31337              gtk_major_version, gtk_minor_version, gtk_micro_version);
31338     }
31339   else
31340     {
31341       if ((gtk_major_version > major) ||
31342         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31343         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31344       {
31345         return 0;
31346        }
31347      else
31348       {
31349         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31350                gtk_major_version, gtk_minor_version, gtk_micro_version);
31351         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31352                major, minor, micro);
31353         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31354         printf("***\n");
31355         printf("*** If you have already installed a sufficiently new version, this error\n");
31356         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
31357         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31358         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
31359         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
31360         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31361         printf("*** so that the correct libraries are found at run-time))\n");
31362       }
31363     }
31364   return 1;
31365 }
31366
31367 _ACEOF
31368 rm -f conftest$ac_exeext
31369 if { (ac_try="$ac_link"
31370 case "(($ac_try" in
31371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31372   *) ac_try_echo=$ac_try;;
31373 esac
31374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31375   (eval "$ac_link") 2>&5
31376   ac_status=$?
31377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31379   { (case "(($ac_try" in
31380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31381   *) ac_try_echo=$ac_try;;
31382 esac
31383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31384   (eval "$ac_try") 2>&5
31385   ac_status=$?
31386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387   (exit $ac_status); }; }; then
31388   :
31389 else
31390   echo "$as_me: program exited with status $ac_status" >&5
31391 echo "$as_me: failed program was:" >&5
31392 sed 's/^/| /' conftest.$ac_ext >&5
31393
31394 ( exit $ac_status )
31395 no_gtk=yes
31396 fi
31397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31398 fi
31399
31400
31401        CFLAGS="$ac_save_CFLAGS"
31402        LIBS="$ac_save_LIBS"
31403      fi
31404   fi
31405   if test "x$no_gtk" = x ; then
31406      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
31407 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
31408      wx_cv_lib_gtk=2.0
31409   else
31410      { echo "$as_me:$LINENO: result: no" >&5
31411 echo "${ECHO_T}no" >&6; }
31412      if test "$PKG_CONFIG" = "no" ; then
31413        echo "*** A new enough version of pkg-config was not found."
31414        echo "*** See http://pkgconfig.sourceforge.net"
31415      else
31416        if test -f conf.gtktest ; then
31417         :
31418        else
31419           echo "*** Could not run GTK+ test program, checking why..."
31420           ac_save_CFLAGS="$CFLAGS"
31421           ac_save_LIBS="$LIBS"
31422           CFLAGS="$CFLAGS $GTK_CFLAGS"
31423           LIBS="$LIBS $GTK_LIBS"
31424           cat >conftest.$ac_ext <<_ACEOF
31425 /* confdefs.h.  */
31426 _ACEOF
31427 cat confdefs.h >>conftest.$ac_ext
31428 cat >>conftest.$ac_ext <<_ACEOF
31429 /* end confdefs.h.  */
31430
31431 #include <gtk/gtk.h>
31432 #include <stdio.h>
31433
31434 int
31435 main ()
31436 {
31437  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31438   ;
31439   return 0;
31440 }
31441 _ACEOF
31442 rm -f conftest.$ac_objext conftest$ac_exeext
31443 if { (ac_try="$ac_link"
31444 case "(($ac_try" in
31445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446   *) ac_try_echo=$ac_try;;
31447 esac
31448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449   (eval "$ac_link") 2>conftest.er1
31450   ac_status=$?
31451   grep -v '^ *+' conftest.er1 >conftest.err
31452   rm -f conftest.er1
31453   cat conftest.err >&5
31454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455   (exit $ac_status); } && {
31456          test -z "$ac_c_werror_flag" ||
31457          test ! -s conftest.err
31458        } && test -s conftest$ac_exeext &&
31459        $as_test_x conftest$ac_exeext; then
31460    echo "*** The test program compiled, but did not run. This usually means"
31461           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
31462           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
31463           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31464           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31465           echo "*** is required on your system"
31466           echo "***"
31467           echo "*** If you have an old version installed, it is best to remove it, although"
31468           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31469 else
31470   echo "$as_me: failed program was:" >&5
31471 sed 's/^/| /' conftest.$ac_ext >&5
31472
31473          echo "*** The test program failed to compile or link. See the file config.log for the"
31474           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
31475 fi
31476
31477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31478       conftest$ac_exeext conftest.$ac_ext
31479           CFLAGS="$ac_save_CFLAGS"
31480           LIBS="$ac_save_LIBS"
31481        fi
31482      fi
31483      GTK_CFLAGS=""
31484      GTK_LIBS=""
31485      :
31486   fi
31487
31488
31489   rm -f conf.gtktest
31490
31491
31492                                         case "${host}" in
31493                         *-*-solaris2* )
31494                             if test "$wxUSE_SHARED" != "yes"; then
31495                                 GTK_LIBS="$GTK_LIBS -lX11"
31496                             fi
31497                     esac
31498                 fi
31499
31500                                 if test -z "$wx_cv_lib_gtk"; then
31501                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
31502
31503 # Check whether --with-gtk-prefix was given.
31504 if test "${with_gtk_prefix+set}" = set; then
31505   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31506 else
31507   gtk_config_prefix=""
31508 fi
31509
31510
31511 # Check whether --with-gtk-exec-prefix was given.
31512 if test "${with_gtk_exec_prefix+set}" = set; then
31513   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31514 else
31515   gtk_config_exec_prefix=""
31516 fi
31517
31518 # Check whether --enable-gtktest was given.
31519 if test "${enable_gtktest+set}" = set; then
31520   enableval=$enable_gtktest;
31521 else
31522   enable_gtktest=yes
31523 fi
31524
31525
31526   for module in . $GTK_MODULES
31527   do
31528       case "$module" in
31529          gthread)
31530              gtk_config_args="$gtk_config_args gthread"
31531          ;;
31532       esac
31533   done
31534
31535   if test x$gtk_config_exec_prefix != x ; then
31536      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31537      if test x${GTK_CONFIG+set} != xset ; then
31538         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31539      fi
31540   fi
31541   if test x$gtk_config_prefix != x ; then
31542      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31543      if test x${GTK_CONFIG+set} != xset ; then
31544         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31545      fi
31546   fi
31547
31548   # Extract the first word of "gtk-config", so it can be a program name with args.
31549 set dummy gtk-config; ac_word=$2
31550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31552 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31553   echo $ECHO_N "(cached) $ECHO_C" >&6
31554 else
31555   case $GTK_CONFIG in
31556   [\\/]* | ?:[\\/]*)
31557   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31558   ;;
31559   *)
31560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31561 for as_dir in $PATH
31562 do
31563   IFS=$as_save_IFS
31564   test -z "$as_dir" && as_dir=.
31565   for ac_exec_ext in '' $ac_executable_extensions; do
31566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31567     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31569     break 2
31570   fi
31571 done
31572 done
31573 IFS=$as_save_IFS
31574
31575   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31576   ;;
31577 esac
31578 fi
31579 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31580 if test -n "$GTK_CONFIG"; then
31581   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31582 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31583 else
31584   { echo "$as_me:$LINENO: result: no" >&5
31585 echo "${ECHO_T}no" >&6; }
31586 fi
31587
31588
31589   min_gtk_version=1.2.7
31590   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31591 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31592   no_gtk=""
31593   if test "$GTK_CONFIG" = "no" ; then
31594     no_gtk=yes
31595   else
31596     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31597     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31598     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31599            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31600     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31601            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31602     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31603            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31604     if test "x$enable_gtktest" = "xyes" ; then
31605       ac_save_CFLAGS="$CFLAGS"
31606       ac_save_LIBS="$LIBS"
31607       CFLAGS="$CFLAGS $GTK_CFLAGS"
31608       LIBS="$GTK_LIBS $LIBS"
31609       rm -f conf.gtktest
31610       if test "$cross_compiling" = yes; then
31611   echo $ac_n "cross compiling; assumed OK... $ac_c"
31612 else
31613   cat >conftest.$ac_ext <<_ACEOF
31614 /* confdefs.h.  */
31615 _ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h.  */
31619
31620 #include <gtk/gtk.h>
31621 #include <stdio.h>
31622 #include <stdlib.h>
31623
31624 int
31625 main ()
31626 {
31627   int major, minor, micro;
31628   char *tmp_version;
31629
31630   system ("touch conf.gtktest");
31631
31632   /* HP/UX 9 (%@#!) writes to sscanf strings */
31633   tmp_version = g_strdup("$min_gtk_version");
31634   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31635      printf("%s, bad version string\n", "$min_gtk_version");
31636      exit(1);
31637    }
31638
31639   if ((gtk_major_version != $gtk_config_major_version) ||
31640       (gtk_minor_version != $gtk_config_minor_version) ||
31641       (gtk_micro_version != $gtk_config_micro_version))
31642     {
31643       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31644              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31645              gtk_major_version, gtk_minor_version, gtk_micro_version);
31646       printf ("*** was found! If gtk-config was correct, then it is best\n");
31647       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31648       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31649       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31650       printf("*** required on your system.\n");
31651       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31652       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31653       printf("*** before re-running configure\n");
31654     }
31655 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31656   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31657            (gtk_minor_version != GTK_MINOR_VERSION) ||
31658            (gtk_micro_version != GTK_MICRO_VERSION))
31659     {
31660       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31661              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31662       printf("*** library (version %d.%d.%d)\n",
31663              gtk_major_version, gtk_minor_version, gtk_micro_version);
31664     }
31665 #endif /* defined (GTK_MAJOR_VERSION) ... */
31666   else
31667     {
31668       if ((gtk_major_version > major) ||
31669         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31670         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31671       {
31672         return 0;
31673        }
31674      else
31675       {
31676         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31677                gtk_major_version, gtk_minor_version, gtk_micro_version);
31678         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31679                major, minor, micro);
31680         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31681         printf("***\n");
31682         printf("*** If you have already installed a sufficiently new version, this error\n");
31683         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31684         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31685         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31686         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31687         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31688         printf("*** so that the correct libraries are found at run-time))\n");
31689       }
31690     }
31691   return 1;
31692 }
31693
31694 _ACEOF
31695 rm -f conftest$ac_exeext
31696 if { (ac_try="$ac_link"
31697 case "(($ac_try" in
31698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699   *) ac_try_echo=$ac_try;;
31700 esac
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702   (eval "$ac_link") 2>&5
31703   ac_status=$?
31704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31706   { (case "(($ac_try" in
31707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31708   *) ac_try_echo=$ac_try;;
31709 esac
31710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31711   (eval "$ac_try") 2>&5
31712   ac_status=$?
31713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714   (exit $ac_status); }; }; then
31715   :
31716 else
31717   echo "$as_me: program exited with status $ac_status" >&5
31718 echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31720
31721 ( exit $ac_status )
31722 no_gtk=yes
31723 fi
31724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31725 fi
31726
31727
31728        CFLAGS="$ac_save_CFLAGS"
31729        LIBS="$ac_save_LIBS"
31730      fi
31731   fi
31732   if test "x$no_gtk" = x ; then
31733      { echo "$as_me:$LINENO: result: yes" >&5
31734 echo "${ECHO_T}yes" >&6; }
31735      wx_cv_lib_gtk=1.2.7
31736   else
31737      { echo "$as_me:$LINENO: result: no" >&5
31738 echo "${ECHO_T}no" >&6; }
31739      if test "$GTK_CONFIG" = "no" ; then
31740        echo "*** The gtk-config script installed by GTK could not be found"
31741        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31742        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31743        echo "*** full path to gtk-config."
31744      else
31745        if test -f conf.gtktest ; then
31746         :
31747        else
31748           echo "*** Could not run GTK test program, checking why..."
31749           CFLAGS="$CFLAGS $GTK_CFLAGS"
31750           LIBS="$LIBS $GTK_LIBS"
31751           cat >conftest.$ac_ext <<_ACEOF
31752 /* confdefs.h.  */
31753 _ACEOF
31754 cat confdefs.h >>conftest.$ac_ext
31755 cat >>conftest.$ac_ext <<_ACEOF
31756 /* end confdefs.h.  */
31757
31758 #include <gtk/gtk.h>
31759 #include <stdio.h>
31760
31761 int
31762 main ()
31763 {
31764  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31765   ;
31766   return 0;
31767 }
31768 _ACEOF
31769 rm -f conftest.$ac_objext conftest$ac_exeext
31770 if { (ac_try="$ac_link"
31771 case "(($ac_try" in
31772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773   *) ac_try_echo=$ac_try;;
31774 esac
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776   (eval "$ac_link") 2>conftest.er1
31777   ac_status=$?
31778   grep -v '^ *+' conftest.er1 >conftest.err
31779   rm -f conftest.er1
31780   cat conftest.err >&5
31781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782   (exit $ac_status); } && {
31783          test -z "$ac_c_werror_flag" ||
31784          test ! -s conftest.err
31785        } && test -s conftest$ac_exeext &&
31786        $as_test_x conftest$ac_exeext; then
31787    echo "*** The test program compiled, but did not run. This usually means"
31788           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31789           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31790           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31791           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31792           echo "*** is required on your system"
31793           echo "***"
31794           echo "*** If you have an old version installed, it is best to remove it, although"
31795           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31796           echo "***"
31797           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31798           echo "*** came with the system with the command"
31799           echo "***"
31800           echo "***    rpm --erase --nodeps gtk gtk-devel"
31801 else
31802   echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31804
31805          echo "*** The test program failed to compile or link. See the file config.log for the"
31806           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31807           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31808           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31809 fi
31810
31811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31812       conftest$ac_exeext conftest.$ac_ext
31813           CFLAGS="$ac_save_CFLAGS"
31814           LIBS="$ac_save_LIBS"
31815        fi
31816      fi
31817      GTK_CFLAGS=""
31818      GTK_LIBS=""
31819      :
31820   fi
31821
31822
31823   rm -f conf.gtktest
31824
31825
31826                         if test -z "$wx_cv_lib_gtk"; then
31827
31828 # Check whether --with-gtk-prefix was given.
31829 if test "${with_gtk_prefix+set}" = set; then
31830   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31831 else
31832   gtk_config_prefix=""
31833 fi
31834
31835
31836 # Check whether --with-gtk-exec-prefix was given.
31837 if test "${with_gtk_exec_prefix+set}" = set; then
31838   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31839 else
31840   gtk_config_exec_prefix=""
31841 fi
31842
31843 # Check whether --enable-gtktest was given.
31844 if test "${enable_gtktest+set}" = set; then
31845   enableval=$enable_gtktest;
31846 else
31847   enable_gtktest=yes
31848 fi
31849
31850
31851   for module in . $GTK_MODULES
31852   do
31853       case "$module" in
31854          gthread)
31855              gtk_config_args="$gtk_config_args gthread"
31856          ;;
31857       esac
31858   done
31859
31860   if test x$gtk_config_exec_prefix != x ; then
31861      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31862      if test x${GTK_CONFIG+set} != xset ; then
31863         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31864      fi
31865   fi
31866   if test x$gtk_config_prefix != x ; then
31867      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31868      if test x${GTK_CONFIG+set} != xset ; then
31869         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31870      fi
31871   fi
31872
31873   # Extract the first word of "gtk-config", so it can be a program name with args.
31874 set dummy gtk-config; ac_word=$2
31875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31877 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31878   echo $ECHO_N "(cached) $ECHO_C" >&6
31879 else
31880   case $GTK_CONFIG in
31881   [\\/]* | ?:[\\/]*)
31882   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31883   ;;
31884   *)
31885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31886 for as_dir in $PATH
31887 do
31888   IFS=$as_save_IFS
31889   test -z "$as_dir" && as_dir=.
31890   for ac_exec_ext in '' $ac_executable_extensions; do
31891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31892     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31894     break 2
31895   fi
31896 done
31897 done
31898 IFS=$as_save_IFS
31899
31900   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31901   ;;
31902 esac
31903 fi
31904 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31905 if test -n "$GTK_CONFIG"; then
31906   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31907 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31908 else
31909   { echo "$as_me:$LINENO: result: no" >&5
31910 echo "${ECHO_T}no" >&6; }
31911 fi
31912
31913
31914   min_gtk_version=1.2.3
31915   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31916 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31917   no_gtk=""
31918   if test "$GTK_CONFIG" = "no" ; then
31919     no_gtk=yes
31920   else
31921     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31922     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31923     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31924            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31925     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31926            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31927     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31928            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31929     if test "x$enable_gtktest" = "xyes" ; then
31930       ac_save_CFLAGS="$CFLAGS"
31931       ac_save_LIBS="$LIBS"
31932       CFLAGS="$CFLAGS $GTK_CFLAGS"
31933       LIBS="$GTK_LIBS $LIBS"
31934       rm -f conf.gtktest
31935       if test "$cross_compiling" = yes; then
31936   echo $ac_n "cross compiling; assumed OK... $ac_c"
31937 else
31938   cat >conftest.$ac_ext <<_ACEOF
31939 /* confdefs.h.  */
31940 _ACEOF
31941 cat confdefs.h >>conftest.$ac_ext
31942 cat >>conftest.$ac_ext <<_ACEOF
31943 /* end confdefs.h.  */
31944
31945 #include <gtk/gtk.h>
31946 #include <stdio.h>
31947 #include <stdlib.h>
31948
31949 int
31950 main ()
31951 {
31952   int major, minor, micro;
31953   char *tmp_version;
31954
31955   system ("touch conf.gtktest");
31956
31957   /* HP/UX 9 (%@#!) writes to sscanf strings */
31958   tmp_version = g_strdup("$min_gtk_version");
31959   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31960      printf("%s, bad version string\n", "$min_gtk_version");
31961      exit(1);
31962    }
31963
31964   if ((gtk_major_version != $gtk_config_major_version) ||
31965       (gtk_minor_version != $gtk_config_minor_version) ||
31966       (gtk_micro_version != $gtk_config_micro_version))
31967     {
31968       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31969              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31970              gtk_major_version, gtk_minor_version, gtk_micro_version);
31971       printf ("*** was found! If gtk-config was correct, then it is best\n");
31972       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31973       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31974       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31975       printf("*** required on your system.\n");
31976       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31977       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31978       printf("*** before re-running configure\n");
31979     }
31980 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31981   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31982            (gtk_minor_version != GTK_MINOR_VERSION) ||
31983            (gtk_micro_version != GTK_MICRO_VERSION))
31984     {
31985       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31986              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31987       printf("*** library (version %d.%d.%d)\n",
31988              gtk_major_version, gtk_minor_version, gtk_micro_version);
31989     }
31990 #endif /* defined (GTK_MAJOR_VERSION) ... */
31991   else
31992     {
31993       if ((gtk_major_version > major) ||
31994         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31995         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31996       {
31997         return 0;
31998        }
31999      else
32000       {
32001         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
32002                gtk_major_version, gtk_minor_version, gtk_micro_version);
32003         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
32004                major, minor, micro);
32005         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
32006         printf("***\n");
32007         printf("*** If you have already installed a sufficiently new version, this error\n");
32008         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
32009         printf("*** being found. The easiest way to fix this is to remove the old version\n");
32010         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
32011         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
32012         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
32013         printf("*** so that the correct libraries are found at run-time))\n");
32014       }
32015     }
32016   return 1;
32017 }
32018
32019 _ACEOF
32020 rm -f conftest$ac_exeext
32021 if { (ac_try="$ac_link"
32022 case "(($ac_try" in
32023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024   *) ac_try_echo=$ac_try;;
32025 esac
32026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32027   (eval "$ac_link") 2>&5
32028   ac_status=$?
32029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32031   { (case "(($ac_try" in
32032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32033   *) ac_try_echo=$ac_try;;
32034 esac
32035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32036   (eval "$ac_try") 2>&5
32037   ac_status=$?
32038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039   (exit $ac_status); }; }; then
32040   :
32041 else
32042   echo "$as_me: program exited with status $ac_status" >&5
32043 echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32045
32046 ( exit $ac_status )
32047 no_gtk=yes
32048 fi
32049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32050 fi
32051
32052
32053        CFLAGS="$ac_save_CFLAGS"
32054        LIBS="$ac_save_LIBS"
32055      fi
32056   fi
32057   if test "x$no_gtk" = x ; then
32058      { echo "$as_me:$LINENO: result: yes" >&5
32059 echo "${ECHO_T}yes" >&6; }
32060      wx_cv_lib_gtk=1.2.3
32061   else
32062      { echo "$as_me:$LINENO: result: no" >&5
32063 echo "${ECHO_T}no" >&6; }
32064      if test "$GTK_CONFIG" = "no" ; then
32065        echo "*** The gtk-config script installed by GTK could not be found"
32066        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
32067        echo "*** your path, or set the GTK_CONFIG environment variable to the"
32068        echo "*** full path to gtk-config."
32069      else
32070        if test -f conf.gtktest ; then
32071         :
32072        else
32073           echo "*** Could not run GTK test program, checking why..."
32074           CFLAGS="$CFLAGS $GTK_CFLAGS"
32075           LIBS="$LIBS $GTK_LIBS"
32076           cat >conftest.$ac_ext <<_ACEOF
32077 /* confdefs.h.  */
32078 _ACEOF
32079 cat confdefs.h >>conftest.$ac_ext
32080 cat >>conftest.$ac_ext <<_ACEOF
32081 /* end confdefs.h.  */
32082
32083 #include <gtk/gtk.h>
32084 #include <stdio.h>
32085
32086 int
32087 main ()
32088 {
32089  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
32090   ;
32091   return 0;
32092 }
32093 _ACEOF
32094 rm -f conftest.$ac_objext conftest$ac_exeext
32095 if { (ac_try="$ac_link"
32096 case "(($ac_try" in
32097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32098   *) ac_try_echo=$ac_try;;
32099 esac
32100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32101   (eval "$ac_link") 2>conftest.er1
32102   ac_status=$?
32103   grep -v '^ *+' conftest.er1 >conftest.err
32104   rm -f conftest.er1
32105   cat conftest.err >&5
32106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107   (exit $ac_status); } && {
32108          test -z "$ac_c_werror_flag" ||
32109          test ! -s conftest.err
32110        } && test -s conftest$ac_exeext &&
32111        $as_test_x conftest$ac_exeext; then
32112    echo "*** The test program compiled, but did not run. This usually means"
32113           echo "*** that the run-time linker is not finding GTK or finding the wrong"
32114           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
32115           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32116           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32117           echo "*** is required on your system"
32118           echo "***"
32119           echo "*** If you have an old version installed, it is best to remove it, although"
32120           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32121           echo "***"
32122           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
32123           echo "*** came with the system with the command"
32124           echo "***"
32125           echo "***    rpm --erase --nodeps gtk gtk-devel"
32126 else
32127   echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32129
32130          echo "*** The test program failed to compile or link. See the file config.log for the"
32131           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
32132           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
32133           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
32134 fi
32135
32136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32137       conftest$ac_exeext conftest.$ac_ext
32138           CFLAGS="$ac_save_CFLAGS"
32139           LIBS="$ac_save_LIBS"
32140        fi
32141      fi
32142      GTK_CFLAGS=""
32143      GTK_LIBS=""
32144      :
32145   fi
32146
32147
32148   rm -f conf.gtktest
32149
32150                         fi
32151                     fi
32152                 fi
32153
32154                 if test -z "$wx_cv_lib_gtk"; then
32155                                         wx_cv_lib_gtk=none
32156                 else
32157                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
32158                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
32159                 fi
32160
32161
32162 fi
32163
32164
32165                         if test "$gtk_version_cached" = 1; then
32166             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
32167 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
32168         fi
32169
32170         case "$wx_cv_lib_gtk" in
32171             2.0)    WXGTK20=1
32172                     TOOLKIT_VERSION=2
32173                     ;;
32174             1.2.7)  WXGTK127=1
32175                     WXGTK12=1
32176                     ;;
32177             1.2.3)  WXGTK12=1
32178                     ;;
32179             *)      { { echo "$as_me:$LINENO: error:
32180 The development files for GTK+ were not found. For GTK+ 2, please
32181 ensure that pkg-config is in the path and that gtk+-2.0.pc is
32182 installed. For GTK+ 1.2 please check that gtk-config is in the path,
32183 and that the version is 1.2.3 or above. Also check that the
32184 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
32185 --libs' are in the LD_LIBRARY_PATH or equivalent.
32186                             " >&5
32187 echo "$as_me: error:
32188 The development files for GTK+ were not found. For GTK+ 2, please
32189 ensure that pkg-config is in the path and that gtk+-2.0.pc is
32190 installed. For GTK+ 1.2 please check that gtk-config is in the path,
32191 and that the version is 1.2.3 or above. Also check that the
32192 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
32193 --libs' are in the LD_LIBRARY_PATH or equivalent.
32194                             " >&2;}
32195    { (exit 1); exit 1; }; }
32196                     ;;
32197         esac
32198
32199         if test "$WXGTK20" = 1; then
32200             save_CFLAGS="$CFLAGS"
32201             save_LIBS="$LIBS"
32202             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
32203             LIBS="$LIBS $wx_cv_libs_gtk"
32204
32205                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
32206 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
32207 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
32208   echo $ECHO_N "(cached) $ECHO_C" >&6
32209 else
32210   cat >conftest.$ac_ext <<_ACEOF
32211 /* confdefs.h.  */
32212 _ACEOF
32213 cat confdefs.h >>conftest.$ac_ext
32214 cat >>conftest.$ac_ext <<_ACEOF
32215 /* end confdefs.h.  */
32216 #include <gtk/gtk.h>
32217
32218 int
32219 main ()
32220 {
32221 #ifndef gtk_icon_size_lookup
32222   (void) gtk_icon_size_lookup;
32223 #endif
32224
32225   ;
32226   return 0;
32227 }
32228 _ACEOF
32229 rm -f conftest.$ac_objext
32230 if { (ac_try="$ac_compile"
32231 case "(($ac_try" in
32232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32233   *) ac_try_echo=$ac_try;;
32234 esac
32235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32236   (eval "$ac_compile") 2>conftest.er1
32237   ac_status=$?
32238   grep -v '^ *+' conftest.er1 >conftest.err
32239   rm -f conftest.er1
32240   cat conftest.err >&5
32241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242   (exit $ac_status); } && {
32243          test -z "$ac_c_werror_flag" ||
32244          test ! -s conftest.err
32245        } && test -s conftest.$ac_objext; then
32246   ac_cv_have_decl_gtk_icon_size_lookup=yes
32247 else
32248   echo "$as_me: failed program was:" >&5
32249 sed 's/^/| /' conftest.$ac_ext >&5
32250
32251         ac_cv_have_decl_gtk_icon_size_lookup=no
32252 fi
32253
32254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32255 fi
32256 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
32257 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
32258 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
32259
32260 cat >>confdefs.h <<_ACEOF
32261 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
32262 _ACEOF
32263
32264
32265 else
32266   cat >>confdefs.h <<_ACEOF
32267 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
32268 _ACEOF
32269
32270 cat >>confdefs.h <<\_ACEOF
32271 #define NEED_GTK_ICON_SIZE_LOOKUP 1
32272 _ACEOF
32273
32274 fi
32275
32276
32277
32278
32279                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
32280 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
32281             cat >conftest.$ac_ext <<_ACEOF
32282 /* confdefs.h.  */
32283 _ACEOF
32284 cat confdefs.h >>conftest.$ac_ext
32285 cat >>conftest.$ac_ext <<_ACEOF
32286 /* end confdefs.h.  */
32287
32288                             #include <gtk/gtk.h>
32289
32290 int
32291 main ()
32292 {
32293
32294                             #if !GTK_CHECK_VERSION(2,10,0)
32295                             Not GTK+ 2.10
32296                             #endif
32297
32298   ;
32299   return 0;
32300 }
32301 _ACEOF
32302 rm -f conftest.$ac_objext
32303 if { (ac_try="$ac_compile"
32304 case "(($ac_try" in
32305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306   *) ac_try_echo=$ac_try;;
32307 esac
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309   (eval "$ac_compile") 2>conftest.er1
32310   ac_status=$?
32311   grep -v '^ *+' conftest.er1 >conftest.err
32312   rm -f conftest.er1
32313   cat conftest.err >&5
32314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315   (exit $ac_status); } && {
32316          test -z "$ac_c_werror_flag" ||
32317          test ! -s conftest.err
32318        } && test -s conftest.$ac_objext; then
32319
32320                             cat >>confdefs.h <<\_ACEOF
32321 #define __WXGTK210__ 1
32322 _ACEOF
32323
32324                             cat >>confdefs.h <<\_ACEOF
32325 #define __WXGTK26__ 1
32326 _ACEOF
32327
32328                             cat >>confdefs.h <<\_ACEOF
32329 #define __WXGTK24__ 1
32330 _ACEOF
32331
32332                             { echo "$as_me:$LINENO: result: yes" >&5
32333 echo "${ECHO_T}yes" >&6; }
32334                             ac_wxgtk210=1
32335
32336 else
32337   echo "$as_me: failed program was:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32339
32340
32341                             { echo "$as_me:$LINENO: result: no" >&5
32342 echo "${ECHO_T}no" >&6; }
32343                             ac_wxgtk210=0
32344
32345 fi
32346
32347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32348
32349             if test "$ac_wxgtk210" = 0; then
32350                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
32351 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
32352                 cat >conftest.$ac_ext <<_ACEOF
32353 /* confdefs.h.  */
32354 _ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h.  */
32358
32359                                 #include <gtk/gtk.h>
32360
32361 int
32362 main ()
32363 {
32364
32365                                 #if !GTK_CHECK_VERSION(2,6,0)
32366                                 Not GTK+ 2.6
32367                                 #endif
32368
32369   ;
32370   return 0;
32371 }
32372 _ACEOF
32373 rm -f conftest.$ac_objext
32374 if { (ac_try="$ac_compile"
32375 case "(($ac_try" in
32376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32377   *) ac_try_echo=$ac_try;;
32378 esac
32379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32380   (eval "$ac_compile") 2>conftest.er1
32381   ac_status=$?
32382   grep -v '^ *+' conftest.er1 >conftest.err
32383   rm -f conftest.er1
32384   cat conftest.err >&5
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); } && {
32387          test -z "$ac_c_werror_flag" ||
32388          test ! -s conftest.err
32389        } && test -s conftest.$ac_objext; then
32390
32391                                 cat >>confdefs.h <<\_ACEOF
32392 #define __WXGTK26__ 1
32393 _ACEOF
32394
32395                                 cat >>confdefs.h <<\_ACEOF
32396 #define __WXGTK24__ 1
32397 _ACEOF
32398
32399                                 { echo "$as_me:$LINENO: result: yes" >&5
32400 echo "${ECHO_T}yes" >&6; }
32401                                 ac_wxgtk26=1
32402
32403 else
32404   echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32406
32407
32408                                 { echo "$as_me:$LINENO: result: no" >&5
32409 echo "${ECHO_T}no" >&6; }
32410                                 ac_wxgtk26=0
32411
32412 fi
32413
32414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32415             fi
32416
32417             if test "$ac_wxgtk26" = 0; then
32418                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
32419 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
32420                 cat >conftest.$ac_ext <<_ACEOF
32421 /* confdefs.h.  */
32422 _ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h.  */
32426
32427                                 #include <gtk/gtk.h>
32428
32429 int
32430 main ()
32431 {
32432
32433                                 #if !GTK_CHECK_VERSION(2,4,0)
32434                                 Not GTK+ 2.4
32435                                 #endif
32436
32437   ;
32438   return 0;
32439 }
32440 _ACEOF
32441 rm -f conftest.$ac_objext
32442 if { (ac_try="$ac_compile"
32443 case "(($ac_try" in
32444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445   *) ac_try_echo=$ac_try;;
32446 esac
32447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448   (eval "$ac_compile") 2>conftest.er1
32449   ac_status=$?
32450   grep -v '^ *+' conftest.er1 >conftest.err
32451   rm -f conftest.er1
32452   cat conftest.err >&5
32453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454   (exit $ac_status); } && {
32455          test -z "$ac_c_werror_flag" ||
32456          test ! -s conftest.err
32457        } && test -s conftest.$ac_objext; then
32458
32459                                 cat >>confdefs.h <<\_ACEOF
32460 #define __WXGTK24__ 1
32461 _ACEOF
32462
32463                                 { echo "$as_me:$LINENO: result: yes" >&5
32464 echo "${ECHO_T}yes" >&6; }
32465
32466 else
32467   echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32469
32470
32471                                 { echo "$as_me:$LINENO: result: no" >&5
32472 echo "${ECHO_T}no" >&6; }
32473
32474 fi
32475
32476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32477             fi
32478
32479             CFLAGS="$save_CFLAGS"
32480             LIBS="$save_LIBS"
32481         else
32482             if test "$wxUSE_UNICODE" = "yes"; then
32483                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
32484 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
32485                 wxUSE_UNICODE=no
32486             fi
32487
32488                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
32489 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
32490 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
32491   echo $ECHO_N "(cached) $ECHO_C" >&6
32492 else
32493   ac_check_lib_save_LIBS=$LIBS
32494 LIBS="-lgdk  $LIBS"
32495 cat >conftest.$ac_ext <<_ACEOF
32496 /* confdefs.h.  */
32497 _ACEOF
32498 cat confdefs.h >>conftest.$ac_ext
32499 cat >>conftest.$ac_ext <<_ACEOF
32500 /* end confdefs.h.  */
32501
32502 /* Override any GCC internal prototype to avoid an error.
32503    Use char because int might match the return type of a GCC
32504    builtin and then its argument prototype would still apply.  */
32505 #ifdef __cplusplus
32506 extern "C"
32507 #endif
32508 char gdk_im_open ();
32509 int
32510 main ()
32511 {
32512 return gdk_im_open ();
32513   ;
32514   return 0;
32515 }
32516 _ACEOF
32517 rm -f conftest.$ac_objext conftest$ac_exeext
32518 if { (ac_try="$ac_link"
32519 case "(($ac_try" in
32520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521   *) ac_try_echo=$ac_try;;
32522 esac
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524   (eval "$ac_link") 2>conftest.er1
32525   ac_status=$?
32526   grep -v '^ *+' conftest.er1 >conftest.err
32527   rm -f conftest.er1
32528   cat conftest.err >&5
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); } && {
32531          test -z "$ac_c_werror_flag" ||
32532          test ! -s conftest.err
32533        } && test -s conftest$ac_exeext &&
32534        $as_test_x conftest$ac_exeext; then
32535   ac_cv_lib_gdk_gdk_im_open=yes
32536 else
32537   echo "$as_me: failed program was:" >&5
32538 sed 's/^/| /' conftest.$ac_ext >&5
32539
32540         ac_cv_lib_gdk_gdk_im_open=no
32541 fi
32542
32543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32544       conftest$ac_exeext conftest.$ac_ext
32545 LIBS=$ac_check_lib_save_LIBS
32546 fi
32547 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
32548 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
32549 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
32550   cat >>confdefs.h <<\_ACEOF
32551 #define HAVE_XIM 1
32552 _ACEOF
32553
32554 fi
32555
32556
32557                                     if test "$USE_DARWIN" != 1; then
32558
32559 for ac_func in poll
32560 do
32561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32565   echo $ECHO_N "(cached) $ECHO_C" >&6
32566 else
32567   cat >conftest.$ac_ext <<_ACEOF
32568 /* confdefs.h.  */
32569 _ACEOF
32570 cat confdefs.h >>conftest.$ac_ext
32571 cat >>conftest.$ac_ext <<_ACEOF
32572 /* end confdefs.h.  */
32573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32575 #define $ac_func innocuous_$ac_func
32576
32577 /* System header to define __stub macros and hopefully few prototypes,
32578     which can conflict with char $ac_func (); below.
32579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32580     <limits.h> exists even on freestanding compilers.  */
32581
32582 #ifdef __STDC__
32583 # include <limits.h>
32584 #else
32585 # include <assert.h>
32586 #endif
32587
32588 #undef $ac_func
32589
32590 /* Override any GCC internal prototype to avoid an error.
32591    Use char because int might match the return type of a GCC
32592    builtin and then its argument prototype would still apply.  */
32593 #ifdef __cplusplus
32594 extern "C"
32595 #endif
32596 char $ac_func ();
32597 /* The GNU C library defines this for functions which it implements
32598     to always fail with ENOSYS.  Some functions are actually named
32599     something starting with __ and the normal name is an alias.  */
32600 #if defined __stub_$ac_func || defined __stub___$ac_func
32601 choke me
32602 #endif
32603
32604 int
32605 main ()
32606 {
32607 return $ac_func ();
32608   ;
32609   return 0;
32610 }
32611 _ACEOF
32612 rm -f conftest.$ac_objext conftest$ac_exeext
32613 if { (ac_try="$ac_link"
32614 case "(($ac_try" in
32615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32616   *) ac_try_echo=$ac_try;;
32617 esac
32618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32619   (eval "$ac_link") 2>conftest.er1
32620   ac_status=$?
32621   grep -v '^ *+' conftest.er1 >conftest.err
32622   rm -f conftest.er1
32623   cat conftest.err >&5
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); } && {
32626          test -z "$ac_c_werror_flag" ||
32627          test ! -s conftest.err
32628        } && test -s conftest$ac_exeext &&
32629        $as_test_x conftest$ac_exeext; then
32630   eval "$as_ac_var=yes"
32631 else
32632   echo "$as_me: failed program was:" >&5
32633 sed 's/^/| /' conftest.$ac_ext >&5
32634
32635         eval "$as_ac_var=no"
32636 fi
32637
32638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32639       conftest$ac_exeext conftest.$ac_ext
32640 fi
32641 ac_res=`eval echo '${'$as_ac_var'}'`
32642                { echo "$as_me:$LINENO: result: $ac_res" >&5
32643 echo "${ECHO_T}$ac_res" >&6; }
32644 if test `eval echo '${'$as_ac_var'}'` = yes; then
32645   cat >>confdefs.h <<_ACEOF
32646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32647 _ACEOF
32648
32649 fi
32650 done
32651
32652             fi
32653         fi
32654
32655         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
32656         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
32657
32658         AFMINSTALL=afminstall
32659         TOOLKIT=GTK
32660         GUIDIST=GTK_DIST
32661
32662                 if test "$wxUSE_GPE" = "yes"; then
32663             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
32664 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
32665
32666   ac_find_libraries=
32667   for ac_dir in $SEARCH_LIB;
32668   do
32669     for ac_extension in a so sl dylib dll.a; do
32670       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
32671         ac_find_libraries=$ac_dir
32672         break 2
32673       fi
32674     done
32675   done
32676
32677             if test "$ac_find_libraries" != "" ; then
32678
32679     if test "$ac_find_libraries" = "default location"; then
32680     ac_path_to_link=""
32681   else
32682     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32683     result=$?
32684     if test $result = 0; then
32685       ac_path_to_link=""
32686     else
32687       ac_path_to_link=" -L$ac_find_libraries"
32688     fi
32689   fi
32690
32691                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
32692                 WXGPE=1
32693                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32694 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32695             else
32696                 { echo "$as_me:$LINENO: result: not found" >&5
32697 echo "${ECHO_T}not found" >&6; }
32698             fi
32699
32700                                                                                                                     fi
32701     fi
32702
32703     if test "$wxUSE_MGL" = 1; then
32704        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
32705 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
32706         if test "x$MGL_ROOT" = x ; then
32707             { echo "$as_me:$LINENO: result: not found" >&5
32708 echo "${ECHO_T}not found" >&6; }
32709             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
32710 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
32711    { (exit 1); exit 1; }; }
32712         else
32713             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
32714 echo "${ECHO_T}$MGL_ROOT" >&6; }
32715         fi
32716
32717         { echo "$as_me:$LINENO: checking for libmgl location" >&5
32718 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
32719                                 case "${host}" in
32720             *-*-linux* )
32721                                           if test "x$wxUSE_SHARED" = xyes ; then
32722                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
32723               else
32724                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
32725               fi
32726               ;;
32727             *-pc-msdosdjgpp )
32728               mgl_os_candidates="dos32/dj2"
32729               ;;
32730             *)
32731               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
32732 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
32733    { (exit 1); exit 1; }; }
32734         esac
32735
32736         mgl_lib_type=""
32737         mgl_os=""
32738
32739         for mgl_os_i in $mgl_os_candidates ; do
32740             if test "x$mgl_os" = x ; then
32741                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
32742                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
32743                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
32744                         mgl_lib_type=debug
32745                         mgl_os=$mgl_os_i
32746                     fi
32747                 fi
32748                 if test "x$mgl_lib_type" = x ; then
32749                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
32750                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
32751                         mgl_lib_type=release
32752                         mgl_os=$mgl_os_i
32753                     fi
32754                 fi
32755             fi
32756         done
32757
32758         if test "x$mgl_os" = x ; then
32759             { echo "$as_me:$LINENO: result: not found" >&5
32760 echo "${ECHO_T}not found" >&6; }
32761             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
32762 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
32763    { (exit 1); exit 1; }; }
32764         fi
32765         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
32766 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
32767
32768         wxUSE_UNIVERSAL="yes"
32769
32770         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
32771         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
32772
32773         AFMINSTALL=afminstall
32774         TOOLKIT=MGL
32775         GUIDIST=MGL_DIST
32776     fi
32777
32778     if test "$wxUSE_DFB" = 1; then
32779
32780
32781 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32782         if test -n "$ac_tool_prefix"; then
32783   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32784 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32787 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32788   echo $ECHO_N "(cached) $ECHO_C" >&6
32789 else
32790   case $PKG_CONFIG in
32791   [\\/]* | ?:[\\/]*)
32792   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32793   ;;
32794   *)
32795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32796 for as_dir in $PATH
32797 do
32798   IFS=$as_save_IFS
32799   test -z "$as_dir" && as_dir=.
32800   for ac_exec_ext in '' $ac_executable_extensions; do
32801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32802     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32804     break 2
32805   fi
32806 done
32807 done
32808 IFS=$as_save_IFS
32809
32810   ;;
32811 esac
32812 fi
32813 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32814 if test -n "$PKG_CONFIG"; then
32815   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32816 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32817 else
32818   { echo "$as_me:$LINENO: result: no" >&5
32819 echo "${ECHO_T}no" >&6; }
32820 fi
32821
32822
32823 fi
32824 if test -z "$ac_cv_path_PKG_CONFIG"; then
32825   ac_pt_PKG_CONFIG=$PKG_CONFIG
32826   # Extract the first word of "pkg-config", so it can be a program name with args.
32827 set dummy pkg-config; ac_word=$2
32828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32830 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32831   echo $ECHO_N "(cached) $ECHO_C" >&6
32832 else
32833   case $ac_pt_PKG_CONFIG in
32834   [\\/]* | ?:[\\/]*)
32835   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32836   ;;
32837   *)
32838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32839 for as_dir in $PATH
32840 do
32841   IFS=$as_save_IFS
32842   test -z "$as_dir" && as_dir=.
32843   for ac_exec_ext in '' $ac_executable_extensions; do
32844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32845     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32847     break 2
32848   fi
32849 done
32850 done
32851 IFS=$as_save_IFS
32852
32853   ;;
32854 esac
32855 fi
32856 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32857 if test -n "$ac_pt_PKG_CONFIG"; then
32858   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32859 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32860 else
32861   { echo "$as_me:$LINENO: result: no" >&5
32862 echo "${ECHO_T}no" >&6; }
32863 fi
32864
32865   if test "x$ac_pt_PKG_CONFIG" = x; then
32866     PKG_CONFIG=""
32867   else
32868     case $cross_compiling:$ac_tool_warned in
32869 yes:)
32870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32871 whose name does not start with the host triplet.  If you think this
32872 configuration is useful to you, please write to autoconf@gnu.org." >&5
32873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32874 whose name does not start with the host triplet.  If you think this
32875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32876 ac_tool_warned=yes ;;
32877 esac
32878     PKG_CONFIG=$ac_pt_PKG_CONFIG
32879   fi
32880 else
32881   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32882 fi
32883
32884 fi
32885 if test -n "$PKG_CONFIG"; then
32886         _pkg_min_version=0.9.0
32887         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32888 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32889         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32890                 { echo "$as_me:$LINENO: result: yes" >&5
32891 echo "${ECHO_T}yes" >&6; }
32892         else
32893                 { echo "$as_me:$LINENO: result: no" >&5
32894 echo "${ECHO_T}no" >&6; }
32895                 PKG_CONFIG=""
32896         fi
32897
32898 fi
32899
32900
32901 pkg_failed=no
32902 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
32903 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
32904
32905 if test -n "$PKG_CONFIG"; then
32906     if test -n "$DIRECTFB_CFLAGS"; then
32907         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
32908     else
32909         if test -n "$PKG_CONFIG" && \
32910     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32911   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32912   ac_status=$?
32913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32914   (exit $ac_status); }; then
32915   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
32916 else
32917   pkg_failed=yes
32918 fi
32919     fi
32920 else
32921         pkg_failed=untried
32922 fi
32923 if test -n "$PKG_CONFIG"; then
32924     if test -n "$DIRECTFB_LIBS"; then
32925         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32926     else
32927         if test -n "$PKG_CONFIG" && \
32928     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32929   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32930   ac_status=$?
32931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932   (exit $ac_status); }; then
32933   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
32934 else
32935   pkg_failed=yes
32936 fi
32937     fi
32938 else
32939         pkg_failed=untried
32940 fi
32941
32942
32943
32944 if test $pkg_failed = yes; then
32945
32946 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32947         _pkg_short_errors_supported=yes
32948 else
32949         _pkg_short_errors_supported=no
32950 fi
32951         if test $_pkg_short_errors_supported = yes; then
32952                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32953         else
32954                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32955         fi
32956         # Put the nasty error message in config.log where it belongs
32957         echo "$DIRECTFB_PKG_ERRORS" >&5
32958
32959
32960                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32961 echo "$as_me: error: DirectFB not found." >&2;}
32962    { (exit 1); exit 1; }; }
32963
32964
32965 elif test $pkg_failed = untried; then
32966
32967                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32968 echo "$as_me: error: DirectFB not found." >&2;}
32969    { (exit 1); exit 1; }; }
32970
32971
32972 else
32973         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32974         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32975         { echo "$as_me:$LINENO: result: yes" >&5
32976 echo "${ECHO_T}yes" >&6; }
32977
32978                            wxUSE_UNIVERSAL="yes"
32979                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32980                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32981                            TOOLKIT=DFB
32982                            GUIDIST=DFB_DIST
32983
32984 fi
32985     fi
32986
32987     if test "$wxUSE_MICROWIN" = 1; then
32988         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32989 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32990         if test "x$MICROWINDOWS" = x ; then
32991             { echo "$as_me:$LINENO: result: not found" >&5
32992 echo "${ECHO_T}not found" >&6; }
32993             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32994 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32995    { (exit 1); exit 1; }; }
32996         else
32997             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32998 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32999         fi
33000
33001         if test -f $MICROWINDOWS/lib/libmwin.a; then
33002             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
33003 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
33004         else
33005             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
33006 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
33007    { (exit 1); exit 1; }; }
33008         fi
33009
33010         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
33011         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
33012
33013         wxUSE_UNIVERSAL="yes"
33014
33015         AFMINSTALL=afminstall
33016         TOOLKIT=MICROWIN
33017         GUIDIST=MICROWIN_DIST
33018
33019         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
33020     fi
33021
33022         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33023                                 { echo "$as_me:$LINENO: checking for X" >&5
33024 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
33025
33026
33027 # Check whether --with-x was given.
33028 if test "${with_x+set}" = set; then
33029   withval=$with_x;
33030 fi
33031
33032 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
33033 if test "x$with_x" = xno; then
33034   # The user explicitly disabled X.
33035   have_x=disabled
33036 else
33037   case $x_includes,$x_libraries in #(
33038     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
33039 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
33040    { (exit 1); exit 1; }; };; #(
33041     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
33042   echo $ECHO_N "(cached) $ECHO_C" >&6
33043 else
33044   # One or both of the vars are not set, and there is no cached value.
33045 ac_x_includes=no ac_x_libraries=no
33046 rm -f -r conftest.dir
33047 if mkdir conftest.dir; then
33048   cd conftest.dir
33049   cat >Imakefile <<'_ACEOF'
33050 incroot:
33051         @echo incroot='${INCROOT}'
33052 usrlibdir:
33053         @echo usrlibdir='${USRLIBDIR}'
33054 libdir:
33055         @echo libdir='${LIBDIR}'
33056 _ACEOF
33057   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
33058     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33059     for ac_var in incroot usrlibdir libdir; do
33060       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
33061     done
33062     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
33063     for ac_extension in a so sl; do
33064       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
33065          test -f "$ac_im_libdir/libX11.$ac_extension"; then
33066         ac_im_usrlibdir=$ac_im_libdir; break
33067       fi
33068     done
33069     # Screen out bogus values from the imake configuration.  They are
33070     # bogus both because they are the default anyway, and because
33071     # using them would break gcc on systems where it needs fixed includes.
33072     case $ac_im_incroot in
33073         /usr/include) ac_x_includes= ;;
33074         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
33075     esac
33076     case $ac_im_usrlibdir in
33077         /usr/lib | /lib) ;;
33078         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
33079     esac
33080   fi
33081   cd ..
33082   rm -f -r conftest.dir
33083 fi
33084
33085 # Standard set of common directories for X headers.
33086 # Check X11 before X11Rn because it is often a symlink to the current release.
33087 ac_x_header_dirs='
33088 /usr/X11/include
33089 /usr/X11R6/include
33090 /usr/X11R5/include
33091 /usr/X11R4/include
33092
33093 /usr/include/X11
33094 /usr/include/X11R6
33095 /usr/include/X11R5
33096 /usr/include/X11R4
33097
33098 /usr/local/X11/include
33099 /usr/local/X11R6/include
33100 /usr/local/X11R5/include
33101 /usr/local/X11R4/include
33102
33103 /usr/local/include/X11
33104 /usr/local/include/X11R6
33105 /usr/local/include/X11R5
33106 /usr/local/include/X11R4
33107
33108 /usr/X386/include
33109 /usr/x386/include
33110 /usr/XFree86/include/X11
33111
33112 /usr/include
33113 /usr/local/include
33114 /usr/unsupported/include
33115 /usr/athena/include
33116 /usr/local/x11r5/include
33117 /usr/lpp/Xamples/include
33118
33119 /usr/openwin/include
33120 /usr/openwin/share/include'
33121
33122 if test "$ac_x_includes" = no; then
33123   # Guess where to find include files, by looking for Xlib.h.
33124   # First, try using that file with no special directory specified.
33125   cat >conftest.$ac_ext <<_ACEOF
33126 /* confdefs.h.  */
33127 _ACEOF
33128 cat confdefs.h >>conftest.$ac_ext
33129 cat >>conftest.$ac_ext <<_ACEOF
33130 /* end confdefs.h.  */
33131 #include <X11/Xlib.h>
33132 _ACEOF
33133 if { (ac_try="$ac_cpp conftest.$ac_ext"
33134 case "(($ac_try" in
33135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136   *) ac_try_echo=$ac_try;;
33137 esac
33138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33140   ac_status=$?
33141   grep -v '^ *+' conftest.er1 >conftest.err
33142   rm -f conftest.er1
33143   cat conftest.err >&5
33144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145   (exit $ac_status); } >/dev/null && {
33146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33147          test ! -s conftest.err
33148        }; then
33149   # We can compile using X headers with no special include directory.
33150 ac_x_includes=
33151 else
33152   echo "$as_me: failed program was:" >&5
33153 sed 's/^/| /' conftest.$ac_ext >&5
33154
33155   for ac_dir in $ac_x_header_dirs; do
33156   if test -r "$ac_dir/X11/Xlib.h"; then
33157     ac_x_includes=$ac_dir
33158     break
33159   fi
33160 done
33161 fi
33162
33163 rm -f conftest.err conftest.$ac_ext
33164 fi # $ac_x_includes = no
33165
33166 if test "$ac_x_libraries" = no; then
33167   # Check for the libraries.
33168   # See if we find them without any special options.
33169   # Don't add to $LIBS permanently.
33170   ac_save_LIBS=$LIBS
33171   LIBS="-lX11 $LIBS"
33172   cat >conftest.$ac_ext <<_ACEOF
33173 /* confdefs.h.  */
33174 _ACEOF
33175 cat confdefs.h >>conftest.$ac_ext
33176 cat >>conftest.$ac_ext <<_ACEOF
33177 /* end confdefs.h.  */
33178 #include <X11/Xlib.h>
33179 int
33180 main ()
33181 {
33182 XrmInitialize ()
33183   ;
33184   return 0;
33185 }
33186 _ACEOF
33187 rm -f conftest.$ac_objext conftest$ac_exeext
33188 if { (ac_try="$ac_link"
33189 case "(($ac_try" in
33190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33191   *) ac_try_echo=$ac_try;;
33192 esac
33193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194   (eval "$ac_link") 2>conftest.er1
33195   ac_status=$?
33196   grep -v '^ *+' conftest.er1 >conftest.err
33197   rm -f conftest.er1
33198   cat conftest.err >&5
33199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200   (exit $ac_status); } && {
33201          test -z "$ac_c_werror_flag" ||
33202          test ! -s conftest.err
33203        } && test -s conftest$ac_exeext &&
33204        $as_test_x conftest$ac_exeext; then
33205   LIBS=$ac_save_LIBS
33206 # We can link X programs with no special library path.
33207 ac_x_libraries=
33208 else
33209   echo "$as_me: failed program was:" >&5
33210 sed 's/^/| /' conftest.$ac_ext >&5
33211
33212         LIBS=$ac_save_LIBS
33213 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
33214 do
33215   # Don't even attempt the hair of trying to link an X program!
33216   for ac_extension in a so sl; do
33217     if test -r "$ac_dir/libX11.$ac_extension"; then
33218       ac_x_libraries=$ac_dir
33219       break 2
33220     fi
33221   done
33222 done
33223 fi
33224
33225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33226       conftest$ac_exeext conftest.$ac_ext
33227 fi # $ac_x_libraries = no
33228
33229 case $ac_x_includes,$ac_x_libraries in #(
33230   no,* | *,no | *\'*)
33231     # Didn't find X, or a directory has "'" in its name.
33232     ac_cv_have_x="have_x=no";; #(
33233   *)
33234     # Record where we found X for the cache.
33235     ac_cv_have_x="have_x=yes\
33236         ac_x_includes='$ac_x_includes'\
33237         ac_x_libraries='$ac_x_libraries'"
33238 esac
33239 fi
33240 ;; #(
33241     *) have_x=yes;;
33242   esac
33243   eval "$ac_cv_have_x"
33244 fi # $with_x != no
33245
33246 if test "$have_x" != yes; then
33247   { echo "$as_me:$LINENO: result: $have_x" >&5
33248 echo "${ECHO_T}$have_x" >&6; }
33249   no_x=yes
33250 else
33251   # If each of the values was on the command line, it overrides each guess.
33252   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
33253   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
33254   # Update the cache value to reflect the command line values.
33255   ac_cv_have_x="have_x=yes\
33256         ac_x_includes='$x_includes'\
33257         ac_x_libraries='$x_libraries'"
33258   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
33259 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
33260 fi
33261
33262 if test "$no_x" = yes; then
33263   # Not all programs may use this symbol, but it does not hurt to define it.
33264
33265 cat >>confdefs.h <<\_ACEOF
33266 #define X_DISPLAY_MISSING 1
33267 _ACEOF
33268
33269   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
33270 else
33271   if test -n "$x_includes"; then
33272     X_CFLAGS="$X_CFLAGS -I$x_includes"
33273   fi
33274
33275   # It would also be nice to do this for all -L options, not just this one.
33276   if test -n "$x_libraries"; then
33277     X_LIBS="$X_LIBS -L$x_libraries"
33278     # For Solaris; some versions of Sun CC require a space after -R and
33279     # others require no space.  Words are not sufficient . . . .
33280     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
33281 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
33282     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
33283     ac_xsave_c_werror_flag=$ac_c_werror_flag
33284     ac_c_werror_flag=yes
33285     cat >conftest.$ac_ext <<_ACEOF
33286 /* confdefs.h.  */
33287 _ACEOF
33288 cat confdefs.h >>conftest.$ac_ext
33289 cat >>conftest.$ac_ext <<_ACEOF
33290 /* end confdefs.h.  */
33291
33292 int
33293 main ()
33294 {
33295
33296   ;
33297   return 0;
33298 }
33299 _ACEOF
33300 rm -f conftest.$ac_objext conftest$ac_exeext
33301 if { (ac_try="$ac_link"
33302 case "(($ac_try" in
33303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33304   *) ac_try_echo=$ac_try;;
33305 esac
33306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33307   (eval "$ac_link") 2>conftest.er1
33308   ac_status=$?
33309   grep -v '^ *+' conftest.er1 >conftest.err
33310   rm -f conftest.er1
33311   cat conftest.err >&5
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); } && {
33314          test -z "$ac_c_werror_flag" ||
33315          test ! -s conftest.err
33316        } && test -s conftest$ac_exeext &&
33317        $as_test_x conftest$ac_exeext; then
33318   { echo "$as_me:$LINENO: result: no" >&5
33319 echo "${ECHO_T}no" >&6; }
33320        X_LIBS="$X_LIBS -R$x_libraries"
33321 else
33322   echo "$as_me: failed program was:" >&5
33323 sed 's/^/| /' conftest.$ac_ext >&5
33324
33325         LIBS="$ac_xsave_LIBS -R $x_libraries"
33326        cat >conftest.$ac_ext <<_ACEOF
33327 /* confdefs.h.  */
33328 _ACEOF
33329 cat confdefs.h >>conftest.$ac_ext
33330 cat >>conftest.$ac_ext <<_ACEOF
33331 /* end confdefs.h.  */
33332
33333 int
33334 main ()
33335 {
33336
33337   ;
33338   return 0;
33339 }
33340 _ACEOF
33341 rm -f conftest.$ac_objext conftest$ac_exeext
33342 if { (ac_try="$ac_link"
33343 case "(($ac_try" in
33344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345   *) ac_try_echo=$ac_try;;
33346 esac
33347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33348   (eval "$ac_link") 2>conftest.er1
33349   ac_status=$?
33350   grep -v '^ *+' conftest.er1 >conftest.err
33351   rm -f conftest.er1
33352   cat conftest.err >&5
33353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354   (exit $ac_status); } && {
33355          test -z "$ac_c_werror_flag" ||
33356          test ! -s conftest.err
33357        } && test -s conftest$ac_exeext &&
33358        $as_test_x conftest$ac_exeext; then
33359   { echo "$as_me:$LINENO: result: yes" >&5
33360 echo "${ECHO_T}yes" >&6; }
33361           X_LIBS="$X_LIBS -R $x_libraries"
33362 else
33363   echo "$as_me: failed program was:" >&5
33364 sed 's/^/| /' conftest.$ac_ext >&5
33365
33366         { echo "$as_me:$LINENO: result: neither works" >&5
33367 echo "${ECHO_T}neither works" >&6; }
33368 fi
33369
33370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33371       conftest$ac_exeext conftest.$ac_ext
33372 fi
33373
33374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33375       conftest$ac_exeext conftest.$ac_ext
33376     ac_c_werror_flag=$ac_xsave_c_werror_flag
33377     LIBS=$ac_xsave_LIBS
33378   fi
33379
33380   # Check for system-dependent libraries X programs must link with.
33381   # Do this before checking for the system-independent R6 libraries
33382   # (-lICE), since we may need -lsocket or whatever for X linking.
33383
33384   if test "$ISC" = yes; then
33385     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
33386   else
33387     # Martyn Johnson says this is needed for Ultrix, if the X
33388     # libraries were built with DECnet support.  And Karl Berry says
33389     # the Alpha needs dnet_stub (dnet does not exist).
33390     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
33391     cat >conftest.$ac_ext <<_ACEOF
33392 /* confdefs.h.  */
33393 _ACEOF
33394 cat confdefs.h >>conftest.$ac_ext
33395 cat >>conftest.$ac_ext <<_ACEOF
33396 /* end confdefs.h.  */
33397
33398 /* Override any GCC internal prototype to avoid an error.
33399    Use char because int might match the return type of a GCC
33400    builtin and then its argument prototype would still apply.  */
33401 #ifdef __cplusplus
33402 extern "C"
33403 #endif
33404 char XOpenDisplay ();
33405 int
33406 main ()
33407 {
33408 return XOpenDisplay ();
33409   ;
33410   return 0;
33411 }
33412 _ACEOF
33413 rm -f conftest.$ac_objext conftest$ac_exeext
33414 if { (ac_try="$ac_link"
33415 case "(($ac_try" in
33416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33417   *) ac_try_echo=$ac_try;;
33418 esac
33419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33420   (eval "$ac_link") 2>conftest.er1
33421   ac_status=$?
33422   grep -v '^ *+' conftest.er1 >conftest.err
33423   rm -f conftest.er1
33424   cat conftest.err >&5
33425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426   (exit $ac_status); } && {
33427          test -z "$ac_c_werror_flag" ||
33428          test ! -s conftest.err
33429        } && test -s conftest$ac_exeext &&
33430        $as_test_x conftest$ac_exeext; then
33431   :
33432 else
33433   echo "$as_me: failed program was:" >&5
33434 sed 's/^/| /' conftest.$ac_ext >&5
33435
33436         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
33437 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
33438 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
33439   echo $ECHO_N "(cached) $ECHO_C" >&6
33440 else
33441   ac_check_lib_save_LIBS=$LIBS
33442 LIBS="-ldnet  $LIBS"
33443 cat >conftest.$ac_ext <<_ACEOF
33444 /* confdefs.h.  */
33445 _ACEOF
33446 cat confdefs.h >>conftest.$ac_ext
33447 cat >>conftest.$ac_ext <<_ACEOF
33448 /* end confdefs.h.  */
33449
33450 /* Override any GCC internal prototype to avoid an error.
33451    Use char because int might match the return type of a GCC
33452    builtin and then its argument prototype would still apply.  */
33453 #ifdef __cplusplus
33454 extern "C"
33455 #endif
33456 char dnet_ntoa ();
33457 int
33458 main ()
33459 {
33460 return dnet_ntoa ();
33461   ;
33462   return 0;
33463 }
33464 _ACEOF
33465 rm -f conftest.$ac_objext conftest$ac_exeext
33466 if { (ac_try="$ac_link"
33467 case "(($ac_try" in
33468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33469   *) ac_try_echo=$ac_try;;
33470 esac
33471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472   (eval "$ac_link") 2>conftest.er1
33473   ac_status=$?
33474   grep -v '^ *+' conftest.er1 >conftest.err
33475   rm -f conftest.er1
33476   cat conftest.err >&5
33477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478   (exit $ac_status); } && {
33479          test -z "$ac_c_werror_flag" ||
33480          test ! -s conftest.err
33481        } && test -s conftest$ac_exeext &&
33482        $as_test_x conftest$ac_exeext; then
33483   ac_cv_lib_dnet_dnet_ntoa=yes
33484 else
33485   echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33487
33488         ac_cv_lib_dnet_dnet_ntoa=no
33489 fi
33490
33491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33492       conftest$ac_exeext conftest.$ac_ext
33493 LIBS=$ac_check_lib_save_LIBS
33494 fi
33495 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33496 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
33497 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
33498   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33499 fi
33500
33501     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
33502       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
33503 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
33504 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
33505   echo $ECHO_N "(cached) $ECHO_C" >&6
33506 else
33507   ac_check_lib_save_LIBS=$LIBS
33508 LIBS="-ldnet_stub  $LIBS"
33509 cat >conftest.$ac_ext <<_ACEOF
33510 /* confdefs.h.  */
33511 _ACEOF
33512 cat confdefs.h >>conftest.$ac_ext
33513 cat >>conftest.$ac_ext <<_ACEOF
33514 /* end confdefs.h.  */
33515
33516 /* Override any GCC internal prototype to avoid an error.
33517    Use char because int might match the return type of a GCC
33518    builtin and then its argument prototype would still apply.  */
33519 #ifdef __cplusplus
33520 extern "C"
33521 #endif
33522 char dnet_ntoa ();
33523 int
33524 main ()
33525 {
33526 return dnet_ntoa ();
33527   ;
33528   return 0;
33529 }
33530 _ACEOF
33531 rm -f conftest.$ac_objext conftest$ac_exeext
33532 if { (ac_try="$ac_link"
33533 case "(($ac_try" in
33534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33535   *) ac_try_echo=$ac_try;;
33536 esac
33537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33538   (eval "$ac_link") 2>conftest.er1
33539   ac_status=$?
33540   grep -v '^ *+' conftest.er1 >conftest.err
33541   rm -f conftest.er1
33542   cat conftest.err >&5
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); } && {
33545          test -z "$ac_c_werror_flag" ||
33546          test ! -s conftest.err
33547        } && test -s conftest$ac_exeext &&
33548        $as_test_x conftest$ac_exeext; then
33549   ac_cv_lib_dnet_stub_dnet_ntoa=yes
33550 else
33551   echo "$as_me: failed program was:" >&5
33552 sed 's/^/| /' conftest.$ac_ext >&5
33553
33554         ac_cv_lib_dnet_stub_dnet_ntoa=no
33555 fi
33556
33557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33558       conftest$ac_exeext conftest.$ac_ext
33559 LIBS=$ac_check_lib_save_LIBS
33560 fi
33561 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
33562 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
33563 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
33564   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33565 fi
33566
33567     fi
33568 fi
33569
33570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33571       conftest$ac_exeext conftest.$ac_ext
33572     LIBS="$ac_xsave_LIBS"
33573
33574     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
33575     # to get the SysV transport functions.
33576     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33577     # needs -lnsl.
33578     # The nsl library prevents programs from opening the X display
33579     # on Irix 5.2, according to T.E. Dickey.
33580     # The functions gethostbyname, getservbyname, and inet_addr are
33581     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
33582     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
33583 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
33584 if test "${ac_cv_func_gethostbyname+set}" = set; then
33585   echo $ECHO_N "(cached) $ECHO_C" >&6
33586 else
33587   cat >conftest.$ac_ext <<_ACEOF
33588 /* confdefs.h.  */
33589 _ACEOF
33590 cat confdefs.h >>conftest.$ac_ext
33591 cat >>conftest.$ac_ext <<_ACEOF
33592 /* end confdefs.h.  */
33593 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
33594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33595 #define gethostbyname innocuous_gethostbyname
33596
33597 /* System header to define __stub macros and hopefully few prototypes,
33598     which can conflict with char gethostbyname (); below.
33599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33600     <limits.h> exists even on freestanding compilers.  */
33601
33602 #ifdef __STDC__
33603 # include <limits.h>
33604 #else
33605 # include <assert.h>
33606 #endif
33607
33608 #undef gethostbyname
33609
33610 /* Override any GCC internal prototype to avoid an error.
33611    Use char because int might match the return type of a GCC
33612    builtin and then its argument prototype would still apply.  */
33613 #ifdef __cplusplus
33614 extern "C"
33615 #endif
33616 char gethostbyname ();
33617 /* The GNU C library defines this for functions which it implements
33618     to always fail with ENOSYS.  Some functions are actually named
33619     something starting with __ and the normal name is an alias.  */
33620 #if defined __stub_gethostbyname || defined __stub___gethostbyname
33621 choke me
33622 #endif
33623
33624 int
33625 main ()
33626 {
33627 return gethostbyname ();
33628   ;
33629   return 0;
33630 }
33631 _ACEOF
33632 rm -f conftest.$ac_objext conftest$ac_exeext
33633 if { (ac_try="$ac_link"
33634 case "(($ac_try" in
33635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33636   *) ac_try_echo=$ac_try;;
33637 esac
33638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33639   (eval "$ac_link") 2>conftest.er1
33640   ac_status=$?
33641   grep -v '^ *+' conftest.er1 >conftest.err
33642   rm -f conftest.er1
33643   cat conftest.err >&5
33644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645   (exit $ac_status); } && {
33646          test -z "$ac_c_werror_flag" ||
33647          test ! -s conftest.err
33648        } && test -s conftest$ac_exeext &&
33649        $as_test_x conftest$ac_exeext; then
33650   ac_cv_func_gethostbyname=yes
33651 else
33652   echo "$as_me: failed program was:" >&5
33653 sed 's/^/| /' conftest.$ac_ext >&5
33654
33655         ac_cv_func_gethostbyname=no
33656 fi
33657
33658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33659       conftest$ac_exeext conftest.$ac_ext
33660 fi
33661 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33662 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
33663
33664     if test $ac_cv_func_gethostbyname = no; then
33665       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33666 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
33667 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33668   echo $ECHO_N "(cached) $ECHO_C" >&6
33669 else
33670   ac_check_lib_save_LIBS=$LIBS
33671 LIBS="-lnsl  $LIBS"
33672 cat >conftest.$ac_ext <<_ACEOF
33673 /* confdefs.h.  */
33674 _ACEOF
33675 cat confdefs.h >>conftest.$ac_ext
33676 cat >>conftest.$ac_ext <<_ACEOF
33677 /* end confdefs.h.  */
33678
33679 /* Override any GCC internal prototype to avoid an error.
33680    Use char because int might match the return type of a GCC
33681    builtin and then its argument prototype would still apply.  */
33682 #ifdef __cplusplus
33683 extern "C"
33684 #endif
33685 char gethostbyname ();
33686 int
33687 main ()
33688 {
33689 return gethostbyname ();
33690   ;
33691   return 0;
33692 }
33693 _ACEOF
33694 rm -f conftest.$ac_objext conftest$ac_exeext
33695 if { (ac_try="$ac_link"
33696 case "(($ac_try" in
33697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698   *) ac_try_echo=$ac_try;;
33699 esac
33700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701   (eval "$ac_link") 2>conftest.er1
33702   ac_status=$?
33703   grep -v '^ *+' conftest.er1 >conftest.err
33704   rm -f conftest.er1
33705   cat conftest.err >&5
33706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707   (exit $ac_status); } && {
33708          test -z "$ac_c_werror_flag" ||
33709          test ! -s conftest.err
33710        } && test -s conftest$ac_exeext &&
33711        $as_test_x conftest$ac_exeext; then
33712   ac_cv_lib_nsl_gethostbyname=yes
33713 else
33714   echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33716
33717         ac_cv_lib_nsl_gethostbyname=no
33718 fi
33719
33720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33721       conftest$ac_exeext conftest.$ac_ext
33722 LIBS=$ac_check_lib_save_LIBS
33723 fi
33724 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
33726 if test $ac_cv_lib_nsl_gethostbyname = yes; then
33727   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33728 fi
33729
33730       if test $ac_cv_lib_nsl_gethostbyname = no; then
33731         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33732 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
33733 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33734   echo $ECHO_N "(cached) $ECHO_C" >&6
33735 else
33736   ac_check_lib_save_LIBS=$LIBS
33737 LIBS="-lbsd  $LIBS"
33738 cat >conftest.$ac_ext <<_ACEOF
33739 /* confdefs.h.  */
33740 _ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h.  */
33744
33745 /* Override any GCC internal prototype to avoid an error.
33746    Use char because int might match the return type of a GCC
33747    builtin and then its argument prototype would still apply.  */
33748 #ifdef __cplusplus
33749 extern "C"
33750 #endif
33751 char gethostbyname ();
33752 int
33753 main ()
33754 {
33755 return gethostbyname ();
33756   ;
33757   return 0;
33758 }
33759 _ACEOF
33760 rm -f conftest.$ac_objext conftest$ac_exeext
33761 if { (ac_try="$ac_link"
33762 case "(($ac_try" in
33763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33764   *) ac_try_echo=$ac_try;;
33765 esac
33766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33767   (eval "$ac_link") 2>conftest.er1
33768   ac_status=$?
33769   grep -v '^ *+' conftest.er1 >conftest.err
33770   rm -f conftest.er1
33771   cat conftest.err >&5
33772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773   (exit $ac_status); } && {
33774          test -z "$ac_c_werror_flag" ||
33775          test ! -s conftest.err
33776        } && test -s conftest$ac_exeext &&
33777        $as_test_x conftest$ac_exeext; then
33778   ac_cv_lib_bsd_gethostbyname=yes
33779 else
33780   echo "$as_me: failed program was:" >&5
33781 sed 's/^/| /' conftest.$ac_ext >&5
33782
33783         ac_cv_lib_bsd_gethostbyname=no
33784 fi
33785
33786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33787       conftest$ac_exeext conftest.$ac_ext
33788 LIBS=$ac_check_lib_save_LIBS
33789 fi
33790 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
33791 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
33792 if test $ac_cv_lib_bsd_gethostbyname = yes; then
33793   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33794 fi
33795
33796       fi
33797     fi
33798
33799     # lieder@skyler.mavd.honeywell.com says without -lsocket,
33800     # socket/setsockopt and other routines are undefined under SCO ODT
33801     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
33802     # on later versions), says Simon Leinen: it contains gethostby*
33803     # variants that don't use the name server (or something).  -lsocket
33804     # must be given before -lnsl if both are needed.  We assume that
33805     # if connect needs -lnsl, so does gethostbyname.
33806     { echo "$as_me:$LINENO: checking for connect" >&5
33807 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
33808 if test "${ac_cv_func_connect+set}" = set; then
33809   echo $ECHO_N "(cached) $ECHO_C" >&6
33810 else
33811   cat >conftest.$ac_ext <<_ACEOF
33812 /* confdefs.h.  */
33813 _ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h.  */
33817 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
33818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33819 #define connect innocuous_connect
33820
33821 /* System header to define __stub macros and hopefully few prototypes,
33822     which can conflict with char connect (); below.
33823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33824     <limits.h> exists even on freestanding compilers.  */
33825
33826 #ifdef __STDC__
33827 # include <limits.h>
33828 #else
33829 # include <assert.h>
33830 #endif
33831
33832 #undef connect
33833
33834 /* Override any GCC internal prototype to avoid an error.
33835    Use char because int might match the return type of a GCC
33836    builtin and then its argument prototype would still apply.  */
33837 #ifdef __cplusplus
33838 extern "C"
33839 #endif
33840 char connect ();
33841 /* The GNU C library defines this for functions which it implements
33842     to always fail with ENOSYS.  Some functions are actually named
33843     something starting with __ and the normal name is an alias.  */
33844 #if defined __stub_connect || defined __stub___connect
33845 choke me
33846 #endif
33847
33848 int
33849 main ()
33850 {
33851 return connect ();
33852   ;
33853   return 0;
33854 }
33855 _ACEOF
33856 rm -f conftest.$ac_objext conftest$ac_exeext
33857 if { (ac_try="$ac_link"
33858 case "(($ac_try" in
33859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33860   *) ac_try_echo=$ac_try;;
33861 esac
33862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33863   (eval "$ac_link") 2>conftest.er1
33864   ac_status=$?
33865   grep -v '^ *+' conftest.er1 >conftest.err
33866   rm -f conftest.er1
33867   cat conftest.err >&5
33868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869   (exit $ac_status); } && {
33870          test -z "$ac_c_werror_flag" ||
33871          test ! -s conftest.err
33872        } && test -s conftest$ac_exeext &&
33873        $as_test_x conftest$ac_exeext; then
33874   ac_cv_func_connect=yes
33875 else
33876   echo "$as_me: failed program was:" >&5
33877 sed 's/^/| /' conftest.$ac_ext >&5
33878
33879         ac_cv_func_connect=no
33880 fi
33881
33882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33883       conftest$ac_exeext conftest.$ac_ext
33884 fi
33885 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
33886 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
33887
33888     if test $ac_cv_func_connect = no; then
33889       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
33890 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
33891 if test "${ac_cv_lib_socket_connect+set}" = set; then
33892   echo $ECHO_N "(cached) $ECHO_C" >&6
33893 else
33894   ac_check_lib_save_LIBS=$LIBS
33895 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33896 cat >conftest.$ac_ext <<_ACEOF
33897 /* confdefs.h.  */
33898 _ACEOF
33899 cat confdefs.h >>conftest.$ac_ext
33900 cat >>conftest.$ac_ext <<_ACEOF
33901 /* end confdefs.h.  */
33902
33903 /* Override any GCC internal prototype to avoid an error.
33904    Use char because int might match the return type of a GCC
33905    builtin and then its argument prototype would still apply.  */
33906 #ifdef __cplusplus
33907 extern "C"
33908 #endif
33909 char connect ();
33910 int
33911 main ()
33912 {
33913 return connect ();
33914   ;
33915   return 0;
33916 }
33917 _ACEOF
33918 rm -f conftest.$ac_objext conftest$ac_exeext
33919 if { (ac_try="$ac_link"
33920 case "(($ac_try" in
33921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922   *) ac_try_echo=$ac_try;;
33923 esac
33924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925   (eval "$ac_link") 2>conftest.er1
33926   ac_status=$?
33927   grep -v '^ *+' conftest.er1 >conftest.err
33928   rm -f conftest.er1
33929   cat conftest.err >&5
33930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931   (exit $ac_status); } && {
33932          test -z "$ac_c_werror_flag" ||
33933          test ! -s conftest.err
33934        } && test -s conftest$ac_exeext &&
33935        $as_test_x conftest$ac_exeext; then
33936   ac_cv_lib_socket_connect=yes
33937 else
33938   echo "$as_me: failed program was:" >&5
33939 sed 's/^/| /' conftest.$ac_ext >&5
33940
33941         ac_cv_lib_socket_connect=no
33942 fi
33943
33944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33945       conftest$ac_exeext conftest.$ac_ext
33946 LIBS=$ac_check_lib_save_LIBS
33947 fi
33948 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33949 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
33950 if test $ac_cv_lib_socket_connect = yes; then
33951   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33952 fi
33953
33954     fi
33955
33956     # Guillermo Gomez says -lposix is necessary on A/UX.
33957     { echo "$as_me:$LINENO: checking for remove" >&5
33958 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
33959 if test "${ac_cv_func_remove+set}" = set; then
33960   echo $ECHO_N "(cached) $ECHO_C" >&6
33961 else
33962   cat >conftest.$ac_ext <<_ACEOF
33963 /* confdefs.h.  */
33964 _ACEOF
33965 cat confdefs.h >>conftest.$ac_ext
33966 cat >>conftest.$ac_ext <<_ACEOF
33967 /* end confdefs.h.  */
33968 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33970 #define remove innocuous_remove
33971
33972 /* System header to define __stub macros and hopefully few prototypes,
33973     which can conflict with char remove (); below.
33974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33975     <limits.h> exists even on freestanding compilers.  */
33976
33977 #ifdef __STDC__
33978 # include <limits.h>
33979 #else
33980 # include <assert.h>
33981 #endif
33982
33983 #undef remove
33984
33985 /* Override any GCC internal prototype to avoid an error.
33986    Use char because int might match the return type of a GCC
33987    builtin and then its argument prototype would still apply.  */
33988 #ifdef __cplusplus
33989 extern "C"
33990 #endif
33991 char remove ();
33992 /* The GNU C library defines this for functions which it implements
33993     to always fail with ENOSYS.  Some functions are actually named
33994     something starting with __ and the normal name is an alias.  */
33995 #if defined __stub_remove || defined __stub___remove
33996 choke me
33997 #endif
33998
33999 int
34000 main ()
34001 {
34002 return remove ();
34003   ;
34004   return 0;
34005 }
34006 _ACEOF
34007 rm -f conftest.$ac_objext conftest$ac_exeext
34008 if { (ac_try="$ac_link"
34009 case "(($ac_try" in
34010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011   *) ac_try_echo=$ac_try;;
34012 esac
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014   (eval "$ac_link") 2>conftest.er1
34015   ac_status=$?
34016   grep -v '^ *+' conftest.er1 >conftest.err
34017   rm -f conftest.er1
34018   cat conftest.err >&5
34019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020   (exit $ac_status); } && {
34021          test -z "$ac_c_werror_flag" ||
34022          test ! -s conftest.err
34023        } && test -s conftest$ac_exeext &&
34024        $as_test_x conftest$ac_exeext; then
34025   ac_cv_func_remove=yes
34026 else
34027   echo "$as_me: failed program was:" >&5
34028 sed 's/^/| /' conftest.$ac_ext >&5
34029
34030         ac_cv_func_remove=no
34031 fi
34032
34033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34034       conftest$ac_exeext conftest.$ac_ext
34035 fi
34036 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
34037 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
34038
34039     if test $ac_cv_func_remove = no; then
34040       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
34041 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
34042 if test "${ac_cv_lib_posix_remove+set}" = set; then
34043   echo $ECHO_N "(cached) $ECHO_C" >&6
34044 else
34045   ac_check_lib_save_LIBS=$LIBS
34046 LIBS="-lposix  $LIBS"
34047 cat >conftest.$ac_ext <<_ACEOF
34048 /* confdefs.h.  */
34049 _ACEOF
34050 cat confdefs.h >>conftest.$ac_ext
34051 cat >>conftest.$ac_ext <<_ACEOF
34052 /* end confdefs.h.  */
34053
34054 /* Override any GCC internal prototype to avoid an error.
34055    Use char because int might match the return type of a GCC
34056    builtin and then its argument prototype would still apply.  */
34057 #ifdef __cplusplus
34058 extern "C"
34059 #endif
34060 char remove ();
34061 int
34062 main ()
34063 {
34064 return remove ();
34065   ;
34066   return 0;
34067 }
34068 _ACEOF
34069 rm -f conftest.$ac_objext conftest$ac_exeext
34070 if { (ac_try="$ac_link"
34071 case "(($ac_try" in
34072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073   *) ac_try_echo=$ac_try;;
34074 esac
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076   (eval "$ac_link") 2>conftest.er1
34077   ac_status=$?
34078   grep -v '^ *+' conftest.er1 >conftest.err
34079   rm -f conftest.er1
34080   cat conftest.err >&5
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); } && {
34083          test -z "$ac_c_werror_flag" ||
34084          test ! -s conftest.err
34085        } && test -s conftest$ac_exeext &&
34086        $as_test_x conftest$ac_exeext; then
34087   ac_cv_lib_posix_remove=yes
34088 else
34089   echo "$as_me: failed program was:" >&5
34090 sed 's/^/| /' conftest.$ac_ext >&5
34091
34092         ac_cv_lib_posix_remove=no
34093 fi
34094
34095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34096       conftest$ac_exeext conftest.$ac_ext
34097 LIBS=$ac_check_lib_save_LIBS
34098 fi
34099 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
34100 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
34101 if test $ac_cv_lib_posix_remove = yes; then
34102   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
34103 fi
34104
34105     fi
34106
34107     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
34108     { echo "$as_me:$LINENO: checking for shmat" >&5
34109 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
34110 if test "${ac_cv_func_shmat+set}" = set; then
34111   echo $ECHO_N "(cached) $ECHO_C" >&6
34112 else
34113   cat >conftest.$ac_ext <<_ACEOF
34114 /* confdefs.h.  */
34115 _ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h.  */
34119 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
34120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34121 #define shmat innocuous_shmat
34122
34123 /* System header to define __stub macros and hopefully few prototypes,
34124     which can conflict with char shmat (); below.
34125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34126     <limits.h> exists even on freestanding compilers.  */
34127
34128 #ifdef __STDC__
34129 # include <limits.h>
34130 #else
34131 # include <assert.h>
34132 #endif
34133
34134 #undef shmat
34135
34136 /* Override any GCC internal prototype to avoid an error.
34137    Use char because int might match the return type of a GCC
34138    builtin and then its argument prototype would still apply.  */
34139 #ifdef __cplusplus
34140 extern "C"
34141 #endif
34142 char shmat ();
34143 /* The GNU C library defines this for functions which it implements
34144     to always fail with ENOSYS.  Some functions are actually named
34145     something starting with __ and the normal name is an alias.  */
34146 #if defined __stub_shmat || defined __stub___shmat
34147 choke me
34148 #endif
34149
34150 int
34151 main ()
34152 {
34153 return shmat ();
34154   ;
34155   return 0;
34156 }
34157 _ACEOF
34158 rm -f conftest.$ac_objext conftest$ac_exeext
34159 if { (ac_try="$ac_link"
34160 case "(($ac_try" in
34161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34162   *) ac_try_echo=$ac_try;;
34163 esac
34164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34165   (eval "$ac_link") 2>conftest.er1
34166   ac_status=$?
34167   grep -v '^ *+' conftest.er1 >conftest.err
34168   rm -f conftest.er1
34169   cat conftest.err >&5
34170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171   (exit $ac_status); } && {
34172          test -z "$ac_c_werror_flag" ||
34173          test ! -s conftest.err
34174        } && test -s conftest$ac_exeext &&
34175        $as_test_x conftest$ac_exeext; then
34176   ac_cv_func_shmat=yes
34177 else
34178   echo "$as_me: failed program was:" >&5
34179 sed 's/^/| /' conftest.$ac_ext >&5
34180
34181         ac_cv_func_shmat=no
34182 fi
34183
34184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34185       conftest$ac_exeext conftest.$ac_ext
34186 fi
34187 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
34188 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
34189
34190     if test $ac_cv_func_shmat = no; then
34191       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
34192 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
34193 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
34194   echo $ECHO_N "(cached) $ECHO_C" >&6
34195 else
34196   ac_check_lib_save_LIBS=$LIBS
34197 LIBS="-lipc  $LIBS"
34198 cat >conftest.$ac_ext <<_ACEOF
34199 /* confdefs.h.  */
34200 _ACEOF
34201 cat confdefs.h >>conftest.$ac_ext
34202 cat >>conftest.$ac_ext <<_ACEOF
34203 /* end confdefs.h.  */
34204
34205 /* Override any GCC internal prototype to avoid an error.
34206    Use char because int might match the return type of a GCC
34207    builtin and then its argument prototype would still apply.  */
34208 #ifdef __cplusplus
34209 extern "C"
34210 #endif
34211 char shmat ();
34212 int
34213 main ()
34214 {
34215 return shmat ();
34216   ;
34217   return 0;
34218 }
34219 _ACEOF
34220 rm -f conftest.$ac_objext conftest$ac_exeext
34221 if { (ac_try="$ac_link"
34222 case "(($ac_try" in
34223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34224   *) ac_try_echo=$ac_try;;
34225 esac
34226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34227   (eval "$ac_link") 2>conftest.er1
34228   ac_status=$?
34229   grep -v '^ *+' conftest.er1 >conftest.err
34230   rm -f conftest.er1
34231   cat conftest.err >&5
34232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233   (exit $ac_status); } && {
34234          test -z "$ac_c_werror_flag" ||
34235          test ! -s conftest.err
34236        } && test -s conftest$ac_exeext &&
34237        $as_test_x conftest$ac_exeext; then
34238   ac_cv_lib_ipc_shmat=yes
34239 else
34240   echo "$as_me: failed program was:" >&5
34241 sed 's/^/| /' conftest.$ac_ext >&5
34242
34243         ac_cv_lib_ipc_shmat=no
34244 fi
34245
34246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34247       conftest$ac_exeext conftest.$ac_ext
34248 LIBS=$ac_check_lib_save_LIBS
34249 fi
34250 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
34251 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
34252 if test $ac_cv_lib_ipc_shmat = yes; then
34253   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
34254 fi
34255
34256     fi
34257   fi
34258
34259   # Check for libraries that X11R6 Xt/Xaw programs need.
34260   ac_save_LDFLAGS=$LDFLAGS
34261   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
34262   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
34263   # check for ICE first), but we must link in the order -lSM -lICE or
34264   # we get undefined symbols.  So assume we have SM if we have ICE.
34265   # These have to be linked with before -lX11, unlike the other
34266   # libraries we check for below, so use a different variable.
34267   # John Interrante, Karl Berry
34268   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
34269 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
34270 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
34271   echo $ECHO_N "(cached) $ECHO_C" >&6
34272 else
34273   ac_check_lib_save_LIBS=$LIBS
34274 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
34275 cat >conftest.$ac_ext <<_ACEOF
34276 /* confdefs.h.  */
34277 _ACEOF
34278 cat confdefs.h >>conftest.$ac_ext
34279 cat >>conftest.$ac_ext <<_ACEOF
34280 /* end confdefs.h.  */
34281
34282 /* Override any GCC internal prototype to avoid an error.
34283    Use char because int might match the return type of a GCC
34284    builtin and then its argument prototype would still apply.  */
34285 #ifdef __cplusplus
34286 extern "C"
34287 #endif
34288 char IceConnectionNumber ();
34289 int
34290 main ()
34291 {
34292 return IceConnectionNumber ();
34293   ;
34294   return 0;
34295 }
34296 _ACEOF
34297 rm -f conftest.$ac_objext conftest$ac_exeext
34298 if { (ac_try="$ac_link"
34299 case "(($ac_try" in
34300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34301   *) ac_try_echo=$ac_try;;
34302 esac
34303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34304   (eval "$ac_link") 2>conftest.er1
34305   ac_status=$?
34306   grep -v '^ *+' conftest.er1 >conftest.err
34307   rm -f conftest.er1
34308   cat conftest.err >&5
34309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34310   (exit $ac_status); } && {
34311          test -z "$ac_c_werror_flag" ||
34312          test ! -s conftest.err
34313        } && test -s conftest$ac_exeext &&
34314        $as_test_x conftest$ac_exeext; then
34315   ac_cv_lib_ICE_IceConnectionNumber=yes
34316 else
34317   echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34319
34320         ac_cv_lib_ICE_IceConnectionNumber=no
34321 fi
34322
34323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34324       conftest$ac_exeext conftest.$ac_ext
34325 LIBS=$ac_check_lib_save_LIBS
34326 fi
34327 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
34328 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
34329 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
34330   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
34331 fi
34332
34333   LDFLAGS=$ac_save_LDFLAGS
34334
34335 fi
34336
34337
34338         if test "$no_x" = "yes"; then
34339           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
34340 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
34341    { (exit 1); exit 1; }; }
34342         fi
34343
34344                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
34345         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
34346         AFMINSTALL=afminstall
34347         COMPILED_X_PROGRAM=0
34348
34349     fi
34350
34351     if test "$wxUSE_X11" = 1; then
34352         if test "$wxUSE_NANOX" = "yes"; then
34353             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
34354 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
34355             if test "x$MICROWIN" = x ; then
34356                 { echo "$as_me:$LINENO: result: not found" >&5
34357 echo "${ECHO_T}not found" >&6; }
34358                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
34359 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
34360    { (exit 1); exit 1; }; }
34361             else
34362                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
34363 echo "${ECHO_T}$MICROWIN" >&6; }
34364                 cat >>confdefs.h <<\_ACEOF
34365 #define wxUSE_NANOX 1
34366 _ACEOF
34367
34368             fi
34369         fi
34370
34371         if test "$wxUSE_UNICODE" = "yes"; then
34372
34373
34374 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
34375         if test -n "$ac_tool_prefix"; then
34376   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
34377 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
34378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34380 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
34381   echo $ECHO_N "(cached) $ECHO_C" >&6
34382 else
34383   case $PKG_CONFIG in
34384   [\\/]* | ?:[\\/]*)
34385   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
34386   ;;
34387   *)
34388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389 for as_dir in $PATH
34390 do
34391   IFS=$as_save_IFS
34392   test -z "$as_dir" && as_dir=.
34393   for ac_exec_ext in '' $ac_executable_extensions; do
34394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34395     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34397     break 2
34398   fi
34399 done
34400 done
34401 IFS=$as_save_IFS
34402
34403   ;;
34404 esac
34405 fi
34406 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
34407 if test -n "$PKG_CONFIG"; then
34408   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
34409 echo "${ECHO_T}$PKG_CONFIG" >&6; }
34410 else
34411   { echo "$as_me:$LINENO: result: no" >&5
34412 echo "${ECHO_T}no" >&6; }
34413 fi
34414
34415
34416 fi
34417 if test -z "$ac_cv_path_PKG_CONFIG"; then
34418   ac_pt_PKG_CONFIG=$PKG_CONFIG
34419   # Extract the first word of "pkg-config", so it can be a program name with args.
34420 set dummy pkg-config; ac_word=$2
34421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34423 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
34424   echo $ECHO_N "(cached) $ECHO_C" >&6
34425 else
34426   case $ac_pt_PKG_CONFIG in
34427   [\\/]* | ?:[\\/]*)
34428   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
34429   ;;
34430   *)
34431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34432 for as_dir in $PATH
34433 do
34434   IFS=$as_save_IFS
34435   test -z "$as_dir" && as_dir=.
34436   for ac_exec_ext in '' $ac_executable_extensions; do
34437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34438     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34440     break 2
34441   fi
34442 done
34443 done
34444 IFS=$as_save_IFS
34445
34446   ;;
34447 esac
34448 fi
34449 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
34450 if test -n "$ac_pt_PKG_CONFIG"; then
34451   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
34452 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
34453 else
34454   { echo "$as_me:$LINENO: result: no" >&5
34455 echo "${ECHO_T}no" >&6; }
34456 fi
34457
34458   if test "x$ac_pt_PKG_CONFIG" = x; then
34459     PKG_CONFIG=""
34460   else
34461     case $cross_compiling:$ac_tool_warned in
34462 yes:)
34463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34464 whose name does not start with the host triplet.  If you think this
34465 configuration is useful to you, please write to autoconf@gnu.org." >&5
34466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34467 whose name does not start with the host triplet.  If you think this
34468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34469 ac_tool_warned=yes ;;
34470 esac
34471     PKG_CONFIG=$ac_pt_PKG_CONFIG
34472   fi
34473 else
34474   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
34475 fi
34476
34477 fi
34478 if test -n "$PKG_CONFIG"; then
34479         _pkg_min_version=0.9.0
34480         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34481 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
34482         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
34483                 { echo "$as_me:$LINENO: result: yes" >&5
34484 echo "${ECHO_T}yes" >&6; }
34485         else
34486                 { echo "$as_me:$LINENO: result: no" >&5
34487 echo "${ECHO_T}no" >&6; }
34488                 PKG_CONFIG=""
34489         fi
34490
34491 fi
34492
34493
34494 pkg_failed=no
34495 { echo "$as_me:$LINENO: checking for PANGOX" >&5
34496 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
34497
34498 if test -n "$PKG_CONFIG"; then
34499     if test -n "$PANGOX_CFLAGS"; then
34500         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
34501     else
34502         if test -n "$PKG_CONFIG" && \
34503     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34504   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34505   ac_status=$?
34506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507   (exit $ac_status); }; then
34508   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
34509 else
34510   pkg_failed=yes
34511 fi
34512     fi
34513 else
34514         pkg_failed=untried
34515 fi
34516 if test -n "$PKG_CONFIG"; then
34517     if test -n "$PANGOX_LIBS"; then
34518         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
34519     else
34520         if test -n "$PKG_CONFIG" && \
34521     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34522   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34523   ac_status=$?
34524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525   (exit $ac_status); }; then
34526   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
34527 else
34528   pkg_failed=yes
34529 fi
34530     fi
34531 else
34532         pkg_failed=untried
34533 fi
34534
34535
34536
34537 if test $pkg_failed = yes; then
34538
34539 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34540         _pkg_short_errors_supported=yes
34541 else
34542         _pkg_short_errors_supported=no
34543 fi
34544         if test $_pkg_short_errors_supported = yes; then
34545                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
34546         else
34547                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
34548         fi
34549         # Put the nasty error message in config.log where it belongs
34550         echo "$PANGOX_PKG_ERRORS" >&5
34551
34552
34553                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34554 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34555    { (exit 1); exit 1; }; }
34556
34557
34558 elif test $pkg_failed = untried; then
34559
34560                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34561 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34562    { (exit 1); exit 1; }; }
34563
34564
34565 else
34566         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
34567         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
34568         { echo "$as_me:$LINENO: result: yes" >&5
34569 echo "${ECHO_T}yes" >&6; }
34570
34571                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
34572                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
34573                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
34574
34575 fi
34576
34577 pkg_failed=no
34578 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
34579 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
34580
34581 if test -n "$PKG_CONFIG"; then
34582     if test -n "$PANGOFT2_CFLAGS"; then
34583         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
34584     else
34585         if test -n "$PKG_CONFIG" && \
34586     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34587   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34588   ac_status=$?
34589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34590   (exit $ac_status); }; then
34591   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
34592 else
34593   pkg_failed=yes
34594 fi
34595     fi
34596 else
34597         pkg_failed=untried
34598 fi
34599 if test -n "$PKG_CONFIG"; then
34600     if test -n "$PANGOFT2_LIBS"; then
34601         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
34602     else
34603         if test -n "$PKG_CONFIG" && \
34604     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34605   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34606   ac_status=$?
34607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608   (exit $ac_status); }; then
34609   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
34610 else
34611   pkg_failed=yes
34612 fi
34613     fi
34614 else
34615         pkg_failed=untried
34616 fi
34617
34618
34619
34620 if test $pkg_failed = yes; then
34621
34622 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34623         _pkg_short_errors_supported=yes
34624 else
34625         _pkg_short_errors_supported=no
34626 fi
34627         if test $_pkg_short_errors_supported = yes; then
34628                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
34629         else
34630                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
34631         fi
34632         # Put the nasty error message in config.log where it belongs
34633         echo "$PANGOFT2_PKG_ERRORS" >&5
34634
34635
34636                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34637 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34638                     wxUSE_PRINTING_ARCHITECTURE="no"
34639
34640
34641 elif test $pkg_failed = untried; then
34642
34643                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34644 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34645                     wxUSE_PRINTING_ARCHITECTURE="no"
34646
34647
34648 else
34649         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
34650         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
34651         { echo "$as_me:$LINENO: result: yes" >&5
34652 echo "${ECHO_T}yes" >&6; }
34653
34654                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
34655                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
34656                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
34657
34658 fi
34659
34660 pkg_failed=no
34661 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
34662 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
34663
34664 if test -n "$PKG_CONFIG"; then
34665     if test -n "$PANGOXFT_CFLAGS"; then
34666         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
34667     else
34668         if test -n "$PKG_CONFIG" && \
34669     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34670   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34671   ac_status=$?
34672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673   (exit $ac_status); }; then
34674   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
34675 else
34676   pkg_failed=yes
34677 fi
34678     fi
34679 else
34680         pkg_failed=untried
34681 fi
34682 if test -n "$PKG_CONFIG"; then
34683     if test -n "$PANGOXFT_LIBS"; then
34684         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
34685     else
34686         if test -n "$PKG_CONFIG" && \
34687     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34688   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34689   ac_status=$?
34690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691   (exit $ac_status); }; then
34692   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
34693 else
34694   pkg_failed=yes
34695 fi
34696     fi
34697 else
34698         pkg_failed=untried
34699 fi
34700
34701
34702
34703 if test $pkg_failed = yes; then
34704
34705 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34706         _pkg_short_errors_supported=yes
34707 else
34708         _pkg_short_errors_supported=no
34709 fi
34710         if test $_pkg_short_errors_supported = yes; then
34711                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
34712         else
34713                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
34714         fi
34715         # Put the nasty error message in config.log where it belongs
34716         echo "$PANGOXFT_PKG_ERRORS" >&5
34717
34718
34719                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34720 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34721
34722
34723 elif test $pkg_failed = untried; then
34724
34725                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34726 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34727
34728
34729 else
34730         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
34731         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
34732         { echo "$as_me:$LINENO: result: yes" >&5
34733 echo "${ECHO_T}yes" >&6; }
34734
34735                     cat >>confdefs.h <<\_ACEOF
34736 #define HAVE_PANGO_XFT 1
34737 _ACEOF
34738
34739                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
34740                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
34741                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
34742
34743 fi
34744             save_LIBS="$LIBS"
34745             LIBS="$LIBS $PANGOX_LIBS"
34746
34747 for ac_func in pango_font_family_is_monospace
34748 do
34749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34753   echo $ECHO_N "(cached) $ECHO_C" >&6
34754 else
34755   cat >conftest.$ac_ext <<_ACEOF
34756 /* confdefs.h.  */
34757 _ACEOF
34758 cat confdefs.h >>conftest.$ac_ext
34759 cat >>conftest.$ac_ext <<_ACEOF
34760 /* end confdefs.h.  */
34761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34763 #define $ac_func innocuous_$ac_func
34764
34765 /* System header to define __stub macros and hopefully few prototypes,
34766     which can conflict with char $ac_func (); below.
34767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34768     <limits.h> exists even on freestanding compilers.  */
34769
34770 #ifdef __STDC__
34771 # include <limits.h>
34772 #else
34773 # include <assert.h>
34774 #endif
34775
34776 #undef $ac_func
34777
34778 /* Override any GCC internal prototype to avoid an error.
34779    Use char because int might match the return type of a GCC
34780    builtin and then its argument prototype would still apply.  */
34781 #ifdef __cplusplus
34782 extern "C"
34783 #endif
34784 char $ac_func ();
34785 /* The GNU C library defines this for functions which it implements
34786     to always fail with ENOSYS.  Some functions are actually named
34787     something starting with __ and the normal name is an alias.  */
34788 #if defined __stub_$ac_func || defined __stub___$ac_func
34789 choke me
34790 #endif
34791
34792 int
34793 main ()
34794 {
34795 return $ac_func ();
34796   ;
34797   return 0;
34798 }
34799 _ACEOF
34800 rm -f conftest.$ac_objext conftest$ac_exeext
34801 if { (ac_try="$ac_link"
34802 case "(($ac_try" in
34803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34804   *) ac_try_echo=$ac_try;;
34805 esac
34806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34807   (eval "$ac_link") 2>conftest.er1
34808   ac_status=$?
34809   grep -v '^ *+' conftest.er1 >conftest.err
34810   rm -f conftest.er1
34811   cat conftest.err >&5
34812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813   (exit $ac_status); } && {
34814          test -z "$ac_c_werror_flag" ||
34815          test ! -s conftest.err
34816        } && test -s conftest$ac_exeext &&
34817        $as_test_x conftest$ac_exeext; then
34818   eval "$as_ac_var=yes"
34819 else
34820   echo "$as_me: failed program was:" >&5
34821 sed 's/^/| /' conftest.$ac_ext >&5
34822
34823         eval "$as_ac_var=no"
34824 fi
34825
34826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34827       conftest$ac_exeext conftest.$ac_ext
34828 fi
34829 ac_res=`eval echo '${'$as_ac_var'}'`
34830                { echo "$as_me:$LINENO: result: $ac_res" >&5
34831 echo "${ECHO_T}$ac_res" >&6; }
34832 if test `eval echo '${'$as_ac_var'}'` = yes; then
34833   cat >>confdefs.h <<_ACEOF
34834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34835 _ACEOF
34836
34837 fi
34838 done
34839
34840             LIBS="$save_LIBS"
34841         fi
34842
34843         wxUSE_UNIVERSAL="yes"
34844
34845         if test "$wxUSE_NANOX" = "yes"; then
34846             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
34847             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"
34848             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
34849         else
34850             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
34851         fi
34852
34853         TOOLKIT=X11
34854         GUIDIST=X11_DIST
34855     fi
34856
34857     if test "$wxUSE_MOTIF" = 1; then
34858         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
34859 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
34860
34861 ac_find_includes=
34862 for ac_dir in $SEARCH_INCLUDE /usr/include;
34863   do
34864     if test -f "$ac_dir/Xm/Xm.h"; then
34865       ac_find_includes=$ac_dir
34866       break
34867     fi
34868   done
34869
34870         if test "$ac_find_includes" != "" ; then
34871             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34872 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34873
34874     if test "x$ac_find_includes" = "x/usr/include"; then
34875     ac_path_to_include=""
34876   else
34877     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
34878     result=$?
34879     if test $result = 0; then
34880       ac_path_to_include=""
34881     else
34882       ac_path_to_include=" -I$ac_find_includes"
34883     fi
34884   fi
34885
34886             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
34887         else
34888             save_CFLAGS=$CFLAGS
34889             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34890
34891             cat >conftest.$ac_ext <<_ACEOF
34892 /* confdefs.h.  */
34893 _ACEOF
34894 cat confdefs.h >>conftest.$ac_ext
34895 cat >>conftest.$ac_ext <<_ACEOF
34896 /* end confdefs.h.  */
34897
34898                     #include <Xm/Xm.h>
34899
34900 int
34901 main ()
34902 {
34903
34904                     int version;
34905                     version = xmUseVersion;
34906
34907   ;
34908   return 0;
34909 }
34910 _ACEOF
34911 rm -f conftest.$ac_objext
34912 if { (ac_try="$ac_compile"
34913 case "(($ac_try" in
34914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34915   *) ac_try_echo=$ac_try;;
34916 esac
34917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34918   (eval "$ac_compile") 2>conftest.er1
34919   ac_status=$?
34920   grep -v '^ *+' conftest.er1 >conftest.err
34921   rm -f conftest.er1
34922   cat conftest.err >&5
34923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924   (exit $ac_status); } && {
34925          test -z "$ac_c_werror_flag" ||
34926          test ! -s conftest.err
34927        } && test -s conftest.$ac_objext; then
34928
34929                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34930 echo "${ECHO_T}found in default search path" >&6; }
34931                     COMPILED_X_PROGRAM=1
34932
34933 else
34934   echo "$as_me: failed program was:" >&5
34935 sed 's/^/| /' conftest.$ac_ext >&5
34936
34937
34938                     { echo "$as_me:$LINENO: result: no" >&5
34939 echo "${ECHO_T}no" >&6; }
34940                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34941 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
34942    { (exit 1); exit 1; }; }
34943
34944
34945 fi
34946
34947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34948
34949             CFLAGS=$save_CFLAGS
34950         fi
34951
34952
34953         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34954 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
34955
34956   ac_find_libraries=
34957   for ac_dir in $SEARCH_LIB;
34958   do
34959     for ac_extension in a so sl dylib dll.a; do
34960       if test -f "$ac_dir/libXm.$ac_extension"; then
34961         ac_find_libraries=$ac_dir
34962         break 2
34963       fi
34964     done
34965   done
34966
34967
34968         if test "x$ac_find_libraries" != "x" ; then
34969             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34970 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34971
34972
34973     if test "$ac_find_libraries" = "default location"; then
34974     ac_path_to_link=""
34975   else
34976     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34977     result=$?
34978     if test $result = 0; then
34979       ac_path_to_link=""
34980     else
34981       ac_path_to_link=" -L$ac_find_libraries"
34982     fi
34983   fi
34984
34985             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34986         else
34987                                                 save_CFLAGS=$CFLAGS
34988             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34989             save_LIBS="$LIBS"
34990             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34991
34992             cat >conftest.$ac_ext <<_ACEOF
34993 /* confdefs.h.  */
34994 _ACEOF
34995 cat confdefs.h >>conftest.$ac_ext
34996 cat >>conftest.$ac_ext <<_ACEOF
34997 /* end confdefs.h.  */
34998
34999                     #include <Xm/Xm.h>
35000
35001 int
35002 main ()
35003 {
35004
35005                     int version;
35006                     version = xmUseVersion;
35007
35008   ;
35009   return 0;
35010 }
35011 _ACEOF
35012 rm -f conftest.$ac_objext conftest$ac_exeext
35013 if { (ac_try="$ac_link"
35014 case "(($ac_try" in
35015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35016   *) ac_try_echo=$ac_try;;
35017 esac
35018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35019   (eval "$ac_link") 2>conftest.er1
35020   ac_status=$?
35021   grep -v '^ *+' conftest.er1 >conftest.err
35022   rm -f conftest.er1
35023   cat conftest.err >&5
35024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025   (exit $ac_status); } && {
35026          test -z "$ac_c_werror_flag" ||
35027          test ! -s conftest.err
35028        } && test -s conftest$ac_exeext &&
35029        $as_test_x conftest$ac_exeext; then
35030
35031                     { echo "$as_me:$LINENO: result: found in default search path" >&5
35032 echo "${ECHO_T}found in default search path" >&6; }
35033                     COMPILED_X_PROGRAM=1
35034
35035 else
35036   echo "$as_me: failed program was:" >&5
35037 sed 's/^/| /' conftest.$ac_ext >&5
35038
35039
35040                     { echo "$as_me:$LINENO: result: no" >&5
35041 echo "${ECHO_T}no" >&6; }
35042                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
35043 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
35044    { (exit 1); exit 1; }; }
35045
35046
35047 fi
35048
35049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35050       conftest$ac_exeext conftest.$ac_ext
35051
35052             CFLAGS=$save_CFLAGS
35053             LIBS="$save_LIBS"
35054         fi
35055
35056         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
35057 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
35058         libp_link=""
35059         libsm_ice_link=""
35060         libs_found=0
35061         for libp in "" " -lXp"; do
35062             if test "$libs_found" = "0"; then
35063                 for libsm_ice in "" " -lSM -lICE"; do
35064                     if test "$libs_found" = "0"; then
35065                         save_LIBS="$LIBS"
35066                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
35067                         save_CFLAGS=$CFLAGS
35068                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35069
35070                         cat >conftest.$ac_ext <<_ACEOF
35071 /* confdefs.h.  */
35072 _ACEOF
35073 cat confdefs.h >>conftest.$ac_ext
35074 cat >>conftest.$ac_ext <<_ACEOF
35075 /* end confdefs.h.  */
35076
35077                                 #include <Xm/Xm.h>
35078                                 #include <Xm/List.h>
35079
35080 int
35081 main ()
35082 {
35083
35084                                 XmString string = NULL;
35085                                 Widget w = NULL;
35086                                 int position = 0;
35087                                 XmListAddItem(w, string, position);
35088
35089   ;
35090   return 0;
35091 }
35092 _ACEOF
35093 rm -f conftest.$ac_objext conftest$ac_exeext
35094 if { (ac_try="$ac_link"
35095 case "(($ac_try" in
35096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35097   *) ac_try_echo=$ac_try;;
35098 esac
35099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35100   (eval "$ac_link") 2>conftest.er1
35101   ac_status=$?
35102   grep -v '^ *+' conftest.er1 >conftest.err
35103   rm -f conftest.er1
35104   cat conftest.err >&5
35105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106   (exit $ac_status); } && {
35107          test -z "$ac_c_werror_flag" ||
35108          test ! -s conftest.err
35109        } && test -s conftest$ac_exeext &&
35110        $as_test_x conftest$ac_exeext; then
35111
35112                                 libp_link="$libp"
35113                                 libsm_ice_link="$libsm_ice"
35114                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
35115 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
35116                                 libs_found=1
35117
35118 else
35119   echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35121
35122
35123
35124 fi
35125
35126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35127       conftest$ac_exeext conftest.$ac_ext
35128
35129                         LIBS="$save_LIBS"
35130                         CFLAGS=$save_CFLAGS
35131                     fi
35132                 done
35133             fi
35134         done
35135
35136         if test "$libs_found" = "0"; then
35137             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
35138 echo "${ECHO_T}can't find the right libraries" >&6; }
35139             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
35140 echo "$as_me: error: can't link a simple motif program" >&2;}
35141    { (exit 1); exit 1; }; }
35142         fi
35143
35144                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
35145 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
35146 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
35147   echo $ECHO_N "(cached) $ECHO_C" >&6
35148 else
35149   ac_check_lib_save_LIBS=$LIBS
35150 LIBS="-lSgm  $LIBS"
35151 cat >conftest.$ac_ext <<_ACEOF
35152 /* confdefs.h.  */
35153 _ACEOF
35154 cat confdefs.h >>conftest.$ac_ext
35155 cat >>conftest.$ac_ext <<_ACEOF
35156 /* end confdefs.h.  */
35157
35158 /* Override any GCC internal prototype to avoid an error.
35159    Use char because int might match the return type of a GCC
35160    builtin and then its argument prototype would still apply.  */
35161 #ifdef __cplusplus
35162 extern "C"
35163 #endif
35164 char SgCreateList ();
35165 int
35166 main ()
35167 {
35168 return SgCreateList ();
35169   ;
35170   return 0;
35171 }
35172 _ACEOF
35173 rm -f conftest.$ac_objext conftest$ac_exeext
35174 if { (ac_try="$ac_link"
35175 case "(($ac_try" in
35176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35177   *) ac_try_echo=$ac_try;;
35178 esac
35179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35180   (eval "$ac_link") 2>conftest.er1
35181   ac_status=$?
35182   grep -v '^ *+' conftest.er1 >conftest.err
35183   rm -f conftest.er1
35184   cat conftest.err >&5
35185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186   (exit $ac_status); } && {
35187          test -z "$ac_c_werror_flag" ||
35188          test ! -s conftest.err
35189        } && test -s conftest$ac_exeext &&
35190        $as_test_x conftest$ac_exeext; then
35191   ac_cv_lib_Sgm_SgCreateList=yes
35192 else
35193   echo "$as_me: failed program was:" >&5
35194 sed 's/^/| /' conftest.$ac_ext >&5
35195
35196         ac_cv_lib_Sgm_SgCreateList=no
35197 fi
35198
35199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35200       conftest$ac_exeext conftest.$ac_ext
35201 LIBS=$ac_check_lib_save_LIBS
35202 fi
35203 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
35204 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
35205 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
35206   libsgm_link=" -lSgm"
35207 fi
35208
35209
35210         save_CFLAGS=$CFLAGS
35211         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35212
35213         { echo "$as_me:$LINENO: checking for Motif 2" >&5
35214 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
35215 if test "${wx_cv_lib_motif2+set}" = set; then
35216   echo $ECHO_N "(cached) $ECHO_C" >&6
35217 else
35218   cat >conftest.$ac_ext <<_ACEOF
35219 /* confdefs.h.  */
35220 _ACEOF
35221 cat confdefs.h >>conftest.$ac_ext
35222 cat >>conftest.$ac_ext <<_ACEOF
35223 /* end confdefs.h.  */
35224
35225                             #include <Xm/Xm.h>
35226
35227 int
35228 main ()
35229 {
35230
35231                             #if XmVersion < 2000
35232                             Not Motif 2
35233                             #endif
35234
35235   ;
35236   return 0;
35237 }
35238 _ACEOF
35239 rm -f conftest.$ac_objext
35240 if { (ac_try="$ac_compile"
35241 case "(($ac_try" in
35242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35243   *) ac_try_echo=$ac_try;;
35244 esac
35245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35246   (eval "$ac_compile") 2>conftest.er1
35247   ac_status=$?
35248   grep -v '^ *+' conftest.er1 >conftest.err
35249   rm -f conftest.er1
35250   cat conftest.err >&5
35251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252   (exit $ac_status); } && {
35253          test -z "$ac_c_werror_flag" ||
35254          test ! -s conftest.err
35255        } && test -s conftest.$ac_objext; then
35256   wx_cv_lib_motif2="yes"
35257 else
35258   echo "$as_me: failed program was:" >&5
35259 sed 's/^/| /' conftest.$ac_ext >&5
35260
35261         wx_cv_lib_motif2="no"
35262 fi
35263
35264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35265 fi
35266 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
35267 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
35268         if test "$wx_cv_lib_motif2" = "yes"; then
35269             cat >>confdefs.h <<\_ACEOF
35270 #define __WXMOTIF20__ 1
35271 _ACEOF
35272
35273         else
35274             cat >>confdefs.h <<\_ACEOF
35275 #define __WXMOTIF20__ 0
35276 _ACEOF
35277
35278         fi
35279
35280         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
35281 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
35282 if test "${wx_cv_lib_lesstif+set}" = set; then
35283   echo $ECHO_N "(cached) $ECHO_C" >&6
35284 else
35285   cat >conftest.$ac_ext <<_ACEOF
35286 /* confdefs.h.  */
35287 _ACEOF
35288 cat confdefs.h >>conftest.$ac_ext
35289 cat >>conftest.$ac_ext <<_ACEOF
35290 /* end confdefs.h.  */
35291
35292                             #include <Xm/Xm.h>
35293
35294 int
35295 main ()
35296 {
35297
35298                             #if !defined(LesstifVersion) || LesstifVersion <= 0
35299                             Not Lesstif
35300                             #endif
35301
35302   ;
35303   return 0;
35304 }
35305 _ACEOF
35306 rm -f conftest.$ac_objext
35307 if { (ac_try="$ac_compile"
35308 case "(($ac_try" in
35309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35310   *) ac_try_echo=$ac_try;;
35311 esac
35312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35313   (eval "$ac_compile") 2>conftest.er1
35314   ac_status=$?
35315   grep -v '^ *+' conftest.er1 >conftest.err
35316   rm -f conftest.er1
35317   cat conftest.err >&5
35318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319   (exit $ac_status); } && {
35320          test -z "$ac_c_werror_flag" ||
35321          test ! -s conftest.err
35322        } && test -s conftest.$ac_objext; then
35323   wx_cv_lib_lesstif="yes"
35324 else
35325   echo "$as_me: failed program was:" >&5
35326 sed 's/^/| /' conftest.$ac_ext >&5
35327
35328         wx_cv_lib_lesstif="no"
35329 fi
35330
35331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35332
35333 fi
35334 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
35335 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
35336         if test "$wx_cv_lib_lesstif" = "yes"; then
35337             cat >>confdefs.h <<\_ACEOF
35338 #define __WXLESSTIF__ 1
35339 _ACEOF
35340
35341         else
35342             cat >>confdefs.h <<\_ACEOF
35343 #define __WXLESSTIF__ 0
35344 _ACEOF
35345
35346         fi
35347
35348         CFLAGS=$save_CFLAGS
35349
35350         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
35351         TOOLKIT=MOTIF
35352         GUIDIST=MOTIF_DIST
35353     fi
35354
35355         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
35356                 if test "$wxUSE_LIBXPM" = "sys"; then
35357             { echo "$as_me:$LINENO: checking for Xpm library" >&5
35358 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
35359
35360   ac_find_libraries=
35361   for ac_dir in $SEARCH_LIB;
35362   do
35363     for ac_extension in a so sl dylib dll.a; do
35364       if test -f "$ac_dir/libXpm.$ac_extension"; then
35365         ac_find_libraries=$ac_dir
35366         break 2
35367       fi
35368     done
35369   done
35370
35371             if test "$ac_find_libraries" != "" ; then
35372
35373     if test "$ac_find_libraries" = "default location"; then
35374     ac_path_to_link=""
35375   else
35376     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
35377     result=$?
35378     if test $result = 0; then
35379       ac_path_to_link=""
35380     else
35381       ac_path_to_link=" -L$ac_find_libraries"
35382     fi
35383   fi
35384
35385                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
35386                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35387 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35388
35389                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
35390 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
35391 if test "${wx_cv_x11_xpm_h+set}" = set; then
35392   echo $ECHO_N "(cached) $ECHO_C" >&6
35393 else
35394
35395                         save_CFLAGS=$CFLAGS
35396                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35397
35398                         cat >conftest.$ac_ext <<_ACEOF
35399 /* confdefs.h.  */
35400 _ACEOF
35401 cat confdefs.h >>conftest.$ac_ext
35402 cat >>conftest.$ac_ext <<_ACEOF
35403 /* end confdefs.h.  */
35404
35405                                 #include <X11/xpm.h>
35406
35407 int
35408 main ()
35409 {
35410
35411                                 int version;
35412                                 version = XpmLibraryVersion();
35413
35414   ;
35415   return 0;
35416 }
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   wx_cv_x11_xpm_h=yes
35436 else
35437   echo "$as_me: failed program was:" >&5
35438 sed 's/^/| /' conftest.$ac_ext >&5
35439
35440         wx_cv_x11_xpm_h=no
35441
35442 fi
35443
35444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35445
35446                         CFLAGS=$save_CFLAGS
35447
35448
35449 fi
35450 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
35451 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
35452
35453                 if test $wx_cv_x11_xpm_h = "yes"; then
35454                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
35455                     cat >>confdefs.h <<\_ACEOF
35456 #define wxHAVE_LIB_XPM 1
35457 _ACEOF
35458
35459                 else
35460                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
35461 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
35462                 fi
35463             fi
35464
35465         fi
35466
35467                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
35468 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
35469 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
35470   echo $ECHO_N "(cached) $ECHO_C" >&6
35471 else
35472   ac_check_lib_save_LIBS=$LIBS
35473 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
35474 cat >conftest.$ac_ext <<_ACEOF
35475 /* confdefs.h.  */
35476 _ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h.  */
35480
35481 /* Override any GCC internal prototype to avoid an error.
35482    Use char because int might match the return type of a GCC
35483    builtin and then its argument prototype would still apply.  */
35484 #ifdef __cplusplus
35485 extern "C"
35486 #endif
35487 char XShapeQueryExtension ();
35488 int
35489 main ()
35490 {
35491 return XShapeQueryExtension ();
35492   ;
35493   return 0;
35494 }
35495 _ACEOF
35496 rm -f conftest.$ac_objext conftest$ac_exeext
35497 if { (ac_try="$ac_link"
35498 case "(($ac_try" in
35499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35500   *) ac_try_echo=$ac_try;;
35501 esac
35502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35503   (eval "$ac_link") 2>conftest.er1
35504   ac_status=$?
35505   grep -v '^ *+' conftest.er1 >conftest.err
35506   rm -f conftest.er1
35507   cat conftest.err >&5
35508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509   (exit $ac_status); } && {
35510          test -z "$ac_c_werror_flag" ||
35511          test ! -s conftest.err
35512        } && test -s conftest$ac_exeext &&
35513        $as_test_x conftest$ac_exeext; then
35514   ac_cv_lib_Xext_XShapeQueryExtension=yes
35515 else
35516   echo "$as_me: failed program was:" >&5
35517 sed 's/^/| /' conftest.$ac_ext >&5
35518
35519         ac_cv_lib_Xext_XShapeQueryExtension=no
35520 fi
35521
35522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35523       conftest$ac_exeext conftest.$ac_ext
35524 LIBS=$ac_check_lib_save_LIBS
35525 fi
35526 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
35527 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
35528 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
35529
35530                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
35531                       wxHAVE_XEXT_LIB=1
35532
35533 fi
35534
35535
35536         if test "$wxHAVE_XEXT_LIB" = 1; then
35537             save_CFLAGS="$CFLAGS"
35538             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35539
35540             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
35541 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
35542             cat >conftest.$ac_ext <<_ACEOF
35543 /* confdefs.h.  */
35544 _ACEOF
35545 cat confdefs.h >>conftest.$ac_ext
35546 cat >>conftest.$ac_ext <<_ACEOF
35547 /* end confdefs.h.  */
35548
35549                             #include <X11/Xlib.h>
35550                             #include <X11/extensions/shape.h>
35551
35552 int
35553 main ()
35554 {
35555
35556                             int dummy1, dummy2;
35557                             XShapeQueryExtension((Display*)NULL,
35558                                                  (int*)NULL, (int*)NULL);
35559
35560   ;
35561   return 0;
35562 }
35563 _ACEOF
35564 rm -f conftest.$ac_objext
35565 if { (ac_try="$ac_compile"
35566 case "(($ac_try" in
35567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35568   *) ac_try_echo=$ac_try;;
35569 esac
35570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35571   (eval "$ac_compile") 2>conftest.er1
35572   ac_status=$?
35573   grep -v '^ *+' conftest.er1 >conftest.err
35574   rm -f conftest.er1
35575   cat conftest.err >&5
35576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577   (exit $ac_status); } && {
35578          test -z "$ac_c_werror_flag" ||
35579          test ! -s conftest.err
35580        } && test -s conftest.$ac_objext; then
35581
35582                             cat >>confdefs.h <<\_ACEOF
35583 #define HAVE_XSHAPE 1
35584 _ACEOF
35585
35586                             { echo "$as_me:$LINENO: result: found" >&5
35587 echo "${ECHO_T}found" >&6; }
35588
35589 else
35590   echo "$as_me: failed program was:" >&5
35591 sed 's/^/| /' conftest.$ac_ext >&5
35592
35593
35594                             { echo "$as_me:$LINENO: result: not found" >&5
35595 echo "${ECHO_T}not found" >&6; }
35596
35597 fi
35598
35599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35600             CFLAGS="$save_CFLAGS"
35601
35602         fi
35603     fi
35604
35605     if test "$wxUSE_MAC" = 1; then
35606         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
35607 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
35608         if test "$GCC" = yes; then
35609             { echo "$as_me:$LINENO: result: gcc" >&5
35610 echo "${ECHO_T}gcc" >&6; }
35611             CPPFLAGS_PASCAL="-fpascal-strings"
35612         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
35613             { echo "$as_me:$LINENO: result: xlc" >&5
35614 echo "${ECHO_T}xlc" >&6; }
35615             CPPFLAGS_PASCAL="-qmacpstr"
35616         else
35617             { echo "$as_me:$LINENO: result: none" >&5
35618 echo "${ECHO_T}none" >&6; }
35619         fi
35620
35621         if test "x$wxUSE_UNIX" = "xyes"; then
35622             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
35623         else
35624                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
35625         fi
35626
35627         TOOLKIT=MAC
35628                 GUIDIST=MACX_DIST
35629                         WXBASEPORT="_carbon"
35630     fi
35631
35632     if test "$wxUSE_COCOA" = 1; then
35633         TOOLKIT=COCOA
35634         GUIDIST=COCOA_DIST
35635     fi
35636
35637     if test "$wxUSE_PM" = 1; then
35638         TOOLKIT=PM
35639         GUIDIST=PM_DIST
35640         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
35641 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
35642 if test "${wx_cv_spbcdata+set}" = set; then
35643   echo $ECHO_N "(cached) $ECHO_C" >&6
35644 else
35645
35646                 cat >conftest.$ac_ext <<_ACEOF
35647 /* confdefs.h.  */
35648 _ACEOF
35649 cat confdefs.h >>conftest.$ac_ext
35650 cat >>conftest.$ac_ext <<_ACEOF
35651 /* end confdefs.h.  */
35652
35653                         #define INCL_PM
35654                         #include <os2.h>
35655
35656 int
35657 main ()
35658 {
35659
35660                         SPBCDATA test;
35661
35662   ;
35663   return 0;
35664 }
35665 _ACEOF
35666 rm -f conftest.$ac_objext
35667 if { (ac_try="$ac_compile"
35668 case "(($ac_try" in
35669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35670   *) ac_try_echo=$ac_try;;
35671 esac
35672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35673   (eval "$ac_compile") 2>conftest.er1
35674   ac_status=$?
35675   grep -v '^ *+' conftest.er1 >conftest.err
35676   rm -f conftest.er1
35677   cat conftest.err >&5
35678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679   (exit $ac_status); } && {
35680          test -z "$ac_c_werror_flag" ||
35681          test ! -s conftest.err
35682        } && test -s conftest.$ac_objext; then
35683   wx_cv_spbcdata=yes
35684 else
35685   echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35687
35688         wx_cv_spbcdata=no
35689
35690 fi
35691
35692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35693
35694
35695 fi
35696 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
35697 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
35698
35699         if test $wx_cv_spbcdata = "yes"; then
35700             cat >>confdefs.h <<\_ACEOF
35701 #define HAVE_SPBCDATA 1
35702 _ACEOF
35703
35704         fi
35705     fi
35706
35707         if test "$TOOLKIT" = "PM" ; then
35708         TOOLKIT_DIR="os2"
35709     else
35710         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
35711     fi
35712
35713     if test "$wxUSE_UNIVERSAL" = "yes"; then
35714         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
35715         WIDGET_SET=univ
35716     fi
35717
35718         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
35719     DISTDIR="wx\$(TOOLKIT)"
35720 else
35721     USE_GUI=0
35722
35723             TOOLKIT_DIR="base"
35724
35725         if test "$USE_WIN32" = 1 ; then
35726                         TOOLKIT="MSW"
35727     fi
35728
35729         GUIDIST="BASE_DIST"
35730     DISTDIR="wxBase"
35731 fi
35732
35733
35734
35735 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
35736     if test "$TOOLKIT" = "DFB" ; then
35737         wxUSE_UNICODE_UTF8=yes
35738     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
35739         wxUSE_UNICODE_UTF8=yes
35740     elif test "$USE_OS2" = "1" ; then
35741                                 wxUSE_UNICODE_UTF8=yes
35742     else
35743         wxUSE_UNICODE_UTF8=no
35744     fi
35745 fi
35746
35747
35748 if test "$wxUSE_GUI" = "yes"; then
35749     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
35750
35751 for ac_header in X11/Xlib.h
35752 do
35753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35757   echo $ECHO_N "(cached) $ECHO_C" >&6
35758 else
35759   cat >conftest.$ac_ext <<_ACEOF
35760 /* confdefs.h.  */
35761 _ACEOF
35762 cat confdefs.h >>conftest.$ac_ext
35763 cat >>conftest.$ac_ext <<_ACEOF
35764 /* end confdefs.h.  */
35765
35766
35767 #include <$ac_header>
35768 _ACEOF
35769 rm -f conftest.$ac_objext
35770 if { (ac_try="$ac_compile"
35771 case "(($ac_try" in
35772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35773   *) ac_try_echo=$ac_try;;
35774 esac
35775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35776   (eval "$ac_compile") 2>conftest.er1
35777   ac_status=$?
35778   grep -v '^ *+' conftest.er1 >conftest.err
35779   rm -f conftest.er1
35780   cat conftest.err >&5
35781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782   (exit $ac_status); } && {
35783          test -z "$ac_c_werror_flag" ||
35784          test ! -s conftest.err
35785        } && test -s conftest.$ac_objext; then
35786   eval "$as_ac_Header=yes"
35787 else
35788   echo "$as_me: failed program was:" >&5
35789 sed 's/^/| /' conftest.$ac_ext >&5
35790
35791         eval "$as_ac_Header=no"
35792 fi
35793
35794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35795 fi
35796 ac_res=`eval echo '${'$as_ac_Header'}'`
35797                { echo "$as_me:$LINENO: result: $ac_res" >&5
35798 echo "${ECHO_T}$ac_res" >&6; }
35799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35800   cat >>confdefs.h <<_ACEOF
35801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35802 _ACEOF
35803
35804 fi
35805
35806 done
35807
35808
35809 for ac_header in X11/XKBlib.h
35810 do
35811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35815   echo $ECHO_N "(cached) $ECHO_C" >&6
35816 else
35817   cat >conftest.$ac_ext <<_ACEOF
35818 /* confdefs.h.  */
35819 _ACEOF
35820 cat confdefs.h >>conftest.$ac_ext
35821 cat >>conftest.$ac_ext <<_ACEOF
35822 /* end confdefs.h.  */
35823
35824                           #if HAVE_X11_XLIB_H
35825                             #include <X11/Xlib.h>
35826                           #endif
35827
35828
35829 #include <$ac_header>
35830 _ACEOF
35831 rm -f conftest.$ac_objext
35832 if { (ac_try="$ac_compile"
35833 case "(($ac_try" in
35834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35835   *) ac_try_echo=$ac_try;;
35836 esac
35837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35838   (eval "$ac_compile") 2>conftest.er1
35839   ac_status=$?
35840   grep -v '^ *+' conftest.er1 >conftest.err
35841   rm -f conftest.er1
35842   cat conftest.err >&5
35843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844   (exit $ac_status); } && {
35845          test -z "$ac_c_werror_flag" ||
35846          test ! -s conftest.err
35847        } && test -s conftest.$ac_objext; then
35848   eval "$as_ac_Header=yes"
35849 else
35850   echo "$as_me: failed program was:" >&5
35851 sed 's/^/| /' conftest.$ac_ext >&5
35852
35853         eval "$as_ac_Header=no"
35854 fi
35855
35856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35857 fi
35858 ac_res=`eval echo '${'$as_ac_Header'}'`
35859                { echo "$as_me:$LINENO: result: $ac_res" >&5
35860 echo "${ECHO_T}$ac_res" >&6; }
35861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35862   cat >>confdefs.h <<_ACEOF
35863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35864 _ACEOF
35865
35866 fi
35867
35868 done
35869
35870     fi
35871 fi
35872
35873
35874
35875 IODBC_C_SRC=""
35876
35877
35878 if test "$TOOLKIT" != "MSW" ; then
35879
35880     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
35881
35882         { echo "$as_me:$LINENO: checking for sql.h" >&5
35883 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35884 if test "${ac_cv_header_sql_h+set}" = set; then
35885   echo $ECHO_N "(cached) $ECHO_C" >&6
35886 else
35887   cat >conftest.$ac_ext <<_ACEOF
35888 /* confdefs.h.  */
35889 _ACEOF
35890 cat confdefs.h >>conftest.$ac_ext
35891 cat >>conftest.$ac_ext <<_ACEOF
35892 /* end confdefs.h.  */
35893
35894
35895 #include <sql.h>
35896 _ACEOF
35897 rm -f conftest.$ac_objext
35898 if { (ac_try="$ac_compile"
35899 case "(($ac_try" in
35900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35901   *) ac_try_echo=$ac_try;;
35902 esac
35903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35904   (eval "$ac_compile") 2>conftest.er1
35905   ac_status=$?
35906   grep -v '^ *+' conftest.er1 >conftest.err
35907   rm -f conftest.er1
35908   cat conftest.err >&5
35909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910   (exit $ac_status); } && {
35911          test -z "$ac_c_werror_flag" ||
35912          test ! -s conftest.err
35913        } && test -s conftest.$ac_objext; then
35914   ac_cv_header_sql_h=yes
35915 else
35916   echo "$as_me: failed program was:" >&5
35917 sed 's/^/| /' conftest.$ac_ext >&5
35918
35919         ac_cv_header_sql_h=no
35920 fi
35921
35922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35923 fi
35924 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35925 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35926 if test $ac_cv_header_sql_h = yes; then
35927   found_sql_h=1
35928 fi
35929
35930
35931         if test "x$found_sql_h" = "x1" ; then
35932             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
35933 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
35934 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
35935   echo $ECHO_N "(cached) $ECHO_C" >&6
35936 else
35937   ac_check_lib_save_LIBS=$LIBS
35938 LIBS="-liodbc  $LIBS"
35939 cat >conftest.$ac_ext <<_ACEOF
35940 /* confdefs.h.  */
35941 _ACEOF
35942 cat confdefs.h >>conftest.$ac_ext
35943 cat >>conftest.$ac_ext <<_ACEOF
35944 /* end confdefs.h.  */
35945
35946 /* Override any GCC internal prototype to avoid an error.
35947    Use char because int might match the return type of a GCC
35948    builtin and then its argument prototype would still apply.  */
35949 #ifdef __cplusplus
35950 extern "C"
35951 #endif
35952 char SQLAllocEnv ();
35953 int
35954 main ()
35955 {
35956 return SQLAllocEnv ();
35957   ;
35958   return 0;
35959 }
35960 _ACEOF
35961 rm -f conftest.$ac_objext conftest$ac_exeext
35962 if { (ac_try="$ac_link"
35963 case "(($ac_try" in
35964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35965   *) ac_try_echo=$ac_try;;
35966 esac
35967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35968   (eval "$ac_link") 2>conftest.er1
35969   ac_status=$?
35970   grep -v '^ *+' conftest.er1 >conftest.err
35971   rm -f conftest.er1
35972   cat conftest.err >&5
35973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974   (exit $ac_status); } && {
35975          test -z "$ac_c_werror_flag" ||
35976          test ! -s conftest.err
35977        } && test -s conftest$ac_exeext &&
35978        $as_test_x conftest$ac_exeext; then
35979   ac_cv_lib_iodbc_SQLAllocEnv=yes
35980 else
35981   echo "$as_me: failed program was:" >&5
35982 sed 's/^/| /' conftest.$ac_ext >&5
35983
35984         ac_cv_lib_iodbc_SQLAllocEnv=no
35985 fi
35986
35987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35988       conftest$ac_exeext conftest.$ac_ext
35989 LIBS=$ac_check_lib_save_LIBS
35990 fi
35991 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
35992 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
35993 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
35994   ODBC_LINK=" -liodbc"
35995 else
35996
35997                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
35998 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
35999 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
36000   echo $ECHO_N "(cached) $ECHO_C" >&6
36001 else
36002   ac_check_lib_save_LIBS=$LIBS
36003 LIBS="-lunixodbc  $LIBS"
36004 cat >conftest.$ac_ext <<_ACEOF
36005 /* confdefs.h.  */
36006 _ACEOF
36007 cat confdefs.h >>conftest.$ac_ext
36008 cat >>conftest.$ac_ext <<_ACEOF
36009 /* end confdefs.h.  */
36010
36011 /* Override any GCC internal prototype to avoid an error.
36012    Use char because int might match the return type of a GCC
36013    builtin and then its argument prototype would still apply.  */
36014 #ifdef __cplusplus
36015 extern "C"
36016 #endif
36017 char SQLAllocEnv ();
36018 int
36019 main ()
36020 {
36021 return SQLAllocEnv ();
36022   ;
36023   return 0;
36024 }
36025 _ACEOF
36026 rm -f conftest.$ac_objext conftest$ac_exeext
36027 if { (ac_try="$ac_link"
36028 case "(($ac_try" in
36029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36030   *) ac_try_echo=$ac_try;;
36031 esac
36032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36033   (eval "$ac_link") 2>conftest.er1
36034   ac_status=$?
36035   grep -v '^ *+' conftest.er1 >conftest.err
36036   rm -f conftest.er1
36037   cat conftest.err >&5
36038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039   (exit $ac_status); } && {
36040          test -z "$ac_c_werror_flag" ||
36041          test ! -s conftest.err
36042        } && test -s conftest$ac_exeext &&
36043        $as_test_x conftest$ac_exeext; then
36044   ac_cv_lib_unixodbc_SQLAllocEnv=yes
36045 else
36046   echo "$as_me: failed program was:" >&5
36047 sed 's/^/| /' conftest.$ac_ext >&5
36048
36049         ac_cv_lib_unixodbc_SQLAllocEnv=no
36050 fi
36051
36052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36053       conftest$ac_exeext conftest.$ac_ext
36054 LIBS=$ac_check_lib_save_LIBS
36055 fi
36056 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
36057 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
36058 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
36059   ODBC_LINK=" -lunixodbc"
36060 else
36061
36062                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
36063 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
36064 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
36065   echo $ECHO_N "(cached) $ECHO_C" >&6
36066 else
36067   ac_check_lib_save_LIBS=$LIBS
36068 LIBS="-lodbc  $LIBS"
36069 cat >conftest.$ac_ext <<_ACEOF
36070 /* confdefs.h.  */
36071 _ACEOF
36072 cat confdefs.h >>conftest.$ac_ext
36073 cat >>conftest.$ac_ext <<_ACEOF
36074 /* end confdefs.h.  */
36075
36076 /* Override any GCC internal prototype to avoid an error.
36077    Use char because int might match the return type of a GCC
36078    builtin and then its argument prototype would still apply.  */
36079 #ifdef __cplusplus
36080 extern "C"
36081 #endif
36082 char SQLAllocEnv ();
36083 int
36084 main ()
36085 {
36086 return SQLAllocEnv ();
36087   ;
36088   return 0;
36089 }
36090 _ACEOF
36091 rm -f conftest.$ac_objext conftest$ac_exeext
36092 if { (ac_try="$ac_link"
36093 case "(($ac_try" in
36094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36095   *) ac_try_echo=$ac_try;;
36096 esac
36097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36098   (eval "$ac_link") 2>conftest.er1
36099   ac_status=$?
36100   grep -v '^ *+' conftest.er1 >conftest.err
36101   rm -f conftest.er1
36102   cat conftest.err >&5
36103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104   (exit $ac_status); } && {
36105          test -z "$ac_c_werror_flag" ||
36106          test ! -s conftest.err
36107        } && test -s conftest$ac_exeext &&
36108        $as_test_x conftest$ac_exeext; then
36109   ac_cv_lib_odbc_SQLAllocEnv=yes
36110 else
36111   echo "$as_me: failed program was:" >&5
36112 sed 's/^/| /' conftest.$ac_ext >&5
36113
36114         ac_cv_lib_odbc_SQLAllocEnv=no
36115 fi
36116
36117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36118       conftest$ac_exeext conftest.$ac_ext
36119 LIBS=$ac_check_lib_save_LIBS
36120 fi
36121 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
36122 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
36123 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
36124   ODBC_LINK=" -lodbc"
36125 fi
36126
36127
36128 fi
36129
36130
36131 fi
36132
36133         fi
36134         if test "x$ODBC_LINK" = "x" ; then
36135             if test "$wxUSE_ODBC" = "sys" ; then
36136                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
36137 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
36138    { (exit 1); exit 1; }; }
36139             else
36140                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
36141 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
36142                 wxUSE_ODBC=builtin
36143             fi
36144         else
36145                         wxUSE_ODBC=sys
36146         fi
36147     fi
36148
36149     if test "$wxUSE_ODBC" = "builtin" ; then
36150         cat >>confdefs.h <<\_ACEOF
36151 #define wxUSE_BUILTIN_IODBC 1
36152 _ACEOF
36153
36154     fi
36155 fi
36156
36157 if test "$wxUSE_ODBC" != "no" ; then
36158     cat >>confdefs.h <<\_ACEOF
36159 #define wxUSE_ODBC 1
36160 _ACEOF
36161
36162     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
36163
36164         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
36165 fi
36166
36167
36168 if test "$wxUSE_DISPLAY" = "yes"; then
36169     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
36170         { echo "$as_me:$LINENO: checking for Xinerama" >&5
36171 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
36172
36173   ac_find_libraries=
36174   for ac_dir in $SEARCH_LIB;
36175   do
36176     for ac_extension in a so sl dylib dll.a; do
36177       if test -f "$ac_dir/libXinerama.$ac_extension"; then
36178         ac_find_libraries=$ac_dir
36179         break 2
36180       fi
36181     done
36182   done
36183
36184         if test "$ac_find_libraries" != "" ; then
36185
36186     if test "$ac_find_libraries" = "default location"; then
36187     ac_path_to_link=""
36188   else
36189     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36190     result=$?
36191     if test $result = 0; then
36192       ac_path_to_link=""
36193     else
36194       ac_path_to_link=" -L$ac_find_libraries"
36195     fi
36196   fi
36197
36198             if test "$ac_path_to_link" != " -L/usr/lib" ; then
36199                 LDFLAGS="$LDFLAGS $ac_path_to_link"
36200             fi
36201             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
36202             { echo "$as_me:$LINENO: result: yes" >&5
36203 echo "${ECHO_T}yes" >&6; }
36204
36205             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
36206 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
36207
36208   ac_find_libraries=
36209   for ac_dir in $SEARCH_LIB;
36210   do
36211     for ac_extension in a so sl dylib dll.a; do
36212       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
36213         ac_find_libraries=$ac_dir
36214         break 2
36215       fi
36216     done
36217   done
36218
36219             if test "$ac_find_libraries" != "" ; then
36220                 { echo "$as_me:$LINENO: result: yes" >&5
36221 echo "${ECHO_T}yes" >&6; }
36222
36223 for ac_header in X11/extensions/xf86vmode.h
36224 do
36225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36229   echo $ECHO_N "(cached) $ECHO_C" >&6
36230 else
36231   cat >conftest.$ac_ext <<_ACEOF
36232 /* confdefs.h.  */
36233 _ACEOF
36234 cat confdefs.h >>conftest.$ac_ext
36235 cat >>conftest.$ac_ext <<_ACEOF
36236 /* end confdefs.h.  */
36237
36238                                       #if HAVE_X11_XLIB_H
36239                                         #include <X11/Xlib.h>
36240                                       #endif
36241
36242
36243 #include <$ac_header>
36244 _ACEOF
36245 rm -f conftest.$ac_objext
36246 if { (ac_try="$ac_compile"
36247 case "(($ac_try" in
36248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36249   *) ac_try_echo=$ac_try;;
36250 esac
36251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36252   (eval "$ac_compile") 2>conftest.er1
36253   ac_status=$?
36254   grep -v '^ *+' conftest.er1 >conftest.err
36255   rm -f conftest.er1
36256   cat conftest.err >&5
36257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258   (exit $ac_status); } && {
36259          test -z "$ac_c_werror_flag" ||
36260          test ! -s conftest.err
36261        } && test -s conftest.$ac_objext; then
36262   eval "$as_ac_Header=yes"
36263 else
36264   echo "$as_me: failed program was:" >&5
36265 sed 's/^/| /' conftest.$ac_ext >&5
36266
36267         eval "$as_ac_Header=no"
36268 fi
36269
36270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36271 fi
36272 ac_res=`eval echo '${'$as_ac_Header'}'`
36273                { echo "$as_me:$LINENO: result: $ac_res" >&5
36274 echo "${ECHO_T}$ac_res" >&6; }
36275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36276   cat >>confdefs.h <<_ACEOF
36277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36278 _ACEOF
36279
36280                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
36281
36282 fi
36283
36284 done
36285
36286             else
36287                 { echo "$as_me:$LINENO: result: no" >&5
36288 echo "${ECHO_T}no" >&6; }
36289             fi
36290
36291         else
36292             { echo "$as_me:$LINENO: result: no" >&5
36293 echo "${ECHO_T}no" >&6; }
36294             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
36295 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
36296             wxUSE_DISPLAY="no"
36297         fi
36298     elif test "$wxUSE_MSW" = 1; then
36299         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
36300 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
36301 if test "${ac_cv_header_ddraw_h+set}" = set; then
36302   echo $ECHO_N "(cached) $ECHO_C" >&6
36303 else
36304   cat >conftest.$ac_ext <<_ACEOF
36305 /* confdefs.h.  */
36306 _ACEOF
36307 cat confdefs.h >>conftest.$ac_ext
36308 cat >>conftest.$ac_ext <<_ACEOF
36309 /* end confdefs.h.  */
36310 #include <windows.h>
36311
36312 #include <ddraw.h>
36313 _ACEOF
36314 rm -f conftest.$ac_objext
36315 if { (ac_try="$ac_compile"
36316 case "(($ac_try" in
36317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36318   *) ac_try_echo=$ac_try;;
36319 esac
36320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36321   (eval "$ac_compile") 2>conftest.er1
36322   ac_status=$?
36323   grep -v '^ *+' conftest.er1 >conftest.err
36324   rm -f conftest.er1
36325   cat conftest.err >&5
36326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327   (exit $ac_status); } && {
36328          test -z "$ac_c_werror_flag" ||
36329          test ! -s conftest.err
36330        } && test -s conftest.$ac_objext; then
36331   ac_cv_header_ddraw_h=yes
36332 else
36333   echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36335
36336         ac_cv_header_ddraw_h=no
36337 fi
36338
36339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36340 fi
36341 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
36342 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
36343
36344
36345     fi
36346 fi
36347
36348 if test "$wxUSE_DETECT_SM" = "yes"; then
36349     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
36350         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
36351 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
36352
36353   ac_find_libraries=
36354   for ac_dir in $SEARCH_LIB;
36355   do
36356     for ac_extension in a so sl dylib dll.a; do
36357       if test -f "$ac_dir/libSM.$ac_extension"; then
36358         ac_find_libraries=$ac_dir
36359         break 2
36360       fi
36361     done
36362   done
36363
36364         if test "$ac_find_libraries" != "" ; then
36365
36366     if test "$ac_find_libraries" = "default location"; then
36367     ac_path_to_link=""
36368   else
36369     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36370     result=$?
36371     if test $result = 0; then
36372       ac_path_to_link=""
36373     else
36374       ac_path_to_link=" -L$ac_find_libraries"
36375     fi
36376   fi
36377
36378             if test "$ac_path_to_link" != " -L/usr/lib" ; then
36379                 LDFLAGS="$LDFLAGS $ac_path_to_link"
36380             fi
36381             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
36382             { echo "$as_me:$LINENO: result: yes" >&5
36383 echo "${ECHO_T}yes" >&6; }
36384         else
36385             { echo "$as_me:$LINENO: result: no" >&5
36386 echo "${ECHO_T}no" >&6; }
36387             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
36388 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
36389             wxUSE_DETECT_SM="no"
36390         fi
36391     else
36392         wxUSE_DETECT_SM="no"
36393     fi
36394 fi
36395
36396
36397
36398 USE_OPENGL=0
36399 if test "$wxUSE_OPENGL" = "yes"; then
36400     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
36401         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
36402 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
36403         wxUSE_OPENGL="no"
36404     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
36405         OPENGL_LIBS="-framework OpenGL -framework AGL"
36406     elif test "$wxUSE_MSW" = 1; then
36407         OPENGL_LIBS="-lopengl32 -lglu32"
36408     else
36409                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
36410 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
36411
36412 ac_find_includes=
36413 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
36414   do
36415     if test -f "$ac_dir/GL/gl.h"; then
36416       ac_find_includes=$ac_dir
36417       break
36418     fi
36419   done
36420
36421         if test "$ac_find_includes" != "" ; then
36422             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
36423 echo "${ECHO_T}found in $ac_find_includes" >&6; }
36424
36425     if test "x$ac_find_includes" = "x/usr/include"; then
36426     ac_path_to_include=""
36427   else
36428     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
36429     result=$?
36430     if test $result = 0; then
36431       ac_path_to_include=""
36432     else
36433       ac_path_to_include=" -I$ac_find_includes"
36434     fi
36435   fi
36436
36437             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
36438         else
36439             { echo "$as_me:$LINENO: result: not found" >&5
36440 echo "${ECHO_T}not found" >&6; }
36441         fi
36442
36443         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
36444 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
36445 if test "${ac_cv_header_GL_gl_h+set}" = set; then
36446   echo $ECHO_N "(cached) $ECHO_C" >&6
36447 else
36448   cat >conftest.$ac_ext <<_ACEOF
36449 /* confdefs.h.  */
36450 _ACEOF
36451 cat confdefs.h >>conftest.$ac_ext
36452 cat >>conftest.$ac_ext <<_ACEOF
36453 /* end confdefs.h.  */
36454
36455
36456 #include <GL/gl.h>
36457 _ACEOF
36458 rm -f conftest.$ac_objext
36459 if { (ac_try="$ac_compile"
36460 case "(($ac_try" in
36461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36462   *) ac_try_echo=$ac_try;;
36463 esac
36464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36465   (eval "$ac_compile") 2>conftest.er1
36466   ac_status=$?
36467   grep -v '^ *+' conftest.er1 >conftest.err
36468   rm -f conftest.er1
36469   cat conftest.err >&5
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); } && {
36472          test -z "$ac_c_werror_flag" ||
36473          test ! -s conftest.err
36474        } && test -s conftest.$ac_objext; then
36475   ac_cv_header_GL_gl_h=yes
36476 else
36477   echo "$as_me: failed program was:" >&5
36478 sed 's/^/| /' conftest.$ac_ext >&5
36479
36480         ac_cv_header_GL_gl_h=no
36481 fi
36482
36483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36484 fi
36485 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
36486 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
36487 if test $ac_cv_header_GL_gl_h = yes; then
36488
36489             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36490 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36491 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36492   echo $ECHO_N "(cached) $ECHO_C" >&6
36493 else
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
36502 #include <GL/glu.h>
36503 _ACEOF
36504 rm -f conftest.$ac_objext
36505 if { (ac_try="$ac_compile"
36506 case "(($ac_try" in
36507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36508   *) ac_try_echo=$ac_try;;
36509 esac
36510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36511   (eval "$ac_compile") 2>conftest.er1
36512   ac_status=$?
36513   grep -v '^ *+' conftest.er1 >conftest.err
36514   rm -f conftest.er1
36515   cat conftest.err >&5
36516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517   (exit $ac_status); } && {
36518          test -z "$ac_c_werror_flag" ||
36519          test ! -s conftest.err
36520        } && test -s conftest.$ac_objext; then
36521   ac_cv_header_GL_glu_h=yes
36522 else
36523   echo "$as_me: failed program was:" >&5
36524 sed 's/^/| /' conftest.$ac_ext >&5
36525
36526         ac_cv_header_GL_glu_h=no
36527 fi
36528
36529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36530 fi
36531 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36532 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36533 if test $ac_cv_header_GL_glu_h = yes; then
36534
36535                 found_gl=0
36536
36537                 { echo "$as_me:$LINENO: checking for -lGL" >&5
36538 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
36539
36540   ac_find_libraries=
36541   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
36542   do
36543     for ac_extension in a so sl dylib dll.a; do
36544       if test -f "$ac_dir/libGL.$ac_extension"; then
36545         ac_find_libraries=$ac_dir
36546         break 2
36547       fi
36548     done
36549   done
36550
36551                 if test "$ac_find_libraries" != "" ; then
36552                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
36553 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
36554
36555
36556     if test "$ac_find_libraries" = "default location"; then
36557     ac_path_to_link=""
36558   else
36559     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36560     result=$?
36561     if test $result = 0; then
36562       ac_path_to_link=""
36563     else
36564       ac_path_to_link=" -L$ac_find_libraries"
36565     fi
36566   fi
36567
36568                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
36569                         LDFLAGS_GL="$ac_path_to_link"
36570                     fi
36571
36572                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
36573 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
36574
36575   ac_find_libraries=
36576   for ac_dir in $SEARCH_LIB;
36577   do
36578     for ac_extension in a so sl dylib dll.a; do
36579       if test -f "$ac_dir/libGLU.$ac_extension"; then
36580         ac_find_libraries=$ac_dir
36581         break 2
36582       fi
36583     done
36584   done
36585
36586                     if test "$ac_find_libraries" != "" ; then
36587
36588     if test "$ac_find_libraries" = "default location"; then
36589     ac_path_to_link=""
36590   else
36591     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36592     result=$?
36593     if test $result = 0; then
36594       ac_path_to_link=""
36595     else
36596       ac_path_to_link=" -L$ac_find_libraries"
36597     fi
36598   fi
36599
36600                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
36601                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
36602                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36603                         fi
36604
36605                         found_gl=1
36606                         OPENGL_LIBS="-lGL -lGLU"
36607                         { echo "$as_me:$LINENO: result: yes" >&5
36608 echo "${ECHO_T}yes" >&6; }
36609                     else
36610                         { echo "$as_me:$LINENO: result: no" >&5
36611 echo "${ECHO_T}no" >&6; }
36612                     fi
36613                 else
36614                     { echo "$as_me:$LINENO: result: no" >&5
36615 echo "${ECHO_T}no" >&6; }
36616                 fi
36617
36618                 if test "$found_gl" != 1; then
36619                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
36620 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
36621
36622   ac_find_libraries=
36623   for ac_dir in $SEARCH_LIB;
36624   do
36625     for ac_extension in a so sl dylib dll.a; do
36626       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
36627         ac_find_libraries=$ac_dir
36628         break 2
36629       fi
36630     done
36631   done
36632
36633                     if test "$ac_find_libraries" != "" ; then
36634
36635     if test "$ac_find_libraries" = "default location"; then
36636     ac_path_to_link=""
36637   else
36638     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36639     result=$?
36640     if test $result = 0; then
36641       ac_path_to_link=""
36642     else
36643       ac_path_to_link=" -L$ac_find_libraries"
36644     fi
36645   fi
36646
36647                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
36648                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
36649                         { echo "$as_me:$LINENO: result: yes" >&5
36650 echo "${ECHO_T}yes" >&6; }
36651                     else
36652                         { echo "$as_me:$LINENO: result: no" >&5
36653 echo "${ECHO_T}no" >&6; }
36654                     fi
36655                 fi
36656
36657 fi
36658
36659
36660
36661 fi
36662
36663
36664
36665         if test "x$OPENGL_LIBS" = "x"; then
36666                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
36667 echo "$as_me: error: OpenGL libraries not available" >&2;}
36668    { (exit 1); exit 1; }; }
36669         fi
36670     fi
36671
36672     if test "$wxUSE_OPENGL" = "yes"; then
36673         USE_OPENGL=1
36674         cat >>confdefs.h <<\_ACEOF
36675 #define wxUSE_OPENGL 1
36676 _ACEOF
36677
36678         cat >>confdefs.h <<\_ACEOF
36679 #define wxUSE_GLCANVAS 1
36680 _ACEOF
36681
36682         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
36683     fi
36684 fi
36685
36686
36687 if test -n "$TOOLKIT" ; then
36688     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
36689 fi
36690
36691
36692
36693 if test "$wxUSE_SHARED" = "yes"; then
36694     case "${host}" in
36695       *-pc-msdosdjgpp )
36696                 wxUSE_SHARED=no
36697         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
36698 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
36699       ;;
36700     esac
36701 fi
36702
36703 if test "$wxUSE_SHARED" = "yes"; then
36704
36705
36706     case "${host}" in
36707         *-*-cygwin* | *-*-mingw* )
36708                                                                                                 wx_cv_version_script=no
36709             ;;
36710
36711         *)
36712             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
36713 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
36714 if test "${wx_cv_version_script+set}" = set; then
36715   echo $ECHO_N "(cached) $ECHO_C" >&6
36716 else
36717
36718                 echo "VER_1 { *; };" >conftest.sym
36719                 echo "int main() { return 0; }" >conftest.cpp
36720
36721                 if { ac_try='
36722                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36723                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
36724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36725   (eval $ac_try) 2>&5
36726   ac_status=$?
36727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728   (exit $ac_status); }; } ; then
36729                   if test -s conftest.stderr ; then
36730                       wx_cv_version_script=no
36731                   else
36732                       wx_cv_version_script=yes
36733                   fi
36734                 else
36735                   wx_cv_version_script=no
36736                 fi
36737
36738                                                                                                                                                                                                 if test $wx_cv_version_script = yes
36739                 then
36740                   echo "struct B { virtual ~B() { } }; \
36741                         struct D : public B { }; \
36742                         void F() { D d; }" > conftest.cpp
36743
36744                   if { ac_try='
36745                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36746                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
36747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36748   (eval $ac_try) 2>&5
36749   ac_status=$?
36750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36751   (exit $ac_status); }; } &&
36752                      { ac_try='
36753                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36754                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
36755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36756   (eval $ac_try) 2>&5
36757   ac_status=$?
36758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759   (exit $ac_status); }; }
36760                   then
36761                     if { ac_try='
36762                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36763                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
36764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36765   (eval $ac_try) 2>&5
36766   ac_status=$?
36767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768   (exit $ac_status); }; }
36769                     then
36770                       wx_cv_version_script=yes
36771                     else
36772                       wx_cv_version_script=no
36773                     fi
36774                   fi
36775                 fi
36776
36777                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
36778                 rm -f conftest1.output conftest2.output conftest3.output
36779
36780 fi
36781 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
36782 echo "${ECHO_T}$wx_cv_version_script" >&6; }
36783
36784             if test $wx_cv_version_script = yes ; then
36785                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
36786             fi
36787             ;;
36788     esac
36789
36790
36791             if test "$wxUSE_VISIBILITY" != "no"; then
36792
36793
36794   if test -n "$GCC"; then
36795     CFLAGS_VISIBILITY="-fvisibility=hidden"
36796     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
36797     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
36798 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
36799     if test "${wx_cv_cc_visibility+set}" = set; then
36800   echo $ECHO_N "(cached) $ECHO_C" >&6
36801 else
36802
36803       wx_save_CXXFLAGS="$CXXFLAGS"
36804       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36805       ac_ext=cpp
36806 ac_cpp='$CXXCPP $CPPFLAGS'
36807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36810
36811       cat >conftest.$ac_ext <<_ACEOF
36812 /* confdefs.h.  */
36813 _ACEOF
36814 cat confdefs.h >>conftest.$ac_ext
36815 cat >>conftest.$ac_ext <<_ACEOF
36816 /* end confdefs.h.  */
36817
36818          /* we need gcc >= 4.0, older versions with visibility support
36819             didn't have class visibility: */
36820          #if defined(__GNUC__) && __GNUC__ < 4
36821          error this gcc is too old;
36822          #endif
36823
36824          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
36825          extern __attribute__((__visibility__("default"))) int exportedvar;
36826          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
36827          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
36828          class __attribute__((__visibility__("default"))) Foo {
36829            Foo() {}
36830          };
36831
36832 int
36833 main ()
36834 {
36835
36836   ;
36837   return 0;
36838 }
36839 _ACEOF
36840 rm -f conftest.$ac_objext
36841 if { (ac_try="$ac_compile"
36842 case "(($ac_try" in
36843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36844   *) ac_try_echo=$ac_try;;
36845 esac
36846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36847   (eval "$ac_compile") 2>conftest.er1
36848   ac_status=$?
36849   grep -v '^ *+' conftest.er1 >conftest.err
36850   rm -f conftest.er1
36851   cat conftest.err >&5
36852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853   (exit $ac_status); } && {
36854          test -z "$ac_cxx_werror_flag" ||
36855          test ! -s conftest.err
36856        } && test -s conftest.$ac_objext; then
36857   wx_cv_cc_visibility=yes
36858 else
36859   echo "$as_me: failed program was:" >&5
36860 sed 's/^/| /' conftest.$ac_ext >&5
36861
36862         wx_cv_cc_visibility=no
36863 fi
36864
36865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36866       ac_ext=c
36867 ac_cpp='$CPP $CPPFLAGS'
36868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36871
36872       CXXFLAGS="$wx_save_CXXFLAGS"
36873 fi
36874
36875     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
36876 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
36877     if test $wx_cv_cc_visibility = yes; then
36878       cat >>confdefs.h <<\_ACEOF
36879 #define HAVE_VISIBILITY 1
36880 _ACEOF
36881
36882
36883                   { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
36884 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
36885       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
36886   echo $ECHO_N "(cached) $ECHO_C" >&6
36887 else
36888
36889         wx_save_CXXFLAGS="$CXXFLAGS"
36890         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36891         ac_ext=cpp
36892 ac_cpp='$CXXCPP $CPPFLAGS'
36893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36896
36897         cat >conftest.$ac_ext <<_ACEOF
36898 /* confdefs.h.  */
36899 _ACEOF
36900 cat confdefs.h >>conftest.$ac_ext
36901 cat >>conftest.$ac_ext <<_ACEOF
36902 /* end confdefs.h.  */
36903
36904             #include <string>
36905
36906 int
36907 main ()
36908 {
36909
36910             std::string x;
36911
36912   ;
36913   return 0;
36914 }
36915 _ACEOF
36916 rm -f conftest.$ac_objext conftest$ac_exeext
36917 if { (ac_try="$ac_link"
36918 case "(($ac_try" in
36919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36920   *) ac_try_echo=$ac_try;;
36921 esac
36922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36923   (eval "$ac_link") 2>conftest.er1
36924   ac_status=$?
36925   grep -v '^ *+' conftest.er1 >conftest.err
36926   rm -f conftest.er1
36927   cat conftest.err >&5
36928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36929   (exit $ac_status); } && {
36930          test -z "$ac_cxx_werror_flag" ||
36931          test ! -s conftest.err
36932        } && test -s conftest$ac_exeext &&
36933        $as_test_x conftest$ac_exeext; then
36934   wx_cv_cc_broken_libstdcxx_visibility=no
36935 else
36936   echo "$as_me: failed program was:" >&5
36937 sed 's/^/| /' conftest.$ac_ext >&5
36938
36939         wx_cv_cc_broken_libstdcxx_visibility=yes
36940 fi
36941
36942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36943       conftest$ac_exeext conftest.$ac_ext
36944         ac_ext=c
36945 ac_cpp='$CPP $CPPFLAGS'
36946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36949
36950         CXXFLAGS="$wx_save_CXXFLAGS"
36951 fi
36952
36953       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
36954 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
36955       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36956         cat >>confdefs.h <<\_ACEOF
36957 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
36958 _ACEOF
36959
36960       fi
36961
36962     else
36963       CFLAGS_VISIBILITY=""
36964       CXXFLAGS_VISIBILITY=""
36965     fi
36966
36967
36968   fi
36969
36970     fi
36971
36972         if test "x$SUNCXX" = xyes; then
36973         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36974         WXCONFIG_RPATH="-R\$libdir"
36975     else
36976     case "${host}" in
36977       *-*-linux* | *-*-gnu* )
36978         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36979         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36980         ;;
36981
36982       *-*-solaris2* )
36983
36984                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36985
36986                         saveLdflags="$LDFLAGS"
36987         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36988         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36989 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36990         cat >conftest.$ac_ext <<_ACEOF
36991 /* confdefs.h.  */
36992 _ACEOF
36993 cat confdefs.h >>conftest.$ac_ext
36994 cat >>conftest.$ac_ext <<_ACEOF
36995 /* end confdefs.h.  */
36996
36997 int
36998 main ()
36999 {
37000
37001   ;
37002   return 0;
37003 }
37004 _ACEOF
37005 rm -f conftest.$ac_objext conftest$ac_exeext
37006 if { (ac_try="$ac_link"
37007 case "(($ac_try" in
37008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37009   *) ac_try_echo=$ac_try;;
37010 esac
37011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37012   (eval "$ac_link") 2>conftest.er1
37013   ac_status=$?
37014   grep -v '^ *+' conftest.er1 >conftest.err
37015   rm -f conftest.er1
37016   cat conftest.err >&5
37017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018   (exit $ac_status); } && {
37019          test -z "$ac_c_werror_flag" ||
37020          test ! -s conftest.err
37021        } && test -s conftest$ac_exeext &&
37022        $as_test_x conftest$ac_exeext; then
37023
37024                 { echo "$as_me:$LINENO: result: yes" >&5
37025 echo "${ECHO_T}yes" >&6; }
37026                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
37027                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
37028
37029 else
37030   echo "$as_me: failed program was:" >&5
37031 sed 's/^/| /' conftest.$ac_ext >&5
37032
37033
37034                 { echo "$as_me:$LINENO: result: no" >&5
37035 echo "${ECHO_T}no" >&6; }
37036                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
37037 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
37038                 LDFLAGS="$saveLdflags -Wl,-R,/"
37039                 cat >conftest.$ac_ext <<_ACEOF
37040 /* confdefs.h.  */
37041 _ACEOF
37042 cat confdefs.h >>conftest.$ac_ext
37043 cat >>conftest.$ac_ext <<_ACEOF
37044 /* end confdefs.h.  */
37045
37046 int
37047 main ()
37048 {
37049
37050   ;
37051   return 0;
37052 }
37053 _ACEOF
37054 rm -f conftest.$ac_objext conftest$ac_exeext
37055 if { (ac_try="$ac_link"
37056 case "(($ac_try" in
37057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37058   *) ac_try_echo=$ac_try;;
37059 esac
37060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37061   (eval "$ac_link") 2>conftest.er1
37062   ac_status=$?
37063   grep -v '^ *+' conftest.er1 >conftest.err
37064   rm -f conftest.er1
37065   cat conftest.err >&5
37066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067   (exit $ac_status); } && {
37068          test -z "$ac_c_werror_flag" ||
37069          test ! -s conftest.err
37070        } && test -s conftest$ac_exeext &&
37071        $as_test_x conftest$ac_exeext; then
37072
37073                         { echo "$as_me:$LINENO: result: yes" >&5
37074 echo "${ECHO_T}yes" >&6; }
37075                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
37076                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
37077
37078 else
37079   echo "$as_me: failed program was:" >&5
37080 sed 's/^/| /' conftest.$ac_ext >&5
37081
37082
37083                         { echo "$as_me:$LINENO: result: no" >&5
37084 echo "${ECHO_T}no" >&6; }
37085
37086 fi
37087
37088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37089       conftest$ac_exeext conftest.$ac_ext
37090
37091 fi
37092
37093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37094       conftest$ac_exeext conftest.$ac_ext
37095         LDFLAGS="$saveLdflags"
37096       ;;
37097
37098       *-*-darwin* )
37099         install_name_tool=`which install_name_tool`
37100         if test "$install_name_tool" -a -x "$install_name_tool"; then
37101             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
37102             cat <<EOF >change-install-names
37103 #!/bin/sh
37104 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
37105 inst_cmd="install_name_tool "
37106 for i in \${libnames} ; do
37107     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
37108 done
37109 \${inst_cmd} \${3}
37110 EOF
37111             chmod +x change-install-names
37112         fi
37113       ;;
37114
37115       *-*-cygwin* | *-*-mingw32* )
37116                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
37117         ;;
37118
37119       *-*-hpux* )
37120         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
37121         WXCONFIG_RPATH="-Wl,+b,\$libdir"
37122         ;;
37123
37124     esac
37125     fi
37126
37127     if test $wxUSE_RPATH = "no"; then
37128         SAMPLES_RPATH_FLAG=''
37129         SAMPLES_RPATH_POSTLINK=''
37130         WXCONFIG_RPATH=''
37131     fi
37132
37133     SHARED=1
37134
37135 else
37136
37137     config_linkage_component="-static"
37138     SHARED=0
37139
37140 fi
37141
37142
37143 UNICODE=0
37144 lib_unicode_suffix=
37145 WX_CHARTYPE="ansi"
37146 if test "$wxUSE_UNICODE" = "yes"; then
37147     lib_unicode_suffix=u
37148     WX_CHARTYPE="unicode"
37149     UNICODE=1
37150 fi
37151
37152 lib_debug_suffix=
37153 WX_DEBUGTYPE="release"
37154 DEBUG_FLAG=0
37155 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
37156     lib_debug_suffix=d
37157     WX_DEBUGTYPE="debug"
37158     DEBUG_FLAG=1
37159 fi
37160
37161 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
37162 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
37163
37164 DEBUG_INFO=0
37165 if test "$wxUSE_DEBUG_INFO" = "yes"; then
37166     DEBUG_INFO=1
37167 fi
37168
37169 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
37170
37171 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
37172
37173 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
37174
37175 if test "$cross_compiling" = "yes"; then
37176     HOST_SUFFIX="-$host_alias"
37177     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
37178     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
37179 fi
37180
37181 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
37182 if test "${TOOLKIT_DIR}" = "os2"; then
37183     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
37184 else
37185     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
37186 fi
37187
37188
37189
37190 if test "$wxUSE_COCOA" = 1; then
37191
37192     ac_ext=c
37193 ac_cpp='$CPP $CPPFLAGS'
37194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37197
37198 ac_ext=m
37199
37200     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
37201 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
37202     cat >conftest.$ac_ext <<_ACEOF
37203 /* confdefs.h.  */
37204 _ACEOF
37205 cat confdefs.h >>conftest.$ac_ext
37206 cat >>conftest.$ac_ext <<_ACEOF
37207 /* end confdefs.h.  */
37208 #include <AppKit/NSEvent.h>
37209 #include <CoreFoundation/CoreFoundation.h>
37210
37211 int
37212 main ()
37213 {
37214
37215   ;
37216   return 0;
37217 }
37218 _ACEOF
37219 rm -f conftest.$ac_objext
37220 if { (ac_try="$ac_compile"
37221 case "(($ac_try" in
37222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37223   *) ac_try_echo=$ac_try;;
37224 esac
37225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37226   (eval "$ac_compile") 2>conftest.er1
37227   ac_status=$?
37228   grep -v '^ *+' conftest.er1 >conftest.err
37229   rm -f conftest.er1
37230   cat conftest.err >&5
37231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232   (exit $ac_status); } && {
37233          test -z "$ac_c_werror_flag" ||
37234          test ! -s conftest.err
37235        } && test -s conftest.$ac_objext; then
37236   { echo "$as_me:$LINENO: result: no" >&5
37237 echo "${ECHO_T}no" >&6; }
37238 else
37239   echo "$as_me: failed program was:" >&5
37240 sed 's/^/| /' conftest.$ac_ext >&5
37241
37242         { echo "$as_me:$LINENO: result: yes" >&5
37243 echo "${ECHO_T}yes" >&6; }
37244         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
37245 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
37246         cat >conftest.$ac_ext <<_ACEOF
37247 /* confdefs.h.  */
37248 _ACEOF
37249 cat confdefs.h >>conftest.$ac_ext
37250 cat >>conftest.$ac_ext <<_ACEOF
37251 /* end confdefs.h.  */
37252 #define __Point__ 1
37253 #include <AppKit/NSEvent.h>
37254 #include <CoreFoundation/CoreFoundation.h>
37255
37256 int
37257 main ()
37258 {
37259
37260   ;
37261   return 0;
37262 }
37263 _ACEOF
37264 rm -f conftest.$ac_objext
37265 if { (ac_try="$ac_compile"
37266 case "(($ac_try" in
37267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37268   *) ac_try_echo=$ac_try;;
37269 esac
37270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37271   (eval "$ac_compile") 2>conftest.er1
37272   ac_status=$?
37273   grep -v '^ *+' conftest.er1 >conftest.err
37274   rm -f conftest.er1
37275   cat conftest.err >&5
37276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277   (exit $ac_status); } && {
37278          test -z "$ac_c_werror_flag" ||
37279          test ! -s conftest.err
37280        } && test -s conftest.$ac_objext; then
37281   { echo "$as_me:$LINENO: result: yes" >&5
37282 echo "${ECHO_T}yes" >&6; }
37283             cat >>confdefs.h <<\_ACEOF
37284 #define __Point__ 1
37285 _ACEOF
37286
37287
37288 else
37289   echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37291
37292         { { echo "$as_me:$LINENO: error: no
37293 See \`config.log' for more details." >&5
37294 echo "$as_me: error: no
37295 See \`config.log' for more details." >&2;}
37296    { (exit 1); exit 1; }; }
37297
37298 fi
37299
37300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37301
37302 fi
37303
37304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37305     ac_ext=c
37306 ac_cpp='$CPP $CPPFLAGS'
37307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37310
37311 fi
37312
37313 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
37314             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
37315     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
37316
37317         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
37318
37319     # Extract the first word of "Rez", so it can be a program name with args.
37320 set dummy Rez; ac_word=$2
37321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37323 if test "${ac_cv_prog_REZ+set}" = set; then
37324   echo $ECHO_N "(cached) $ECHO_C" >&6
37325 else
37326   if test -n "$REZ"; then
37327   ac_cv_prog_REZ="$REZ" # Let the user override the test.
37328 else
37329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37330 for as_dir in $PATH
37331 do
37332   IFS=$as_save_IFS
37333   test -z "$as_dir" && as_dir=.
37334   for ac_exec_ext in '' $ac_executable_extensions; do
37335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37336     ac_cv_prog_REZ="Rez"
37337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37338     break 2
37339   fi
37340 done
37341 done
37342 IFS=$as_save_IFS
37343
37344   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
37345 fi
37346 fi
37347 REZ=$ac_cv_prog_REZ
37348 if test -n "$REZ"; then
37349   { echo "$as_me:$LINENO: result: $REZ" >&5
37350 echo "${ECHO_T}$REZ" >&6; }
37351 else
37352   { echo "$as_me:$LINENO: result: no" >&5
37353 echo "${ECHO_T}no" >&6; }
37354 fi
37355
37356
37357     # Extract the first word of "DeRez", so it can be a program name with args.
37358 set dummy DeRez; ac_word=$2
37359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37361 if test "${ac_cv_prog_DEREZ+set}" = set; then
37362   echo $ECHO_N "(cached) $ECHO_C" >&6
37363 else
37364   if test -n "$DEREZ"; then
37365   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
37366 else
37367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37368 for as_dir in $PATH
37369 do
37370   IFS=$as_save_IFS
37371   test -z "$as_dir" && as_dir=.
37372   for ac_exec_ext in '' $ac_executable_extensions; do
37373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37374     ac_cv_prog_DEREZ="DeRez"
37375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37376     break 2
37377   fi
37378 done
37379 done
37380 IFS=$as_save_IFS
37381
37382   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
37383 fi
37384 fi
37385 DEREZ=$ac_cv_prog_DEREZ
37386 if test -n "$DEREZ"; then
37387   { echo "$as_me:$LINENO: result: $DEREZ" >&5
37388 echo "${ECHO_T}$DEREZ" >&6; }
37389 else
37390   { echo "$as_me:$LINENO: result: no" >&5
37391 echo "${ECHO_T}no" >&6; }
37392 fi
37393
37394
37395     # Extract the first word of "SetFile", so it can be a program name with args.
37396 set dummy SetFile; ac_word=$2
37397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37399 if test "${ac_cv_prog_SETFILE+set}" = set; then
37400   echo $ECHO_N "(cached) $ECHO_C" >&6
37401 else
37402   if test -n "$SETFILE"; then
37403   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37404 else
37405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37406 for as_dir in $PATH
37407 do
37408   IFS=$as_save_IFS
37409   test -z "$as_dir" && as_dir=.
37410   for ac_exec_ext in '' $ac_executable_extensions; do
37411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37412     ac_cv_prog_SETFILE="SetFile"
37413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37414     break 2
37415   fi
37416 done
37417 done
37418 IFS=$as_save_IFS
37419
37420   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37421 fi
37422 fi
37423 SETFILE=$ac_cv_prog_SETFILE
37424 if test -n "$SETFILE"; then
37425   { echo "$as_me:$LINENO: result: $SETFILE" >&5
37426 echo "${ECHO_T}$SETFILE" >&6; }
37427 else
37428   { echo "$as_me:$LINENO: result: no" >&5
37429 echo "${ECHO_T}no" >&6; }
37430 fi
37431
37432
37433
37434     MACSETFILE="\$(SETFILE)"
37435
37436             if test "$wxUSE_MAC" = 1; then
37437         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
37438         RESCOMP="$REZ"
37439         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
37440     else
37441         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
37442         RESCOMP="echo -n \| $REZ"
37443         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
37444     fi
37445
37446 else
37447         MACSETFILE="@true"
37448
37449     if test "$wxUSE_PM" = 1; then
37450         RESCOMP="emxbind"
37451         WXCONFIG_RESFLAGS="-ep"
37452
37453                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
37454     else
37455         POSTLINK_COMMAND="@true"
37456     fi
37457
37458 fi
37459
37460
37461
37462 { echo "$as_me:$LINENO: checking for mode_t" >&5
37463 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
37464 if test "${ac_cv_type_mode_t+set}" = set; then
37465   echo $ECHO_N "(cached) $ECHO_C" >&6
37466 else
37467   cat >conftest.$ac_ext <<_ACEOF
37468 /* confdefs.h.  */
37469 _ACEOF
37470 cat confdefs.h >>conftest.$ac_ext
37471 cat >>conftest.$ac_ext <<_ACEOF
37472 /* end confdefs.h.  */
37473 $ac_includes_default
37474 typedef mode_t ac__type_new_;
37475 int
37476 main ()
37477 {
37478 if ((ac__type_new_ *) 0)
37479   return 0;
37480 if (sizeof (ac__type_new_))
37481   return 0;
37482   ;
37483   return 0;
37484 }
37485 _ACEOF
37486 rm -f conftest.$ac_objext
37487 if { (ac_try="$ac_compile"
37488 case "(($ac_try" in
37489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37490   *) ac_try_echo=$ac_try;;
37491 esac
37492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37493   (eval "$ac_compile") 2>conftest.er1
37494   ac_status=$?
37495   grep -v '^ *+' conftest.er1 >conftest.err
37496   rm -f conftest.er1
37497   cat conftest.err >&5
37498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499   (exit $ac_status); } && {
37500          test -z "$ac_c_werror_flag" ||
37501          test ! -s conftest.err
37502        } && test -s conftest.$ac_objext; then
37503   ac_cv_type_mode_t=yes
37504 else
37505   echo "$as_me: failed program was:" >&5
37506 sed 's/^/| /' conftest.$ac_ext >&5
37507
37508         ac_cv_type_mode_t=no
37509 fi
37510
37511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37512 fi
37513 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
37514 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
37515 if test $ac_cv_type_mode_t = yes; then
37516   :
37517 else
37518
37519 cat >>confdefs.h <<_ACEOF
37520 #define mode_t int
37521 _ACEOF
37522
37523 fi
37524
37525 { echo "$as_me:$LINENO: checking for off_t" >&5
37526 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
37527 if test "${ac_cv_type_off_t+set}" = set; then
37528   echo $ECHO_N "(cached) $ECHO_C" >&6
37529 else
37530   cat >conftest.$ac_ext <<_ACEOF
37531 /* confdefs.h.  */
37532 _ACEOF
37533 cat confdefs.h >>conftest.$ac_ext
37534 cat >>conftest.$ac_ext <<_ACEOF
37535 /* end confdefs.h.  */
37536 $ac_includes_default
37537 typedef off_t ac__type_new_;
37538 int
37539 main ()
37540 {
37541 if ((ac__type_new_ *) 0)
37542   return 0;
37543 if (sizeof (ac__type_new_))
37544   return 0;
37545   ;
37546   return 0;
37547 }
37548 _ACEOF
37549 rm -f conftest.$ac_objext
37550 if { (ac_try="$ac_compile"
37551 case "(($ac_try" in
37552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37553   *) ac_try_echo=$ac_try;;
37554 esac
37555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37556   (eval "$ac_compile") 2>conftest.er1
37557   ac_status=$?
37558   grep -v '^ *+' conftest.er1 >conftest.err
37559   rm -f conftest.er1
37560   cat conftest.err >&5
37561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37562   (exit $ac_status); } && {
37563          test -z "$ac_c_werror_flag" ||
37564          test ! -s conftest.err
37565        } && test -s conftest.$ac_objext; then
37566   ac_cv_type_off_t=yes
37567 else
37568   echo "$as_me: failed program was:" >&5
37569 sed 's/^/| /' conftest.$ac_ext >&5
37570
37571         ac_cv_type_off_t=no
37572 fi
37573
37574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37575 fi
37576 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37577 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
37578 if test $ac_cv_type_off_t = yes; then
37579   :
37580 else
37581
37582 cat >>confdefs.h <<_ACEOF
37583 #define off_t long int
37584 _ACEOF
37585
37586 fi
37587
37588 { echo "$as_me:$LINENO: checking for pid_t" >&5
37589 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
37590 if test "${ac_cv_type_pid_t+set}" = set; then
37591   echo $ECHO_N "(cached) $ECHO_C" >&6
37592 else
37593   cat >conftest.$ac_ext <<_ACEOF
37594 /* confdefs.h.  */
37595 _ACEOF
37596 cat confdefs.h >>conftest.$ac_ext
37597 cat >>conftest.$ac_ext <<_ACEOF
37598 /* end confdefs.h.  */
37599 $ac_includes_default
37600 typedef pid_t ac__type_new_;
37601 int
37602 main ()
37603 {
37604 if ((ac__type_new_ *) 0)
37605   return 0;
37606 if (sizeof (ac__type_new_))
37607   return 0;
37608   ;
37609   return 0;
37610 }
37611 _ACEOF
37612 rm -f conftest.$ac_objext
37613 if { (ac_try="$ac_compile"
37614 case "(($ac_try" in
37615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37616   *) ac_try_echo=$ac_try;;
37617 esac
37618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37619   (eval "$ac_compile") 2>conftest.er1
37620   ac_status=$?
37621   grep -v '^ *+' conftest.er1 >conftest.err
37622   rm -f conftest.er1
37623   cat conftest.err >&5
37624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37625   (exit $ac_status); } && {
37626          test -z "$ac_c_werror_flag" ||
37627          test ! -s conftest.err
37628        } && test -s conftest.$ac_objext; then
37629   ac_cv_type_pid_t=yes
37630 else
37631   echo "$as_me: failed program was:" >&5
37632 sed 's/^/| /' conftest.$ac_ext >&5
37633
37634         ac_cv_type_pid_t=no
37635 fi
37636
37637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37638 fi
37639 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37640 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
37641 if test $ac_cv_type_pid_t = yes; then
37642   :
37643 else
37644
37645 cat >>confdefs.h <<_ACEOF
37646 #define pid_t int
37647 _ACEOF
37648
37649 fi
37650
37651 { echo "$as_me:$LINENO: checking for size_t" >&5
37652 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
37653 if test "${ac_cv_type_size_t+set}" = set; then
37654   echo $ECHO_N "(cached) $ECHO_C" >&6
37655 else
37656   cat >conftest.$ac_ext <<_ACEOF
37657 /* confdefs.h.  */
37658 _ACEOF
37659 cat confdefs.h >>conftest.$ac_ext
37660 cat >>conftest.$ac_ext <<_ACEOF
37661 /* end confdefs.h.  */
37662 $ac_includes_default
37663 typedef size_t ac__type_new_;
37664 int
37665 main ()
37666 {
37667 if ((ac__type_new_ *) 0)
37668   return 0;
37669 if (sizeof (ac__type_new_))
37670   return 0;
37671   ;
37672   return 0;
37673 }
37674 _ACEOF
37675 rm -f conftest.$ac_objext
37676 if { (ac_try="$ac_compile"
37677 case "(($ac_try" in
37678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37679   *) ac_try_echo=$ac_try;;
37680 esac
37681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37682   (eval "$ac_compile") 2>conftest.er1
37683   ac_status=$?
37684   grep -v '^ *+' conftest.er1 >conftest.err
37685   rm -f conftest.er1
37686   cat conftest.err >&5
37687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688   (exit $ac_status); } && {
37689          test -z "$ac_c_werror_flag" ||
37690          test ! -s conftest.err
37691        } && test -s conftest.$ac_objext; then
37692   ac_cv_type_size_t=yes
37693 else
37694   echo "$as_me: failed program was:" >&5
37695 sed 's/^/| /' conftest.$ac_ext >&5
37696
37697         ac_cv_type_size_t=no
37698 fi
37699
37700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37701 fi
37702 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37703 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
37704 if test $ac_cv_type_size_t = yes; then
37705   :
37706 else
37707
37708 cat >>confdefs.h <<_ACEOF
37709 #define size_t unsigned int
37710 _ACEOF
37711
37712 fi
37713
37714 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37715 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
37716 if test "${ac_cv_type_uid_t+set}" = set; then
37717   echo $ECHO_N "(cached) $ECHO_C" >&6
37718 else
37719   cat >conftest.$ac_ext <<_ACEOF
37720 /* confdefs.h.  */
37721 _ACEOF
37722 cat confdefs.h >>conftest.$ac_ext
37723 cat >>conftest.$ac_ext <<_ACEOF
37724 /* end confdefs.h.  */
37725 #include <sys/types.h>
37726
37727 _ACEOF
37728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37729   $EGREP "uid_t" >/dev/null 2>&1; then
37730   ac_cv_type_uid_t=yes
37731 else
37732   ac_cv_type_uid_t=no
37733 fi
37734 rm -f conftest*
37735
37736 fi
37737 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37738 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
37739 if test $ac_cv_type_uid_t = no; then
37740
37741 cat >>confdefs.h <<\_ACEOF
37742 #define uid_t int
37743 _ACEOF
37744
37745
37746 cat >>confdefs.h <<\_ACEOF
37747 #define gid_t int
37748 _ACEOF
37749
37750 fi
37751
37752
37753 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37754 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37755 if test "${ac_cv_type_ssize_t+set}" = set; then
37756   echo $ECHO_N "(cached) $ECHO_C" >&6
37757 else
37758   cat >conftest.$ac_ext <<_ACEOF
37759 /* confdefs.h.  */
37760 _ACEOF
37761 cat confdefs.h >>conftest.$ac_ext
37762 cat >>conftest.$ac_ext <<_ACEOF
37763 /* end confdefs.h.  */
37764 $ac_includes_default
37765 typedef ssize_t ac__type_new_;
37766 int
37767 main ()
37768 {
37769 if ((ac__type_new_ *) 0)
37770   return 0;
37771 if (sizeof (ac__type_new_))
37772   return 0;
37773   ;
37774   return 0;
37775 }
37776 _ACEOF
37777 rm -f conftest.$ac_objext
37778 if { (ac_try="$ac_compile"
37779 case "(($ac_try" in
37780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37781   *) ac_try_echo=$ac_try;;
37782 esac
37783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37784   (eval "$ac_compile") 2>conftest.er1
37785   ac_status=$?
37786   grep -v '^ *+' conftest.er1 >conftest.err
37787   rm -f conftest.er1
37788   cat conftest.err >&5
37789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790   (exit $ac_status); } && {
37791          test -z "$ac_c_werror_flag" ||
37792          test ! -s conftest.err
37793        } && test -s conftest.$ac_objext; then
37794   ac_cv_type_ssize_t=yes
37795 else
37796   echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37798
37799         ac_cv_type_ssize_t=no
37800 fi
37801
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37803 fi
37804 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37805 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37806 if test $ac_cv_type_ssize_t = yes; then
37807
37808 cat >>confdefs.h <<_ACEOF
37809 #define HAVE_SSIZE_T 1
37810 _ACEOF
37811
37812
37813 fi
37814
37815
37816 ac_ext=cpp
37817 ac_cpp='$CXXCPP $CPPFLAGS'
37818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37821  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
37822 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
37823 if test "${wx_cv_size_t_is_uint+set}" = set; then
37824   echo $ECHO_N "(cached) $ECHO_C" >&6
37825 else
37826
37827                             cat >conftest.$ac_ext <<_ACEOF
37828 /* confdefs.h.  */
37829 _ACEOF
37830 cat confdefs.h >>conftest.$ac_ext
37831 cat >>conftest.$ac_ext <<_ACEOF
37832 /* end confdefs.h.  */
37833 #include <stddef.h>
37834 int
37835 main ()
37836 {
37837
37838             return 0; }
37839
37840             struct Foo { void foo(size_t); void foo(unsigned int); };
37841
37842             int bar() {
37843
37844   ;
37845   return 0;
37846 }
37847 _ACEOF
37848 rm -f conftest.$ac_objext
37849 if { (ac_try="$ac_compile"
37850 case "(($ac_try" in
37851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37852   *) ac_try_echo=$ac_try;;
37853 esac
37854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37855   (eval "$ac_compile") 2>conftest.er1
37856   ac_status=$?
37857   grep -v '^ *+' conftest.er1 >conftest.err
37858   rm -f conftest.er1
37859   cat conftest.err >&5
37860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37861   (exit $ac_status); } && {
37862          test -z "$ac_cxx_werror_flag" ||
37863          test ! -s conftest.err
37864        } && test -s conftest.$ac_objext; then
37865   wx_cv_size_t_is_uint=no
37866 else
37867   echo "$as_me: failed program was:" >&5
37868 sed 's/^/| /' conftest.$ac_ext >&5
37869
37870         wx_cv_size_t_is_uint=yes
37871
37872 fi
37873
37874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37875
37876
37877 fi
37878 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
37879 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
37880
37881 if test "$wx_cv_size_t_is_uint" = "yes"; then
37882     cat >>confdefs.h <<\_ACEOF
37883 #define wxSIZE_T_IS_UINT 1
37884 _ACEOF
37885
37886 else
37887     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
37888 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
37889 if test "${wx_cv_size_t_is_ulong+set}" = set; then
37890   echo $ECHO_N "(cached) $ECHO_C" >&6
37891 else
37892   cat >conftest.$ac_ext <<_ACEOF
37893 /* confdefs.h.  */
37894 _ACEOF
37895 cat confdefs.h >>conftest.$ac_ext
37896 cat >>conftest.$ac_ext <<_ACEOF
37897 /* end confdefs.h.  */
37898 #include <stddef.h>
37899 int
37900 main ()
37901 {
37902
37903                 return 0; }
37904
37905                 struct Foo { void foo(size_t); void foo(unsigned long); };
37906
37907                 int bar() {
37908
37909   ;
37910   return 0;
37911 }
37912 _ACEOF
37913 rm -f conftest.$ac_objext
37914 if { (ac_try="$ac_compile"
37915 case "(($ac_try" in
37916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37917   *) ac_try_echo=$ac_try;;
37918 esac
37919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37920   (eval "$ac_compile") 2>conftest.er1
37921   ac_status=$?
37922   grep -v '^ *+' conftest.er1 >conftest.err
37923   rm -f conftest.er1
37924   cat conftest.err >&5
37925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926   (exit $ac_status); } && {
37927          test -z "$ac_cxx_werror_flag" ||
37928          test ! -s conftest.err
37929        } && test -s conftest.$ac_objext; then
37930   wx_cv_size_t_is_ulong=no
37931 else
37932   echo "$as_me: failed program was:" >&5
37933 sed 's/^/| /' conftest.$ac_ext >&5
37934
37935         wx_cv_size_t_is_ulong=yes
37936
37937 fi
37938
37939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37940
37941 fi
37942 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
37943 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
37944
37945     if test "$wx_cv_size_t_is_ulong" = "yes"; then
37946         cat >>confdefs.h <<\_ACEOF
37947 #define wxSIZE_T_IS_ULONG 1
37948 _ACEOF
37949
37950     fi
37951 fi
37952
37953 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
37954 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
37955 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
37956   echo $ECHO_N "(cached) $ECHO_C" >&6
37957 else
37958   cat >conftest.$ac_ext <<_ACEOF
37959 /* confdefs.h.  */
37960 _ACEOF
37961 cat confdefs.h >>conftest.$ac_ext
37962 cat >>conftest.$ac_ext <<_ACEOF
37963 /* end confdefs.h.  */
37964 #include <wchar.h>
37965 int
37966 main ()
37967 {
37968
37969             return 0; }
37970
37971             struct Foo { void foo(wchar_t);
37972                          void foo(unsigned short);
37973                          void foo(unsigned int);
37974                          void foo(unsigned long); };
37975
37976             int bar() {
37977
37978   ;
37979   return 0;
37980 }
37981 _ACEOF
37982 rm -f conftest.$ac_objext
37983 if { (ac_try="$ac_compile"
37984 case "(($ac_try" in
37985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37986   *) ac_try_echo=$ac_try;;
37987 esac
37988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37989   (eval "$ac_compile") 2>conftest.er1
37990   ac_status=$?
37991   grep -v '^ *+' conftest.er1 >conftest.err
37992   rm -f conftest.er1
37993   cat conftest.err >&5
37994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995   (exit $ac_status); } && {
37996          test -z "$ac_cxx_werror_flag" ||
37997          test ! -s conftest.err
37998        } && test -s conftest.$ac_objext; then
37999   wx_cv_wchar_t_is_separate_type=yes
38000 else
38001   echo "$as_me: failed program was:" >&5
38002 sed 's/^/| /' conftest.$ac_ext >&5
38003
38004         wx_cv_wchar_t_is_separate_type=no
38005
38006 fi
38007
38008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38009
38010 fi
38011 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
38012 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
38013
38014 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
38015     cat >>confdefs.h <<\_ACEOF
38016 #define wxWCHAR_T_IS_REAL_TYPE 1
38017 _ACEOF
38018
38019 else
38020     cat >>confdefs.h <<\_ACEOF
38021 #define wxWCHAR_T_IS_REAL_TYPE 0
38022 _ACEOF
38023
38024 fi
38025
38026 ac_ext=c
38027 ac_cpp='$CPP $CPPFLAGS'
38028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38031
38032
38033 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
38034 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
38035 if test "${wx_cv_struct_pw_gecos+set}" = set; then
38036   echo $ECHO_N "(cached) $ECHO_C" >&6
38037 else
38038
38039         cat >conftest.$ac_ext <<_ACEOF
38040 /* confdefs.h.  */
38041 _ACEOF
38042 cat confdefs.h >>conftest.$ac_ext
38043 cat >>conftest.$ac_ext <<_ACEOF
38044 /* end confdefs.h.  */
38045 #include <pwd.h>
38046 int
38047 main ()
38048 {
38049
38050                 char *p;
38051                 struct passwd *pw;
38052                 p = pw->pw_gecos;
38053
38054   ;
38055   return 0;
38056 }
38057 _ACEOF
38058 rm -f conftest.$ac_objext
38059 if { (ac_try="$ac_compile"
38060 case "(($ac_try" in
38061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062   *) ac_try_echo=$ac_try;;
38063 esac
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065   (eval "$ac_compile") 2>conftest.er1
38066   ac_status=$?
38067   grep -v '^ *+' conftest.er1 >conftest.err
38068   rm -f conftest.er1
38069   cat conftest.err >&5
38070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071   (exit $ac_status); } && {
38072          test -z "$ac_c_werror_flag" ||
38073          test ! -s conftest.err
38074        } && test -s conftest.$ac_objext; then
38075
38076                 wx_cv_struct_pw_gecos=yes
38077
38078 else
38079   echo "$as_me: failed program was:" >&5
38080 sed 's/^/| /' conftest.$ac_ext >&5
38081
38082
38083                 wx_cv_struct_pw_gecos=no
38084
38085
38086 fi
38087
38088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38089
38090
38091 fi
38092 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
38093 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
38094
38095 if test "$wx_cv_struct_pw_gecos" = "yes"; then
38096     cat >>confdefs.h <<\_ACEOF
38097 #define HAVE_PW_GECOS 1
38098 _ACEOF
38099
38100 fi
38101
38102
38103 if test "$wxUSE_WCHAR_T" = "yes"; then
38104     cat >>confdefs.h <<\_ACEOF
38105 #define wxUSE_WCHAR_T 1
38106 _ACEOF
38107
38108
38109         WCSLEN_FOUND=0
38110     WCHAR_LINK=
38111
38112 for ac_func in wcslen
38113 do
38114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38118   echo $ECHO_N "(cached) $ECHO_C" >&6
38119 else
38120   cat >conftest.$ac_ext <<_ACEOF
38121 /* confdefs.h.  */
38122 _ACEOF
38123 cat confdefs.h >>conftest.$ac_ext
38124 cat >>conftest.$ac_ext <<_ACEOF
38125 /* end confdefs.h.  */
38126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38128 #define $ac_func innocuous_$ac_func
38129
38130 /* System header to define __stub macros and hopefully few prototypes,
38131     which can conflict with char $ac_func (); below.
38132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38133     <limits.h> exists even on freestanding compilers.  */
38134
38135 #ifdef __STDC__
38136 # include <limits.h>
38137 #else
38138 # include <assert.h>
38139 #endif
38140
38141 #undef $ac_func
38142
38143 /* Override any GCC internal prototype to avoid an error.
38144    Use char because int might match the return type of a GCC
38145    builtin and then its argument prototype would still apply.  */
38146 #ifdef __cplusplus
38147 extern "C"
38148 #endif
38149 char $ac_func ();
38150 /* The GNU C library defines this for functions which it implements
38151     to always fail with ENOSYS.  Some functions are actually named
38152     something starting with __ and the normal name is an alias.  */
38153 #if defined __stub_$ac_func || defined __stub___$ac_func
38154 choke me
38155 #endif
38156
38157 int
38158 main ()
38159 {
38160 return $ac_func ();
38161   ;
38162   return 0;
38163 }
38164 _ACEOF
38165 rm -f conftest.$ac_objext conftest$ac_exeext
38166 if { (ac_try="$ac_link"
38167 case "(($ac_try" in
38168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38169   *) ac_try_echo=$ac_try;;
38170 esac
38171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38172   (eval "$ac_link") 2>conftest.er1
38173   ac_status=$?
38174   grep -v '^ *+' conftest.er1 >conftest.err
38175   rm -f conftest.er1
38176   cat conftest.err >&5
38177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38178   (exit $ac_status); } && {
38179          test -z "$ac_c_werror_flag" ||
38180          test ! -s conftest.err
38181        } && test -s conftest$ac_exeext &&
38182        $as_test_x conftest$ac_exeext; then
38183   eval "$as_ac_var=yes"
38184 else
38185   echo "$as_me: failed program was:" >&5
38186 sed 's/^/| /' conftest.$ac_ext >&5
38187
38188         eval "$as_ac_var=no"
38189 fi
38190
38191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38192       conftest$ac_exeext conftest.$ac_ext
38193 fi
38194 ac_res=`eval echo '${'$as_ac_var'}'`
38195                { echo "$as_me:$LINENO: result: $ac_res" >&5
38196 echo "${ECHO_T}$ac_res" >&6; }
38197 if test `eval echo '${'$as_ac_var'}'` = yes; then
38198   cat >>confdefs.h <<_ACEOF
38199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38200 _ACEOF
38201  WCSLEN_FOUND=1
38202 fi
38203 done
38204
38205
38206     if test "$WCSLEN_FOUND" = 0; then
38207         if test "$TOOLKIT" = "MSW"; then
38208             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
38209 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
38210 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
38211   echo $ECHO_N "(cached) $ECHO_C" >&6
38212 else
38213   ac_check_lib_save_LIBS=$LIBS
38214 LIBS="-lmsvcrt  $LIBS"
38215 cat >conftest.$ac_ext <<_ACEOF
38216 /* confdefs.h.  */
38217 _ACEOF
38218 cat confdefs.h >>conftest.$ac_ext
38219 cat >>conftest.$ac_ext <<_ACEOF
38220 /* end confdefs.h.  */
38221
38222 /* Override any GCC internal prototype to avoid an error.
38223    Use char because int might match the return type of a GCC
38224    builtin and then its argument prototype would still apply.  */
38225 #ifdef __cplusplus
38226 extern "C"
38227 #endif
38228 char wcslen ();
38229 int
38230 main ()
38231 {
38232 return wcslen ();
38233   ;
38234   return 0;
38235 }
38236 _ACEOF
38237 rm -f conftest.$ac_objext conftest$ac_exeext
38238 if { (ac_try="$ac_link"
38239 case "(($ac_try" in
38240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38241   *) ac_try_echo=$ac_try;;
38242 esac
38243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38244   (eval "$ac_link") 2>conftest.er1
38245   ac_status=$?
38246   grep -v '^ *+' conftest.er1 >conftest.err
38247   rm -f conftest.er1
38248   cat conftest.err >&5
38249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250   (exit $ac_status); } && {
38251          test -z "$ac_c_werror_flag" ||
38252          test ! -s conftest.err
38253        } && test -s conftest$ac_exeext &&
38254        $as_test_x conftest$ac_exeext; then
38255   ac_cv_lib_msvcrt_wcslen=yes
38256 else
38257   echo "$as_me: failed program was:" >&5
38258 sed 's/^/| /' conftest.$ac_ext >&5
38259
38260         ac_cv_lib_msvcrt_wcslen=no
38261 fi
38262
38263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38264       conftest$ac_exeext conftest.$ac_ext
38265 LIBS=$ac_check_lib_save_LIBS
38266 fi
38267 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
38268 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
38269 if test $ac_cv_lib_msvcrt_wcslen = yes; then
38270   WCHAR_OK=1
38271 fi
38272
38273         else
38274             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
38275 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
38276 if test "${ac_cv_lib_w_wcslen+set}" = set; then
38277   echo $ECHO_N "(cached) $ECHO_C" >&6
38278 else
38279   ac_check_lib_save_LIBS=$LIBS
38280 LIBS="-lw  $LIBS"
38281 cat >conftest.$ac_ext <<_ACEOF
38282 /* confdefs.h.  */
38283 _ACEOF
38284 cat confdefs.h >>conftest.$ac_ext
38285 cat >>conftest.$ac_ext <<_ACEOF
38286 /* end confdefs.h.  */
38287
38288 /* Override any GCC internal prototype to avoid an error.
38289    Use char because int might match the return type of a GCC
38290    builtin and then its argument prototype would still apply.  */
38291 #ifdef __cplusplus
38292 extern "C"
38293 #endif
38294 char wcslen ();
38295 int
38296 main ()
38297 {
38298 return wcslen ();
38299   ;
38300   return 0;
38301 }
38302 _ACEOF
38303 rm -f conftest.$ac_objext conftest$ac_exeext
38304 if { (ac_try="$ac_link"
38305 case "(($ac_try" in
38306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38307   *) ac_try_echo=$ac_try;;
38308 esac
38309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38310   (eval "$ac_link") 2>conftest.er1
38311   ac_status=$?
38312   grep -v '^ *+' conftest.er1 >conftest.err
38313   rm -f conftest.er1
38314   cat conftest.err >&5
38315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316   (exit $ac_status); } && {
38317          test -z "$ac_c_werror_flag" ||
38318          test ! -s conftest.err
38319        } && test -s conftest$ac_exeext &&
38320        $as_test_x conftest$ac_exeext; then
38321   ac_cv_lib_w_wcslen=yes
38322 else
38323   echo "$as_me: failed program was:" >&5
38324 sed 's/^/| /' conftest.$ac_ext >&5
38325
38326         ac_cv_lib_w_wcslen=no
38327 fi
38328
38329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38330       conftest$ac_exeext conftest.$ac_ext
38331 LIBS=$ac_check_lib_save_LIBS
38332 fi
38333 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
38334 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
38335 if test $ac_cv_lib_w_wcslen = yes; then
38336
38337                             WCHAR_LINK=" -lw"
38338                             WCSLEN_FOUND=1
38339
38340 fi
38341
38342         fi
38343     fi
38344
38345     if test "$WCSLEN_FOUND" = 1; then
38346         cat >>confdefs.h <<\_ACEOF
38347 #define HAVE_WCSLEN 1
38348 _ACEOF
38349
38350     fi
38351
38352
38353 for ac_func in wcsdup
38354 do
38355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38359   echo $ECHO_N "(cached) $ECHO_C" >&6
38360 else
38361   cat >conftest.$ac_ext <<_ACEOF
38362 /* confdefs.h.  */
38363 _ACEOF
38364 cat confdefs.h >>conftest.$ac_ext
38365 cat >>conftest.$ac_ext <<_ACEOF
38366 /* end confdefs.h.  */
38367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38369 #define $ac_func innocuous_$ac_func
38370
38371 /* System header to define __stub macros and hopefully few prototypes,
38372     which can conflict with char $ac_func (); below.
38373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38374     <limits.h> exists even on freestanding compilers.  */
38375
38376 #ifdef __STDC__
38377 # include <limits.h>
38378 #else
38379 # include <assert.h>
38380 #endif
38381
38382 #undef $ac_func
38383
38384 /* Override any GCC internal prototype to avoid an error.
38385    Use char because int might match the return type of a GCC
38386    builtin and then its argument prototype would still apply.  */
38387 #ifdef __cplusplus
38388 extern "C"
38389 #endif
38390 char $ac_func ();
38391 /* The GNU C library defines this for functions which it implements
38392     to always fail with ENOSYS.  Some functions are actually named
38393     something starting with __ and the normal name is an alias.  */
38394 #if defined __stub_$ac_func || defined __stub___$ac_func
38395 choke me
38396 #endif
38397
38398 int
38399 main ()
38400 {
38401 return $ac_func ();
38402   ;
38403   return 0;
38404 }
38405 _ACEOF
38406 rm -f conftest.$ac_objext conftest$ac_exeext
38407 if { (ac_try="$ac_link"
38408 case "(($ac_try" in
38409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38410   *) ac_try_echo=$ac_try;;
38411 esac
38412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38413   (eval "$ac_link") 2>conftest.er1
38414   ac_status=$?
38415   grep -v '^ *+' conftest.er1 >conftest.err
38416   rm -f conftest.er1
38417   cat conftest.err >&5
38418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419   (exit $ac_status); } && {
38420          test -z "$ac_c_werror_flag" ||
38421          test ! -s conftest.err
38422        } && test -s conftest$ac_exeext &&
38423        $as_test_x conftest$ac_exeext; then
38424   eval "$as_ac_var=yes"
38425 else
38426   echo "$as_me: failed program was:" >&5
38427 sed 's/^/| /' conftest.$ac_ext >&5
38428
38429         eval "$as_ac_var=no"
38430 fi
38431
38432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38433       conftest$ac_exeext conftest.$ac_ext
38434 fi
38435 ac_res=`eval echo '${'$as_ac_var'}'`
38436                { echo "$as_me:$LINENO: result: $ac_res" >&5
38437 echo "${ECHO_T}$ac_res" >&6; }
38438 if test `eval echo '${'$as_ac_var'}'` = yes; then
38439   cat >>confdefs.h <<_ACEOF
38440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38441 _ACEOF
38442
38443 fi
38444 done
38445
38446
38447                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
38448         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
38449     fi
38450
38451                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
38452 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
38453 if test "${ac_cv_type_mbstate_t+set}" = set; then
38454   echo $ECHO_N "(cached) $ECHO_C" >&6
38455 else
38456   cat >conftest.$ac_ext <<_ACEOF
38457 /* confdefs.h.  */
38458 _ACEOF
38459 cat confdefs.h >>conftest.$ac_ext
38460 cat >>conftest.$ac_ext <<_ACEOF
38461 /* end confdefs.h.  */
38462 #include <wchar.h>
38463
38464 typedef mbstate_t ac__type_new_;
38465 int
38466 main ()
38467 {
38468 if ((ac__type_new_ *) 0)
38469   return 0;
38470 if (sizeof (ac__type_new_))
38471   return 0;
38472   ;
38473   return 0;
38474 }
38475 _ACEOF
38476 rm -f conftest.$ac_objext
38477 if { (ac_try="$ac_compile"
38478 case "(($ac_try" in
38479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38480   *) ac_try_echo=$ac_try;;
38481 esac
38482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38483   (eval "$ac_compile") 2>conftest.er1
38484   ac_status=$?
38485   grep -v '^ *+' conftest.er1 >conftest.err
38486   rm -f conftest.er1
38487   cat conftest.err >&5
38488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489   (exit $ac_status); } && {
38490          test -z "$ac_c_werror_flag" ||
38491          test ! -s conftest.err
38492        } && test -s conftest.$ac_objext; then
38493   ac_cv_type_mbstate_t=yes
38494 else
38495   echo "$as_me: failed program was:" >&5
38496 sed 's/^/| /' conftest.$ac_ext >&5
38497
38498         ac_cv_type_mbstate_t=no
38499 fi
38500
38501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38502 fi
38503 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
38504 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
38505 if test $ac_cv_type_mbstate_t = yes; then
38506
38507 cat >>confdefs.h <<_ACEOF
38508 #define HAVE_MBSTATE_T 1
38509 _ACEOF
38510
38511
38512 for ac_func in wcsrtombs
38513 do
38514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38518   echo $ECHO_N "(cached) $ECHO_C" >&6
38519 else
38520   cat >conftest.$ac_ext <<_ACEOF
38521 /* confdefs.h.  */
38522 _ACEOF
38523 cat confdefs.h >>conftest.$ac_ext
38524 cat >>conftest.$ac_ext <<_ACEOF
38525 /* end confdefs.h.  */
38526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38528 #define $ac_func innocuous_$ac_func
38529
38530 /* System header to define __stub macros and hopefully few prototypes,
38531     which can conflict with char $ac_func (); below.
38532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38533     <limits.h> exists even on freestanding compilers.  */
38534
38535 #ifdef __STDC__
38536 # include <limits.h>
38537 #else
38538 # include <assert.h>
38539 #endif
38540
38541 #undef $ac_func
38542
38543 /* Override any GCC internal prototype to avoid an error.
38544    Use char because int might match the return type of a GCC
38545    builtin and then its argument prototype would still apply.  */
38546 #ifdef __cplusplus
38547 extern "C"
38548 #endif
38549 char $ac_func ();
38550 /* The GNU C library defines this for functions which it implements
38551     to always fail with ENOSYS.  Some functions are actually named
38552     something starting with __ and the normal name is an alias.  */
38553 #if defined __stub_$ac_func || defined __stub___$ac_func
38554 choke me
38555 #endif
38556
38557 int
38558 main ()
38559 {
38560 return $ac_func ();
38561   ;
38562   return 0;
38563 }
38564 _ACEOF
38565 rm -f conftest.$ac_objext conftest$ac_exeext
38566 if { (ac_try="$ac_link"
38567 case "(($ac_try" in
38568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38569   *) ac_try_echo=$ac_try;;
38570 esac
38571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38572   (eval "$ac_link") 2>conftest.er1
38573   ac_status=$?
38574   grep -v '^ *+' conftest.er1 >conftest.err
38575   rm -f conftest.er1
38576   cat conftest.err >&5
38577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578   (exit $ac_status); } && {
38579          test -z "$ac_c_werror_flag" ||
38580          test ! -s conftest.err
38581        } && test -s conftest$ac_exeext &&
38582        $as_test_x conftest$ac_exeext; then
38583   eval "$as_ac_var=yes"
38584 else
38585   echo "$as_me: failed program was:" >&5
38586 sed 's/^/| /' conftest.$ac_ext >&5
38587
38588         eval "$as_ac_var=no"
38589 fi
38590
38591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38592       conftest$ac_exeext conftest.$ac_ext
38593 fi
38594 ac_res=`eval echo '${'$as_ac_var'}'`
38595                { echo "$as_me:$LINENO: result: $ac_res" >&5
38596 echo "${ECHO_T}$ac_res" >&6; }
38597 if test `eval echo '${'$as_ac_var'}'` = yes; then
38598   cat >>confdefs.h <<_ACEOF
38599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38600 _ACEOF
38601
38602 fi
38603 done
38604
38605 fi
38606
38607 else
38608     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
38609 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
38610 fi
38611
38612
38613
38614 for ac_func in snprintf vsnprintf
38615 do
38616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38620   echo $ECHO_N "(cached) $ECHO_C" >&6
38621 else
38622   cat >conftest.$ac_ext <<_ACEOF
38623 /* confdefs.h.  */
38624 _ACEOF
38625 cat confdefs.h >>conftest.$ac_ext
38626 cat >>conftest.$ac_ext <<_ACEOF
38627 /* end confdefs.h.  */
38628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38630 #define $ac_func innocuous_$ac_func
38631
38632 /* System header to define __stub macros and hopefully few prototypes,
38633     which can conflict with char $ac_func (); below.
38634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38635     <limits.h> exists even on freestanding compilers.  */
38636
38637 #ifdef __STDC__
38638 # include <limits.h>
38639 #else
38640 # include <assert.h>
38641 #endif
38642
38643 #undef $ac_func
38644
38645 /* Override any GCC internal prototype to avoid an error.
38646    Use char because int might match the return type of a GCC
38647    builtin and then its argument prototype would still apply.  */
38648 #ifdef __cplusplus
38649 extern "C"
38650 #endif
38651 char $ac_func ();
38652 /* The GNU C library defines this for functions which it implements
38653     to always fail with ENOSYS.  Some functions are actually named
38654     something starting with __ and the normal name is an alias.  */
38655 #if defined __stub_$ac_func || defined __stub___$ac_func
38656 choke me
38657 #endif
38658
38659 int
38660 main ()
38661 {
38662 return $ac_func ();
38663   ;
38664   return 0;
38665 }
38666 _ACEOF
38667 rm -f conftest.$ac_objext conftest$ac_exeext
38668 if { (ac_try="$ac_link"
38669 case "(($ac_try" in
38670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38671   *) ac_try_echo=$ac_try;;
38672 esac
38673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38674   (eval "$ac_link") 2>conftest.er1
38675   ac_status=$?
38676   grep -v '^ *+' conftest.er1 >conftest.err
38677   rm -f conftest.er1
38678   cat conftest.err >&5
38679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38680   (exit $ac_status); } && {
38681          test -z "$ac_c_werror_flag" ||
38682          test ! -s conftest.err
38683        } && test -s conftest$ac_exeext &&
38684        $as_test_x conftest$ac_exeext; then
38685   eval "$as_ac_var=yes"
38686 else
38687   echo "$as_me: failed program was:" >&5
38688 sed 's/^/| /' conftest.$ac_ext >&5
38689
38690         eval "$as_ac_var=no"
38691 fi
38692
38693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38694       conftest$ac_exeext conftest.$ac_ext
38695 fi
38696 ac_res=`eval echo '${'$as_ac_var'}'`
38697                { echo "$as_me:$LINENO: result: $ac_res" >&5
38698 echo "${ECHO_T}$ac_res" >&6; }
38699 if test `eval echo '${'$as_ac_var'}'` = yes; then
38700   cat >>confdefs.h <<_ACEOF
38701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38702 _ACEOF
38703
38704 fi
38705 done
38706
38707
38708 if test "$ac_cv_func_vsnprintf" = "yes"; then
38709         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
38710 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
38711 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
38712   echo $ECHO_N "(cached) $ECHO_C" >&6
38713 else
38714
38715                                                             cat >conftest.$ac_ext <<_ACEOF
38716 /* confdefs.h.  */
38717 _ACEOF
38718 cat confdefs.h >>conftest.$ac_ext
38719 cat >>conftest.$ac_ext <<_ACEOF
38720 /* end confdefs.h.  */
38721
38722                     #include <stdio.h>
38723                     #include <stdarg.h>
38724                     #ifdef __MSL__
38725                     #if __MSL__ >= 0x6000
38726                     namespace std {}
38727                     using namespace std;
38728                     #endif
38729                     #endif
38730
38731 int
38732 main ()
38733 {
38734
38735                     char *buf;
38736                     va_list ap;
38737                     vsnprintf(buf, 10u, "%s", ap);
38738
38739   ;
38740   return 0;
38741 }
38742 _ACEOF
38743 rm -f conftest.$ac_objext
38744 if { (ac_try="$ac_compile"
38745 case "(($ac_try" in
38746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38747   *) ac_try_echo=$ac_try;;
38748 esac
38749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38750   (eval "$ac_compile") 2>conftest.er1
38751   ac_status=$?
38752   grep -v '^ *+' conftest.er1 >conftest.err
38753   rm -f conftest.er1
38754   cat conftest.err >&5
38755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38756   (exit $ac_status); } && {
38757          test -z "$ac_c_werror_flag" ||
38758          test ! -s conftest.err
38759        } && test -s conftest.$ac_objext; then
38760   wx_cv_func_vsnprintf_decl=yes
38761 else
38762   echo "$as_me: failed program was:" >&5
38763 sed 's/^/| /' conftest.$ac_ext >&5
38764
38765         wx_cv_func_vsnprintf_decl=no
38766
38767 fi
38768
38769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38770
38771
38772 fi
38773 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
38774 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
38775
38776     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
38777         cat >>confdefs.h <<\_ACEOF
38778 #define HAVE_VSNPRINTF_DECL 1
38779 _ACEOF
38780
38781
38782                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
38783 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
38784 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
38785   echo $ECHO_N "(cached) $ECHO_C" >&6
38786 else
38787
38788                 cat >conftest.$ac_ext <<_ACEOF
38789 /* confdefs.h.  */
38790 _ACEOF
38791 cat confdefs.h >>conftest.$ac_ext
38792 cat >>conftest.$ac_ext <<_ACEOF
38793 /* end confdefs.h.  */
38794
38795                         #include <stdio.h>
38796                         #include <stdarg.h>
38797                         #ifdef __MSL__
38798                         #if __MSL__ >= 0x6000
38799                         namespace std {}
38800                         using namespace std;
38801                         #endif
38802                         #endif
38803
38804 int
38805 main ()
38806 {
38807
38808                         char *buf;
38809                         va_list ap;
38810                         const char *fmt = "%s";
38811                         vsnprintf(buf, 10u, fmt, ap);
38812
38813   ;
38814   return 0;
38815 }
38816 _ACEOF
38817 rm -f conftest.$ac_objext
38818 if { (ac_try="$ac_compile"
38819 case "(($ac_try" in
38820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38821   *) ac_try_echo=$ac_try;;
38822 esac
38823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38824   (eval "$ac_compile") 2>conftest.er1
38825   ac_status=$?
38826   grep -v '^ *+' conftest.er1 >conftest.err
38827   rm -f conftest.er1
38828   cat conftest.err >&5
38829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830   (exit $ac_status); } && {
38831          test -z "$ac_c_werror_flag" ||
38832          test ! -s conftest.err
38833        } && test -s conftest.$ac_objext; then
38834   wx_cv_func_broken_vsnprintf_decl=no
38835 else
38836   echo "$as_me: failed program was:" >&5
38837 sed 's/^/| /' conftest.$ac_ext >&5
38838
38839         wx_cv_func_broken_vsnprintf_decl=yes
38840
38841 fi
38842
38843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38844
38845
38846 fi
38847 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
38848 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
38849
38850         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
38851             cat >>confdefs.h <<\_ACEOF
38852 #define HAVE_BROKEN_VSNPRINTF_DECL 1
38853 _ACEOF
38854
38855         fi
38856     fi
38857 fi
38858
38859 if test "$ac_cv_func_snprintf" = "yes"; then
38860     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
38861 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
38862 if test "${wx_cv_func_snprintf_decl+set}" = set; then
38863   echo $ECHO_N "(cached) $ECHO_C" >&6
38864 else
38865
38866             cat >conftest.$ac_ext <<_ACEOF
38867 /* confdefs.h.  */
38868 _ACEOF
38869 cat confdefs.h >>conftest.$ac_ext
38870 cat >>conftest.$ac_ext <<_ACEOF
38871 /* end confdefs.h.  */
38872
38873                     #include <stdio.h>
38874                     #include <stdarg.h>
38875                     #ifdef __MSL__
38876                     #if __MSL__ >= 0x6000
38877                     namespace std {}
38878                     using namespace std;
38879                     #endif
38880                     #endif
38881
38882 int
38883 main ()
38884 {
38885
38886                     char *buf;
38887                     snprintf(buf, 10u, "%s", "wx");
38888
38889   ;
38890   return 0;
38891 }
38892 _ACEOF
38893 rm -f conftest.$ac_objext
38894 if { (ac_try="$ac_compile"
38895 case "(($ac_try" in
38896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38897   *) ac_try_echo=$ac_try;;
38898 esac
38899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38900   (eval "$ac_compile") 2>conftest.er1
38901   ac_status=$?
38902   grep -v '^ *+' conftest.er1 >conftest.err
38903   rm -f conftest.er1
38904   cat conftest.err >&5
38905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38906   (exit $ac_status); } && {
38907          test -z "$ac_c_werror_flag" ||
38908          test ! -s conftest.err
38909        } && test -s conftest.$ac_objext; then
38910   wx_cv_func_snprintf_decl=yes
38911 else
38912   echo "$as_me: failed program was:" >&5
38913 sed 's/^/| /' conftest.$ac_ext >&5
38914
38915         wx_cv_func_snprintf_decl=no
38916
38917 fi
38918
38919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38920
38921
38922 fi
38923 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
38924 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
38925
38926     if test "$wx_cv_func_snprintf_decl" = "yes"; then
38927         cat >>confdefs.h <<\_ACEOF
38928 #define HAVE_SNPRINTF_DECL 1
38929 _ACEOF
38930
38931
38932                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
38933 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
38934 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
38935   echo $ECHO_N "(cached) $ECHO_C" >&6
38936 else
38937
38938                 cat >conftest.$ac_ext <<_ACEOF
38939 /* confdefs.h.  */
38940 _ACEOF
38941 cat confdefs.h >>conftest.$ac_ext
38942 cat >>conftest.$ac_ext <<_ACEOF
38943 /* end confdefs.h.  */
38944
38945                         #include <stdio.h>
38946                         #include <stdarg.h>
38947                         #ifdef __MSL__
38948                         #if __MSL__ >= 0x6000
38949                         namespace std {}
38950                         using namespace std;
38951                         #endif
38952                         #endif
38953
38954 int
38955 main ()
38956 {
38957
38958                         char *buf;
38959                         const char *fmt = "%s";
38960                         snprintf(buf, 10u, fmt, "wx");
38961
38962   ;
38963   return 0;
38964 }
38965 _ACEOF
38966 rm -f conftest.$ac_objext
38967 if { (ac_try="$ac_compile"
38968 case "(($ac_try" in
38969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38970   *) ac_try_echo=$ac_try;;
38971 esac
38972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38973   (eval "$ac_compile") 2>conftest.er1
38974   ac_status=$?
38975   grep -v '^ *+' conftest.er1 >conftest.err
38976   rm -f conftest.er1
38977   cat conftest.err >&5
38978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38979   (exit $ac_status); } && {
38980          test -z "$ac_c_werror_flag" ||
38981          test ! -s conftest.err
38982        } && test -s conftest.$ac_objext; then
38983   wx_cv_func_broken_snprintf_decl=no
38984 else
38985   echo "$as_me: failed program was:" >&5
38986 sed 's/^/| /' conftest.$ac_ext >&5
38987
38988         wx_cv_func_broken_snprintf_decl=yes
38989
38990 fi
38991
38992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38993
38994
38995 fi
38996 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
38997 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
38998
38999         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
39000             cat >>confdefs.h <<\_ACEOF
39001 #define HAVE_BROKEN_SNPRINTF_DECL 1
39002 _ACEOF
39003
39004         fi
39005     fi
39006
39007     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
39008
39009                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
39010 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
39011 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
39012   echo $ECHO_N "(cached) $ECHO_C" >&6
39013 else
39014
39015                 if test "$cross_compiling" = yes; then
39016
39017                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
39018 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
39019 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
39020 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
39021                         wx_cv_func_snprintf_pos_params=no
39022
39023
39024 else
39025   cat >conftest.$ac_ext <<_ACEOF
39026 /* confdefs.h.  */
39027 _ACEOF
39028 cat confdefs.h >>conftest.$ac_ext
39029 cat >>conftest.$ac_ext <<_ACEOF
39030 /* end confdefs.h.  */
39031
39032                         #include <stdio.h>
39033
39034                         int main (void)
39035                         {
39036                             char buffer[128];
39037                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
39038                             if (strcmp ("2 3 1", buffer) == 0)
39039                                 exit (0);
39040                             exit (1);
39041                         }
39042
39043 _ACEOF
39044 rm -f conftest$ac_exeext
39045 if { (ac_try="$ac_link"
39046 case "(($ac_try" in
39047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39048   *) ac_try_echo=$ac_try;;
39049 esac
39050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39051   (eval "$ac_link") 2>&5
39052   ac_status=$?
39053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39055   { (case "(($ac_try" in
39056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39057   *) ac_try_echo=$ac_try;;
39058 esac
39059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39060   (eval "$ac_try") 2>&5
39061   ac_status=$?
39062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39063   (exit $ac_status); }; }; then
39064   wx_cv_func_snprintf_pos_params=no
39065 else
39066   echo "$as_me: program exited with status $ac_status" >&5
39067 echo "$as_me: failed program was:" >&5
39068 sed 's/^/| /' conftest.$ac_ext >&5
39069
39070 ( exit $ac_status )
39071 wx_cv_func_snprintf_pos_params=yes
39072 fi
39073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39074 fi
39075
39076
39077
39078
39079 fi
39080 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
39081 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
39082
39083         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
39084             cat >>confdefs.h <<\_ACEOF
39085 #define HAVE_UNIX98_PRINTF 1
39086 _ACEOF
39087
39088         fi
39089     fi
39090 fi
39091
39092 if test "$wxUSE_UNICODE" = yes; then
39093
39094
39095 for ac_func in swprintf
39096 do
39097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39101   echo $ECHO_N "(cached) $ECHO_C" >&6
39102 else
39103   cat >conftest.$ac_ext <<_ACEOF
39104 /* confdefs.h.  */
39105 _ACEOF
39106 cat confdefs.h >>conftest.$ac_ext
39107 cat >>conftest.$ac_ext <<_ACEOF
39108 /* end confdefs.h.  */
39109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39111 #define $ac_func innocuous_$ac_func
39112
39113 /* System header to define __stub macros and hopefully few prototypes,
39114     which can conflict with char $ac_func (); below.
39115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39116     <limits.h> exists even on freestanding compilers.  */
39117
39118 #ifdef __STDC__
39119 # include <limits.h>
39120 #else
39121 # include <assert.h>
39122 #endif
39123
39124 #undef $ac_func
39125
39126 /* Override any GCC internal prototype to avoid an error.
39127    Use char because int might match the return type of a GCC
39128    builtin and then its argument prototype would still apply.  */
39129 #ifdef __cplusplus
39130 extern "C"
39131 #endif
39132 char $ac_func ();
39133 /* The GNU C library defines this for functions which it implements
39134     to always fail with ENOSYS.  Some functions are actually named
39135     something starting with __ and the normal name is an alias.  */
39136 #if defined __stub_$ac_func || defined __stub___$ac_func
39137 choke me
39138 #endif
39139
39140 int
39141 main ()
39142 {
39143 return $ac_func ();
39144   ;
39145   return 0;
39146 }
39147 _ACEOF
39148 rm -f conftest.$ac_objext conftest$ac_exeext
39149 if { (ac_try="$ac_link"
39150 case "(($ac_try" in
39151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39152   *) ac_try_echo=$ac_try;;
39153 esac
39154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39155   (eval "$ac_link") 2>conftest.er1
39156   ac_status=$?
39157   grep -v '^ *+' conftest.er1 >conftest.err
39158   rm -f conftest.er1
39159   cat conftest.err >&5
39160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161   (exit $ac_status); } && {
39162          test -z "$ac_c_werror_flag" ||
39163          test ! -s conftest.err
39164        } && test -s conftest$ac_exeext &&
39165        $as_test_x conftest$ac_exeext; then
39166   eval "$as_ac_var=yes"
39167 else
39168   echo "$as_me: failed program was:" >&5
39169 sed 's/^/| /' conftest.$ac_ext >&5
39170
39171         eval "$as_ac_var=no"
39172 fi
39173
39174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39175       conftest$ac_exeext conftest.$ac_ext
39176 fi
39177 ac_res=`eval echo '${'$as_ac_var'}'`
39178                { echo "$as_me:$LINENO: result: $ac_res" >&5
39179 echo "${ECHO_T}$ac_res" >&6; }
39180 if test `eval echo '${'$as_ac_var'}'` = yes; then
39181   cat >>confdefs.h <<_ACEOF
39182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39183 _ACEOF
39184
39185 fi
39186 done
39187
39188
39189     if test "$ac_cv_func_swprintf" = "yes"; then
39190         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
39191 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
39192 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
39193   echo $ECHO_N "(cached) $ECHO_C" >&6
39194 else
39195
39196                 cat >conftest.$ac_ext <<_ACEOF
39197 /* confdefs.h.  */
39198 _ACEOF
39199 cat confdefs.h >>conftest.$ac_ext
39200 cat >>conftest.$ac_ext <<_ACEOF
39201 /* end confdefs.h.  */
39202
39203                         #include <stdio.h>
39204                         #include <stdarg.h>
39205                         #include <wchar.h>
39206
39207 int
39208 main ()
39209 {
39210
39211                         wchar_t *buf;
39212                         const wchar_t *fmt = L"test";
39213                         swprintf(buf, 10u, fmt);
39214
39215   ;
39216   return 0;
39217 }
39218 _ACEOF
39219 rm -f conftest.$ac_objext
39220 if { (ac_try="$ac_compile"
39221 case "(($ac_try" in
39222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39223   *) ac_try_echo=$ac_try;;
39224 esac
39225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39226   (eval "$ac_compile") 2>conftest.er1
39227   ac_status=$?
39228   grep -v '^ *+' conftest.er1 >conftest.err
39229   rm -f conftest.er1
39230   cat conftest.err >&5
39231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232   (exit $ac_status); } && {
39233          test -z "$ac_c_werror_flag" ||
39234          test ! -s conftest.err
39235        } && test -s conftest.$ac_objext; then
39236   wx_cv_func_broken_swprintf_decl=no
39237 else
39238   echo "$as_me: failed program was:" >&5
39239 sed 's/^/| /' conftest.$ac_ext >&5
39240
39241         wx_cv_func_broken_swprintf_decl=yes
39242
39243 fi
39244
39245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39246
39247
39248 fi
39249 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
39250 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
39251
39252         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
39253             cat >>confdefs.h <<\_ACEOF
39254 #define HAVE_BROKEN_SWPRINTF_DECL 1
39255 _ACEOF
39256
39257         fi
39258     fi
39259
39260             wchar_headers="#include <stdio.h>
39261 #include <wchar.h>"
39262     case "${host}" in
39263         *-*-solaris2* )
39264
39265 for ac_header in widec.h
39266 do
39267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39271   echo $ECHO_N "(cached) $ECHO_C" >&6
39272 else
39273   cat >conftest.$ac_ext <<_ACEOF
39274 /* confdefs.h.  */
39275 _ACEOF
39276 cat confdefs.h >>conftest.$ac_ext
39277 cat >>conftest.$ac_ext <<_ACEOF
39278 /* end confdefs.h.  */
39279 $ac_includes_default
39280
39281 #include <$ac_header>
39282 _ACEOF
39283 rm -f conftest.$ac_objext
39284 if { (ac_try="$ac_compile"
39285 case "(($ac_try" in
39286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39287   *) ac_try_echo=$ac_try;;
39288 esac
39289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39290   (eval "$ac_compile") 2>conftest.er1
39291   ac_status=$?
39292   grep -v '^ *+' conftest.er1 >conftest.err
39293   rm -f conftest.er1
39294   cat conftest.err >&5
39295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39296   (exit $ac_status); } && {
39297          test -z "$ac_c_werror_flag" ||
39298          test ! -s conftest.err
39299        } && test -s conftest.$ac_objext; then
39300   eval "$as_ac_Header=yes"
39301 else
39302   echo "$as_me: failed program was:" >&5
39303 sed 's/^/| /' conftest.$ac_ext >&5
39304
39305         eval "$as_ac_Header=no"
39306 fi
39307
39308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39309 fi
39310 ac_res=`eval echo '${'$as_ac_Header'}'`
39311                { echo "$as_me:$LINENO: result: $ac_res" >&5
39312 echo "${ECHO_T}$ac_res" >&6; }
39313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39314   cat >>confdefs.h <<_ACEOF
39315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39316 _ACEOF
39317
39318 fi
39319
39320 done
39321
39322             if test "$ac_cv_header_widec_h" = "yes"; then
39323                 wchar_headers="$wchar_headers
39324 #include <widec.h>"
39325             fi
39326     esac
39327
39328
39329   for wx_func in wputc wputchar putws fputws wprintf vswprintf
39330   do
39331     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39332 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39333 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39334   echo $ECHO_N "(cached) $ECHO_C" >&6
39335 else
39336
39337         cat >conftest.$ac_ext <<_ACEOF
39338
39339             /* confdefs.h.  */
39340 _ACEOF
39341 cat confdefs.h >>conftest.$ac_ext
39342 cat >>conftest.$ac_ext <<_ACEOF
39343 /* end confdefs.h.  */
39344
39345                 $wchar_headers
39346                 $ac_includes_default
39347
39348 int
39349 main ()
39350 {
39351
39352                 #ifndef $wx_func
39353                   &$wx_func;
39354                 #endif
39355
39356
39357   ;
39358   return 0;
39359 }
39360
39361 _ACEOF
39362 rm -f conftest.$ac_objext conftest$ac_exeext
39363 if { (ac_try="$ac_link"
39364 case "(($ac_try" in
39365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39366   *) ac_try_echo=$ac_try;;
39367 esac
39368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39369   (eval "$ac_link") 2>conftest.er1
39370   ac_status=$?
39371   grep -v '^ *+' conftest.er1 >conftest.err
39372   rm -f conftest.er1
39373   cat conftest.err >&5
39374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375   (exit $ac_status); } && {
39376          test -z "$ac_c_werror_flag" ||
39377          test ! -s conftest.err
39378        } && test -s conftest$ac_exeext &&
39379        $as_test_x conftest$ac_exeext; then
39380   eval wx_cv_func_$wx_func=yes
39381 else
39382   echo "$as_me: failed program was:" >&5
39383 sed 's/^/| /' conftest.$ac_ext >&5
39384
39385         eval wx_cv_func_$wx_func=no
39386 fi
39387
39388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39389       conftest$ac_exeext conftest.$ac_ext
39390
39391 fi
39392 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39393                { echo "$as_me:$LINENO: result: $ac_res" >&5
39394 echo "${ECHO_T}$ac_res" >&6; }
39395
39396     if eval test \$wx_cv_func_$wx_func = yes
39397     then
39398       cat >>confdefs.h <<_ACEOF
39399 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39400 _ACEOF
39401
39402
39403     else
39404       :
39405
39406     fi
39407   done
39408
39409
39410                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
39411 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
39412     cat >conftest.$ac_ext <<_ACEOF
39413 /* confdefs.h.  */
39414 _ACEOF
39415 cat confdefs.h >>conftest.$ac_ext
39416 cat >>conftest.$ac_ext <<_ACEOF
39417 /* end confdefs.h.  */
39418 #include <wchar.h>
39419 int
39420 main ()
39421 {
39422 &_vsnwprintf;
39423   ;
39424   return 0;
39425 }
39426 _ACEOF
39427 rm -f conftest.$ac_objext
39428 if { (ac_try="$ac_compile"
39429 case "(($ac_try" in
39430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39431   *) ac_try_echo=$ac_try;;
39432 esac
39433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39434   (eval "$ac_compile") 2>conftest.er1
39435   ac_status=$?
39436   grep -v '^ *+' conftest.er1 >conftest.err
39437   rm -f conftest.er1
39438   cat conftest.err >&5
39439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440   (exit $ac_status); } && {
39441          test -z "$ac_c_werror_flag" ||
39442          test ! -s conftest.err
39443        } && test -s conftest.$ac_objext; then
39444   { echo "$as_me:$LINENO: result: yes" >&5
39445 echo "${ECHO_T}yes" >&6; }
39446                     cat >>confdefs.h <<\_ACEOF
39447 #define HAVE__VSNWPRINTF 1
39448 _ACEOF
39449
39450 else
39451   echo "$as_me: failed program was:" >&5
39452 sed 's/^/| /' conftest.$ac_ext >&5
39453
39454         { echo "$as_me:$LINENO: result: no" >&5
39455 echo "${ECHO_T}no" >&6; }
39456 fi
39457
39458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
39459 fi
39460
39461 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
39462
39463   for wx_func in fnmatch
39464   do
39465     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39466 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39467 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39468   echo $ECHO_N "(cached) $ECHO_C" >&6
39469 else
39470
39471         cat >conftest.$ac_ext <<_ACEOF
39472
39473             /* confdefs.h.  */
39474 _ACEOF
39475 cat confdefs.h >>conftest.$ac_ext
39476 cat >>conftest.$ac_ext <<_ACEOF
39477 /* end confdefs.h.  */
39478
39479                 #include <fnmatch.h>
39480                 $ac_includes_default
39481
39482 int
39483 main ()
39484 {
39485
39486                 #ifndef $wx_func
39487                   &$wx_func;
39488                 #endif
39489
39490
39491   ;
39492   return 0;
39493 }
39494
39495 _ACEOF
39496 rm -f conftest.$ac_objext conftest$ac_exeext
39497 if { (ac_try="$ac_link"
39498 case "(($ac_try" in
39499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39500   *) ac_try_echo=$ac_try;;
39501 esac
39502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39503   (eval "$ac_link") 2>conftest.er1
39504   ac_status=$?
39505   grep -v '^ *+' conftest.er1 >conftest.err
39506   rm -f conftest.er1
39507   cat conftest.err >&5
39508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39509   (exit $ac_status); } && {
39510          test -z "$ac_c_werror_flag" ||
39511          test ! -s conftest.err
39512        } && test -s conftest$ac_exeext &&
39513        $as_test_x conftest$ac_exeext; then
39514   eval wx_cv_func_$wx_func=yes
39515 else
39516   echo "$as_me: failed program was:" >&5
39517 sed 's/^/| /' conftest.$ac_ext >&5
39518
39519         eval wx_cv_func_$wx_func=no
39520 fi
39521
39522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39523       conftest$ac_exeext conftest.$ac_ext
39524
39525 fi
39526 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39527                { echo "$as_me:$LINENO: result: $ac_res" >&5
39528 echo "${ECHO_T}$ac_res" >&6; }
39529
39530     if eval test \$wx_cv_func_$wx_func = yes
39531     then
39532       cat >>confdefs.h <<_ACEOF
39533 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39534 _ACEOF
39535
39536
39537     else
39538       :
39539
39540     fi
39541   done
39542
39543 fi
39544
39545 if test "$wxUSE_FILE" = "yes"; then
39546
39547   for wx_func in fsync
39548   do
39549     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39550 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39551 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39552   echo $ECHO_N "(cached) $ECHO_C" >&6
39553 else
39554
39555         cat >conftest.$ac_ext <<_ACEOF
39556
39557             /* confdefs.h.  */
39558 _ACEOF
39559 cat confdefs.h >>conftest.$ac_ext
39560 cat >>conftest.$ac_ext <<_ACEOF
39561 /* end confdefs.h.  */
39562
39563
39564                 $ac_includes_default
39565
39566 int
39567 main ()
39568 {
39569
39570                 #ifndef $wx_func
39571                   &$wx_func;
39572                 #endif
39573
39574
39575   ;
39576   return 0;
39577 }
39578
39579 _ACEOF
39580 rm -f conftest.$ac_objext conftest$ac_exeext
39581 if { (ac_try="$ac_link"
39582 case "(($ac_try" in
39583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39584   *) ac_try_echo=$ac_try;;
39585 esac
39586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39587   (eval "$ac_link") 2>conftest.er1
39588   ac_status=$?
39589   grep -v '^ *+' conftest.er1 >conftest.err
39590   rm -f conftest.er1
39591   cat conftest.err >&5
39592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593   (exit $ac_status); } && {
39594          test -z "$ac_c_werror_flag" ||
39595          test ! -s conftest.err
39596        } && test -s conftest$ac_exeext &&
39597        $as_test_x conftest$ac_exeext; then
39598   eval wx_cv_func_$wx_func=yes
39599 else
39600   echo "$as_me: failed program was:" >&5
39601 sed 's/^/| /' conftest.$ac_ext >&5
39602
39603         eval wx_cv_func_$wx_func=no
39604 fi
39605
39606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39607       conftest$ac_exeext conftest.$ac_ext
39608
39609 fi
39610 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39611                { echo "$as_me:$LINENO: result: $ac_res" >&5
39612 echo "${ECHO_T}$ac_res" >&6; }
39613
39614     if eval test \$wx_cv_func_$wx_func = yes
39615     then
39616       cat >>confdefs.h <<_ACEOF
39617 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39618 _ACEOF
39619
39620
39621     else
39622       :
39623
39624     fi
39625   done
39626
39627 fi
39628
39629 ac_ext=cpp
39630 ac_cpp='$CXXCPP $CPPFLAGS'
39631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39634
39635
39636   for wx_func in round
39637   do
39638     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39639 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39640 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39641   echo $ECHO_N "(cached) $ECHO_C" >&6
39642 else
39643
39644         cat >conftest.$ac_ext <<_ACEOF
39645
39646             /* confdefs.h.  */
39647 _ACEOF
39648 cat confdefs.h >>conftest.$ac_ext
39649 cat >>conftest.$ac_ext <<_ACEOF
39650 /* end confdefs.h.  */
39651
39652                 #include <math.h>
39653                 $ac_includes_default
39654
39655 int
39656 main ()
39657 {
39658
39659                 #ifndef $wx_func
39660                   &$wx_func;
39661                 #endif
39662
39663
39664   ;
39665   return 0;
39666 }
39667
39668 _ACEOF
39669 rm -f conftest.$ac_objext conftest$ac_exeext
39670 if { (ac_try="$ac_link"
39671 case "(($ac_try" in
39672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39673   *) ac_try_echo=$ac_try;;
39674 esac
39675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39676   (eval "$ac_link") 2>conftest.er1
39677   ac_status=$?
39678   grep -v '^ *+' conftest.er1 >conftest.err
39679   rm -f conftest.er1
39680   cat conftest.err >&5
39681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39682   (exit $ac_status); } && {
39683          test -z "$ac_cxx_werror_flag" ||
39684          test ! -s conftest.err
39685        } && test -s conftest$ac_exeext &&
39686        $as_test_x conftest$ac_exeext; then
39687   eval wx_cv_func_$wx_func=yes
39688 else
39689   echo "$as_me: failed program was:" >&5
39690 sed 's/^/| /' conftest.$ac_ext >&5
39691
39692         eval wx_cv_func_$wx_func=no
39693 fi
39694
39695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39696       conftest$ac_exeext conftest.$ac_ext
39697
39698 fi
39699 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39700                { echo "$as_me:$LINENO: result: $ac_res" >&5
39701 echo "${ECHO_T}$ac_res" >&6; }
39702
39703     if eval test \$wx_cv_func_$wx_func = yes
39704     then
39705       cat >>confdefs.h <<_ACEOF
39706 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39707 _ACEOF
39708
39709
39710     else
39711       :
39712
39713     fi
39714   done
39715
39716 ac_ext=c
39717 ac_cpp='$CPP $CPPFLAGS'
39718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39721
39722
39723 if test "$TOOLKIT" != "MSW"; then
39724
39725
39726
39727
39728
39729 # Check whether --with-libiconv-prefix was given.
39730 if test "${with_libiconv_prefix+set}" = set; then
39731   withval=$with_libiconv_prefix;
39732     for dir in `echo "$withval" | tr : ' '`; do
39733       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
39734       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
39735     done
39736
39737 fi
39738
39739
39740   { echo "$as_me:$LINENO: checking for iconv" >&5
39741 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
39742 if test "${am_cv_func_iconv+set}" = set; then
39743   echo $ECHO_N "(cached) $ECHO_C" >&6
39744 else
39745
39746     am_cv_func_iconv="no, consider installing GNU libiconv"
39747     am_cv_lib_iconv=no
39748     cat >conftest.$ac_ext <<_ACEOF
39749 /* confdefs.h.  */
39750 _ACEOF
39751 cat confdefs.h >>conftest.$ac_ext
39752 cat >>conftest.$ac_ext <<_ACEOF
39753 /* end confdefs.h.  */
39754 #include <stdlib.h>
39755 #include <iconv.h>
39756 int
39757 main ()
39758 {
39759 iconv_t cd = iconv_open("","");
39760        iconv(cd,NULL,NULL,NULL,NULL);
39761        iconv_close(cd);
39762   ;
39763   return 0;
39764 }
39765 _ACEOF
39766 rm -f conftest.$ac_objext conftest$ac_exeext
39767 if { (ac_try="$ac_link"
39768 case "(($ac_try" in
39769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39770   *) ac_try_echo=$ac_try;;
39771 esac
39772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39773   (eval "$ac_link") 2>conftest.er1
39774   ac_status=$?
39775   grep -v '^ *+' conftest.er1 >conftest.err
39776   rm -f conftest.er1
39777   cat conftest.err >&5
39778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779   (exit $ac_status); } && {
39780          test -z "$ac_c_werror_flag" ||
39781          test ! -s conftest.err
39782        } && test -s conftest$ac_exeext &&
39783        $as_test_x conftest$ac_exeext; then
39784   am_cv_func_iconv=yes
39785 else
39786   echo "$as_me: failed program was:" >&5
39787 sed 's/^/| /' conftest.$ac_ext >&5
39788
39789
39790 fi
39791
39792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39793       conftest$ac_exeext conftest.$ac_ext
39794     if test "$am_cv_func_iconv" != yes; then
39795       am_save_LIBS="$LIBS"
39796       LIBS="$LIBS -liconv"
39797       cat >conftest.$ac_ext <<_ACEOF
39798 /* confdefs.h.  */
39799 _ACEOF
39800 cat confdefs.h >>conftest.$ac_ext
39801 cat >>conftest.$ac_ext <<_ACEOF
39802 /* end confdefs.h.  */
39803 #include <stdlib.h>
39804 #include <iconv.h>
39805 int
39806 main ()
39807 {
39808 iconv_t cd = iconv_open("","");
39809          iconv(cd,NULL,NULL,NULL,NULL);
39810          iconv_close(cd);
39811   ;
39812   return 0;
39813 }
39814 _ACEOF
39815 rm -f conftest.$ac_objext conftest$ac_exeext
39816 if { (ac_try="$ac_link"
39817 case "(($ac_try" in
39818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39819   *) ac_try_echo=$ac_try;;
39820 esac
39821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39822   (eval "$ac_link") 2>conftest.er1
39823   ac_status=$?
39824   grep -v '^ *+' conftest.er1 >conftest.err
39825   rm -f conftest.er1
39826   cat conftest.err >&5
39827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39828   (exit $ac_status); } && {
39829          test -z "$ac_c_werror_flag" ||
39830          test ! -s conftest.err
39831        } && test -s conftest$ac_exeext &&
39832        $as_test_x conftest$ac_exeext; then
39833   am_cv_lib_iconv=yes
39834         am_cv_func_iconv=yes
39835 else
39836   echo "$as_me: failed program was:" >&5
39837 sed 's/^/| /' conftest.$ac_ext >&5
39838
39839
39840 fi
39841
39842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39843       conftest$ac_exeext conftest.$ac_ext
39844       LIBS="$am_save_LIBS"
39845     fi
39846
39847 fi
39848 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
39849 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
39850   if test "$am_cv_func_iconv" = yes; then
39851
39852 cat >>confdefs.h <<\_ACEOF
39853 #define HAVE_ICONV 1
39854 _ACEOF
39855
39856     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
39857 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
39858 if test "${wx_cv_func_iconv_const+set}" = set; then
39859   echo $ECHO_N "(cached) $ECHO_C" >&6
39860 else
39861   cat >conftest.$ac_ext <<_ACEOF
39862 /* confdefs.h.  */
39863 _ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h.  */
39867
39868 #include <stdlib.h>
39869 #include <iconv.h>
39870 extern
39871 #ifdef __cplusplus
39872 "C"
39873 #endif
39874 #if defined(__STDC__) || defined(__cplusplus)
39875 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
39876 #else
39877 size_t iconv();
39878 #endif
39879
39880 int
39881 main ()
39882 {
39883
39884   ;
39885   return 0;
39886 }
39887 _ACEOF
39888 rm -f conftest.$ac_objext
39889 if { (ac_try="$ac_compile"
39890 case "(($ac_try" in
39891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39892   *) ac_try_echo=$ac_try;;
39893 esac
39894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39895   (eval "$ac_compile") 2>conftest.er1
39896   ac_status=$?
39897   grep -v '^ *+' conftest.er1 >conftest.err
39898   rm -f conftest.er1
39899   cat conftest.err >&5
39900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901   (exit $ac_status); } && {
39902          test -z "$ac_c_werror_flag" ||
39903          test ! -s conftest.err
39904        } && test -s conftest.$ac_objext; then
39905   wx_cv_func_iconv_const="no"
39906 else
39907   echo "$as_me: failed program was:" >&5
39908 sed 's/^/| /' conftest.$ac_ext >&5
39909
39910         wx_cv_func_iconv_const="yes"
39911
39912 fi
39913
39914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39915
39916 fi
39917 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
39918 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
39919
39920     iconv_const=
39921     if test "x$wx_cv_func_iconv_const" = "xyes"; then
39922         iconv_const="const"
39923     fi
39924
39925
39926 cat >>confdefs.h <<_ACEOF
39927 #define ICONV_CONST $iconv_const
39928 _ACEOF
39929
39930   fi
39931   LIBICONV=
39932   if test "$am_cv_lib_iconv" = yes; then
39933     LIBICONV="-liconv"
39934   fi
39935
39936
39937 LIBS="$LIBICONV $LIBS"
39938
39939 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39940
39941 for ac_func in sigaction
39942 do
39943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39947   echo $ECHO_N "(cached) $ECHO_C" >&6
39948 else
39949   cat >conftest.$ac_ext <<_ACEOF
39950 /* confdefs.h.  */
39951 _ACEOF
39952 cat confdefs.h >>conftest.$ac_ext
39953 cat >>conftest.$ac_ext <<_ACEOF
39954 /* end confdefs.h.  */
39955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39957 #define $ac_func innocuous_$ac_func
39958
39959 /* System header to define __stub macros and hopefully few prototypes,
39960     which can conflict with char $ac_func (); below.
39961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39962     <limits.h> exists even on freestanding compilers.  */
39963
39964 #ifdef __STDC__
39965 # include <limits.h>
39966 #else
39967 # include <assert.h>
39968 #endif
39969
39970 #undef $ac_func
39971
39972 /* Override any GCC internal prototype to avoid an error.
39973    Use char because int might match the return type of a GCC
39974    builtin and then its argument prototype would still apply.  */
39975 #ifdef __cplusplus
39976 extern "C"
39977 #endif
39978 char $ac_func ();
39979 /* The GNU C library defines this for functions which it implements
39980     to always fail with ENOSYS.  Some functions are actually named
39981     something starting with __ and the normal name is an alias.  */
39982 #if defined __stub_$ac_func || defined __stub___$ac_func
39983 choke me
39984 #endif
39985
39986 int
39987 main ()
39988 {
39989 return $ac_func ();
39990   ;
39991   return 0;
39992 }
39993 _ACEOF
39994 rm -f conftest.$ac_objext conftest$ac_exeext
39995 if { (ac_try="$ac_link"
39996 case "(($ac_try" in
39997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39998   *) ac_try_echo=$ac_try;;
39999 esac
40000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40001   (eval "$ac_link") 2>conftest.er1
40002   ac_status=$?
40003   grep -v '^ *+' conftest.er1 >conftest.err
40004   rm -f conftest.er1
40005   cat conftest.err >&5
40006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40007   (exit $ac_status); } && {
40008          test -z "$ac_c_werror_flag" ||
40009          test ! -s conftest.err
40010        } && test -s conftest$ac_exeext &&
40011        $as_test_x conftest$ac_exeext; then
40012   eval "$as_ac_var=yes"
40013 else
40014   echo "$as_me: failed program was:" >&5
40015 sed 's/^/| /' conftest.$ac_ext >&5
40016
40017         eval "$as_ac_var=no"
40018 fi
40019
40020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40021       conftest$ac_exeext conftest.$ac_ext
40022 fi
40023 ac_res=`eval echo '${'$as_ac_var'}'`
40024                { echo "$as_me:$LINENO: result: $ac_res" >&5
40025 echo "${ECHO_T}$ac_res" >&6; }
40026 if test `eval echo '${'$as_ac_var'}'` = yes; then
40027   cat >>confdefs.h <<_ACEOF
40028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40029 _ACEOF
40030
40031 fi
40032 done
40033
40034
40035     if test "$ac_cv_func_sigaction" = "no"; then
40036         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
40037 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
40038         wxUSE_ON_FATAL_EXCEPTION=no
40039     fi
40040
40041     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
40042       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
40043 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
40044 if test "${wx_cv_type_sa_handler+set}" = set; then
40045   echo $ECHO_N "(cached) $ECHO_C" >&6
40046 else
40047
40048                 ac_ext=cpp
40049 ac_cpp='$CXXCPP $CPPFLAGS'
40050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40053
40054         cat >conftest.$ac_ext <<_ACEOF
40055 /* confdefs.h.  */
40056 _ACEOF
40057 cat confdefs.h >>conftest.$ac_ext
40058 cat >>conftest.$ac_ext <<_ACEOF
40059 /* end confdefs.h.  */
40060 #include <signal.h>
40061 int
40062 main ()
40063 {
40064
40065                         extern void testSigHandler(int);
40066
40067                         struct sigaction sa;
40068                         sa.sa_handler = testSigHandler;
40069
40070   ;
40071   return 0;
40072 }
40073 _ACEOF
40074 rm -f conftest.$ac_objext
40075 if { (ac_try="$ac_compile"
40076 case "(($ac_try" in
40077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40078   *) ac_try_echo=$ac_try;;
40079 esac
40080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40081   (eval "$ac_compile") 2>conftest.er1
40082   ac_status=$?
40083   grep -v '^ *+' conftest.er1 >conftest.err
40084   rm -f conftest.er1
40085   cat conftest.err >&5
40086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087   (exit $ac_status); } && {
40088          test -z "$ac_cxx_werror_flag" ||
40089          test ! -s conftest.err
40090        } && test -s conftest.$ac_objext; then
40091
40092                         wx_cv_type_sa_handler=int
40093
40094 else
40095   echo "$as_me: failed program was:" >&5
40096 sed 's/^/| /' conftest.$ac_ext >&5
40097
40098
40099                         wx_cv_type_sa_handler=void
40100
40101 fi
40102
40103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40104         ac_ext=c
40105 ac_cpp='$CPP $CPPFLAGS'
40106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40109
40110
40111 fi
40112 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
40113 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
40114
40115       cat >>confdefs.h <<_ACEOF
40116 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
40117 _ACEOF
40118
40119     fi
40120 fi
40121
40122 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
40123     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
40124 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
40125 if test "${wx_cv_func_backtrace+set}" = set; then
40126   echo $ECHO_N "(cached) $ECHO_C" >&6
40127 else
40128
40129             ac_ext=cpp
40130 ac_cpp='$CXXCPP $CPPFLAGS'
40131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40134
40135             cat >conftest.$ac_ext <<_ACEOF
40136 /* confdefs.h.  */
40137 _ACEOF
40138 cat confdefs.h >>conftest.$ac_ext
40139 cat >>conftest.$ac_ext <<_ACEOF
40140 /* end confdefs.h.  */
40141 #include <execinfo.h>
40142 int
40143 main ()
40144 {
40145
40146                     void *trace[1];
40147                     char **messages;
40148
40149                     backtrace(trace, 1);
40150                     messages = backtrace_symbols(trace, 1);
40151
40152   ;
40153   return 0;
40154 }
40155 _ACEOF
40156 rm -f conftest.$ac_objext
40157 if { (ac_try="$ac_compile"
40158 case "(($ac_try" in
40159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40160   *) ac_try_echo=$ac_try;;
40161 esac
40162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40163   (eval "$ac_compile") 2>conftest.er1
40164   ac_status=$?
40165   grep -v '^ *+' conftest.er1 >conftest.err
40166   rm -f conftest.er1
40167   cat conftest.err >&5
40168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40169   (exit $ac_status); } && {
40170          test -z "$ac_cxx_werror_flag" ||
40171          test ! -s conftest.err
40172        } && test -s conftest.$ac_objext; then
40173   wx_cv_func_backtrace=yes
40174 else
40175   echo "$as_me: failed program was:" >&5
40176 sed 's/^/| /' conftest.$ac_ext >&5
40177
40178         wx_cv_func_backtrace=no
40179
40180 fi
40181
40182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40183             ac_ext=c
40184 ac_cpp='$CPP $CPPFLAGS'
40185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40188
40189
40190
40191 fi
40192 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
40193 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
40194
40195
40196     if test "$wx_cv_func_backtrace" = "no"; then
40197         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
40198 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
40199         wxUSE_STACKWALKER=no
40200     else
40201         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
40202 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
40203 if test "${wx_cv_func_cxa_demangle+set}" = set; then
40204   echo $ECHO_N "(cached) $ECHO_C" >&6
40205 else
40206
40207                 ac_ext=cpp
40208 ac_cpp='$CXXCPP $CPPFLAGS'
40209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40212
40213                 cat >conftest.$ac_ext <<_ACEOF
40214 /* confdefs.h.  */
40215 _ACEOF
40216 cat confdefs.h >>conftest.$ac_ext
40217 cat >>conftest.$ac_ext <<_ACEOF
40218 /* end confdefs.h.  */
40219 #include <cxxabi.h>
40220 int
40221 main ()
40222 {
40223
40224                         int rc;
40225                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
40226
40227   ;
40228   return 0;
40229 }
40230 _ACEOF
40231 rm -f conftest.$ac_objext conftest$ac_exeext
40232 if { (ac_try="$ac_link"
40233 case "(($ac_try" in
40234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40235   *) ac_try_echo=$ac_try;;
40236 esac
40237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40238   (eval "$ac_link") 2>conftest.er1
40239   ac_status=$?
40240   grep -v '^ *+' conftest.er1 >conftest.err
40241   rm -f conftest.er1
40242   cat conftest.err >&5
40243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40244   (exit $ac_status); } && {
40245          test -z "$ac_cxx_werror_flag" ||
40246          test ! -s conftest.err
40247        } && test -s conftest$ac_exeext &&
40248        $as_test_x conftest$ac_exeext; then
40249   wx_cv_func_cxa_demangle=yes
40250 else
40251   echo "$as_me: failed program was:" >&5
40252 sed 's/^/| /' conftest.$ac_ext >&5
40253
40254         wx_cv_func_cxa_demangle=no
40255
40256 fi
40257
40258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40259       conftest$ac_exeext conftest.$ac_ext
40260                 ac_ext=c
40261 ac_cpp='$CPP $CPPFLAGS'
40262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40265
40266
40267
40268 fi
40269 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
40270 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
40271
40272         if test "$wx_cv_func_cxa_demangle" = "yes"; then
40273             cat >>confdefs.h <<\_ACEOF
40274 #define HAVE_CXA_DEMANGLE 1
40275 _ACEOF
40276
40277         fi
40278     fi
40279 fi
40280
40281 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
40282     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
40283 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
40284     wxUSE_STACKWALKER=no
40285 fi
40286
40287
40288
40289
40290 for ac_func in mkstemp mktemp
40291 do
40292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40293 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40295 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40296   echo $ECHO_N "(cached) $ECHO_C" >&6
40297 else
40298   cat >conftest.$ac_ext <<_ACEOF
40299 /* confdefs.h.  */
40300 _ACEOF
40301 cat confdefs.h >>conftest.$ac_ext
40302 cat >>conftest.$ac_ext <<_ACEOF
40303 /* end confdefs.h.  */
40304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40306 #define $ac_func innocuous_$ac_func
40307
40308 /* System header to define __stub macros and hopefully few prototypes,
40309     which can conflict with char $ac_func (); below.
40310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40311     <limits.h> exists even on freestanding compilers.  */
40312
40313 #ifdef __STDC__
40314 # include <limits.h>
40315 #else
40316 # include <assert.h>
40317 #endif
40318
40319 #undef $ac_func
40320
40321 /* Override any GCC internal prototype to avoid an error.
40322    Use char because int might match the return type of a GCC
40323    builtin and then its argument prototype would still apply.  */
40324 #ifdef __cplusplus
40325 extern "C"
40326 #endif
40327 char $ac_func ();
40328 /* The GNU C library defines this for functions which it implements
40329     to always fail with ENOSYS.  Some functions are actually named
40330     something starting with __ and the normal name is an alias.  */
40331 #if defined __stub_$ac_func || defined __stub___$ac_func
40332 choke me
40333 #endif
40334
40335 int
40336 main ()
40337 {
40338 return $ac_func ();
40339   ;
40340   return 0;
40341 }
40342 _ACEOF
40343 rm -f conftest.$ac_objext conftest$ac_exeext
40344 if { (ac_try="$ac_link"
40345 case "(($ac_try" in
40346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40347   *) ac_try_echo=$ac_try;;
40348 esac
40349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40350   (eval "$ac_link") 2>conftest.er1
40351   ac_status=$?
40352   grep -v '^ *+' conftest.er1 >conftest.err
40353   rm -f conftest.er1
40354   cat conftest.err >&5
40355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40356   (exit $ac_status); } && {
40357          test -z "$ac_c_werror_flag" ||
40358          test ! -s conftest.err
40359        } && test -s conftest$ac_exeext &&
40360        $as_test_x conftest$ac_exeext; then
40361   eval "$as_ac_var=yes"
40362 else
40363   echo "$as_me: failed program was:" >&5
40364 sed 's/^/| /' conftest.$ac_ext >&5
40365
40366         eval "$as_ac_var=no"
40367 fi
40368
40369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40370       conftest$ac_exeext conftest.$ac_ext
40371 fi
40372 ac_res=`eval echo '${'$as_ac_var'}'`
40373                { echo "$as_me:$LINENO: result: $ac_res" >&5
40374 echo "${ECHO_T}$ac_res" >&6; }
40375 if test `eval echo '${'$as_ac_var'}'` = yes; then
40376   cat >>confdefs.h <<_ACEOF
40377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40378 _ACEOF
40379  break
40380 fi
40381 done
40382
40383
40384 { echo "$as_me:$LINENO: checking for statfs" >&5
40385 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
40386 if test "${wx_cv_func_statfs+set}" = set; then
40387   echo $ECHO_N "(cached) $ECHO_C" >&6
40388 else
40389   cat >conftest.$ac_ext <<_ACEOF
40390 /* confdefs.h.  */
40391 _ACEOF
40392 cat confdefs.h >>conftest.$ac_ext
40393 cat >>conftest.$ac_ext <<_ACEOF
40394 /* end confdefs.h.  */
40395
40396              #if defined(__BSD__)
40397              #include <sys/param.h>
40398              #include <sys/mount.h>
40399              #else
40400              #include <sys/vfs.h>
40401              #endif
40402
40403 int
40404 main ()
40405 {
40406
40407              long l;
40408              struct statfs fs;
40409              statfs("/", &fs);
40410              l = fs.f_bsize;
40411              l += fs.f_blocks;
40412              l += fs.f_bavail;
40413
40414   ;
40415   return 0;
40416 }
40417 _ACEOF
40418 rm -f conftest.$ac_objext
40419 if { (ac_try="$ac_compile"
40420 case "(($ac_try" in
40421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40422   *) ac_try_echo=$ac_try;;
40423 esac
40424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40425   (eval "$ac_compile") 2>conftest.er1
40426   ac_status=$?
40427   grep -v '^ *+' conftest.er1 >conftest.err
40428   rm -f conftest.er1
40429   cat conftest.err >&5
40430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40431   (exit $ac_status); } && {
40432          test -z "$ac_c_werror_flag" ||
40433          test ! -s conftest.err
40434        } && test -s conftest.$ac_objext; then
40435   wx_cv_func_statfs=yes
40436 else
40437   echo "$as_me: failed program was:" >&5
40438 sed 's/^/| /' conftest.$ac_ext >&5
40439
40440         wx_cv_func_statfs=no
40441
40442 fi
40443
40444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40445
40446 fi
40447 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
40448 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
40449
40450 if test "$wx_cv_func_statfs" = "yes"; then
40451         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
40452 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
40453 if test "${wx_cv_func_statfs_decl+set}" = set; then
40454   echo $ECHO_N "(cached) $ECHO_C" >&6
40455 else
40456   ac_ext=cpp
40457 ac_cpp='$CXXCPP $CPPFLAGS'
40458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40461
40462         cat >conftest.$ac_ext <<_ACEOF
40463 /* confdefs.h.  */
40464 _ACEOF
40465 cat confdefs.h >>conftest.$ac_ext
40466 cat >>conftest.$ac_ext <<_ACEOF
40467 /* end confdefs.h.  */
40468
40469                  #if defined(__BSD__)
40470                  #include <sys/param.h>
40471                  #include <sys/mount.h>
40472                  #else
40473                  #include <sys/vfs.h>
40474                  #endif
40475
40476 int
40477 main ()
40478 {
40479
40480                 struct statfs fs;
40481                 statfs("", &fs);
40482
40483   ;
40484   return 0;
40485 }
40486 _ACEOF
40487 rm -f conftest.$ac_objext
40488 if { (ac_try="$ac_compile"
40489 case "(($ac_try" in
40490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40491   *) ac_try_echo=$ac_try;;
40492 esac
40493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40494   (eval "$ac_compile") 2>conftest.er1
40495   ac_status=$?
40496   grep -v '^ *+' conftest.er1 >conftest.err
40497   rm -f conftest.er1
40498   cat conftest.err >&5
40499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40500   (exit $ac_status); } && {
40501          test -z "$ac_cxx_werror_flag" ||
40502          test ! -s conftest.err
40503        } && test -s conftest.$ac_objext; then
40504   wx_cv_func_statfs_decl=yes
40505 else
40506   echo "$as_me: failed program was:" >&5
40507 sed 's/^/| /' conftest.$ac_ext >&5
40508
40509         wx_cv_func_statfs_decl=no
40510
40511 fi
40512
40513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40514         ac_ext=c
40515 ac_cpp='$CPP $CPPFLAGS'
40516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40519
40520
40521 fi
40522 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
40523 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
40524
40525     if test "$wx_cv_func_statfs_decl" = "yes"; then
40526         cat >>confdefs.h <<\_ACEOF
40527 #define HAVE_STATFS_DECL 1
40528 _ACEOF
40529
40530     fi
40531
40532     wx_cv_type_statvfs_t="struct statfs"
40533     cat >>confdefs.h <<\_ACEOF
40534 #define HAVE_STATFS 1
40535 _ACEOF
40536
40537 else
40538     { echo "$as_me:$LINENO: checking for statvfs" >&5
40539 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
40540 if test "${wx_cv_func_statvfs+set}" = set; then
40541   echo $ECHO_N "(cached) $ECHO_C" >&6
40542 else
40543   cat >conftest.$ac_ext <<_ACEOF
40544 /* confdefs.h.  */
40545 _ACEOF
40546 cat confdefs.h >>conftest.$ac_ext
40547 cat >>conftest.$ac_ext <<_ACEOF
40548 /* end confdefs.h.  */
40549
40550                 #include <stddef.h>
40551                 #include <sys/statvfs.h>
40552
40553 int
40554 main ()
40555 {
40556
40557                 statvfs("/", NULL);
40558
40559   ;
40560   return 0;
40561 }
40562 _ACEOF
40563 rm -f conftest.$ac_objext
40564 if { (ac_try="$ac_compile"
40565 case "(($ac_try" in
40566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40567   *) ac_try_echo=$ac_try;;
40568 esac
40569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40570   (eval "$ac_compile") 2>conftest.er1
40571   ac_status=$?
40572   grep -v '^ *+' conftest.er1 >conftest.err
40573   rm -f conftest.er1
40574   cat conftest.err >&5
40575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576   (exit $ac_status); } && {
40577          test -z "$ac_c_werror_flag" ||
40578          test ! -s conftest.err
40579        } && test -s conftest.$ac_objext; then
40580   wx_cv_func_statvfs=yes
40581 else
40582   echo "$as_me: failed program was:" >&5
40583 sed 's/^/| /' conftest.$ac_ext >&5
40584
40585         wx_cv_func_statvfs=no
40586
40587 fi
40588
40589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40590
40591 fi
40592 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
40593 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
40594
40595     if test "$wx_cv_func_statvfs" = "yes"; then
40596                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
40597 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
40598 if test "${wx_cv_type_statvfs_t+set}" = set; then
40599   echo $ECHO_N "(cached) $ECHO_C" >&6
40600 else
40601   ac_ext=cpp
40602 ac_cpp='$CXXCPP $CPPFLAGS'
40603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40606
40607             cat >conftest.$ac_ext <<_ACEOF
40608 /* confdefs.h.  */
40609 _ACEOF
40610 cat confdefs.h >>conftest.$ac_ext
40611 cat >>conftest.$ac_ext <<_ACEOF
40612 /* end confdefs.h.  */
40613
40614                     #include <sys/statvfs.h>
40615
40616 int
40617 main ()
40618 {
40619
40620                     long l;
40621                     statvfs_t fs;
40622                     statvfs("/", &fs);
40623                     l = fs.f_bsize;
40624                     l += fs.f_blocks;
40625                     l += fs.f_bavail;
40626
40627   ;
40628   return 0;
40629 }
40630 _ACEOF
40631 rm -f conftest.$ac_objext
40632 if { (ac_try="$ac_compile"
40633 case "(($ac_try" in
40634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40635   *) ac_try_echo=$ac_try;;
40636 esac
40637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40638   (eval "$ac_compile") 2>conftest.er1
40639   ac_status=$?
40640   grep -v '^ *+' conftest.er1 >conftest.err
40641   rm -f conftest.er1
40642   cat conftest.err >&5
40643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644   (exit $ac_status); } && {
40645          test -z "$ac_cxx_werror_flag" ||
40646          test ! -s conftest.err
40647        } && test -s conftest.$ac_objext; then
40648   wx_cv_type_statvfs_t=statvfs_t
40649 else
40650   echo "$as_me: failed program was:" >&5
40651 sed 's/^/| /' conftest.$ac_ext >&5
40652
40653
40654                     cat >conftest.$ac_ext <<_ACEOF
40655 /* confdefs.h.  */
40656 _ACEOF
40657 cat confdefs.h >>conftest.$ac_ext
40658 cat >>conftest.$ac_ext <<_ACEOF
40659 /* end confdefs.h.  */
40660
40661                             #include <sys/statvfs.h>
40662
40663 int
40664 main ()
40665 {
40666
40667                             long l;
40668                             struct statvfs fs;
40669                             statvfs("/", &fs);
40670                             l = fs.f_bsize;
40671                             l += fs.f_blocks;
40672                             l += fs.f_bavail;
40673
40674   ;
40675   return 0;
40676 }
40677 _ACEOF
40678 rm -f conftest.$ac_objext
40679 if { (ac_try="$ac_compile"
40680 case "(($ac_try" in
40681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40682   *) ac_try_echo=$ac_try;;
40683 esac
40684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40685   (eval "$ac_compile") 2>conftest.er1
40686   ac_status=$?
40687   grep -v '^ *+' conftest.er1 >conftest.err
40688   rm -f conftest.er1
40689   cat conftest.err >&5
40690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691   (exit $ac_status); } && {
40692          test -z "$ac_cxx_werror_flag" ||
40693          test ! -s conftest.err
40694        } && test -s conftest.$ac_objext; then
40695   wx_cv_type_statvfs_t="struct statvfs"
40696 else
40697   echo "$as_me: failed program was:" >&5
40698 sed 's/^/| /' conftest.$ac_ext >&5
40699
40700         wx_cv_type_statvfs_t="unknown"
40701
40702 fi
40703
40704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40705
40706
40707 fi
40708
40709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40710             ac_ext=c
40711 ac_cpp='$CPP $CPPFLAGS'
40712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40715
40716
40717 fi
40718 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
40719 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
40720
40721         if test "$wx_cv_type_statvfs_t" != "unknown"; then
40722             cat >>confdefs.h <<\_ACEOF
40723 #define HAVE_STATVFS 1
40724 _ACEOF
40725
40726         fi
40727     else
40728                 wx_cv_type_statvfs_t="unknown"
40729     fi
40730 fi
40731
40732 if test "$wx_cv_type_statvfs_t" != "unknown"; then
40733     cat >>confdefs.h <<_ACEOF
40734 #define WX_STATFS_T $wx_cv_type_statvfs_t
40735 _ACEOF
40736
40737 else
40738     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
40739 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
40740 fi
40741
40742 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
40743
40744
40745 for ac_func in fcntl flock
40746 do
40747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40751   echo $ECHO_N "(cached) $ECHO_C" >&6
40752 else
40753   cat >conftest.$ac_ext <<_ACEOF
40754 /* confdefs.h.  */
40755 _ACEOF
40756 cat confdefs.h >>conftest.$ac_ext
40757 cat >>conftest.$ac_ext <<_ACEOF
40758 /* end confdefs.h.  */
40759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40761 #define $ac_func innocuous_$ac_func
40762
40763 /* System header to define __stub macros and hopefully few prototypes,
40764     which can conflict with char $ac_func (); below.
40765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40766     <limits.h> exists even on freestanding compilers.  */
40767
40768 #ifdef __STDC__
40769 # include <limits.h>
40770 #else
40771 # include <assert.h>
40772 #endif
40773
40774 #undef $ac_func
40775
40776 /* Override any GCC internal prototype to avoid an error.
40777    Use char because int might match the return type of a GCC
40778    builtin and then its argument prototype would still apply.  */
40779 #ifdef __cplusplus
40780 extern "C"
40781 #endif
40782 char $ac_func ();
40783 /* The GNU C library defines this for functions which it implements
40784     to always fail with ENOSYS.  Some functions are actually named
40785     something starting with __ and the normal name is an alias.  */
40786 #if defined __stub_$ac_func || defined __stub___$ac_func
40787 choke me
40788 #endif
40789
40790 int
40791 main ()
40792 {
40793 return $ac_func ();
40794   ;
40795   return 0;
40796 }
40797 _ACEOF
40798 rm -f conftest.$ac_objext conftest$ac_exeext
40799 if { (ac_try="$ac_link"
40800 case "(($ac_try" in
40801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40802   *) ac_try_echo=$ac_try;;
40803 esac
40804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40805   (eval "$ac_link") 2>conftest.er1
40806   ac_status=$?
40807   grep -v '^ *+' conftest.er1 >conftest.err
40808   rm -f conftest.er1
40809   cat conftest.err >&5
40810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40811   (exit $ac_status); } && {
40812          test -z "$ac_c_werror_flag" ||
40813          test ! -s conftest.err
40814        } && test -s conftest$ac_exeext &&
40815        $as_test_x conftest$ac_exeext; then
40816   eval "$as_ac_var=yes"
40817 else
40818   echo "$as_me: failed program was:" >&5
40819 sed 's/^/| /' conftest.$ac_ext >&5
40820
40821         eval "$as_ac_var=no"
40822 fi
40823
40824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40825       conftest$ac_exeext conftest.$ac_ext
40826 fi
40827 ac_res=`eval echo '${'$as_ac_var'}'`
40828                { echo "$as_me:$LINENO: result: $ac_res" >&5
40829 echo "${ECHO_T}$ac_res" >&6; }
40830 if test `eval echo '${'$as_ac_var'}'` = yes; then
40831   cat >>confdefs.h <<_ACEOF
40832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40833 _ACEOF
40834  break
40835 fi
40836 done
40837
40838
40839     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
40840         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
40841 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
40842         wxUSE_SNGLINST_CHECKER=no
40843     fi
40844 fi
40845
40846
40847 for ac_func in timegm
40848 do
40849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40853   echo $ECHO_N "(cached) $ECHO_C" >&6
40854 else
40855   cat >conftest.$ac_ext <<_ACEOF
40856 /* confdefs.h.  */
40857 _ACEOF
40858 cat confdefs.h >>conftest.$ac_ext
40859 cat >>conftest.$ac_ext <<_ACEOF
40860 /* end confdefs.h.  */
40861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40863 #define $ac_func innocuous_$ac_func
40864
40865 /* System header to define __stub macros and hopefully few prototypes,
40866     which can conflict with char $ac_func (); below.
40867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40868     <limits.h> exists even on freestanding compilers.  */
40869
40870 #ifdef __STDC__
40871 # include <limits.h>
40872 #else
40873 # include <assert.h>
40874 #endif
40875
40876 #undef $ac_func
40877
40878 /* Override any GCC internal prototype to avoid an error.
40879    Use char because int might match the return type of a GCC
40880    builtin and then its argument prototype would still apply.  */
40881 #ifdef __cplusplus
40882 extern "C"
40883 #endif
40884 char $ac_func ();
40885 /* The GNU C library defines this for functions which it implements
40886     to always fail with ENOSYS.  Some functions are actually named
40887     something starting with __ and the normal name is an alias.  */
40888 #if defined __stub_$ac_func || defined __stub___$ac_func
40889 choke me
40890 #endif
40891
40892 int
40893 main ()
40894 {
40895 return $ac_func ();
40896   ;
40897   return 0;
40898 }
40899 _ACEOF
40900 rm -f conftest.$ac_objext conftest$ac_exeext
40901 if { (ac_try="$ac_link"
40902 case "(($ac_try" in
40903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40904   *) ac_try_echo=$ac_try;;
40905 esac
40906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40907   (eval "$ac_link") 2>conftest.er1
40908   ac_status=$?
40909   grep -v '^ *+' conftest.er1 >conftest.err
40910   rm -f conftest.er1
40911   cat conftest.err >&5
40912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40913   (exit $ac_status); } && {
40914          test -z "$ac_c_werror_flag" ||
40915          test ! -s conftest.err
40916        } && test -s conftest$ac_exeext &&
40917        $as_test_x conftest$ac_exeext; then
40918   eval "$as_ac_var=yes"
40919 else
40920   echo "$as_me: failed program was:" >&5
40921 sed 's/^/| /' conftest.$ac_ext >&5
40922
40923         eval "$as_ac_var=no"
40924 fi
40925
40926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40927       conftest$ac_exeext conftest.$ac_ext
40928 fi
40929 ac_res=`eval echo '${'$as_ac_var'}'`
40930                { echo "$as_me:$LINENO: result: $ac_res" >&5
40931 echo "${ECHO_T}$ac_res" >&6; }
40932 if test `eval echo '${'$as_ac_var'}'` = yes; then
40933   cat >>confdefs.h <<_ACEOF
40934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40935 _ACEOF
40936
40937 fi
40938 done
40939
40940
40941
40942
40943 for ac_func in setenv putenv
40944 do
40945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40949   echo $ECHO_N "(cached) $ECHO_C" >&6
40950 else
40951   cat >conftest.$ac_ext <<_ACEOF
40952 /* confdefs.h.  */
40953 _ACEOF
40954 cat confdefs.h >>conftest.$ac_ext
40955 cat >>conftest.$ac_ext <<_ACEOF
40956 /* end confdefs.h.  */
40957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40959 #define $ac_func innocuous_$ac_func
40960
40961 /* System header to define __stub macros and hopefully few prototypes,
40962     which can conflict with char $ac_func (); below.
40963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40964     <limits.h> exists even on freestanding compilers.  */
40965
40966 #ifdef __STDC__
40967 # include <limits.h>
40968 #else
40969 # include <assert.h>
40970 #endif
40971
40972 #undef $ac_func
40973
40974 /* Override any GCC internal prototype to avoid an error.
40975    Use char because int might match the return type of a GCC
40976    builtin and then its argument prototype would still apply.  */
40977 #ifdef __cplusplus
40978 extern "C"
40979 #endif
40980 char $ac_func ();
40981 /* The GNU C library defines this for functions which it implements
40982     to always fail with ENOSYS.  Some functions are actually named
40983     something starting with __ and the normal name is an alias.  */
40984 #if defined __stub_$ac_func || defined __stub___$ac_func
40985 choke me
40986 #endif
40987
40988 int
40989 main ()
40990 {
40991 return $ac_func ();
40992   ;
40993   return 0;
40994 }
40995 _ACEOF
40996 rm -f conftest.$ac_objext conftest$ac_exeext
40997 if { (ac_try="$ac_link"
40998 case "(($ac_try" in
40999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41000   *) ac_try_echo=$ac_try;;
41001 esac
41002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41003   (eval "$ac_link") 2>conftest.er1
41004   ac_status=$?
41005   grep -v '^ *+' conftest.er1 >conftest.err
41006   rm -f conftest.er1
41007   cat conftest.err >&5
41008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41009   (exit $ac_status); } && {
41010          test -z "$ac_c_werror_flag" ||
41011          test ! -s conftest.err
41012        } && test -s conftest$ac_exeext &&
41013        $as_test_x conftest$ac_exeext; then
41014   eval "$as_ac_var=yes"
41015 else
41016   echo "$as_me: failed program was:" >&5
41017 sed 's/^/| /' conftest.$ac_ext >&5
41018
41019         eval "$as_ac_var=no"
41020 fi
41021
41022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41023       conftest$ac_exeext conftest.$ac_ext
41024 fi
41025 ac_res=`eval echo '${'$as_ac_var'}'`
41026                { echo "$as_me:$LINENO: result: $ac_res" >&5
41027 echo "${ECHO_T}$ac_res" >&6; }
41028 if test `eval echo '${'$as_ac_var'}'` = yes; then
41029   cat >>confdefs.h <<_ACEOF
41030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41031 _ACEOF
41032  break
41033 fi
41034 done
41035
41036
41037 HAVE_SOME_SLEEP_FUNC=0
41038 if test "$USE_BEOS" = 1; then
41039             cat >>confdefs.h <<\_ACEOF
41040 #define HAVE_SLEEP 1
41041 _ACEOF
41042
41043     HAVE_SOME_SLEEP_FUNC=1
41044 fi
41045
41046 if test "$USE_DARWIN" = 1; then
41047             cat >>confdefs.h <<\_ACEOF
41048 #define HAVE_USLEEP 1
41049 _ACEOF
41050
41051     HAVE_SOME_SLEEP_FUNC=1
41052 fi
41053
41054 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
41055         POSIX4_LINK=
41056
41057 for ac_func in nanosleep
41058 do
41059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41063   echo $ECHO_N "(cached) $ECHO_C" >&6
41064 else
41065   cat >conftest.$ac_ext <<_ACEOF
41066 /* confdefs.h.  */
41067 _ACEOF
41068 cat confdefs.h >>conftest.$ac_ext
41069 cat >>conftest.$ac_ext <<_ACEOF
41070 /* end confdefs.h.  */
41071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41073 #define $ac_func innocuous_$ac_func
41074
41075 /* System header to define __stub macros and hopefully few prototypes,
41076     which can conflict with char $ac_func (); below.
41077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41078     <limits.h> exists even on freestanding compilers.  */
41079
41080 #ifdef __STDC__
41081 # include <limits.h>
41082 #else
41083 # include <assert.h>
41084 #endif
41085
41086 #undef $ac_func
41087
41088 /* Override any GCC internal prototype to avoid an error.
41089    Use char because int might match the return type of a GCC
41090    builtin and then its argument prototype would still apply.  */
41091 #ifdef __cplusplus
41092 extern "C"
41093 #endif
41094 char $ac_func ();
41095 /* The GNU C library defines this for functions which it implements
41096     to always fail with ENOSYS.  Some functions are actually named
41097     something starting with __ and the normal name is an alias.  */
41098 #if defined __stub_$ac_func || defined __stub___$ac_func
41099 choke me
41100 #endif
41101
41102 int
41103 main ()
41104 {
41105 return $ac_func ();
41106   ;
41107   return 0;
41108 }
41109 _ACEOF
41110 rm -f conftest.$ac_objext conftest$ac_exeext
41111 if { (ac_try="$ac_link"
41112 case "(($ac_try" in
41113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41114   *) ac_try_echo=$ac_try;;
41115 esac
41116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41117   (eval "$ac_link") 2>conftest.er1
41118   ac_status=$?
41119   grep -v '^ *+' conftest.er1 >conftest.err
41120   rm -f conftest.er1
41121   cat conftest.err >&5
41122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41123   (exit $ac_status); } && {
41124          test -z "$ac_c_werror_flag" ||
41125          test ! -s conftest.err
41126        } && test -s conftest$ac_exeext &&
41127        $as_test_x conftest$ac_exeext; then
41128   eval "$as_ac_var=yes"
41129 else
41130   echo "$as_me: failed program was:" >&5
41131 sed 's/^/| /' conftest.$ac_ext >&5
41132
41133         eval "$as_ac_var=no"
41134 fi
41135
41136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41137       conftest$ac_exeext conftest.$ac_ext
41138 fi
41139 ac_res=`eval echo '${'$as_ac_var'}'`
41140                { echo "$as_me:$LINENO: result: $ac_res" >&5
41141 echo "${ECHO_T}$ac_res" >&6; }
41142 if test `eval echo '${'$as_ac_var'}'` = yes; then
41143   cat >>confdefs.h <<_ACEOF
41144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41145 _ACEOF
41146  cat >>confdefs.h <<\_ACEOF
41147 #define HAVE_NANOSLEEP 1
41148 _ACEOF
41149
41150 else
41151
41152             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
41153 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
41154 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
41155   echo $ECHO_N "(cached) $ECHO_C" >&6
41156 else
41157   ac_check_lib_save_LIBS=$LIBS
41158 LIBS="-lposix4  $LIBS"
41159 cat >conftest.$ac_ext <<_ACEOF
41160 /* confdefs.h.  */
41161 _ACEOF
41162 cat confdefs.h >>conftest.$ac_ext
41163 cat >>conftest.$ac_ext <<_ACEOF
41164 /* end confdefs.h.  */
41165
41166 /* Override any GCC internal prototype to avoid an error.
41167    Use char because int might match the return type of a GCC
41168    builtin and then its argument prototype would still apply.  */
41169 #ifdef __cplusplus
41170 extern "C"
41171 #endif
41172 char nanosleep ();
41173 int
41174 main ()
41175 {
41176 return nanosleep ();
41177   ;
41178   return 0;
41179 }
41180 _ACEOF
41181 rm -f conftest.$ac_objext conftest$ac_exeext
41182 if { (ac_try="$ac_link"
41183 case "(($ac_try" in
41184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41185   *) ac_try_echo=$ac_try;;
41186 esac
41187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41188   (eval "$ac_link") 2>conftest.er1
41189   ac_status=$?
41190   grep -v '^ *+' conftest.er1 >conftest.err
41191   rm -f conftest.er1
41192   cat conftest.err >&5
41193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41194   (exit $ac_status); } && {
41195          test -z "$ac_c_werror_flag" ||
41196          test ! -s conftest.err
41197        } && test -s conftest$ac_exeext &&
41198        $as_test_x conftest$ac_exeext; then
41199   ac_cv_lib_posix4_nanosleep=yes
41200 else
41201   echo "$as_me: failed program was:" >&5
41202 sed 's/^/| /' conftest.$ac_ext >&5
41203
41204         ac_cv_lib_posix4_nanosleep=no
41205 fi
41206
41207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41208       conftest$ac_exeext conftest.$ac_ext
41209 LIBS=$ac_check_lib_save_LIBS
41210 fi
41211 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
41212 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
41213 if test $ac_cv_lib_posix4_nanosleep = yes; then
41214
41215                     cat >>confdefs.h <<\_ACEOF
41216 #define HAVE_NANOSLEEP 1
41217 _ACEOF
41218
41219                     POSIX4_LINK=" -lposix4"
41220
41221 else
41222
41223
41224   for wx_func in usleep
41225   do
41226     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41227 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41228 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41229   echo $ECHO_N "(cached) $ECHO_C" >&6
41230 else
41231
41232         cat >conftest.$ac_ext <<_ACEOF
41233
41234             /* confdefs.h.  */
41235 _ACEOF
41236 cat confdefs.h >>conftest.$ac_ext
41237 cat >>conftest.$ac_ext <<_ACEOF
41238 /* end confdefs.h.  */
41239
41240
41241                 $ac_includes_default
41242
41243 int
41244 main ()
41245 {
41246
41247                 #ifndef $wx_func
41248                   &$wx_func;
41249                 #endif
41250
41251
41252   ;
41253   return 0;
41254 }
41255
41256 _ACEOF
41257 rm -f conftest.$ac_objext conftest$ac_exeext
41258 if { (ac_try="$ac_link"
41259 case "(($ac_try" in
41260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41261   *) ac_try_echo=$ac_try;;
41262 esac
41263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41264   (eval "$ac_link") 2>conftest.er1
41265   ac_status=$?
41266   grep -v '^ *+' conftest.er1 >conftest.err
41267   rm -f conftest.er1
41268   cat conftest.err >&5
41269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41270   (exit $ac_status); } && {
41271          test -z "$ac_c_werror_flag" ||
41272          test ! -s conftest.err
41273        } && test -s conftest$ac_exeext &&
41274        $as_test_x conftest$ac_exeext; then
41275   eval wx_cv_func_$wx_func=yes
41276 else
41277   echo "$as_me: failed program was:" >&5
41278 sed 's/^/| /' conftest.$ac_ext >&5
41279
41280         eval wx_cv_func_$wx_func=no
41281 fi
41282
41283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41284       conftest$ac_exeext conftest.$ac_ext
41285
41286 fi
41287 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41288                { echo "$as_me:$LINENO: result: $ac_res" >&5
41289 echo "${ECHO_T}$ac_res" >&6; }
41290
41291     if eval test \$wx_cv_func_$wx_func = yes
41292     then
41293       cat >>confdefs.h <<_ACEOF
41294 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41295 _ACEOF
41296
41297
41298     else
41299       :
41300       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
41301 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
41302
41303     fi
41304   done
41305
41306
41307
41308 fi
41309
41310
41311
41312 fi
41313 done
41314
41315 fi
41316
41317
41318   for wx_func in uname
41319   do
41320     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41321 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41322 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41323   echo $ECHO_N "(cached) $ECHO_C" >&6
41324 else
41325
41326         cat >conftest.$ac_ext <<_ACEOF
41327
41328             /* confdefs.h.  */
41329 _ACEOF
41330 cat confdefs.h >>conftest.$ac_ext
41331 cat >>conftest.$ac_ext <<_ACEOF
41332 /* end confdefs.h.  */
41333
41334                 #include <sys/utsname.h>
41335                 $ac_includes_default
41336
41337 int
41338 main ()
41339 {
41340
41341                 #ifndef $wx_func
41342                   &$wx_func;
41343                 #endif
41344
41345
41346   ;
41347   return 0;
41348 }
41349
41350 _ACEOF
41351 rm -f conftest.$ac_objext conftest$ac_exeext
41352 if { (ac_try="$ac_link"
41353 case "(($ac_try" in
41354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41355   *) ac_try_echo=$ac_try;;
41356 esac
41357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41358   (eval "$ac_link") 2>conftest.er1
41359   ac_status=$?
41360   grep -v '^ *+' conftest.er1 >conftest.err
41361   rm -f conftest.er1
41362   cat conftest.err >&5
41363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364   (exit $ac_status); } && {
41365          test -z "$ac_c_werror_flag" ||
41366          test ! -s conftest.err
41367        } && test -s conftest$ac_exeext &&
41368        $as_test_x conftest$ac_exeext; then
41369   eval wx_cv_func_$wx_func=yes
41370 else
41371   echo "$as_me: failed program was:" >&5
41372 sed 's/^/| /' conftest.$ac_ext >&5
41373
41374         eval wx_cv_func_$wx_func=no
41375 fi
41376
41377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41378       conftest$ac_exeext conftest.$ac_ext
41379
41380 fi
41381 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41382                { echo "$as_me:$LINENO: result: $ac_res" >&5
41383 echo "${ECHO_T}$ac_res" >&6; }
41384
41385     if eval test \$wx_cv_func_$wx_func = yes
41386     then
41387       cat >>confdefs.h <<_ACEOF
41388 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41389 _ACEOF
41390
41391
41392     else
41393       :
41394
41395     fi
41396   done
41397
41398 if test "$wx_cv_func_uname" != yes; then
41399
41400   for wx_func in gethostname
41401   do
41402     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41403 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41404 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41405   echo $ECHO_N "(cached) $ECHO_C" >&6
41406 else
41407
41408         cat >conftest.$ac_ext <<_ACEOF
41409
41410             /* confdefs.h.  */
41411 _ACEOF
41412 cat confdefs.h >>conftest.$ac_ext
41413 cat >>conftest.$ac_ext <<_ACEOF
41414 /* end confdefs.h.  */
41415
41416
41417                 $ac_includes_default
41418
41419 int
41420 main ()
41421 {
41422
41423                 #ifndef $wx_func
41424                   &$wx_func;
41425                 #endif
41426
41427
41428   ;
41429   return 0;
41430 }
41431
41432 _ACEOF
41433 rm -f conftest.$ac_objext conftest$ac_exeext
41434 if { (ac_try="$ac_link"
41435 case "(($ac_try" in
41436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41437   *) ac_try_echo=$ac_try;;
41438 esac
41439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41440   (eval "$ac_link") 2>conftest.er1
41441   ac_status=$?
41442   grep -v '^ *+' conftest.er1 >conftest.err
41443   rm -f conftest.er1
41444   cat conftest.err >&5
41445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41446   (exit $ac_status); } && {
41447          test -z "$ac_c_werror_flag" ||
41448          test ! -s conftest.err
41449        } && test -s conftest$ac_exeext &&
41450        $as_test_x conftest$ac_exeext; then
41451   eval wx_cv_func_$wx_func=yes
41452 else
41453   echo "$as_me: failed program was:" >&5
41454 sed 's/^/| /' conftest.$ac_ext >&5
41455
41456         eval wx_cv_func_$wx_func=no
41457 fi
41458
41459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41460       conftest$ac_exeext conftest.$ac_ext
41461
41462 fi
41463 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41464                { echo "$as_me:$LINENO: result: $ac_res" >&5
41465 echo "${ECHO_T}$ac_res" >&6; }
41466
41467     if eval test \$wx_cv_func_$wx_func = yes
41468     then
41469       cat >>confdefs.h <<_ACEOF
41470 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41471 _ACEOF
41472
41473
41474     else
41475       :
41476
41477     fi
41478   done
41479
41480 fi
41481
41482
41483   for wx_func in strtok_r
41484   do
41485     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41486 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41487 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41488   echo $ECHO_N "(cached) $ECHO_C" >&6
41489 else
41490
41491         cat >conftest.$ac_ext <<_ACEOF
41492
41493             /* confdefs.h.  */
41494 _ACEOF
41495 cat confdefs.h >>conftest.$ac_ext
41496 cat >>conftest.$ac_ext <<_ACEOF
41497 /* end confdefs.h.  */
41498
41499                 #define _REENTRANT
41500                 $ac_includes_default
41501
41502 int
41503 main ()
41504 {
41505
41506                 #ifndef $wx_func
41507                   &$wx_func;
41508                 #endif
41509
41510
41511   ;
41512   return 0;
41513 }
41514
41515 _ACEOF
41516 rm -f conftest.$ac_objext conftest$ac_exeext
41517 if { (ac_try="$ac_link"
41518 case "(($ac_try" in
41519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41520   *) ac_try_echo=$ac_try;;
41521 esac
41522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41523   (eval "$ac_link") 2>conftest.er1
41524   ac_status=$?
41525   grep -v '^ *+' conftest.er1 >conftest.err
41526   rm -f conftest.er1
41527   cat conftest.err >&5
41528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529   (exit $ac_status); } && {
41530          test -z "$ac_c_werror_flag" ||
41531          test ! -s conftest.err
41532        } && test -s conftest$ac_exeext &&
41533        $as_test_x conftest$ac_exeext; then
41534   eval wx_cv_func_$wx_func=yes
41535 else
41536   echo "$as_me: failed program was:" >&5
41537 sed 's/^/| /' conftest.$ac_ext >&5
41538
41539         eval wx_cv_func_$wx_func=no
41540 fi
41541
41542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41543       conftest$ac_exeext conftest.$ac_ext
41544
41545 fi
41546 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41547                { echo "$as_me:$LINENO: result: $ac_res" >&5
41548 echo "${ECHO_T}$ac_res" >&6; }
41549
41550     if eval test \$wx_cv_func_$wx_func = yes
41551     then
41552       cat >>confdefs.h <<_ACEOF
41553 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41554 _ACEOF
41555
41556
41557     else
41558       :
41559
41560     fi
41561   done
41562
41563
41564 INET_LINK=
41565
41566 for ac_func in inet_addr
41567 do
41568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41572   echo $ECHO_N "(cached) $ECHO_C" >&6
41573 else
41574   cat >conftest.$ac_ext <<_ACEOF
41575 /* confdefs.h.  */
41576 _ACEOF
41577 cat confdefs.h >>conftest.$ac_ext
41578 cat >>conftest.$ac_ext <<_ACEOF
41579 /* end confdefs.h.  */
41580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41582 #define $ac_func innocuous_$ac_func
41583
41584 /* System header to define __stub macros and hopefully few prototypes,
41585     which can conflict with char $ac_func (); below.
41586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41587     <limits.h> exists even on freestanding compilers.  */
41588
41589 #ifdef __STDC__
41590 # include <limits.h>
41591 #else
41592 # include <assert.h>
41593 #endif
41594
41595 #undef $ac_func
41596
41597 /* Override any GCC internal prototype to avoid an error.
41598    Use char because int might match the return type of a GCC
41599    builtin and then its argument prototype would still apply.  */
41600 #ifdef __cplusplus
41601 extern "C"
41602 #endif
41603 char $ac_func ();
41604 /* The GNU C library defines this for functions which it implements
41605     to always fail with ENOSYS.  Some functions are actually named
41606     something starting with __ and the normal name is an alias.  */
41607 #if defined __stub_$ac_func || defined __stub___$ac_func
41608 choke me
41609 #endif
41610
41611 int
41612 main ()
41613 {
41614 return $ac_func ();
41615   ;
41616   return 0;
41617 }
41618 _ACEOF
41619 rm -f conftest.$ac_objext conftest$ac_exeext
41620 if { (ac_try="$ac_link"
41621 case "(($ac_try" in
41622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41623   *) ac_try_echo=$ac_try;;
41624 esac
41625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41626   (eval "$ac_link") 2>conftest.er1
41627   ac_status=$?
41628   grep -v '^ *+' conftest.er1 >conftest.err
41629   rm -f conftest.er1
41630   cat conftest.err >&5
41631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41632   (exit $ac_status); } && {
41633          test -z "$ac_c_werror_flag" ||
41634          test ! -s conftest.err
41635        } && test -s conftest$ac_exeext &&
41636        $as_test_x conftest$ac_exeext; then
41637   eval "$as_ac_var=yes"
41638 else
41639   echo "$as_me: failed program was:" >&5
41640 sed 's/^/| /' conftest.$ac_ext >&5
41641
41642         eval "$as_ac_var=no"
41643 fi
41644
41645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41646       conftest$ac_exeext conftest.$ac_ext
41647 fi
41648 ac_res=`eval echo '${'$as_ac_var'}'`
41649                { echo "$as_me:$LINENO: result: $ac_res" >&5
41650 echo "${ECHO_T}$ac_res" >&6; }
41651 if test `eval echo '${'$as_ac_var'}'` = yes; then
41652   cat >>confdefs.h <<_ACEOF
41653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41654 _ACEOF
41655  cat >>confdefs.h <<\_ACEOF
41656 #define HAVE_INET_ADDR 1
41657 _ACEOF
41658
41659 else
41660
41661         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
41662 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
41663 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
41664   echo $ECHO_N "(cached) $ECHO_C" >&6
41665 else
41666   ac_check_lib_save_LIBS=$LIBS
41667 LIBS="-lnsl  $LIBS"
41668 cat >conftest.$ac_ext <<_ACEOF
41669 /* confdefs.h.  */
41670 _ACEOF
41671 cat confdefs.h >>conftest.$ac_ext
41672 cat >>conftest.$ac_ext <<_ACEOF
41673 /* end confdefs.h.  */
41674
41675 /* Override any GCC internal prototype to avoid an error.
41676    Use char because int might match the return type of a GCC
41677    builtin and then its argument prototype would still apply.  */
41678 #ifdef __cplusplus
41679 extern "C"
41680 #endif
41681 char inet_addr ();
41682 int
41683 main ()
41684 {
41685 return inet_addr ();
41686   ;
41687   return 0;
41688 }
41689 _ACEOF
41690 rm -f conftest.$ac_objext conftest$ac_exeext
41691 if { (ac_try="$ac_link"
41692 case "(($ac_try" in
41693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41694   *) ac_try_echo=$ac_try;;
41695 esac
41696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41697   (eval "$ac_link") 2>conftest.er1
41698   ac_status=$?
41699   grep -v '^ *+' conftest.er1 >conftest.err
41700   rm -f conftest.er1
41701   cat conftest.err >&5
41702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41703   (exit $ac_status); } && {
41704          test -z "$ac_c_werror_flag" ||
41705          test ! -s conftest.err
41706        } && test -s conftest$ac_exeext &&
41707        $as_test_x conftest$ac_exeext; then
41708   ac_cv_lib_nsl_inet_addr=yes
41709 else
41710   echo "$as_me: failed program was:" >&5
41711 sed 's/^/| /' conftest.$ac_ext >&5
41712
41713         ac_cv_lib_nsl_inet_addr=no
41714 fi
41715
41716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41717       conftest$ac_exeext conftest.$ac_ext
41718 LIBS=$ac_check_lib_save_LIBS
41719 fi
41720 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
41721 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
41722 if test $ac_cv_lib_nsl_inet_addr = yes; then
41723   INET_LINK="nsl"
41724 else
41725
41726                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
41727 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
41728 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
41729   echo $ECHO_N "(cached) $ECHO_C" >&6
41730 else
41731   ac_check_lib_save_LIBS=$LIBS
41732 LIBS="-lresolv  $LIBS"
41733 cat >conftest.$ac_ext <<_ACEOF
41734 /* confdefs.h.  */
41735 _ACEOF
41736 cat confdefs.h >>conftest.$ac_ext
41737 cat >>conftest.$ac_ext <<_ACEOF
41738 /* end confdefs.h.  */
41739
41740 /* Override any GCC internal prototype to avoid an error.
41741    Use char because int might match the return type of a GCC
41742    builtin and then its argument prototype would still apply.  */
41743 #ifdef __cplusplus
41744 extern "C"
41745 #endif
41746 char inet_addr ();
41747 int
41748 main ()
41749 {
41750 return inet_addr ();
41751   ;
41752   return 0;
41753 }
41754 _ACEOF
41755 rm -f conftest.$ac_objext conftest$ac_exeext
41756 if { (ac_try="$ac_link"
41757 case "(($ac_try" in
41758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41759   *) ac_try_echo=$ac_try;;
41760 esac
41761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41762   (eval "$ac_link") 2>conftest.er1
41763   ac_status=$?
41764   grep -v '^ *+' conftest.er1 >conftest.err
41765   rm -f conftest.er1
41766   cat conftest.err >&5
41767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41768   (exit $ac_status); } && {
41769          test -z "$ac_c_werror_flag" ||
41770          test ! -s conftest.err
41771        } && test -s conftest$ac_exeext &&
41772        $as_test_x conftest$ac_exeext; then
41773   ac_cv_lib_resolv_inet_addr=yes
41774 else
41775   echo "$as_me: failed program was:" >&5
41776 sed 's/^/| /' conftest.$ac_ext >&5
41777
41778         ac_cv_lib_resolv_inet_addr=no
41779 fi
41780
41781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41782       conftest$ac_exeext conftest.$ac_ext
41783 LIBS=$ac_check_lib_save_LIBS
41784 fi
41785 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
41786 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
41787 if test $ac_cv_lib_resolv_inet_addr = yes; then
41788   INET_LINK="resolv"
41789 else
41790
41791                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
41792 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
41793 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
41794   echo $ECHO_N "(cached) $ECHO_C" >&6
41795 else
41796   ac_check_lib_save_LIBS=$LIBS
41797 LIBS="-lsocket  $LIBS"
41798 cat >conftest.$ac_ext <<_ACEOF
41799 /* confdefs.h.  */
41800 _ACEOF
41801 cat confdefs.h >>conftest.$ac_ext
41802 cat >>conftest.$ac_ext <<_ACEOF
41803 /* end confdefs.h.  */
41804
41805 /* Override any GCC internal prototype to avoid an error.
41806    Use char because int might match the return type of a GCC
41807    builtin and then its argument prototype would still apply.  */
41808 #ifdef __cplusplus
41809 extern "C"
41810 #endif
41811 char inet_addr ();
41812 int
41813 main ()
41814 {
41815 return inet_addr ();
41816   ;
41817   return 0;
41818 }
41819 _ACEOF
41820 rm -f conftest.$ac_objext conftest$ac_exeext
41821 if { (ac_try="$ac_link"
41822 case "(($ac_try" in
41823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41824   *) ac_try_echo=$ac_try;;
41825 esac
41826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41827   (eval "$ac_link") 2>conftest.er1
41828   ac_status=$?
41829   grep -v '^ *+' conftest.er1 >conftest.err
41830   rm -f conftest.er1
41831   cat conftest.err >&5
41832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41833   (exit $ac_status); } && {
41834          test -z "$ac_c_werror_flag" ||
41835          test ! -s conftest.err
41836        } && test -s conftest$ac_exeext &&
41837        $as_test_x conftest$ac_exeext; then
41838   ac_cv_lib_socket_inet_addr=yes
41839 else
41840   echo "$as_me: failed program was:" >&5
41841 sed 's/^/| /' conftest.$ac_ext >&5
41842
41843         ac_cv_lib_socket_inet_addr=no
41844 fi
41845
41846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41847       conftest$ac_exeext conftest.$ac_ext
41848 LIBS=$ac_check_lib_save_LIBS
41849 fi
41850 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
41851 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
41852 if test $ac_cv_lib_socket_inet_addr = yes; then
41853   INET_LINK="socket"
41854
41855 fi
41856
41857
41858
41859 fi
41860
41861
41862
41863 fi
41864
41865
41866
41867 fi
41868 done
41869
41870
41871
41872 for ac_func in inet_aton
41873 do
41874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41878   echo $ECHO_N "(cached) $ECHO_C" >&6
41879 else
41880   cat >conftest.$ac_ext <<_ACEOF
41881 /* confdefs.h.  */
41882 _ACEOF
41883 cat confdefs.h >>conftest.$ac_ext
41884 cat >>conftest.$ac_ext <<_ACEOF
41885 /* end confdefs.h.  */
41886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41888 #define $ac_func innocuous_$ac_func
41889
41890 /* System header to define __stub macros and hopefully few prototypes,
41891     which can conflict with char $ac_func (); below.
41892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41893     <limits.h> exists even on freestanding compilers.  */
41894
41895 #ifdef __STDC__
41896 # include <limits.h>
41897 #else
41898 # include <assert.h>
41899 #endif
41900
41901 #undef $ac_func
41902
41903 /* Override any GCC internal prototype to avoid an error.
41904    Use char because int might match the return type of a GCC
41905    builtin and then its argument prototype would still apply.  */
41906 #ifdef __cplusplus
41907 extern "C"
41908 #endif
41909 char $ac_func ();
41910 /* The GNU C library defines this for functions which it implements
41911     to always fail with ENOSYS.  Some functions are actually named
41912     something starting with __ and the normal name is an alias.  */
41913 #if defined __stub_$ac_func || defined __stub___$ac_func
41914 choke me
41915 #endif
41916
41917 int
41918 main ()
41919 {
41920 return $ac_func ();
41921   ;
41922   return 0;
41923 }
41924 _ACEOF
41925 rm -f conftest.$ac_objext conftest$ac_exeext
41926 if { (ac_try="$ac_link"
41927 case "(($ac_try" in
41928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41929   *) ac_try_echo=$ac_try;;
41930 esac
41931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41932   (eval "$ac_link") 2>conftest.er1
41933   ac_status=$?
41934   grep -v '^ *+' conftest.er1 >conftest.err
41935   rm -f conftest.er1
41936   cat conftest.err >&5
41937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41938   (exit $ac_status); } && {
41939          test -z "$ac_c_werror_flag" ||
41940          test ! -s conftest.err
41941        } && test -s conftest$ac_exeext &&
41942        $as_test_x conftest$ac_exeext; then
41943   eval "$as_ac_var=yes"
41944 else
41945   echo "$as_me: failed program was:" >&5
41946 sed 's/^/| /' conftest.$ac_ext >&5
41947
41948         eval "$as_ac_var=no"
41949 fi
41950
41951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41952       conftest$ac_exeext conftest.$ac_ext
41953 fi
41954 ac_res=`eval echo '${'$as_ac_var'}'`
41955                { echo "$as_me:$LINENO: result: $ac_res" >&5
41956 echo "${ECHO_T}$ac_res" >&6; }
41957 if test `eval echo '${'$as_ac_var'}'` = yes; then
41958   cat >>confdefs.h <<_ACEOF
41959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41960 _ACEOF
41961  cat >>confdefs.h <<\_ACEOF
41962 #define HAVE_INET_ATON 1
41963 _ACEOF
41964
41965 else
41966
41967                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
41968 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
41969 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
41970 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41971   echo $ECHO_N "(cached) $ECHO_C" >&6
41972 else
41973   ac_check_lib_save_LIBS=$LIBS
41974 LIBS="-l$INET_LINK  $LIBS"
41975 cat >conftest.$ac_ext <<_ACEOF
41976 /* confdefs.h.  */
41977 _ACEOF
41978 cat confdefs.h >>conftest.$ac_ext
41979 cat >>conftest.$ac_ext <<_ACEOF
41980 /* end confdefs.h.  */
41981
41982 /* Override any GCC internal prototype to avoid an error.
41983    Use char because int might match the return type of a GCC
41984    builtin and then its argument prototype would still apply.  */
41985 #ifdef __cplusplus
41986 extern "C"
41987 #endif
41988 char inet_aton ();
41989 int
41990 main ()
41991 {
41992 return inet_aton ();
41993   ;
41994   return 0;
41995 }
41996 _ACEOF
41997 rm -f conftest.$ac_objext conftest$ac_exeext
41998 if { (ac_try="$ac_link"
41999 case "(($ac_try" in
42000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42001   *) ac_try_echo=$ac_try;;
42002 esac
42003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42004   (eval "$ac_link") 2>conftest.er1
42005   ac_status=$?
42006   grep -v '^ *+' conftest.er1 >conftest.err
42007   rm -f conftest.er1
42008   cat conftest.err >&5
42009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010   (exit $ac_status); } && {
42011          test -z "$ac_c_werror_flag" ||
42012          test ! -s conftest.err
42013        } && test -s conftest$ac_exeext &&
42014        $as_test_x conftest$ac_exeext; then
42015   eval "$as_ac_Lib=yes"
42016 else
42017   echo "$as_me: failed program was:" >&5
42018 sed 's/^/| /' conftest.$ac_ext >&5
42019
42020         eval "$as_ac_Lib=no"
42021 fi
42022
42023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42024       conftest$ac_exeext conftest.$ac_ext
42025 LIBS=$ac_check_lib_save_LIBS
42026 fi
42027 ac_res=`eval echo '${'$as_ac_Lib'}'`
42028                { echo "$as_me:$LINENO: result: $ac_res" >&5
42029 echo "${ECHO_T}$ac_res" >&6; }
42030 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
42031   cat >>confdefs.h <<\_ACEOF
42032 #define HAVE_INET_ATON 1
42033 _ACEOF
42034
42035 fi
42036
42037
42038 fi
42039 done
42040
42041
42042 if test "x$INET_LINK" != "x"; then
42043     cat >>confdefs.h <<\_ACEOF
42044 #define HAVE_INET_ADDR 1
42045 _ACEOF
42046
42047     INET_LINK=" -l$INET_LINK"
42048 fi
42049
42050
42051   for wx_func in fdopen
42052   do
42053     { echo "$as_me:$LINENO: checking for $wx_func" >&5
42054 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
42055 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
42056   echo $ECHO_N "(cached) $ECHO_C" >&6
42057 else
42058
42059         cat >conftest.$ac_ext <<_ACEOF
42060
42061             /* confdefs.h.  */
42062 _ACEOF
42063 cat confdefs.h >>conftest.$ac_ext
42064 cat >>conftest.$ac_ext <<_ACEOF
42065 /* end confdefs.h.  */
42066
42067
42068                 $ac_includes_default
42069
42070 int
42071 main ()
42072 {
42073
42074                 #ifndef $wx_func
42075                   &$wx_func;
42076                 #endif
42077
42078
42079   ;
42080   return 0;
42081 }
42082
42083 _ACEOF
42084 rm -f conftest.$ac_objext conftest$ac_exeext
42085 if { (ac_try="$ac_link"
42086 case "(($ac_try" in
42087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42088   *) ac_try_echo=$ac_try;;
42089 esac
42090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42091   (eval "$ac_link") 2>conftest.er1
42092   ac_status=$?
42093   grep -v '^ *+' conftest.er1 >conftest.err
42094   rm -f conftest.er1
42095   cat conftest.err >&5
42096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42097   (exit $ac_status); } && {
42098          test -z "$ac_c_werror_flag" ||
42099          test ! -s conftest.err
42100        } && test -s conftest$ac_exeext &&
42101        $as_test_x conftest$ac_exeext; then
42102   eval wx_cv_func_$wx_func=yes
42103 else
42104   echo "$as_me: failed program was:" >&5
42105 sed 's/^/| /' conftest.$ac_ext >&5
42106
42107         eval wx_cv_func_$wx_func=no
42108 fi
42109
42110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42111       conftest$ac_exeext conftest.$ac_ext
42112
42113 fi
42114 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
42115                { echo "$as_me:$LINENO: result: $ac_res" >&5
42116 echo "${ECHO_T}$ac_res" >&6; }
42117
42118     if eval test \$wx_cv_func_$wx_func = yes
42119     then
42120       cat >>confdefs.h <<_ACEOF
42121 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
42122 _ACEOF
42123
42124
42125     else
42126       :
42127
42128     fi
42129   done
42130
42131
42132 fi
42133
42134
42135
42136 cat >confcache <<\_ACEOF
42137 # This file is a shell script that caches the results of configure
42138 # tests run on this system so they can be shared between configure
42139 # scripts and configure runs, see configure's option --config-cache.
42140 # It is not useful on other systems.  If it contains results you don't
42141 # want to keep, you may remove or edit it.
42142 #
42143 # config.status only pays attention to the cache file if you give it
42144 # the --recheck option to rerun configure.
42145 #
42146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42148 # following values.
42149
42150 _ACEOF
42151
42152 # The following way of writing the cache mishandles newlines in values,
42153 # but we know of no workaround that is simple, portable, and efficient.
42154 # So, we kill variables containing newlines.
42155 # Ultrix sh set writes to stderr and can't be redirected directly,
42156 # and sets the high bit in the cache file unless we assign to the vars.
42157 (
42158   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42159     eval ac_val=\$$ac_var
42160     case $ac_val in #(
42161     *${as_nl}*)
42162       case $ac_var in #(
42163       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42164 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42165       esac
42166       case $ac_var in #(
42167       _ | IFS | as_nl) ;; #(
42168       *) $as_unset $ac_var ;;
42169       esac ;;
42170     esac
42171   done
42172
42173   (set) 2>&1 |
42174     case $as_nl`(ac_space=' '; set) 2>&1` in #(
42175     *${as_nl}ac_space=\ *)
42176       # `set' does not quote correctly, so add quotes (double-quote
42177       # substitution turns \\\\ into \\, and sed turns \\ into \).
42178       sed -n \
42179         "s/'/'\\\\''/g;
42180           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42181       ;; #(
42182     *)
42183       # `set' quotes correctly as required by POSIX, so do not add quotes.
42184       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42185       ;;
42186     esac |
42187     sort
42188 ) |
42189   sed '
42190      /^ac_cv_env_/b end
42191      t clear
42192      :clear
42193      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42194      t end
42195      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42196      :end' >>confcache
42197 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42198   if test -w "$cache_file"; then
42199     test "x$cache_file" != "x/dev/null" &&
42200       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42201 echo "$as_me: updating cache $cache_file" >&6;}
42202     cat confcache >$cache_file
42203   else
42204     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42205 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42206   fi
42207 fi
42208 rm -f confcache
42209
42210
42211 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
42212
42213
42214     THREADS_LINK=
42215     THREADS_CFLAGS=
42216
42217     if test "$wxUSE_THREADS" = "yes" ; then
42218         if test "$USE_BEOS" = 1; then
42219             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
42220 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
42221             wxUSE_THREADS="no"
42222         fi
42223     fi
42224
42225     if test "$wxUSE_THREADS" = "yes" ; then
42226
42227
42228                                 THREAD_OPTS="-pthread"
42229         if test "x$SUNCXX" = xyes; then
42230             THREAD_OPTS="-mt lthread $THREAD_OPTS"
42231         fi
42232
42233         case "${host}" in
42234           *-*-solaris2* | *-*-sunos4* )
42235                 if test "x$GCC" = "xyes"; then
42236                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
42237                 fi
42238                 ;;
42239           *-*-freebsd*)
42240                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
42241                 ;;
42242           *-*-darwin* | *-*-cygwin* )
42243                                                 THREAD_OPTS=""
42244                 ;;
42245           *-*-aix*)
42246                                 THREAD_OPTS="pthreads"
42247                 ;;
42248           *-hp-hpux* )
42249                 if test "x$GCC" = "xyes"; then
42250                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
42251                         THREAD_OPTS=""
42252                 else
42253                                                             THREAD_OPTS="-mt"
42254                 fi
42255                 ;;
42256
42257           *-*-irix* )
42258                                                                 if test "x$GCC" = "xyes"; then
42259                     THREAD_OPTS=""
42260                 fi
42261                 ;;
42262
42263           *-*-*UnixWare*)
42264                                 if test "x$GCC" != "xyes"; then
42265                     THREAD_OPTS="-Ethread"
42266                 fi
42267                 ;;
42268         esac
42269
42270                                 THREAD_OPTS="$THREAD_OPTS pthread none"
42271
42272                 THREADS_OK=no
42273         for flag in $THREAD_OPTS; do
42274             case $flag in
42275                 none)
42276                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
42277 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
42278                     ;;
42279
42280                 -*)
42281                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
42282 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
42283                     THREADS_CFLAGS="$flag"
42284                     ;;
42285
42286                 *)
42287                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
42288 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
42289                     THREADS_LINK="-l$flag"
42290                     ;;
42291               esac
42292
42293               save_LIBS="$LIBS"
42294               save_CFLAGS="$CFLAGS"
42295               LIBS="$THREADS_LINK $LIBS"
42296               CFLAGS="$THREADS_CFLAGS $CFLAGS"
42297
42298               cat >conftest.$ac_ext <<_ACEOF
42299 /* confdefs.h.  */
42300 _ACEOF
42301 cat confdefs.h >>conftest.$ac_ext
42302 cat >>conftest.$ac_ext <<_ACEOF
42303 /* end confdefs.h.  */
42304 #include <pthread.h>
42305 int
42306 main ()
42307 {
42308 pthread_create(0,0,0,0);
42309   ;
42310   return 0;
42311 }
42312 _ACEOF
42313 rm -f conftest.$ac_objext conftest$ac_exeext
42314 if { (ac_try="$ac_link"
42315 case "(($ac_try" in
42316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42317   *) ac_try_echo=$ac_try;;
42318 esac
42319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42320   (eval "$ac_link") 2>conftest.er1
42321   ac_status=$?
42322   grep -v '^ *+' conftest.er1 >conftest.err
42323   rm -f conftest.er1
42324   cat conftest.err >&5
42325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42326   (exit $ac_status); } && {
42327          test -z "$ac_c_werror_flag" ||
42328          test ! -s conftest.err
42329        } && test -s conftest$ac_exeext &&
42330        $as_test_x conftest$ac_exeext; then
42331   THREADS_OK=yes
42332 else
42333   echo "$as_me: failed program was:" >&5
42334 sed 's/^/| /' conftest.$ac_ext >&5
42335
42336
42337 fi
42338
42339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42340       conftest$ac_exeext conftest.$ac_ext
42341
42342               LIBS="$save_LIBS"
42343               CFLAGS="$save_CFLAGS"
42344
42345               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
42346 echo "${ECHO_T}$THREADS_OK" >&6; }
42347               if test "x$THREADS_OK" = "xyes"; then
42348                       break;
42349               fi
42350
42351               THREADS_LINK=""
42352               THREADS_CFLAGS=""
42353       done
42354
42355       if test "x$THREADS_OK" != "xyes"; then
42356           wxUSE_THREADS=no
42357           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
42358 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
42359       else
42360                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
42361           LIBS="$THREADS_LINK $LIBS"
42362
42363           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
42364 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
42365           flag=no
42366           case "${host}" in
42367             *-aix*)
42368                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
42369                 flag="-D_THREAD_SAFE"
42370                 ;;
42371             *-freebsd*)
42372                 flag="-D_THREAD_SAFE"
42373                 ;;
42374             *-hp-hpux* )
42375                 flag="-D_REENTRANT"
42376                 if test "x$GCC" != "xyes"; then
42377                                         flag="$flag -D_RWSTD_MULTI_THREAD"
42378                 fi
42379                 ;;
42380             *solaris* | alpha*-osf*)
42381                 flag="-D_REENTRANT"
42382                 ;;
42383           esac
42384           { echo "$as_me:$LINENO: result: ${flag}" >&5
42385 echo "${ECHO_T}${flag}" >&6; }
42386           if test "x$flag" != xno; then
42387               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
42388           fi
42389
42390                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
42391       fi
42392     fi
42393
42394         if test "$wxUSE_THREADS" = "yes" ; then
42395
42396 for ac_func in thr_setconcurrency
42397 do
42398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42402   echo $ECHO_N "(cached) $ECHO_C" >&6
42403 else
42404   cat >conftest.$ac_ext <<_ACEOF
42405 /* confdefs.h.  */
42406 _ACEOF
42407 cat confdefs.h >>conftest.$ac_ext
42408 cat >>conftest.$ac_ext <<_ACEOF
42409 /* end confdefs.h.  */
42410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42412 #define $ac_func innocuous_$ac_func
42413
42414 /* System header to define __stub macros and hopefully few prototypes,
42415     which can conflict with char $ac_func (); below.
42416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42417     <limits.h> exists even on freestanding compilers.  */
42418
42419 #ifdef __STDC__
42420 # include <limits.h>
42421 #else
42422 # include <assert.h>
42423 #endif
42424
42425 #undef $ac_func
42426
42427 /* Override any GCC internal prototype to avoid an error.
42428    Use char because int might match the return type of a GCC
42429    builtin and then its argument prototype would still apply.  */
42430 #ifdef __cplusplus
42431 extern "C"
42432 #endif
42433 char $ac_func ();
42434 /* The GNU C library defines this for functions which it implements
42435     to always fail with ENOSYS.  Some functions are actually named
42436     something starting with __ and the normal name is an alias.  */
42437 #if defined __stub_$ac_func || defined __stub___$ac_func
42438 choke me
42439 #endif
42440
42441 int
42442 main ()
42443 {
42444 return $ac_func ();
42445   ;
42446   return 0;
42447 }
42448 _ACEOF
42449 rm -f conftest.$ac_objext conftest$ac_exeext
42450 if { (ac_try="$ac_link"
42451 case "(($ac_try" in
42452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42453   *) ac_try_echo=$ac_try;;
42454 esac
42455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42456   (eval "$ac_link") 2>conftest.er1
42457   ac_status=$?
42458   grep -v '^ *+' conftest.er1 >conftest.err
42459   rm -f conftest.er1
42460   cat conftest.err >&5
42461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462   (exit $ac_status); } && {
42463          test -z "$ac_c_werror_flag" ||
42464          test ! -s conftest.err
42465        } && test -s conftest$ac_exeext &&
42466        $as_test_x conftest$ac_exeext; then
42467   eval "$as_ac_var=yes"
42468 else
42469   echo "$as_me: failed program was:" >&5
42470 sed 's/^/| /' conftest.$ac_ext >&5
42471
42472         eval "$as_ac_var=no"
42473 fi
42474
42475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42476       conftest$ac_exeext conftest.$ac_ext
42477 fi
42478 ac_res=`eval echo '${'$as_ac_var'}'`
42479                { echo "$as_me:$LINENO: result: $ac_res" >&5
42480 echo "${ECHO_T}$ac_res" >&6; }
42481 if test `eval echo '${'$as_ac_var'}'` = yes; then
42482   cat >>confdefs.h <<_ACEOF
42483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42484 _ACEOF
42485
42486 fi
42487 done
42488
42489
42490                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
42491 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
42492 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
42493   echo $ECHO_N "(cached) $ECHO_C" >&6
42494 else
42495
42496                                 ac_ext=cpp
42497 ac_cpp='$CXXCPP $CPPFLAGS'
42498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42501
42502         cat >conftest.$ac_ext <<_ACEOF
42503 /* confdefs.h.  */
42504 _ACEOF
42505 cat confdefs.h >>conftest.$ac_ext
42506 cat >>conftest.$ac_ext <<_ACEOF
42507 /* end confdefs.h.  */
42508 #include <pthread.h>
42509                void ThreadCleanupFunc(void *p);
42510
42511 int
42512 main ()
42513 {
42514
42515                 void *p;
42516                 pthread_cleanup_push(ThreadCleanupFunc, p);
42517                 pthread_cleanup_pop(0);
42518
42519   ;
42520   return 0;
42521 }
42522 _ACEOF
42523 rm -f conftest.$ac_objext
42524 if { (ac_try="$ac_compile"
42525 case "(($ac_try" in
42526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42527   *) ac_try_echo=$ac_try;;
42528 esac
42529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42530   (eval "$ac_compile") 2>conftest.er1
42531   ac_status=$?
42532   grep -v '^ *+' conftest.er1 >conftest.err
42533   rm -f conftest.er1
42534   cat conftest.err >&5
42535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42536   (exit $ac_status); } && {
42537          test -z "$ac_cxx_werror_flag" ||
42538          test ! -s conftest.err
42539        } && test -s conftest.$ac_objext; then
42540
42541                wx_cv_func_pthread_cleanup=yes
42542
42543 else
42544   echo "$as_me: failed program was:" >&5
42545 sed 's/^/| /' conftest.$ac_ext >&5
42546
42547
42548                wx_cv_func_pthread_cleanup=no
42549
42550
42551 fi
42552
42553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42554         ac_ext=c
42555 ac_cpp='$CPP $CPPFLAGS'
42556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42559
42560
42561 fi
42562 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
42563 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
42564       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
42565         cat >>confdefs.h <<\_ACEOF
42566 #define wxHAVE_PTHREAD_CLEANUP 1
42567 _ACEOF
42568
42569       fi
42570
42571
42572 for ac_header in sched.h
42573 do
42574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42578   echo $ECHO_N "(cached) $ECHO_C" >&6
42579 else
42580   cat >conftest.$ac_ext <<_ACEOF
42581 /* confdefs.h.  */
42582 _ACEOF
42583 cat confdefs.h >>conftest.$ac_ext
42584 cat >>conftest.$ac_ext <<_ACEOF
42585 /* end confdefs.h.  */
42586 $ac_includes_default
42587
42588 #include <$ac_header>
42589 _ACEOF
42590 rm -f conftest.$ac_objext
42591 if { (ac_try="$ac_compile"
42592 case "(($ac_try" in
42593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42594   *) ac_try_echo=$ac_try;;
42595 esac
42596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42597   (eval "$ac_compile") 2>conftest.er1
42598   ac_status=$?
42599   grep -v '^ *+' conftest.er1 >conftest.err
42600   rm -f conftest.er1
42601   cat conftest.err >&5
42602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42603   (exit $ac_status); } && {
42604          test -z "$ac_c_werror_flag" ||
42605          test ! -s conftest.err
42606        } && test -s conftest.$ac_objext; then
42607   eval "$as_ac_Header=yes"
42608 else
42609   echo "$as_me: failed program was:" >&5
42610 sed 's/^/| /' conftest.$ac_ext >&5
42611
42612         eval "$as_ac_Header=no"
42613 fi
42614
42615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42616 fi
42617 ac_res=`eval echo '${'$as_ac_Header'}'`
42618                { echo "$as_me:$LINENO: result: $ac_res" >&5
42619 echo "${ECHO_T}$ac_res" >&6; }
42620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42621   cat >>confdefs.h <<_ACEOF
42622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42623 _ACEOF
42624
42625 fi
42626
42627 done
42628
42629       if test "$ac_cv_header_sched_h" = "yes"; then
42630           { echo "$as_me:$LINENO: checking for sched_yield" >&5
42631 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
42632 if test "${ac_cv_func_sched_yield+set}" = set; then
42633   echo $ECHO_N "(cached) $ECHO_C" >&6
42634 else
42635   cat >conftest.$ac_ext <<_ACEOF
42636 /* confdefs.h.  */
42637 _ACEOF
42638 cat confdefs.h >>conftest.$ac_ext
42639 cat >>conftest.$ac_ext <<_ACEOF
42640 /* end confdefs.h.  */
42641 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
42642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42643 #define sched_yield innocuous_sched_yield
42644
42645 /* System header to define __stub macros and hopefully few prototypes,
42646     which can conflict with char sched_yield (); below.
42647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42648     <limits.h> exists even on freestanding compilers.  */
42649
42650 #ifdef __STDC__
42651 # include <limits.h>
42652 #else
42653 # include <assert.h>
42654 #endif
42655
42656 #undef sched_yield
42657
42658 /* Override any GCC internal prototype to avoid an error.
42659    Use char because int might match the return type of a GCC
42660    builtin and then its argument prototype would still apply.  */
42661 #ifdef __cplusplus
42662 extern "C"
42663 #endif
42664 char sched_yield ();
42665 /* The GNU C library defines this for functions which it implements
42666     to always fail with ENOSYS.  Some functions are actually named
42667     something starting with __ and the normal name is an alias.  */
42668 #if defined __stub_sched_yield || defined __stub___sched_yield
42669 choke me
42670 #endif
42671
42672 int
42673 main ()
42674 {
42675 return sched_yield ();
42676   ;
42677   return 0;
42678 }
42679 _ACEOF
42680 rm -f conftest.$ac_objext conftest$ac_exeext
42681 if { (ac_try="$ac_link"
42682 case "(($ac_try" in
42683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42684   *) ac_try_echo=$ac_try;;
42685 esac
42686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42687   (eval "$ac_link") 2>conftest.er1
42688   ac_status=$?
42689   grep -v '^ *+' conftest.er1 >conftest.err
42690   rm -f conftest.er1
42691   cat conftest.err >&5
42692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42693   (exit $ac_status); } && {
42694          test -z "$ac_c_werror_flag" ||
42695          test ! -s conftest.err
42696        } && test -s conftest$ac_exeext &&
42697        $as_test_x conftest$ac_exeext; then
42698   ac_cv_func_sched_yield=yes
42699 else
42700   echo "$as_me: failed program was:" >&5
42701 sed 's/^/| /' conftest.$ac_ext >&5
42702
42703         ac_cv_func_sched_yield=no
42704 fi
42705
42706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42707       conftest$ac_exeext conftest.$ac_ext
42708 fi
42709 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
42710 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
42711 if test $ac_cv_func_sched_yield = yes; then
42712   cat >>confdefs.h <<\_ACEOF
42713 #define HAVE_SCHED_YIELD 1
42714 _ACEOF
42715
42716 else
42717
42718                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
42719 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
42720 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
42721   echo $ECHO_N "(cached) $ECHO_C" >&6
42722 else
42723   ac_check_lib_save_LIBS=$LIBS
42724 LIBS="-lposix4  $LIBS"
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
42732 /* Override any GCC internal prototype to avoid an error.
42733    Use char because int might match the return type of a GCC
42734    builtin and then its argument prototype would still apply.  */
42735 #ifdef __cplusplus
42736 extern "C"
42737 #endif
42738 char sched_yield ();
42739 int
42740 main ()
42741 {
42742 return sched_yield ();
42743   ;
42744   return 0;
42745 }
42746 _ACEOF
42747 rm -f conftest.$ac_objext conftest$ac_exeext
42748 if { (ac_try="$ac_link"
42749 case "(($ac_try" in
42750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42751   *) ac_try_echo=$ac_try;;
42752 esac
42753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42754   (eval "$ac_link") 2>conftest.er1
42755   ac_status=$?
42756   grep -v '^ *+' conftest.er1 >conftest.err
42757   rm -f conftest.er1
42758   cat conftest.err >&5
42759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760   (exit $ac_status); } && {
42761          test -z "$ac_c_werror_flag" ||
42762          test ! -s conftest.err
42763        } && test -s conftest$ac_exeext &&
42764        $as_test_x conftest$ac_exeext; then
42765   ac_cv_lib_posix4_sched_yield=yes
42766 else
42767   echo "$as_me: failed program was:" >&5
42768 sed 's/^/| /' conftest.$ac_ext >&5
42769
42770         ac_cv_lib_posix4_sched_yield=no
42771 fi
42772
42773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42774       conftest$ac_exeext conftest.$ac_ext
42775 LIBS=$ac_check_lib_save_LIBS
42776 fi
42777 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
42778 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
42779 if test $ac_cv_lib_posix4_sched_yield = yes; then
42780   cat >>confdefs.h <<\_ACEOF
42781 #define HAVE_SCHED_YIELD 1
42782 _ACEOF
42783  POSIX4_LINK=" -lposix4"
42784 else
42785   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
42786 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
42787
42788 fi
42789
42790
42791
42792 fi
42793
42794       fi
42795
42796                                           HAVE_PRIOR_FUNCS=0
42797       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
42798 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
42799 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
42800   echo $ECHO_N "(cached) $ECHO_C" >&6
42801 else
42802   cat >conftest.$ac_ext <<_ACEOF
42803 /* confdefs.h.  */
42804 _ACEOF
42805 cat confdefs.h >>conftest.$ac_ext
42806 cat >>conftest.$ac_ext <<_ACEOF
42807 /* end confdefs.h.  */
42808 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
42809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42810 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
42811
42812 /* System header to define __stub macros and hopefully few prototypes,
42813     which can conflict with char pthread_attr_getschedpolicy (); below.
42814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42815     <limits.h> exists even on freestanding compilers.  */
42816
42817 #ifdef __STDC__
42818 # include <limits.h>
42819 #else
42820 # include <assert.h>
42821 #endif
42822
42823 #undef pthread_attr_getschedpolicy
42824
42825 /* Override any GCC internal prototype to avoid an error.
42826    Use char because int might match the return type of a GCC
42827    builtin and then its argument prototype would still apply.  */
42828 #ifdef __cplusplus
42829 extern "C"
42830 #endif
42831 char pthread_attr_getschedpolicy ();
42832 /* The GNU C library defines this for functions which it implements
42833     to always fail with ENOSYS.  Some functions are actually named
42834     something starting with __ and the normal name is an alias.  */
42835 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
42836 choke me
42837 #endif
42838
42839 int
42840 main ()
42841 {
42842 return pthread_attr_getschedpolicy ();
42843   ;
42844   return 0;
42845 }
42846 _ACEOF
42847 rm -f conftest.$ac_objext conftest$ac_exeext
42848 if { (ac_try="$ac_link"
42849 case "(($ac_try" in
42850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42851   *) ac_try_echo=$ac_try;;
42852 esac
42853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42854   (eval "$ac_link") 2>conftest.er1
42855   ac_status=$?
42856   grep -v '^ *+' conftest.er1 >conftest.err
42857   rm -f conftest.er1
42858   cat conftest.err >&5
42859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42860   (exit $ac_status); } && {
42861          test -z "$ac_c_werror_flag" ||
42862          test ! -s conftest.err
42863        } && test -s conftest$ac_exeext &&
42864        $as_test_x conftest$ac_exeext; then
42865   ac_cv_func_pthread_attr_getschedpolicy=yes
42866 else
42867   echo "$as_me: failed program was:" >&5
42868 sed 's/^/| /' conftest.$ac_ext >&5
42869
42870         ac_cv_func_pthread_attr_getschedpolicy=no
42871 fi
42872
42873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42874       conftest$ac_exeext conftest.$ac_ext
42875 fi
42876 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
42877 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
42878 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
42879   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
42880 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
42881 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
42882   echo $ECHO_N "(cached) $ECHO_C" >&6
42883 else
42884   cat >conftest.$ac_ext <<_ACEOF
42885 /* confdefs.h.  */
42886 _ACEOF
42887 cat confdefs.h >>conftest.$ac_ext
42888 cat >>conftest.$ac_ext <<_ACEOF
42889 /* end confdefs.h.  */
42890 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
42891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42892 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
42893
42894 /* System header to define __stub macros and hopefully few prototypes,
42895     which can conflict with char pthread_attr_setschedparam (); below.
42896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42897     <limits.h> exists even on freestanding compilers.  */
42898
42899 #ifdef __STDC__
42900 # include <limits.h>
42901 #else
42902 # include <assert.h>
42903 #endif
42904
42905 #undef pthread_attr_setschedparam
42906
42907 /* Override any GCC internal prototype to avoid an error.
42908    Use char because int might match the return type of a GCC
42909    builtin and then its argument prototype would still apply.  */
42910 #ifdef __cplusplus
42911 extern "C"
42912 #endif
42913 char pthread_attr_setschedparam ();
42914 /* The GNU C library defines this for functions which it implements
42915     to always fail with ENOSYS.  Some functions are actually named
42916     something starting with __ and the normal name is an alias.  */
42917 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
42918 choke me
42919 #endif
42920
42921 int
42922 main ()
42923 {
42924 return pthread_attr_setschedparam ();
42925   ;
42926   return 0;
42927 }
42928 _ACEOF
42929 rm -f conftest.$ac_objext conftest$ac_exeext
42930 if { (ac_try="$ac_link"
42931 case "(($ac_try" in
42932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42933   *) ac_try_echo=$ac_try;;
42934 esac
42935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42936   (eval "$ac_link") 2>conftest.er1
42937   ac_status=$?
42938   grep -v '^ *+' conftest.er1 >conftest.err
42939   rm -f conftest.er1
42940   cat conftest.err >&5
42941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42942   (exit $ac_status); } && {
42943          test -z "$ac_c_werror_flag" ||
42944          test ! -s conftest.err
42945        } && test -s conftest$ac_exeext &&
42946        $as_test_x conftest$ac_exeext; then
42947   ac_cv_func_pthread_attr_setschedparam=yes
42948 else
42949   echo "$as_me: failed program was:" >&5
42950 sed 's/^/| /' conftest.$ac_ext >&5
42951
42952         ac_cv_func_pthread_attr_setschedparam=no
42953 fi
42954
42955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42956       conftest$ac_exeext conftest.$ac_ext
42957 fi
42958 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
42959 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
42960 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
42961   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
42962 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
42963 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
42964   echo $ECHO_N "(cached) $ECHO_C" >&6
42965 else
42966   cat >conftest.$ac_ext <<_ACEOF
42967 /* confdefs.h.  */
42968 _ACEOF
42969 cat confdefs.h >>conftest.$ac_ext
42970 cat >>conftest.$ac_ext <<_ACEOF
42971 /* end confdefs.h.  */
42972 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
42973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42974 #define sched_get_priority_max innocuous_sched_get_priority_max
42975
42976 /* System header to define __stub macros and hopefully few prototypes,
42977     which can conflict with char sched_get_priority_max (); below.
42978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42979     <limits.h> exists even on freestanding compilers.  */
42980
42981 #ifdef __STDC__
42982 # include <limits.h>
42983 #else
42984 # include <assert.h>
42985 #endif
42986
42987 #undef sched_get_priority_max
42988
42989 /* Override any GCC internal prototype to avoid an error.
42990    Use char because int might match the return type of a GCC
42991    builtin and then its argument prototype would still apply.  */
42992 #ifdef __cplusplus
42993 extern "C"
42994 #endif
42995 char sched_get_priority_max ();
42996 /* The GNU C library defines this for functions which it implements
42997     to always fail with ENOSYS.  Some functions are actually named
42998     something starting with __ and the normal name is an alias.  */
42999 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
43000 choke me
43001 #endif
43002
43003 int
43004 main ()
43005 {
43006 return sched_get_priority_max ();
43007   ;
43008   return 0;
43009 }
43010 _ACEOF
43011 rm -f conftest.$ac_objext conftest$ac_exeext
43012 if { (ac_try="$ac_link"
43013 case "(($ac_try" in
43014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43015   *) ac_try_echo=$ac_try;;
43016 esac
43017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43018   (eval "$ac_link") 2>conftest.er1
43019   ac_status=$?
43020   grep -v '^ *+' conftest.er1 >conftest.err
43021   rm -f conftest.er1
43022   cat conftest.err >&5
43023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024   (exit $ac_status); } && {
43025          test -z "$ac_c_werror_flag" ||
43026          test ! -s conftest.err
43027        } && test -s conftest$ac_exeext &&
43028        $as_test_x conftest$ac_exeext; then
43029   ac_cv_func_sched_get_priority_max=yes
43030 else
43031   echo "$as_me: failed program was:" >&5
43032 sed 's/^/| /' conftest.$ac_ext >&5
43033
43034         ac_cv_func_sched_get_priority_max=no
43035 fi
43036
43037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43038       conftest$ac_exeext conftest.$ac_ext
43039 fi
43040 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
43041 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
43042 if test $ac_cv_func_sched_get_priority_max = yes; then
43043   HAVE_PRIOR_FUNCS=1
43044 else
43045   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
43046 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
43047 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
43048   echo $ECHO_N "(cached) $ECHO_C" >&6
43049 else
43050   ac_check_lib_save_LIBS=$LIBS
43051 LIBS="-lposix4  $LIBS"
43052 cat >conftest.$ac_ext <<_ACEOF
43053 /* confdefs.h.  */
43054 _ACEOF
43055 cat confdefs.h >>conftest.$ac_ext
43056 cat >>conftest.$ac_ext <<_ACEOF
43057 /* end confdefs.h.  */
43058
43059 /* Override any GCC internal prototype to avoid an error.
43060    Use char because int might match the return type of a GCC
43061    builtin and then its argument prototype would still apply.  */
43062 #ifdef __cplusplus
43063 extern "C"
43064 #endif
43065 char sched_get_priority_max ();
43066 int
43067 main ()
43068 {
43069 return sched_get_priority_max ();
43070   ;
43071   return 0;
43072 }
43073 _ACEOF
43074 rm -f conftest.$ac_objext conftest$ac_exeext
43075 if { (ac_try="$ac_link"
43076 case "(($ac_try" in
43077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43078   *) ac_try_echo=$ac_try;;
43079 esac
43080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43081   (eval "$ac_link") 2>conftest.er1
43082   ac_status=$?
43083   grep -v '^ *+' conftest.er1 >conftest.err
43084   rm -f conftest.er1
43085   cat conftest.err >&5
43086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43087   (exit $ac_status); } && {
43088          test -z "$ac_c_werror_flag" ||
43089          test ! -s conftest.err
43090        } && test -s conftest$ac_exeext &&
43091        $as_test_x conftest$ac_exeext; then
43092   ac_cv_lib_posix4_sched_get_priority_max=yes
43093 else
43094   echo "$as_me: failed program was:" >&5
43095 sed 's/^/| /' conftest.$ac_ext >&5
43096
43097         ac_cv_lib_posix4_sched_get_priority_max=no
43098 fi
43099
43100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43101       conftest$ac_exeext conftest.$ac_ext
43102 LIBS=$ac_check_lib_save_LIBS
43103 fi
43104 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
43105 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
43106 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
43107
43108                                 HAVE_PRIOR_FUNCS=1
43109                                 POSIX4_LINK=" -lposix4"
43110
43111 fi
43112
43113
43114 fi
43115
43116
43117 fi
43118
43119
43120 fi
43121
43122
43123       if test "$HAVE_PRIOR_FUNCS" = 1; then
43124         cat >>confdefs.h <<\_ACEOF
43125 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
43126 _ACEOF
43127
43128       else
43129         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
43130 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
43131       fi
43132
43133       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
43134 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
43135 if test "${ac_cv_func_pthread_cancel+set}" = set; then
43136   echo $ECHO_N "(cached) $ECHO_C" >&6
43137 else
43138   cat >conftest.$ac_ext <<_ACEOF
43139 /* confdefs.h.  */
43140 _ACEOF
43141 cat confdefs.h >>conftest.$ac_ext
43142 cat >>conftest.$ac_ext <<_ACEOF
43143 /* end confdefs.h.  */
43144 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
43145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43146 #define pthread_cancel innocuous_pthread_cancel
43147
43148 /* System header to define __stub macros and hopefully few prototypes,
43149     which can conflict with char pthread_cancel (); below.
43150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43151     <limits.h> exists even on freestanding compilers.  */
43152
43153 #ifdef __STDC__
43154 # include <limits.h>
43155 #else
43156 # include <assert.h>
43157 #endif
43158
43159 #undef pthread_cancel
43160
43161 /* Override any GCC internal prototype to avoid an error.
43162    Use char because int might match the return type of a GCC
43163    builtin and then its argument prototype would still apply.  */
43164 #ifdef __cplusplus
43165 extern "C"
43166 #endif
43167 char pthread_cancel ();
43168 /* The GNU C library defines this for functions which it implements
43169     to always fail with ENOSYS.  Some functions are actually named
43170     something starting with __ and the normal name is an alias.  */
43171 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
43172 choke me
43173 #endif
43174
43175 int
43176 main ()
43177 {
43178 return pthread_cancel ();
43179   ;
43180   return 0;
43181 }
43182 _ACEOF
43183 rm -f conftest.$ac_objext conftest$ac_exeext
43184 if { (ac_try="$ac_link"
43185 case "(($ac_try" in
43186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43187   *) ac_try_echo=$ac_try;;
43188 esac
43189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43190   (eval "$ac_link") 2>conftest.er1
43191   ac_status=$?
43192   grep -v '^ *+' conftest.er1 >conftest.err
43193   rm -f conftest.er1
43194   cat conftest.err >&5
43195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43196   (exit $ac_status); } && {
43197          test -z "$ac_c_werror_flag" ||
43198          test ! -s conftest.err
43199        } && test -s conftest$ac_exeext &&
43200        $as_test_x conftest$ac_exeext; then
43201   ac_cv_func_pthread_cancel=yes
43202 else
43203   echo "$as_me: failed program was:" >&5
43204 sed 's/^/| /' conftest.$ac_ext >&5
43205
43206         ac_cv_func_pthread_cancel=no
43207 fi
43208
43209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43210       conftest$ac_exeext conftest.$ac_ext
43211 fi
43212 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
43213 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
43214 if test $ac_cv_func_pthread_cancel = yes; then
43215   cat >>confdefs.h <<\_ACEOF
43216 #define HAVE_PTHREAD_CANCEL 1
43217 _ACEOF
43218
43219 else
43220   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
43221 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
43222 fi
43223
43224
43225       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
43226 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
43227 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
43228   echo $ECHO_N "(cached) $ECHO_C" >&6
43229 else
43230   cat >conftest.$ac_ext <<_ACEOF
43231 /* confdefs.h.  */
43232 _ACEOF
43233 cat confdefs.h >>conftest.$ac_ext
43234 cat >>conftest.$ac_ext <<_ACEOF
43235 /* end confdefs.h.  */
43236 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
43237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43238 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
43239
43240 /* System header to define __stub macros and hopefully few prototypes,
43241     which can conflict with char pthread_mutex_timedlock (); below.
43242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43243     <limits.h> exists even on freestanding compilers.  */
43244
43245 #ifdef __STDC__
43246 # include <limits.h>
43247 #else
43248 # include <assert.h>
43249 #endif
43250
43251 #undef pthread_mutex_timedlock
43252
43253 /* Override any GCC internal prototype to avoid an error.
43254    Use char because int might match the return type of a GCC
43255    builtin and then its argument prototype would still apply.  */
43256 #ifdef __cplusplus
43257 extern "C"
43258 #endif
43259 char pthread_mutex_timedlock ();
43260 /* The GNU C library defines this for functions which it implements
43261     to always fail with ENOSYS.  Some functions are actually named
43262     something starting with __ and the normal name is an alias.  */
43263 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
43264 choke me
43265 #endif
43266
43267 int
43268 main ()
43269 {
43270 return pthread_mutex_timedlock ();
43271   ;
43272   return 0;
43273 }
43274 _ACEOF
43275 rm -f conftest.$ac_objext conftest$ac_exeext
43276 if { (ac_try="$ac_link"
43277 case "(($ac_try" in
43278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43279   *) ac_try_echo=$ac_try;;
43280 esac
43281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43282   (eval "$ac_link") 2>conftest.er1
43283   ac_status=$?
43284   grep -v '^ *+' conftest.er1 >conftest.err
43285   rm -f conftest.er1
43286   cat conftest.err >&5
43287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43288   (exit $ac_status); } && {
43289          test -z "$ac_c_werror_flag" ||
43290          test ! -s conftest.err
43291        } && test -s conftest$ac_exeext &&
43292        $as_test_x conftest$ac_exeext; then
43293   ac_cv_func_pthread_mutex_timedlock=yes
43294 else
43295   echo "$as_me: failed program was:" >&5
43296 sed 's/^/| /' conftest.$ac_ext >&5
43297
43298         ac_cv_func_pthread_mutex_timedlock=no
43299 fi
43300
43301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43302       conftest$ac_exeext conftest.$ac_ext
43303 fi
43304 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
43305 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
43306 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
43307   cat >>confdefs.h <<\_ACEOF
43308 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
43309 _ACEOF
43310
43311 else
43312   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
43313 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
43314 fi
43315
43316
43317       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
43318 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
43319 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
43320   echo $ECHO_N "(cached) $ECHO_C" >&6
43321 else
43322   cat >conftest.$ac_ext <<_ACEOF
43323 /* confdefs.h.  */
43324 _ACEOF
43325 cat confdefs.h >>conftest.$ac_ext
43326 cat >>conftest.$ac_ext <<_ACEOF
43327 /* end confdefs.h.  */
43328 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
43329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43330 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
43331
43332 /* System header to define __stub macros and hopefully few prototypes,
43333     which can conflict with char pthread_attr_setstacksize (); below.
43334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43335     <limits.h> exists even on freestanding compilers.  */
43336
43337 #ifdef __STDC__
43338 # include <limits.h>
43339 #else
43340 # include <assert.h>
43341 #endif
43342
43343 #undef pthread_attr_setstacksize
43344
43345 /* Override any GCC internal prototype to avoid an error.
43346    Use char because int might match the return type of a GCC
43347    builtin and then its argument prototype would still apply.  */
43348 #ifdef __cplusplus
43349 extern "C"
43350 #endif
43351 char pthread_attr_setstacksize ();
43352 /* The GNU C library defines this for functions which it implements
43353     to always fail with ENOSYS.  Some functions are actually named
43354     something starting with __ and the normal name is an alias.  */
43355 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
43356 choke me
43357 #endif
43358
43359 int
43360 main ()
43361 {
43362 return pthread_attr_setstacksize ();
43363   ;
43364   return 0;
43365 }
43366 _ACEOF
43367 rm -f conftest.$ac_objext conftest$ac_exeext
43368 if { (ac_try="$ac_link"
43369 case "(($ac_try" in
43370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43371   *) ac_try_echo=$ac_try;;
43372 esac
43373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43374   (eval "$ac_link") 2>conftest.er1
43375   ac_status=$?
43376   grep -v '^ *+' conftest.er1 >conftest.err
43377   rm -f conftest.er1
43378   cat conftest.err >&5
43379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43380   (exit $ac_status); } && {
43381          test -z "$ac_c_werror_flag" ||
43382          test ! -s conftest.err
43383        } && test -s conftest$ac_exeext &&
43384        $as_test_x conftest$ac_exeext; then
43385   ac_cv_func_pthread_attr_setstacksize=yes
43386 else
43387   echo "$as_me: failed program was:" >&5
43388 sed 's/^/| /' conftest.$ac_ext >&5
43389
43390         ac_cv_func_pthread_attr_setstacksize=no
43391 fi
43392
43393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43394       conftest$ac_exeext conftest.$ac_ext
43395 fi
43396 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
43397 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
43398 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
43399   cat >>confdefs.h <<\_ACEOF
43400 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
43401 _ACEOF
43402
43403 fi
43404
43405
43406
43407       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
43408 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
43409 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
43410   echo $ECHO_N "(cached) $ECHO_C" >&6
43411 else
43412
43413         cat >conftest.$ac_ext <<_ACEOF
43414 /* confdefs.h.  */
43415 _ACEOF
43416 cat confdefs.h >>conftest.$ac_ext
43417 cat >>conftest.$ac_ext <<_ACEOF
43418 /* end confdefs.h.  */
43419 #include <pthread.h>
43420 int
43421 main ()
43422 {
43423
43424                pthread_mutexattr_t attr;
43425                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
43426
43427   ;
43428   return 0;
43429 }
43430 _ACEOF
43431 rm -f conftest.$ac_objext
43432 if { (ac_try="$ac_compile"
43433 case "(($ac_try" in
43434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43435   *) ac_try_echo=$ac_try;;
43436 esac
43437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43438   (eval "$ac_compile") 2>conftest.er1
43439   ac_status=$?
43440   grep -v '^ *+' conftest.er1 >conftest.err
43441   rm -f conftest.er1
43442   cat conftest.err >&5
43443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43444   (exit $ac_status); } && {
43445          test -z "$ac_c_werror_flag" ||
43446          test ! -s conftest.err
43447        } && test -s conftest.$ac_objext; then
43448   wx_cv_type_pthread_mutexattr_t=yes
43449 else
43450   echo "$as_me: failed program was:" >&5
43451 sed 's/^/| /' conftest.$ac_ext >&5
43452
43453         wx_cv_type_pthread_mutexattr_t=no
43454
43455 fi
43456
43457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43458
43459 fi
43460 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
43461 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
43462
43463       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
43464         cat >>confdefs.h <<\_ACEOF
43465 #define HAVE_PTHREAD_MUTEXATTR_T 1
43466 _ACEOF
43467
43468
43469                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
43470 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
43471 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
43472   echo $ECHO_N "(cached) $ECHO_C" >&6
43473 else
43474
43475                        cat >conftest.$ac_ext <<_ACEOF
43476 /* confdefs.h.  */
43477 _ACEOF
43478 cat confdefs.h >>conftest.$ac_ext
43479 cat >>conftest.$ac_ext <<_ACEOF
43480 /* end confdefs.h.  */
43481 #include <pthread.h>
43482 int
43483 main ()
43484 {
43485
43486                                pthread_mutexattr_t attr;
43487                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
43488
43489   ;
43490   return 0;
43491 }
43492 _ACEOF
43493 rm -f conftest.$ac_objext
43494 if { (ac_try="$ac_compile"
43495 case "(($ac_try" in
43496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43497   *) ac_try_echo=$ac_try;;
43498 esac
43499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43500   (eval "$ac_compile") 2>conftest.er1
43501   ac_status=$?
43502   grep -v '^ *+' conftest.er1 >conftest.err
43503   rm -f conftest.er1
43504   cat conftest.err >&5
43505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506   (exit $ac_status); } && {
43507          test -z "$ac_c_werror_flag" ||
43508          test ! -s conftest.err
43509        } && test -s conftest.$ac_objext; then
43510   wx_cv_func_pthread_mutexattr_settype_decl=yes
43511 else
43512   echo "$as_me: failed program was:" >&5
43513 sed 's/^/| /' conftest.$ac_ext >&5
43514
43515         wx_cv_func_pthread_mutexattr_settype_decl=no
43516
43517 fi
43518
43519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43520
43521 fi
43522 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
43523 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
43524         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
43525             cat >>confdefs.h <<\_ACEOF
43526 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
43527 _ACEOF
43528
43529         fi
43530       else
43531                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
43532 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
43533 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
43534   echo $ECHO_N "(cached) $ECHO_C" >&6
43535 else
43536
43537             cat >conftest.$ac_ext <<_ACEOF
43538 /* confdefs.h.  */
43539 _ACEOF
43540 cat confdefs.h >>conftest.$ac_ext
43541 cat >>conftest.$ac_ext <<_ACEOF
43542 /* end confdefs.h.  */
43543 #include <pthread.h>
43544 int
43545 main ()
43546 {
43547
43548                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
43549
43550   ;
43551   return 0;
43552 }
43553 _ACEOF
43554 rm -f conftest.$ac_objext
43555 if { (ac_try="$ac_compile"
43556 case "(($ac_try" in
43557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43558   *) ac_try_echo=$ac_try;;
43559 esac
43560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43561   (eval "$ac_compile") 2>conftest.er1
43562   ac_status=$?
43563   grep -v '^ *+' conftest.er1 >conftest.err
43564   rm -f conftest.er1
43565   cat conftest.err >&5
43566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43567   (exit $ac_status); } && {
43568          test -z "$ac_c_werror_flag" ||
43569          test ! -s conftest.err
43570        } && test -s conftest.$ac_objext; then
43571
43572                     wx_cv_type_pthread_rec_mutex_init=yes
43573
43574 else
43575   echo "$as_me: failed program was:" >&5
43576 sed 's/^/| /' conftest.$ac_ext >&5
43577
43578
43579                     wx_cv_type_pthread_rec_mutex_init=no
43580
43581
43582 fi
43583
43584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43585
43586 fi
43587 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
43588 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
43589         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
43590           cat >>confdefs.h <<\_ACEOF
43591 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
43592 _ACEOF
43593
43594         else
43595                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
43596 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
43597         fi
43598       fi
43599     fi
43600
43601 else
43602     if test "$wxUSE_THREADS" = "yes" ; then
43603       case "${host}" in
43604         *-*-mingw32* )
43605                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
43606 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
43607 if test "${wx_cv_cflags_mthread+set}" = set; then
43608   echo $ECHO_N "(cached) $ECHO_C" >&6
43609 else
43610
43611                     CFLAGS_OLD="$CFLAGS"
43612                     CFLAGS="-mthreads $CFLAGS"
43613                     cat >conftest.$ac_ext <<_ACEOF
43614 /* confdefs.h.  */
43615 _ACEOF
43616 cat confdefs.h >>conftest.$ac_ext
43617 cat >>conftest.$ac_ext <<_ACEOF
43618 /* end confdefs.h.  */
43619
43620 int
43621 main ()
43622 {
43623
43624   ;
43625   return 0;
43626 }
43627 _ACEOF
43628 rm -f conftest.$ac_objext
43629 if { (ac_try="$ac_compile"
43630 case "(($ac_try" in
43631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43632   *) ac_try_echo=$ac_try;;
43633 esac
43634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43635   (eval "$ac_compile") 2>conftest.er1
43636   ac_status=$?
43637   grep -v '^ *+' conftest.er1 >conftest.err
43638   rm -f conftest.er1
43639   cat conftest.err >&5
43640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43641   (exit $ac_status); } && {
43642          test -z "$ac_c_werror_flag" ||
43643          test ! -s conftest.err
43644        } && test -s conftest.$ac_objext; then
43645   wx_cv_cflags_mthread=yes
43646 else
43647   echo "$as_me: failed program was:" >&5
43648 sed 's/^/| /' conftest.$ac_ext >&5
43649
43650         wx_cv_cflags_mthread=no
43651
43652 fi
43653
43654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43655
43656
43657 fi
43658 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
43659 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
43660
43661             if test "$wx_cv_cflags_mthread" = "yes"; then
43662                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
43663                 LDFLAGS="$LDFLAGS -mthreads"
43664             else
43665                                 CFLAGS="$CFLAGS_OLD"
43666             fi
43667         ;;
43668         *-pc-os2*emx )
43669             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
43670             LDFLAGS="$LDFLAGS -Zmt"
43671         ;;
43672       esac
43673     fi
43674 fi
43675
43676 { echo "$as_me:$LINENO: checking for localtime_r" >&5
43677 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
43678 if test "${ac_cv_func_localtime_r+set}" = set; then
43679   echo $ECHO_N "(cached) $ECHO_C" >&6
43680 else
43681   cat >conftest.$ac_ext <<_ACEOF
43682 /* confdefs.h.  */
43683 _ACEOF
43684 cat confdefs.h >>conftest.$ac_ext
43685 cat >>conftest.$ac_ext <<_ACEOF
43686 /* end confdefs.h.  */
43687 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
43688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43689 #define localtime_r innocuous_localtime_r
43690
43691 /* System header to define __stub macros and hopefully few prototypes,
43692     which can conflict with char localtime_r (); below.
43693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43694     <limits.h> exists even on freestanding compilers.  */
43695
43696 #ifdef __STDC__
43697 # include <limits.h>
43698 #else
43699 # include <assert.h>
43700 #endif
43701
43702 #undef localtime_r
43703
43704 /* Override any GCC internal prototype to avoid an error.
43705    Use char because int might match the return type of a GCC
43706    builtin and then its argument prototype would still apply.  */
43707 #ifdef __cplusplus
43708 extern "C"
43709 #endif
43710 char localtime_r ();
43711 /* The GNU C library defines this for functions which it implements
43712     to always fail with ENOSYS.  Some functions are actually named
43713     something starting with __ and the normal name is an alias.  */
43714 #if defined __stub_localtime_r || defined __stub___localtime_r
43715 choke me
43716 #endif
43717
43718 int
43719 main ()
43720 {
43721 return localtime_r ();
43722   ;
43723   return 0;
43724 }
43725 _ACEOF
43726 rm -f conftest.$ac_objext conftest$ac_exeext
43727 if { (ac_try="$ac_link"
43728 case "(($ac_try" in
43729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43730   *) ac_try_echo=$ac_try;;
43731 esac
43732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43733   (eval "$ac_link") 2>conftest.er1
43734   ac_status=$?
43735   grep -v '^ *+' conftest.er1 >conftest.err
43736   rm -f conftest.er1
43737   cat conftest.err >&5
43738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43739   (exit $ac_status); } && {
43740          test -z "$ac_c_werror_flag" ||
43741          test ! -s conftest.err
43742        } && test -s conftest$ac_exeext &&
43743        $as_test_x conftest$ac_exeext; then
43744   ac_cv_func_localtime_r=yes
43745 else
43746   echo "$as_me: failed program was:" >&5
43747 sed 's/^/| /' conftest.$ac_ext >&5
43748
43749         ac_cv_func_localtime_r=no
43750 fi
43751
43752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43753       conftest$ac_exeext conftest.$ac_ext
43754 fi
43755 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
43756 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
43757 if test $ac_cv_func_localtime_r = yes; then
43758    cat >>confdefs.h <<\_ACEOF
43759 #define HAVE_LOCALTIME_R 1
43760 _ACEOF
43761
43762 fi
43763
43764 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
43765 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
43766 if test "${ac_cv_func_gmtime_r+set}" = set; then
43767   echo $ECHO_N "(cached) $ECHO_C" >&6
43768 else
43769   cat >conftest.$ac_ext <<_ACEOF
43770 /* confdefs.h.  */
43771 _ACEOF
43772 cat confdefs.h >>conftest.$ac_ext
43773 cat >>conftest.$ac_ext <<_ACEOF
43774 /* end confdefs.h.  */
43775 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
43776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43777 #define gmtime_r innocuous_gmtime_r
43778
43779 /* System header to define __stub macros and hopefully few prototypes,
43780     which can conflict with char gmtime_r (); below.
43781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43782     <limits.h> exists even on freestanding compilers.  */
43783
43784 #ifdef __STDC__
43785 # include <limits.h>
43786 #else
43787 # include <assert.h>
43788 #endif
43789
43790 #undef gmtime_r
43791
43792 /* Override any GCC internal prototype to avoid an error.
43793    Use char because int might match the return type of a GCC
43794    builtin and then its argument prototype would still apply.  */
43795 #ifdef __cplusplus
43796 extern "C"
43797 #endif
43798 char gmtime_r ();
43799 /* The GNU C library defines this for functions which it implements
43800     to always fail with ENOSYS.  Some functions are actually named
43801     something starting with __ and the normal name is an alias.  */
43802 #if defined __stub_gmtime_r || defined __stub___gmtime_r
43803 choke me
43804 #endif
43805
43806 int
43807 main ()
43808 {
43809 return gmtime_r ();
43810   ;
43811   return 0;
43812 }
43813 _ACEOF
43814 rm -f conftest.$ac_objext conftest$ac_exeext
43815 if { (ac_try="$ac_link"
43816 case "(($ac_try" in
43817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43818   *) ac_try_echo=$ac_try;;
43819 esac
43820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43821   (eval "$ac_link") 2>conftest.er1
43822   ac_status=$?
43823   grep -v '^ *+' conftest.er1 >conftest.err
43824   rm -f conftest.er1
43825   cat conftest.err >&5
43826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43827   (exit $ac_status); } && {
43828          test -z "$ac_c_werror_flag" ||
43829          test ! -s conftest.err
43830        } && test -s conftest$ac_exeext &&
43831        $as_test_x conftest$ac_exeext; then
43832   ac_cv_func_gmtime_r=yes
43833 else
43834   echo "$as_me: failed program was:" >&5
43835 sed 's/^/| /' conftest.$ac_ext >&5
43836
43837         ac_cv_func_gmtime_r=no
43838 fi
43839
43840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43841       conftest$ac_exeext conftest.$ac_ext
43842 fi
43843 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
43844 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
43845 if test $ac_cv_func_gmtime_r = yes; then
43846    cat >>confdefs.h <<\_ACEOF
43847 #define HAVE_GMTIME_R 1
43848 _ACEOF
43849
43850 fi
43851
43852 { echo "$as_me:$LINENO: checking for readdir_r" >&5
43853 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
43854 if test "${ac_cv_func_readdir_r+set}" = set; then
43855   echo $ECHO_N "(cached) $ECHO_C" >&6
43856 else
43857   cat >conftest.$ac_ext <<_ACEOF
43858 /* confdefs.h.  */
43859 _ACEOF
43860 cat confdefs.h >>conftest.$ac_ext
43861 cat >>conftest.$ac_ext <<_ACEOF
43862 /* end confdefs.h.  */
43863 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
43864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43865 #define readdir_r innocuous_readdir_r
43866
43867 /* System header to define __stub macros and hopefully few prototypes,
43868     which can conflict with char readdir_r (); below.
43869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43870     <limits.h> exists even on freestanding compilers.  */
43871
43872 #ifdef __STDC__
43873 # include <limits.h>
43874 #else
43875 # include <assert.h>
43876 #endif
43877
43878 #undef readdir_r
43879
43880 /* Override any GCC internal prototype to avoid an error.
43881    Use char because int might match the return type of a GCC
43882    builtin and then its argument prototype would still apply.  */
43883 #ifdef __cplusplus
43884 extern "C"
43885 #endif
43886 char readdir_r ();
43887 /* The GNU C library defines this for functions which it implements
43888     to always fail with ENOSYS.  Some functions are actually named
43889     something starting with __ and the normal name is an alias.  */
43890 #if defined __stub_readdir_r || defined __stub___readdir_r
43891 choke me
43892 #endif
43893
43894 int
43895 main ()
43896 {
43897 return readdir_r ();
43898   ;
43899   return 0;
43900 }
43901 _ACEOF
43902 rm -f conftest.$ac_objext conftest$ac_exeext
43903 if { (ac_try="$ac_link"
43904 case "(($ac_try" in
43905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43906   *) ac_try_echo=$ac_try;;
43907 esac
43908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43909   (eval "$ac_link") 2>conftest.er1
43910   ac_status=$?
43911   grep -v '^ *+' conftest.er1 >conftest.err
43912   rm -f conftest.er1
43913   cat conftest.err >&5
43914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43915   (exit $ac_status); } && {
43916          test -z "$ac_c_werror_flag" ||
43917          test ! -s conftest.err
43918        } && test -s conftest$ac_exeext &&
43919        $as_test_x conftest$ac_exeext; then
43920   ac_cv_func_readdir_r=yes
43921 else
43922   echo "$as_me: failed program was:" >&5
43923 sed 's/^/| /' conftest.$ac_ext >&5
43924
43925         ac_cv_func_readdir_r=no
43926 fi
43927
43928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43929       conftest$ac_exeext conftest.$ac_ext
43930 fi
43931 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
43932 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
43933 if test $ac_cv_func_readdir_r = yes; then
43934    cat >>confdefs.h <<\_ACEOF
43935 #define HAVE_READDIR_R 1
43936 _ACEOF
43937
43938 fi
43939
43940
43941
43942
43943     ac_ext=c
43944 ac_cpp='$CPP $CPPFLAGS'
43945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43948
43949     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
43950 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
43951
43952     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
43953   echo $ECHO_N "(cached) $ECHO_C" >&6
43954 else
43955
43956
43957 ################################################################
43958
43959 ac_cv_func_which_gethostbyname_r=unknown
43960
43961 #
43962 # ONE ARGUMENT (sanity check)
43963 #
43964
43965 # This should fail, as there is no variant of gethostbyname_r() that takes
43966 # a single argument. If it actually compiles, then we can assume that
43967 # netdb.h is not declaring the function, and the compiler is thereby
43968 # assuming an implicit prototype. In which case, we're out of luck.
43969 #
43970 cat >conftest.$ac_ext <<_ACEOF
43971 /* confdefs.h.  */
43972 _ACEOF
43973 cat confdefs.h >>conftest.$ac_ext
43974 cat >>conftest.$ac_ext <<_ACEOF
43975 /* end confdefs.h.  */
43976 #include <netdb.h>
43977 int
43978 main ()
43979 {
43980
43981             char *name = "www.gnu.org";
43982             (void)gethostbyname_r(name) /* ; */
43983
43984   ;
43985   return 0;
43986 }
43987 _ACEOF
43988 rm -f conftest.$ac_objext
43989 if { (ac_try="$ac_compile"
43990 case "(($ac_try" in
43991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43992   *) ac_try_echo=$ac_try;;
43993 esac
43994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43995   (eval "$ac_compile") 2>conftest.er1
43996   ac_status=$?
43997   grep -v '^ *+' conftest.er1 >conftest.err
43998   rm -f conftest.er1
43999   cat conftest.err >&5
44000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44001   (exit $ac_status); } && {
44002          test -z "$ac_c_werror_flag" ||
44003          test ! -s conftest.err
44004        } && test -s conftest.$ac_objext; then
44005   ac_cv_func_which_gethostbyname_r=no
44006 else
44007   echo "$as_me: failed program was:" >&5
44008 sed 's/^/| /' conftest.$ac_ext >&5
44009
44010
44011 fi
44012
44013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44014
44015 #
44016 # SIX ARGUMENTS
44017 # (e.g. Linux)
44018 #
44019
44020 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44021
44022 cat >conftest.$ac_ext <<_ACEOF
44023 /* confdefs.h.  */
44024 _ACEOF
44025 cat confdefs.h >>conftest.$ac_ext
44026 cat >>conftest.$ac_ext <<_ACEOF
44027 /* end confdefs.h.  */
44028 #include <netdb.h>
44029 int
44030 main ()
44031 {
44032
44033             char *name = "www.gnu.org";
44034             struct hostent ret, *retp;
44035             char buf[1024];
44036             int buflen = 1024;
44037             int my_h_errno;
44038             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
44039
44040   ;
44041   return 0;
44042 }
44043 _ACEOF
44044 rm -f conftest.$ac_objext
44045 if { (ac_try="$ac_compile"
44046 case "(($ac_try" in
44047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44048   *) ac_try_echo=$ac_try;;
44049 esac
44050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44051   (eval "$ac_compile") 2>conftest.er1
44052   ac_status=$?
44053   grep -v '^ *+' conftest.er1 >conftest.err
44054   rm -f conftest.er1
44055   cat conftest.err >&5
44056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44057   (exit $ac_status); } && {
44058          test -z "$ac_c_werror_flag" ||
44059          test ! -s conftest.err
44060        } && test -s conftest.$ac_objext; then
44061   ac_cv_func_which_gethostbyname_r=six
44062 else
44063   echo "$as_me: failed program was:" >&5
44064 sed 's/^/| /' conftest.$ac_ext >&5
44065
44066
44067 fi
44068
44069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44070
44071 fi
44072
44073 #
44074 # FIVE ARGUMENTS
44075 # (e.g. Solaris)
44076 #
44077
44078 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44079
44080 cat >conftest.$ac_ext <<_ACEOF
44081 /* confdefs.h.  */
44082 _ACEOF
44083 cat confdefs.h >>conftest.$ac_ext
44084 cat >>conftest.$ac_ext <<_ACEOF
44085 /* end confdefs.h.  */
44086 #include <netdb.h>
44087 int
44088 main ()
44089 {
44090
44091             char *name = "www.gnu.org";
44092             struct hostent ret;
44093             char buf[1024];
44094             int buflen = 1024;
44095             int my_h_errno;
44096             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
44097
44098   ;
44099   return 0;
44100 }
44101 _ACEOF
44102 rm -f conftest.$ac_objext
44103 if { (ac_try="$ac_compile"
44104 case "(($ac_try" in
44105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44106   *) ac_try_echo=$ac_try;;
44107 esac
44108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44109   (eval "$ac_compile") 2>conftest.er1
44110   ac_status=$?
44111   grep -v '^ *+' conftest.er1 >conftest.err
44112   rm -f conftest.er1
44113   cat conftest.err >&5
44114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115   (exit $ac_status); } && {
44116          test -z "$ac_c_werror_flag" ||
44117          test ! -s conftest.err
44118        } && test -s conftest.$ac_objext; then
44119   ac_cv_func_which_gethostbyname_r=five
44120 else
44121   echo "$as_me: failed program was:" >&5
44122 sed 's/^/| /' conftest.$ac_ext >&5
44123
44124
44125 fi
44126
44127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44128
44129 fi
44130
44131 #
44132 # THREE ARGUMENTS
44133 # (e.g. AIX, HP-UX, Tru64)
44134 #
44135
44136 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
44137
44138 cat >conftest.$ac_ext <<_ACEOF
44139 /* confdefs.h.  */
44140 _ACEOF
44141 cat confdefs.h >>conftest.$ac_ext
44142 cat >>conftest.$ac_ext <<_ACEOF
44143 /* end confdefs.h.  */
44144 #include <netdb.h>
44145 int
44146 main ()
44147 {
44148
44149             char *name = "www.gnu.org";
44150             struct hostent ret;
44151             struct hostent_data data;
44152             (void)gethostbyname_r(name, &ret, &data) /* ; */
44153
44154   ;
44155   return 0;
44156 }
44157 _ACEOF
44158 rm -f conftest.$ac_objext
44159 if { (ac_try="$ac_compile"
44160 case "(($ac_try" in
44161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44162   *) ac_try_echo=$ac_try;;
44163 esac
44164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44165   (eval "$ac_compile") 2>conftest.er1
44166   ac_status=$?
44167   grep -v '^ *+' conftest.er1 >conftest.err
44168   rm -f conftest.er1
44169   cat conftest.err >&5
44170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44171   (exit $ac_status); } && {
44172          test -z "$ac_c_werror_flag" ||
44173          test ! -s conftest.err
44174        } && test -s conftest.$ac_objext; then
44175   ac_cv_func_which_gethostbyname_r=three
44176 else
44177   echo "$as_me: failed program was:" >&5
44178 sed 's/^/| /' conftest.$ac_ext >&5
44179
44180
44181 fi
44182
44183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44184
44185 fi
44186
44187 ################################################################
44188
44189
44190 fi
44191
44192 case "$ac_cv_func_which_gethostbyname_r" in
44193     three)
44194     { echo "$as_me:$LINENO: result: three" >&5
44195 echo "${ECHO_T}three" >&6; }
44196     cat >>confdefs.h <<\_ACEOF
44197 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
44198 _ACEOF
44199
44200     ;;
44201
44202     five)
44203     { echo "$as_me:$LINENO: result: five" >&5
44204 echo "${ECHO_T}five" >&6; }
44205     cat >>confdefs.h <<\_ACEOF
44206 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
44207 _ACEOF
44208
44209     ;;
44210
44211     six)
44212     { echo "$as_me:$LINENO: result: six" >&5
44213 echo "${ECHO_T}six" >&6; }
44214     cat >>confdefs.h <<\_ACEOF
44215 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
44216 _ACEOF
44217
44218     ;;
44219
44220     no)
44221     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
44222 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
44223     ;;
44224
44225     unknown)
44226     { echo "$as_me:$LINENO: result: can't tell" >&5
44227 echo "${ECHO_T}can't tell" >&6; }
44228     ;;
44229
44230     *)
44231     { { echo "$as_me:$LINENO: error: internal error" >&5
44232 echo "$as_me: error: internal error" >&2;}
44233    { (exit 1); exit 1; }; }
44234     ;;
44235 esac
44236
44237 ac_ext=c
44238 ac_cpp='$CPP $CPPFLAGS'
44239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44242
44243
44244
44245       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
44246               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
44247           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
44248 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
44249 if test "${ac_cv_func_gethostbyname+set}" = set; then
44250   echo $ECHO_N "(cached) $ECHO_C" >&6
44251 else
44252   cat >conftest.$ac_ext <<_ACEOF
44253 /* confdefs.h.  */
44254 _ACEOF
44255 cat confdefs.h >>conftest.$ac_ext
44256 cat >>conftest.$ac_ext <<_ACEOF
44257 /* end confdefs.h.  */
44258 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
44259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44260 #define gethostbyname innocuous_gethostbyname
44261
44262 /* System header to define __stub macros and hopefully few prototypes,
44263     which can conflict with char gethostbyname (); below.
44264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44265     <limits.h> exists even on freestanding compilers.  */
44266
44267 #ifdef __STDC__
44268 # include <limits.h>
44269 #else
44270 # include <assert.h>
44271 #endif
44272
44273 #undef gethostbyname
44274
44275 /* Override any GCC internal prototype to avoid an error.
44276    Use char because int might match the return type of a GCC
44277    builtin and then its argument prototype would still apply.  */
44278 #ifdef __cplusplus
44279 extern "C"
44280 #endif
44281 char gethostbyname ();
44282 /* The GNU C library defines this for functions which it implements
44283     to always fail with ENOSYS.  Some functions are actually named
44284     something starting with __ and the normal name is an alias.  */
44285 #if defined __stub_gethostbyname || defined __stub___gethostbyname
44286 choke me
44287 #endif
44288
44289 int
44290 main ()
44291 {
44292 return gethostbyname ();
44293   ;
44294   return 0;
44295 }
44296 _ACEOF
44297 rm -f conftest.$ac_objext conftest$ac_exeext
44298 if { (ac_try="$ac_link"
44299 case "(($ac_try" in
44300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44301   *) ac_try_echo=$ac_try;;
44302 esac
44303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44304   (eval "$ac_link") 2>conftest.er1
44305   ac_status=$?
44306   grep -v '^ *+' conftest.er1 >conftest.err
44307   rm -f conftest.er1
44308   cat conftest.err >&5
44309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44310   (exit $ac_status); } && {
44311          test -z "$ac_c_werror_flag" ||
44312          test ! -s conftest.err
44313        } && test -s conftest$ac_exeext &&
44314        $as_test_x conftest$ac_exeext; then
44315   ac_cv_func_gethostbyname=yes
44316 else
44317   echo "$as_me: failed program was:" >&5
44318 sed 's/^/| /' conftest.$ac_ext >&5
44319
44320         ac_cv_func_gethostbyname=no
44321 fi
44322
44323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44324       conftest$ac_exeext conftest.$ac_ext
44325 fi
44326 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
44327 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
44328 if test $ac_cv_func_gethostbyname = yes; then
44329    cat >>confdefs.h <<\_ACEOF
44330 #define HAVE_GETHOSTBYNAME 1
44331 _ACEOF
44332
44333 fi
44334
44335       fi
44336
44337 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
44338 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
44339 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
44340   echo $ECHO_N "(cached) $ECHO_C" >&6
44341 else
44342
44343                 ac_ext=cpp
44344 ac_cpp='$CXXCPP $CPPFLAGS'
44345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44348
44349
44350         cat >conftest.$ac_ext <<_ACEOF
44351 /* confdefs.h.  */
44352 _ACEOF
44353 cat confdefs.h >>conftest.$ac_ext
44354 cat >>conftest.$ac_ext <<_ACEOF
44355 /* end confdefs.h.  */
44356 #include <netdb.h>
44357 int
44358 main ()
44359 {
44360
44361                 char *name;
44362                 char *proto;
44363                 struct servent *se, *res;
44364                 char buffer[2048];
44365                 int buflen = 2048;
44366                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
44367
44368   ;
44369   return 0;
44370 }
44371 _ACEOF
44372 rm -f conftest.$ac_objext
44373 if { (ac_try="$ac_compile"
44374 case "(($ac_try" in
44375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44376   *) ac_try_echo=$ac_try;;
44377 esac
44378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44379   (eval "$ac_compile") 2>conftest.er1
44380   ac_status=$?
44381   grep -v '^ *+' conftest.er1 >conftest.err
44382   rm -f conftest.er1
44383   cat conftest.err >&5
44384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44385   (exit $ac_status); } && {
44386          test -z "$ac_cxx_werror_flag" ||
44387          test ! -s conftest.err
44388        } && test -s conftest.$ac_objext; then
44389   ac_cv_func_which_getservbyname_r=six
44390 else
44391   echo "$as_me: failed program was:" >&5
44392 sed 's/^/| /' conftest.$ac_ext >&5
44393
44394
44395                 cat >conftest.$ac_ext <<_ACEOF
44396 /* confdefs.h.  */
44397 _ACEOF
44398 cat confdefs.h >>conftest.$ac_ext
44399 cat >>conftest.$ac_ext <<_ACEOF
44400 /* end confdefs.h.  */
44401 #include <netdb.h>
44402 int
44403 main ()
44404 {
44405
44406                         char *name;
44407                         char *proto;
44408                         struct servent *se;
44409                         char buffer[2048];
44410                         int buflen = 2048;
44411                         (void) getservbyname_r(name, proto, se, buffer, buflen)
44412
44413   ;
44414   return 0;
44415 }
44416 _ACEOF
44417 rm -f conftest.$ac_objext
44418 if { (ac_try="$ac_compile"
44419 case "(($ac_try" in
44420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44421   *) ac_try_echo=$ac_try;;
44422 esac
44423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44424   (eval "$ac_compile") 2>conftest.er1
44425   ac_status=$?
44426   grep -v '^ *+' conftest.er1 >conftest.err
44427   rm -f conftest.er1
44428   cat conftest.err >&5
44429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430   (exit $ac_status); } && {
44431          test -z "$ac_cxx_werror_flag" ||
44432          test ! -s conftest.err
44433        } && test -s conftest.$ac_objext; then
44434   ac_cv_func_which_getservbyname_r=five
44435 else
44436   echo "$as_me: failed program was:" >&5
44437 sed 's/^/| /' conftest.$ac_ext >&5
44438
44439
44440                         cat >conftest.$ac_ext <<_ACEOF
44441 /* confdefs.h.  */
44442 _ACEOF
44443 cat confdefs.h >>conftest.$ac_ext
44444 cat >>conftest.$ac_ext <<_ACEOF
44445 /* end confdefs.h.  */
44446 #include <netdb.h>
44447 int
44448 main ()
44449 {
44450
44451                                 char *name;
44452                                 char *proto;
44453                                 struct servent *se;
44454                                 struct servent_data data;
44455                                 (void) getservbyname_r(name, proto, se, &data);
44456
44457   ;
44458   return 0;
44459 }
44460 _ACEOF
44461 rm -f conftest.$ac_objext
44462 if { (ac_try="$ac_compile"
44463 case "(($ac_try" in
44464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44465   *) ac_try_echo=$ac_try;;
44466 esac
44467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44468   (eval "$ac_compile") 2>conftest.er1
44469   ac_status=$?
44470   grep -v '^ *+' conftest.er1 >conftest.err
44471   rm -f conftest.er1
44472   cat conftest.err >&5
44473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44474   (exit $ac_status); } && {
44475          test -z "$ac_cxx_werror_flag" ||
44476          test ! -s conftest.err
44477        } && test -s conftest.$ac_objext; then
44478   ac_cv_func_which_getservbyname_r=four
44479 else
44480   echo "$as_me: failed program was:" >&5
44481 sed 's/^/| /' conftest.$ac_ext >&5
44482
44483         ac_cv_func_which_getservbyname_r=no
44484
44485 fi
44486
44487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44488
44489
44490 fi
44491
44492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44493
44494
44495 fi
44496
44497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44498         ac_ext=c
44499 ac_cpp='$CPP $CPPFLAGS'
44500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44503
44504
44505
44506 fi
44507 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
44508 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
44509
44510 if test $ac_cv_func_which_getservbyname_r = six; then
44511   cat >>confdefs.h <<\_ACEOF
44512 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
44513 _ACEOF
44514
44515 elif test $ac_cv_func_which_getservbyname_r = five; then
44516   cat >>confdefs.h <<\_ACEOF
44517 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
44518 _ACEOF
44519
44520 elif test $ac_cv_func_which_getservbyname_r = four; then
44521   cat >>confdefs.h <<\_ACEOF
44522 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
44523 _ACEOF
44524
44525 fi
44526
44527
44528       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
44529               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
44530
44531 for ac_func in getservbyname
44532 do
44533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44537   echo $ECHO_N "(cached) $ECHO_C" >&6
44538 else
44539   cat >conftest.$ac_ext <<_ACEOF
44540 /* confdefs.h.  */
44541 _ACEOF
44542 cat confdefs.h >>conftest.$ac_ext
44543 cat >>conftest.$ac_ext <<_ACEOF
44544 /* end confdefs.h.  */
44545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44547 #define $ac_func innocuous_$ac_func
44548
44549 /* System header to define __stub macros and hopefully few prototypes,
44550     which can conflict with char $ac_func (); below.
44551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44552     <limits.h> exists even on freestanding compilers.  */
44553
44554 #ifdef __STDC__
44555 # include <limits.h>
44556 #else
44557 # include <assert.h>
44558 #endif
44559
44560 #undef $ac_func
44561
44562 /* Override any GCC internal prototype to avoid an error.
44563    Use char because int might match the return type of a GCC
44564    builtin and then its argument prototype would still apply.  */
44565 #ifdef __cplusplus
44566 extern "C"
44567 #endif
44568 char $ac_func ();
44569 /* The GNU C library defines this for functions which it implements
44570     to always fail with ENOSYS.  Some functions are actually named
44571     something starting with __ and the normal name is an alias.  */
44572 #if defined __stub_$ac_func || defined __stub___$ac_func
44573 choke me
44574 #endif
44575
44576 int
44577 main ()
44578 {
44579 return $ac_func ();
44580   ;
44581   return 0;
44582 }
44583 _ACEOF
44584 rm -f conftest.$ac_objext conftest$ac_exeext
44585 if { (ac_try="$ac_link"
44586 case "(($ac_try" in
44587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44588   *) ac_try_echo=$ac_try;;
44589 esac
44590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44591   (eval "$ac_link") 2>conftest.er1
44592   ac_status=$?
44593   grep -v '^ *+' conftest.er1 >conftest.err
44594   rm -f conftest.er1
44595   cat conftest.err >&5
44596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44597   (exit $ac_status); } && {
44598          test -z "$ac_c_werror_flag" ||
44599          test ! -s conftest.err
44600        } && test -s conftest$ac_exeext &&
44601        $as_test_x conftest$ac_exeext; then
44602   eval "$as_ac_var=yes"
44603 else
44604   echo "$as_me: failed program was:" >&5
44605 sed 's/^/| /' conftest.$ac_ext >&5
44606
44607         eval "$as_ac_var=no"
44608 fi
44609
44610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44611       conftest$ac_exeext conftest.$ac_ext
44612 fi
44613 ac_res=`eval echo '${'$as_ac_var'}'`
44614                { echo "$as_me:$LINENO: result: $ac_res" >&5
44615 echo "${ECHO_T}$ac_res" >&6; }
44616 if test `eval echo '${'$as_ac_var'}'` = yes; then
44617   cat >>confdefs.h <<_ACEOF
44618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44619 _ACEOF
44620   cat >>confdefs.h <<\_ACEOF
44621 #define HAVE_GETSERVBYNAME 1
44622 _ACEOF
44623
44624 fi
44625 done
44626
44627       fi
44628
44629 if test "$wxUSE_THREADS" = "yes"; then
44630   cat >>confdefs.h <<\_ACEOF
44631 #define wxUSE_THREADS 1
44632 _ACEOF
44633
44634
44635   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
44636 else
44637       if test "$wx_cv_func_strtok_r" = "yes"; then
44638     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
44639 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
44640     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
44641         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
44642         { echo "$as_me:$LINENO: result: yes" >&5
44643 echo "${ECHO_T}yes" >&6; }
44644     else
44645         { echo "$as_me:$LINENO: result: no" >&5
44646 echo "${ECHO_T}no" >&6; }
44647     fi
44648   fi
44649 fi
44650
44651 if test "$WXGTK20" = 1 ; then
44652   cat >>confdefs.h <<_ACEOF
44653 #define __WXGTK20__ $WXGTK20
44654 _ACEOF
44655
44656   WXGTK12=1
44657 fi
44658
44659 if test "$WXGTK12" = 1 ; then
44660   cat >>confdefs.h <<_ACEOF
44661 #define __WXGTK12__ $WXGTK12
44662 _ACEOF
44663
44664 fi
44665
44666 if test "$WXGTK127" = 1 ; then
44667   cat >>confdefs.h <<_ACEOF
44668 #define __WXGTK127__ $WXGTK127
44669 _ACEOF
44670
44671 fi
44672
44673 if test "$WXGPE" = 1 ; then
44674   cat >>confdefs.h <<_ACEOF
44675 #define __WXGPE__ $WXGPE
44676 _ACEOF
44677
44678 fi
44679
44680 DEBUG_CFLAGS=
44681 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
44682     DEBUG_CFLAGS="-g"
44683     wxUSE_OPTIMISE=no
44684 fi
44685
44686 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
44687     wxUSE_DEBUG_INFO=yes
44688     if test "$GCC" = yes; then
44689         DEBUG_CFLAGS="-ggdb"
44690     fi
44691 fi
44692
44693 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
44694     cat >>confdefs.h <<\_ACEOF
44695 #define WXDEBUG 1
44696 _ACEOF
44697
44698     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
44699 else
44700     if test "$wxUSE_GTK" = 1 ; then
44701         if test "x$wxGTK_VERSION" = "x1" ; then
44702             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
44703         fi
44704     fi
44705 fi
44706
44707 if test "$wxUSE_MEM_TRACING" = "yes" ; then
44708     cat >>confdefs.h <<\_ACEOF
44709 #define wxUSE_MEMORY_TRACING 1
44710 _ACEOF
44711
44712     cat >>confdefs.h <<\_ACEOF
44713 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
44714 _ACEOF
44715
44716     cat >>confdefs.h <<\_ACEOF
44717 #define wxUSE_DEBUG_NEW_ALWAYS 1
44718 _ACEOF
44719
44720     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
44721 fi
44722
44723 if test "$wxUSE_DMALLOC" = "yes" ; then
44724     DMALLOC_LIBS="-ldmallocthcxx"
44725 fi
44726
44727 PROFILE_FLAGS=
44728 if test "$wxUSE_PROFILE" = "yes" ; then
44729     PROFILE_FLAGS=" -pg"
44730 fi
44731
44732 if test "$GCC" = "yes" ; then
44733     if test "$wxUSE_NO_RTTI" = "yes" ; then
44734         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
44735     fi
44736     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44737         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
44738     fi
44739     if test "$wxUSE_PERMISSIVE" = "yes" ; then
44740         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
44741     fi
44742
44743                                                 case "${host}" in
44744       powerpc*-*-aix* )
44745         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
44746         ;;
44747       *-hppa* )
44748         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
44749         ;;
44750     esac
44751 fi
44752
44753 OPTIMISE_CFLAGS=
44754 if test "$wxUSE_OPTIMISE" = "no" ; then
44755     if test "$GCC" = yes ; then
44756                         OPTIMISE_CFLAGS="-O0"
44757     fi
44758 else
44759     if test "$GCC" = yes ; then
44760         case "${host}" in
44761             *-pc-os2_emx | *-pc-os2-emx )
44762                                                 OPTIMISE_CFLAGS="-O2"
44763             ;;
44764             *)
44765                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
44766             ;;
44767         esac
44768     else
44769         OPTIMISE_CFLAGS="-O"
44770     fi
44771 fi
44772
44773
44774 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
44775     cat >>confdefs.h <<\_ACEOF
44776 #define WXWIN_COMPATIBILITY_2_6 1
44777 _ACEOF
44778
44779
44780     WXWIN_COMPATIBILITY_2_8="yes"
44781 fi
44782
44783 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
44784     cat >>confdefs.h <<\_ACEOF
44785 #define WXWIN_COMPATIBILITY_2_8 1
44786 _ACEOF
44787
44788 fi
44789
44790
44791 if test "$wxUSE_GUI" = "yes"; then
44792     cat >>confdefs.h <<\_ACEOF
44793 #define wxUSE_GUI 1
44794 _ACEOF
44795
44796
44797                                             fi
44798
44799
44800 if test "$wxUSE_UNIX" = "yes"; then
44801   cat >>confdefs.h <<\_ACEOF
44802 #define wxUSE_UNIX 1
44803 _ACEOF
44804
44805 fi
44806
44807
44808 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
44809
44810     HAVE_DL_FUNCS=0
44811     HAVE_SHL_FUNCS=0
44812     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44813         if test "$USE_DARWIN" = 1; then
44814                         HAVE_DL_FUNCS=1
44815         elif test "$USE_DOS" = 1; then
44816             HAVE_DL_FUNCS=0
44817         else
44818
44819 for ac_func in dlopen
44820 do
44821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44825   echo $ECHO_N "(cached) $ECHO_C" >&6
44826 else
44827   cat >conftest.$ac_ext <<_ACEOF
44828 /* confdefs.h.  */
44829 _ACEOF
44830 cat confdefs.h >>conftest.$ac_ext
44831 cat >>conftest.$ac_ext <<_ACEOF
44832 /* end confdefs.h.  */
44833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44835 #define $ac_func innocuous_$ac_func
44836
44837 /* System header to define __stub macros and hopefully few prototypes,
44838     which can conflict with char $ac_func (); below.
44839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44840     <limits.h> exists even on freestanding compilers.  */
44841
44842 #ifdef __STDC__
44843 # include <limits.h>
44844 #else
44845 # include <assert.h>
44846 #endif
44847
44848 #undef $ac_func
44849
44850 /* Override any GCC internal prototype to avoid an error.
44851    Use char because int might match the return type of a GCC
44852    builtin and then its argument prototype would still apply.  */
44853 #ifdef __cplusplus
44854 extern "C"
44855 #endif
44856 char $ac_func ();
44857 /* The GNU C library defines this for functions which it implements
44858     to always fail with ENOSYS.  Some functions are actually named
44859     something starting with __ and the normal name is an alias.  */
44860 #if defined __stub_$ac_func || defined __stub___$ac_func
44861 choke me
44862 #endif
44863
44864 int
44865 main ()
44866 {
44867 return $ac_func ();
44868   ;
44869   return 0;
44870 }
44871 _ACEOF
44872 rm -f conftest.$ac_objext conftest$ac_exeext
44873 if { (ac_try="$ac_link"
44874 case "(($ac_try" in
44875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44876   *) ac_try_echo=$ac_try;;
44877 esac
44878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44879   (eval "$ac_link") 2>conftest.er1
44880   ac_status=$?
44881   grep -v '^ *+' conftest.er1 >conftest.err
44882   rm -f conftest.er1
44883   cat conftest.err >&5
44884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44885   (exit $ac_status); } && {
44886          test -z "$ac_c_werror_flag" ||
44887          test ! -s conftest.err
44888        } && test -s conftest$ac_exeext &&
44889        $as_test_x conftest$ac_exeext; then
44890   eval "$as_ac_var=yes"
44891 else
44892   echo "$as_me: failed program was:" >&5
44893 sed 's/^/| /' conftest.$ac_ext >&5
44894
44895         eval "$as_ac_var=no"
44896 fi
44897
44898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44899       conftest$ac_exeext conftest.$ac_ext
44900 fi
44901 ac_res=`eval echo '${'$as_ac_var'}'`
44902                { echo "$as_me:$LINENO: result: $ac_res" >&5
44903 echo "${ECHO_T}$ac_res" >&6; }
44904 if test `eval echo '${'$as_ac_var'}'` = yes; then
44905   cat >>confdefs.h <<_ACEOF
44906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44907 _ACEOF
44908
44909                 cat >>confdefs.h <<\_ACEOF
44910 #define HAVE_DLOPEN 1
44911 _ACEOF
44912
44913                 HAVE_DL_FUNCS=1
44914
44915 else
44916
44917                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
44918 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
44919 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
44920   echo $ECHO_N "(cached) $ECHO_C" >&6
44921 else
44922   ac_check_lib_save_LIBS=$LIBS
44923 LIBS="-ldl  $LIBS"
44924 cat >conftest.$ac_ext <<_ACEOF
44925 /* confdefs.h.  */
44926 _ACEOF
44927 cat confdefs.h >>conftest.$ac_ext
44928 cat >>conftest.$ac_ext <<_ACEOF
44929 /* end confdefs.h.  */
44930
44931 /* Override any GCC internal prototype to avoid an error.
44932    Use char because int might match the return type of a GCC
44933    builtin and then its argument prototype would still apply.  */
44934 #ifdef __cplusplus
44935 extern "C"
44936 #endif
44937 char dlopen ();
44938 int
44939 main ()
44940 {
44941 return dlopen ();
44942   ;
44943   return 0;
44944 }
44945 _ACEOF
44946 rm -f conftest.$ac_objext conftest$ac_exeext
44947 if { (ac_try="$ac_link"
44948 case "(($ac_try" in
44949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44950   *) ac_try_echo=$ac_try;;
44951 esac
44952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44953   (eval "$ac_link") 2>conftest.er1
44954   ac_status=$?
44955   grep -v '^ *+' conftest.er1 >conftest.err
44956   rm -f conftest.er1
44957   cat conftest.err >&5
44958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44959   (exit $ac_status); } && {
44960          test -z "$ac_c_werror_flag" ||
44961          test ! -s conftest.err
44962        } && test -s conftest$ac_exeext &&
44963        $as_test_x conftest$ac_exeext; then
44964   ac_cv_lib_dl_dlopen=yes
44965 else
44966   echo "$as_me: failed program was:" >&5
44967 sed 's/^/| /' conftest.$ac_ext >&5
44968
44969         ac_cv_lib_dl_dlopen=no
44970 fi
44971
44972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44973       conftest$ac_exeext conftest.$ac_ext
44974 LIBS=$ac_check_lib_save_LIBS
44975 fi
44976 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
44977 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
44978 if test $ac_cv_lib_dl_dlopen = yes; then
44979
44980                                 cat >>confdefs.h <<\_ACEOF
44981 #define HAVE_DLOPEN 1
44982 _ACEOF
44983
44984                                 HAVE_DL_FUNCS=1
44985                                 DL_LINK=" -ldl$DL_LINK"
44986
44987 else
44988
44989
44990 for ac_func in shl_load
44991 do
44992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44996   echo $ECHO_N "(cached) $ECHO_C" >&6
44997 else
44998   cat >conftest.$ac_ext <<_ACEOF
44999 /* confdefs.h.  */
45000 _ACEOF
45001 cat confdefs.h >>conftest.$ac_ext
45002 cat >>conftest.$ac_ext <<_ACEOF
45003 /* end confdefs.h.  */
45004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45006 #define $ac_func innocuous_$ac_func
45007
45008 /* System header to define __stub macros and hopefully few prototypes,
45009     which can conflict with char $ac_func (); below.
45010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45011     <limits.h> exists even on freestanding compilers.  */
45012
45013 #ifdef __STDC__
45014 # include <limits.h>
45015 #else
45016 # include <assert.h>
45017 #endif
45018
45019 #undef $ac_func
45020
45021 /* Override any GCC internal prototype to avoid an error.
45022    Use char because int might match the return type of a GCC
45023    builtin and then its argument prototype would still apply.  */
45024 #ifdef __cplusplus
45025 extern "C"
45026 #endif
45027 char $ac_func ();
45028 /* The GNU C library defines this for functions which it implements
45029     to always fail with ENOSYS.  Some functions are actually named
45030     something starting with __ and the normal name is an alias.  */
45031 #if defined __stub_$ac_func || defined __stub___$ac_func
45032 choke me
45033 #endif
45034
45035 int
45036 main ()
45037 {
45038 return $ac_func ();
45039   ;
45040   return 0;
45041 }
45042 _ACEOF
45043 rm -f conftest.$ac_objext 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>conftest.er1
45051   ac_status=$?
45052   grep -v '^ *+' conftest.er1 >conftest.err
45053   rm -f conftest.er1
45054   cat conftest.err >&5
45055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45056   (exit $ac_status); } && {
45057          test -z "$ac_c_werror_flag" ||
45058          test ! -s conftest.err
45059        } && test -s conftest$ac_exeext &&
45060        $as_test_x conftest$ac_exeext; then
45061   eval "$as_ac_var=yes"
45062 else
45063   echo "$as_me: failed program was:" >&5
45064 sed 's/^/| /' conftest.$ac_ext >&5
45065
45066         eval "$as_ac_var=no"
45067 fi
45068
45069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45070       conftest$ac_exeext conftest.$ac_ext
45071 fi
45072 ac_res=`eval echo '${'$as_ac_var'}'`
45073                { echo "$as_me:$LINENO: result: $ac_res" >&5
45074 echo "${ECHO_T}$ac_res" >&6; }
45075 if test `eval echo '${'$as_ac_var'}'` = yes; then
45076   cat >>confdefs.h <<_ACEOF
45077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45078 _ACEOF
45079
45080                                                 cat >>confdefs.h <<\_ACEOF
45081 #define HAVE_SHL_LOAD 1
45082 _ACEOF
45083
45084                                                 HAVE_SHL_FUNCS=1
45085
45086 else
45087
45088                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
45089 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
45090 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
45091   echo $ECHO_N "(cached) $ECHO_C" >&6
45092 else
45093   ac_check_lib_save_LIBS=$LIBS
45094 LIBS="-lshl_load  $LIBS"
45095 cat >conftest.$ac_ext <<_ACEOF
45096 /* confdefs.h.  */
45097 _ACEOF
45098 cat confdefs.h >>conftest.$ac_ext
45099 cat >>conftest.$ac_ext <<_ACEOF
45100 /* end confdefs.h.  */
45101
45102 /* Override any GCC internal prototype to avoid an error.
45103    Use char because int might match the return type of a GCC
45104    builtin and then its argument prototype would still apply.  */
45105 #ifdef __cplusplus
45106 extern "C"
45107 #endif
45108 char dld ();
45109 int
45110 main ()
45111 {
45112 return dld ();
45113   ;
45114   return 0;
45115 }
45116 _ACEOF
45117 rm -f conftest.$ac_objext conftest$ac_exeext
45118 if { (ac_try="$ac_link"
45119 case "(($ac_try" in
45120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45121   *) ac_try_echo=$ac_try;;
45122 esac
45123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45124   (eval "$ac_link") 2>conftest.er1
45125   ac_status=$?
45126   grep -v '^ *+' conftest.er1 >conftest.err
45127   rm -f conftest.er1
45128   cat conftest.err >&5
45129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130   (exit $ac_status); } && {
45131          test -z "$ac_c_werror_flag" ||
45132          test ! -s conftest.err
45133        } && test -s conftest$ac_exeext &&
45134        $as_test_x conftest$ac_exeext; then
45135   ac_cv_lib_shl_load_dld=yes
45136 else
45137   echo "$as_me: failed program was:" >&5
45138 sed 's/^/| /' conftest.$ac_ext >&5
45139
45140         ac_cv_lib_shl_load_dld=no
45141 fi
45142
45143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45144       conftest$ac_exeext conftest.$ac_ext
45145 LIBS=$ac_check_lib_save_LIBS
45146 fi
45147 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
45148 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
45149 if test $ac_cv_lib_shl_load_dld = yes; then
45150
45151                                                                 HAVE_SHL_FUNCS=1
45152                                                                 DL_LINK=" -ldld$DL_LINK"
45153
45154 fi
45155
45156
45157 fi
45158 done
45159
45160
45161 fi
45162
45163
45164 fi
45165 done
45166
45167
45168                 if test "$HAVE_DL_FUNCS" = 1; then
45169
45170 for ac_func in dlerror
45171 do
45172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45176   echo $ECHO_N "(cached) $ECHO_C" >&6
45177 else
45178   cat >conftest.$ac_ext <<_ACEOF
45179 /* confdefs.h.  */
45180 _ACEOF
45181 cat confdefs.h >>conftest.$ac_ext
45182 cat >>conftest.$ac_ext <<_ACEOF
45183 /* end confdefs.h.  */
45184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45186 #define $ac_func innocuous_$ac_func
45187
45188 /* System header to define __stub macros and hopefully few prototypes,
45189     which can conflict with char $ac_func (); below.
45190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45191     <limits.h> exists even on freestanding compilers.  */
45192
45193 #ifdef __STDC__
45194 # include <limits.h>
45195 #else
45196 # include <assert.h>
45197 #endif
45198
45199 #undef $ac_func
45200
45201 /* Override any GCC internal prototype to avoid an error.
45202    Use char because int might match the return type of a GCC
45203    builtin and then its argument prototype would still apply.  */
45204 #ifdef __cplusplus
45205 extern "C"
45206 #endif
45207 char $ac_func ();
45208 /* The GNU C library defines this for functions which it implements
45209     to always fail with ENOSYS.  Some functions are actually named
45210     something starting with __ and the normal name is an alias.  */
45211 #if defined __stub_$ac_func || defined __stub___$ac_func
45212 choke me
45213 #endif
45214
45215 int
45216 main ()
45217 {
45218 return $ac_func ();
45219   ;
45220   return 0;
45221 }
45222 _ACEOF
45223 rm -f conftest.$ac_objext conftest$ac_exeext
45224 if { (ac_try="$ac_link"
45225 case "(($ac_try" in
45226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45227   *) ac_try_echo=$ac_try;;
45228 esac
45229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45230   (eval "$ac_link") 2>conftest.er1
45231   ac_status=$?
45232   grep -v '^ *+' conftest.er1 >conftest.err
45233   rm -f conftest.er1
45234   cat conftest.err >&5
45235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45236   (exit $ac_status); } && {
45237          test -z "$ac_c_werror_flag" ||
45238          test ! -s conftest.err
45239        } && test -s conftest$ac_exeext &&
45240        $as_test_x conftest$ac_exeext; then
45241   eval "$as_ac_var=yes"
45242 else
45243   echo "$as_me: failed program was:" >&5
45244 sed 's/^/| /' conftest.$ac_ext >&5
45245
45246         eval "$as_ac_var=no"
45247 fi
45248
45249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45250       conftest$ac_exeext conftest.$ac_ext
45251 fi
45252 ac_res=`eval echo '${'$as_ac_var'}'`
45253                { echo "$as_me:$LINENO: result: $ac_res" >&5
45254 echo "${ECHO_T}$ac_res" >&6; }
45255 if test `eval echo '${'$as_ac_var'}'` = yes; then
45256   cat >>confdefs.h <<_ACEOF
45257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45258 _ACEOF
45259  cat >>confdefs.h <<\_ACEOF
45260 #define HAVE_DLERROR 1
45261 _ACEOF
45262
45263 else
45264
45265                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
45266 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
45267 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
45268   echo $ECHO_N "(cached) $ECHO_C" >&6
45269 else
45270   ac_check_lib_save_LIBS=$LIBS
45271 LIBS="-ldl  $LIBS"
45272 cat >conftest.$ac_ext <<_ACEOF
45273 /* confdefs.h.  */
45274 _ACEOF
45275 cat confdefs.h >>conftest.$ac_ext
45276 cat >>conftest.$ac_ext <<_ACEOF
45277 /* end confdefs.h.  */
45278
45279 /* Override any GCC internal prototype to avoid an error.
45280    Use char because int might match the return type of a GCC
45281    builtin and then its argument prototype would still apply.  */
45282 #ifdef __cplusplus
45283 extern "C"
45284 #endif
45285 char dlerror ();
45286 int
45287 main ()
45288 {
45289 return dlerror ();
45290   ;
45291   return 0;
45292 }
45293 _ACEOF
45294 rm -f conftest.$ac_objext conftest$ac_exeext
45295 if { (ac_try="$ac_link"
45296 case "(($ac_try" in
45297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45298   *) ac_try_echo=$ac_try;;
45299 esac
45300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45301   (eval "$ac_link") 2>conftest.er1
45302   ac_status=$?
45303   grep -v '^ *+' conftest.er1 >conftest.err
45304   rm -f conftest.er1
45305   cat conftest.err >&5
45306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45307   (exit $ac_status); } && {
45308          test -z "$ac_c_werror_flag" ||
45309          test ! -s conftest.err
45310        } && test -s conftest$ac_exeext &&
45311        $as_test_x conftest$ac_exeext; then
45312   ac_cv_lib_dl_dlerror=yes
45313 else
45314   echo "$as_me: failed program was:" >&5
45315 sed 's/^/| /' conftest.$ac_ext >&5
45316
45317         ac_cv_lib_dl_dlerror=no
45318 fi
45319
45320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45321       conftest$ac_exeext conftest.$ac_ext
45322 LIBS=$ac_check_lib_save_LIBS
45323 fi
45324 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
45325 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
45326 if test $ac_cv_lib_dl_dlerror = yes; then
45327   cat >>confdefs.h <<\_ACEOF
45328 #define HAVE_DLERROR 1
45329 _ACEOF
45330
45331 fi
45332
45333
45334
45335 fi
45336 done
45337
45338         fi
45339         fi
45340
45341         if test "$HAVE_DL_FUNCS" = 0; then
45342             if test "$HAVE_SHL_FUNCS" = 0; then
45343               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
45344                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
45345 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
45346                   wxUSE_DYNAMIC_LOADER=no
45347                   wxUSE_DYNLIB_CLASS=no
45348               else
45349                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
45350 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
45351               fi
45352             fi
45353         fi
45354     fi
45355 fi
45356
45357 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
45358     cat >>confdefs.h <<\_ACEOF
45359 #define wxUSE_DYNAMIC_LOADER 1
45360 _ACEOF
45361
45362 fi
45363 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
45364     cat >>confdefs.h <<\_ACEOF
45365 #define wxUSE_DYNLIB_CLASS 1
45366 _ACEOF
45367
45368 fi
45369
45370
45371
45372 if test "$wxUSE_PLUGINS" = "yes" ; then
45373     if test "$wxUSE_SHARED" = "no" ; then
45374         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
45375 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
45376         wxUSE_PLUGINS=no
45377     fi
45378     if test "$wxUSE_MONOLITHIC" = "yes" ; then
45379         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
45380 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
45381         wxUSE_PLUGINS=no
45382     fi
45383     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
45384         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
45385 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
45386         wxUSE_PLUGINS=no
45387     fi
45388     if test "$wxUSE_PLUGINS" = "yes" ; then
45389         cat >>confdefs.h <<\_ACEOF
45390 #define wxUSE_PLUGINS 1
45391 _ACEOF
45392
45393     fi
45394 fi
45395
45396
45397 if test "$wxUSE_STL" = "yes"; then
45398   cat >>confdefs.h <<\_ACEOF
45399 #define wxUSE_STL 1
45400 _ACEOF
45401
45402 fi
45403
45404 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
45405   cat >>confdefs.h <<\_ACEOF
45406 #define wxUSE_EXTENDED_RTTI 1
45407 _ACEOF
45408
45409 fi
45410
45411 if test "$wxUSE_APPLE_IEEE" = "yes"; then
45412   cat >>confdefs.h <<\_ACEOF
45413 #define wxUSE_APPLE_IEEE 1
45414 _ACEOF
45415
45416 fi
45417
45418 if test "$wxUSE_TIMER" = "yes"; then
45419   cat >>confdefs.h <<\_ACEOF
45420 #define wxUSE_TIMER 1
45421 _ACEOF
45422
45423 fi
45424
45425 if test "$USE_UNIX" = "1" ; then
45426         if test "$wxUSE_MGL" != 1; then
45427                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
45428 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
45429 if test "${ac_cv_header_sys_soundcard+set}" = set; then
45430   echo $ECHO_N "(cached) $ECHO_C" >&6
45431 else
45432
45433             cat >conftest.$ac_ext <<_ACEOF
45434 /* confdefs.h.  */
45435 _ACEOF
45436 cat confdefs.h >>conftest.$ac_ext
45437 cat >>conftest.$ac_ext <<_ACEOF
45438 /* end confdefs.h.  */
45439
45440                     #include <sys/ioctl.h>
45441                     #include <sys/soundcard.h>
45442
45443 int
45444 main ()
45445 {
45446
45447                     ioctl(0, SNDCTL_DSP_SPEED, 0);
45448
45449   ;
45450   return 0;
45451 }
45452 _ACEOF
45453 rm -f conftest.$ac_objext conftest$ac_exeext
45454 if { (ac_try="$ac_link"
45455 case "(($ac_try" in
45456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45457   *) ac_try_echo=$ac_try;;
45458 esac
45459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45460   (eval "$ac_link") 2>conftest.er1
45461   ac_status=$?
45462   grep -v '^ *+' conftest.er1 >conftest.err
45463   rm -f conftest.er1
45464   cat conftest.err >&5
45465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466   (exit $ac_status); } && {
45467          test -z "$ac_c_werror_flag" ||
45468          test ! -s conftest.err
45469        } && test -s conftest$ac_exeext &&
45470        $as_test_x conftest$ac_exeext; then
45471   ac_cv_header_sys_soundcard=yes
45472 else
45473   echo "$as_me: failed program was:" >&5
45474 sed 's/^/| /' conftest.$ac_ext >&5
45475
45476
45477                     saveLibs="$LIBS"
45478                     LIBS="$saveLibs -lossaudio"
45479                     cat >conftest.$ac_ext <<_ACEOF
45480 /* confdefs.h.  */
45481 _ACEOF
45482 cat confdefs.h >>conftest.$ac_ext
45483 cat >>conftest.$ac_ext <<_ACEOF
45484 /* end confdefs.h.  */
45485
45486                             #include <sys/ioctl.h>
45487                             #include <sys/soundcard.h>
45488
45489 int
45490 main ()
45491 {
45492
45493                             ioctl(0, SNDCTL_DSP_SPEED, 0);
45494
45495   ;
45496   return 0;
45497 }
45498 _ACEOF
45499 rm -f conftest.$ac_objext conftest$ac_exeext
45500 if { (ac_try="$ac_link"
45501 case "(($ac_try" in
45502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45503   *) ac_try_echo=$ac_try;;
45504 esac
45505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45506   (eval "$ac_link") 2>conftest.er1
45507   ac_status=$?
45508   grep -v '^ *+' conftest.er1 >conftest.err
45509   rm -f conftest.er1
45510   cat conftest.err >&5
45511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45512   (exit $ac_status); } && {
45513          test -z "$ac_c_werror_flag" ||
45514          test ! -s conftest.err
45515        } && test -s conftest$ac_exeext &&
45516        $as_test_x conftest$ac_exeext; then
45517   ac_cv_header_sys_soundcard=yes
45518 else
45519   echo "$as_me: failed program was:" >&5
45520 sed 's/^/| /' conftest.$ac_ext >&5
45521
45522
45523                             LIBS="$saveLibs"
45524                             ac_cv_header_sys_soundcard=no
45525
45526
45527 fi
45528
45529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45530       conftest$ac_exeext conftest.$ac_ext
45531
45532
45533 fi
45534
45535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45536       conftest$ac_exeext conftest.$ac_ext
45537
45538 fi
45539 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
45540 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
45541     fi
45542
45543     if test "$ac_cv_header_sys_soundcard" = "yes"; then
45544         cat >>confdefs.h <<\_ACEOF
45545 #define HAVE_SYS_SOUNDCARD_H 1
45546 _ACEOF
45547
45548     fi
45549 fi
45550
45551 WITH_PLUGIN_SDL=0
45552 if test "$wxUSE_SOUND" = "yes"; then
45553   if test "$USE_UNIX" = "1" ; then
45554     if test "$wxUSE_LIBSDL" != "no"; then
45555
45556 # Check whether --with-sdl-prefix was given.
45557 if test "${with_sdl_prefix+set}" = set; then
45558   withval=$with_sdl_prefix; sdl_prefix="$withval"
45559 else
45560   sdl_prefix=""
45561 fi
45562
45563
45564 # Check whether --with-sdl-exec-prefix was given.
45565 if test "${with_sdl_exec_prefix+set}" = set; then
45566   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
45567 else
45568   sdl_exec_prefix=""
45569 fi
45570
45571 # Check whether --enable-sdltest was given.
45572 if test "${enable_sdltest+set}" = set; then
45573   enableval=$enable_sdltest;
45574 else
45575   enable_sdltest=yes
45576 fi
45577
45578
45579   if test x$sdl_exec_prefix != x ; then
45580     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
45581     if test x${SDL_CONFIG+set} != xset ; then
45582       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
45583     fi
45584   fi
45585   if test x$sdl_prefix != x ; then
45586     sdl_args="$sdl_args --prefix=$sdl_prefix"
45587     if test x${SDL_CONFIG+set} != xset ; then
45588       SDL_CONFIG=$sdl_prefix/bin/sdl-config
45589     fi
45590   fi
45591
45592   if test "x$prefix" != xNONE; then
45593     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
45594   fi
45595   # Extract the first word of "sdl-config", so it can be a program name with args.
45596 set dummy sdl-config; ac_word=$2
45597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45599 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
45600   echo $ECHO_N "(cached) $ECHO_C" >&6
45601 else
45602   case $SDL_CONFIG in
45603   [\\/]* | ?:[\\/]*)
45604   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
45605   ;;
45606   *)
45607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45608 for as_dir in $PATH
45609 do
45610   IFS=$as_save_IFS
45611   test -z "$as_dir" && as_dir=.
45612   for ac_exec_ext in '' $ac_executable_extensions; do
45613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45614     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45616     break 2
45617   fi
45618 done
45619 done
45620 IFS=$as_save_IFS
45621
45622   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
45623   ;;
45624 esac
45625 fi
45626 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
45627 if test -n "$SDL_CONFIG"; then
45628   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
45629 echo "${ECHO_T}$SDL_CONFIG" >&6; }
45630 else
45631   { echo "$as_me:$LINENO: result: no" >&5
45632 echo "${ECHO_T}no" >&6; }
45633 fi
45634
45635
45636   min_sdl_version=1.2.0
45637   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
45638 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
45639   no_sdl=""
45640   if test "$SDL_CONFIG" = "no" ; then
45641     no_sdl=yes
45642   else
45643     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
45644     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
45645
45646     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
45647            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45648     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
45649            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45650     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
45651            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45652     if test "x$enable_sdltest" = "xyes" ; then
45653       ac_save_CFLAGS="$CFLAGS"
45654       ac_save_CXXFLAGS="$CXXFLAGS"
45655       ac_save_LIBS="$LIBS"
45656       CFLAGS="$CFLAGS $SDL_CFLAGS"
45657       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45658       LIBS="$LIBS $SDL_LIBS"
45659       rm -f conf.sdltest
45660       if test "$cross_compiling" = yes; then
45661   echo $ac_n "cross compiling; assumed OK... $ac_c"
45662 else
45663   cat >conftest.$ac_ext <<_ACEOF
45664 /* confdefs.h.  */
45665 _ACEOF
45666 cat confdefs.h >>conftest.$ac_ext
45667 cat >>conftest.$ac_ext <<_ACEOF
45668 /* end confdefs.h.  */
45669
45670 #include <stdio.h>
45671 #include <stdlib.h>
45672 #include <string.h>
45673 #include "SDL.h"
45674
45675 char*
45676 my_strdup (char *str)
45677 {
45678   char *new_str;
45679
45680   if (str)
45681     {
45682       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
45683       strcpy (new_str, str);
45684     }
45685   else
45686     new_str = NULL;
45687
45688   return new_str;
45689 }
45690
45691 int main (int argc, char *argv[])
45692 {
45693   int major, minor, micro;
45694   char *tmp_version;
45695
45696   /* This hangs on some systems (?)
45697   system ("touch conf.sdltest");
45698   */
45699   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
45700
45701   /* HP/UX 9 (%@#!) writes to sscanf strings */
45702   tmp_version = my_strdup("$min_sdl_version");
45703   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
45704      printf("%s, bad version string\n", "$min_sdl_version");
45705      exit(1);
45706    }
45707
45708    if (($sdl_major_version > major) ||
45709       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
45710       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
45711     {
45712       return 0;
45713     }
45714   else
45715     {
45716       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
45717       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
45718       printf("*** best to upgrade to the required version.\n");
45719       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
45720       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
45721       printf("*** config.cache before re-running configure\n");
45722       return 1;
45723     }
45724 }
45725
45726
45727 _ACEOF
45728 rm -f conftest$ac_exeext
45729 if { (ac_try="$ac_link"
45730 case "(($ac_try" in
45731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45732   *) ac_try_echo=$ac_try;;
45733 esac
45734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45735   (eval "$ac_link") 2>&5
45736   ac_status=$?
45737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45739   { (case "(($ac_try" in
45740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45741   *) ac_try_echo=$ac_try;;
45742 esac
45743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45744   (eval "$ac_try") 2>&5
45745   ac_status=$?
45746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45747   (exit $ac_status); }; }; then
45748   :
45749 else
45750   echo "$as_me: program exited with status $ac_status" >&5
45751 echo "$as_me: failed program was:" >&5
45752 sed 's/^/| /' conftest.$ac_ext >&5
45753
45754 ( exit $ac_status )
45755 no_sdl=yes
45756 fi
45757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45758 fi
45759
45760
45761        CFLAGS="$ac_save_CFLAGS"
45762        CXXFLAGS="$ac_save_CXXFLAGS"
45763        LIBS="$ac_save_LIBS"
45764      fi
45765   fi
45766   if test "x$no_sdl" = x ; then
45767      { echo "$as_me:$LINENO: result: yes" >&5
45768 echo "${ECHO_T}yes" >&6; }
45769
45770                     EXTRALIBS_SDL="$SDL_LIBS"
45771                     CFLAGS="$SDL_CFLAGS $CFLAGS"
45772                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
45773                     cat >>confdefs.h <<\_ACEOF
45774 #define wxUSE_LIBSDL 1
45775 _ACEOF
45776
45777
45778   else
45779      { echo "$as_me:$LINENO: result: no" >&5
45780 echo "${ECHO_T}no" >&6; }
45781      if test "$SDL_CONFIG" = "no" ; then
45782        echo "*** The sdl-config script installed by SDL could not be found"
45783        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
45784        echo "*** your path, or set the SDL_CONFIG environment variable to the"
45785        echo "*** full path to sdl-config."
45786      else
45787        if test -f conf.sdltest ; then
45788         :
45789        else
45790           echo "*** Could not run SDL test program, checking why..."
45791           CFLAGS="$CFLAGS $SDL_CFLAGS"
45792           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45793           LIBS="$LIBS $SDL_LIBS"
45794           cat >conftest.$ac_ext <<_ACEOF
45795 /* confdefs.h.  */
45796 _ACEOF
45797 cat confdefs.h >>conftest.$ac_ext
45798 cat >>conftest.$ac_ext <<_ACEOF
45799 /* end confdefs.h.  */
45800
45801 #include <stdio.h>
45802 #include "SDL.h"
45803
45804 int main(int argc, char *argv[])
45805 { return 0; }
45806 #undef  main
45807 #define main K_and_R_C_main
45808
45809 int
45810 main ()
45811 {
45812  return 0;
45813   ;
45814   return 0;
45815 }
45816 _ACEOF
45817 rm -f conftest.$ac_objext conftest$ac_exeext
45818 if { (ac_try="$ac_link"
45819 case "(($ac_try" in
45820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45821   *) ac_try_echo=$ac_try;;
45822 esac
45823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45824   (eval "$ac_link") 2>conftest.er1
45825   ac_status=$?
45826   grep -v '^ *+' conftest.er1 >conftest.err
45827   rm -f conftest.er1
45828   cat conftest.err >&5
45829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45830   (exit $ac_status); } && {
45831          test -z "$ac_c_werror_flag" ||
45832          test ! -s conftest.err
45833        } && test -s conftest$ac_exeext &&
45834        $as_test_x conftest$ac_exeext; then
45835    echo "*** The test program compiled, but did not run. This usually means"
45836           echo "*** that the run-time linker is not finding SDL or finding the wrong"
45837           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
45838           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
45839           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
45840           echo "*** is required on your system"
45841           echo "***"
45842           echo "*** If you have an old version installed, it is best to remove it, although"
45843           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
45844 else
45845   echo "$as_me: failed program was:" >&5
45846 sed 's/^/| /' conftest.$ac_ext >&5
45847
45848          echo "*** The test program failed to compile or link. See the file config.log for the"
45849           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
45850           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
45851           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
45852 fi
45853
45854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45855       conftest$ac_exeext conftest.$ac_ext
45856           CFLAGS="$ac_save_CFLAGS"
45857           CXXFLAGS="$ac_save_CXXFLAGS"
45858           LIBS="$ac_save_LIBS"
45859        fi
45860      fi
45861      SDL_CFLAGS=""
45862      SDL_LIBS=""
45863      wxUSE_LIBSDL="no"
45864   fi
45865
45866
45867   rm -f conf.sdltest
45868
45869       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
45870         WITH_PLUGIN_SDL=1
45871       fi
45872     fi
45873   else
45874         if test "$wxUSE_MGL" = 1; then
45875         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
45876 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
45877         wxUSE_SOUND="no"
45878     fi
45879   fi
45880 fi
45881
45882 if test "$wxUSE_SOUND" = "yes"; then
45883   cat >>confdefs.h <<\_ACEOF
45884 #define wxUSE_SOUND 1
45885 _ACEOF
45886
45887   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
45888 fi
45889
45890 if test "$WXGTK20" = 1; then
45891
45892
45893 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45894         if test -n "$ac_tool_prefix"; then
45895   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45896 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45899 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45900   echo $ECHO_N "(cached) $ECHO_C" >&6
45901 else
45902   case $PKG_CONFIG in
45903   [\\/]* | ?:[\\/]*)
45904   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45905   ;;
45906   *)
45907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45908 for as_dir in $PATH
45909 do
45910   IFS=$as_save_IFS
45911   test -z "$as_dir" && as_dir=.
45912   for ac_exec_ext in '' $ac_executable_extensions; do
45913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45914     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45916     break 2
45917   fi
45918 done
45919 done
45920 IFS=$as_save_IFS
45921
45922   ;;
45923 esac
45924 fi
45925 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45926 if test -n "$PKG_CONFIG"; then
45927   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45928 echo "${ECHO_T}$PKG_CONFIG" >&6; }
45929 else
45930   { echo "$as_me:$LINENO: result: no" >&5
45931 echo "${ECHO_T}no" >&6; }
45932 fi
45933
45934
45935 fi
45936 if test -z "$ac_cv_path_PKG_CONFIG"; then
45937   ac_pt_PKG_CONFIG=$PKG_CONFIG
45938   # Extract the first word of "pkg-config", so it can be a program name with args.
45939 set dummy pkg-config; ac_word=$2
45940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45942 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
45943   echo $ECHO_N "(cached) $ECHO_C" >&6
45944 else
45945   case $ac_pt_PKG_CONFIG in
45946   [\\/]* | ?:[\\/]*)
45947   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45948   ;;
45949   *)
45950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45951 for as_dir in $PATH
45952 do
45953   IFS=$as_save_IFS
45954   test -z "$as_dir" && as_dir=.
45955   for ac_exec_ext in '' $ac_executable_extensions; do
45956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45957     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45959     break 2
45960   fi
45961 done
45962 done
45963 IFS=$as_save_IFS
45964
45965   ;;
45966 esac
45967 fi
45968 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45969 if test -n "$ac_pt_PKG_CONFIG"; then
45970   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
45971 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
45972 else
45973   { echo "$as_me:$LINENO: result: no" >&5
45974 echo "${ECHO_T}no" >&6; }
45975 fi
45976
45977   if test "x$ac_pt_PKG_CONFIG" = x; then
45978     PKG_CONFIG=""
45979   else
45980     case $cross_compiling:$ac_tool_warned in
45981 yes:)
45982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45983 whose name does not start with the host triplet.  If you think this
45984 configuration is useful to you, please write to autoconf@gnu.org." >&5
45985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45986 whose name does not start with the host triplet.  If you think this
45987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45988 ac_tool_warned=yes ;;
45989 esac
45990     PKG_CONFIG=$ac_pt_PKG_CONFIG
45991   fi
45992 else
45993   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45994 fi
45995
45996 fi
45997 if test -n "$PKG_CONFIG"; then
45998         _pkg_min_version=0.9.0
45999         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
46000 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
46001         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
46002                 { echo "$as_me:$LINENO: result: yes" >&5
46003 echo "${ECHO_T}yes" >&6; }
46004         else
46005                 { echo "$as_me:$LINENO: result: no" >&5
46006 echo "${ECHO_T}no" >&6; }
46007                 PKG_CONFIG=""
46008         fi
46009
46010 fi
46011
46012     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
46013         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46014
46015
46016 pkg_failed=no
46017 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
46018 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
46019
46020 if test -n "$PKG_CONFIG"; then
46021     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
46022         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
46023     else
46024         if test -n "$PKG_CONFIG" && \
46025     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
46026   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
46027   ac_status=$?
46028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46029   (exit $ac_status); }; then
46030   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
46031 else
46032   pkg_failed=yes
46033 fi
46034     fi
46035 else
46036         pkg_failed=untried
46037 fi
46038 if test -n "$PKG_CONFIG"; then
46039     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
46040         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
46041     else
46042         if test -n "$PKG_CONFIG" && \
46043     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
46044   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
46045   ac_status=$?
46046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46047   (exit $ac_status); }; then
46048   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
46049 else
46050   pkg_failed=yes
46051 fi
46052     fi
46053 else
46054         pkg_failed=untried
46055 fi
46056
46057
46058
46059 if test $pkg_failed = yes; then
46060
46061 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46062         _pkg_short_errors_supported=yes
46063 else
46064         _pkg_short_errors_supported=no
46065 fi
46066         if test $_pkg_short_errors_supported = yes; then
46067                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
46068         else
46069                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
46070         fi
46071         # Put the nasty error message in config.log where it belongs
46072         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
46073
46074
46075                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
46076 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
46077                         wxUSE_LIBGNOMEPRINT="no"
46078
46079
46080 elif test $pkg_failed = untried; then
46081
46082                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
46083 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
46084                         wxUSE_LIBGNOMEPRINT="no"
46085
46086
46087 else
46088         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
46089         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
46090         { echo "$as_me:$LINENO: result: yes" >&5
46091 echo "${ECHO_T}yes" >&6; }
46092
46093                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
46094                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
46095                         cat >>confdefs.h <<\_ACEOF
46096 #define wxUSE_LIBGNOMEPRINT 1
46097 _ACEOF
46098
46099
46100 fi
46101         fi
46102     fi
46103
46104     if test "$wxUSE_MIMETYPE" = "yes" ; then
46105         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46106
46107
46108 pkg_failed=no
46109 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
46110 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
46111
46112 if test -n "$PKG_CONFIG"; then
46113     if test -n "$GNOMEVFS_CFLAGS"; then
46114         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
46115     else
46116         if test -n "$PKG_CONFIG" && \
46117     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
46118   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
46119   ac_status=$?
46120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46121   (exit $ac_status); }; then
46122   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
46123 else
46124   pkg_failed=yes
46125 fi
46126     fi
46127 else
46128         pkg_failed=untried
46129 fi
46130 if test -n "$PKG_CONFIG"; then
46131     if test -n "$GNOMEVFS_LIBS"; then
46132         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
46133     else
46134         if test -n "$PKG_CONFIG" && \
46135     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
46136   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
46137   ac_status=$?
46138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46139   (exit $ac_status); }; then
46140   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
46141 else
46142   pkg_failed=yes
46143 fi
46144     fi
46145 else
46146         pkg_failed=untried
46147 fi
46148
46149
46150
46151 if test $pkg_failed = yes; then
46152
46153 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46154         _pkg_short_errors_supported=yes
46155 else
46156         _pkg_short_errors_supported=no
46157 fi
46158         if test $_pkg_short_errors_supported = yes; then
46159                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
46160         else
46161                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
46162         fi
46163         # Put the nasty error message in config.log where it belongs
46164         echo "$GNOMEVFS_PKG_ERRORS" >&5
46165
46166
46167                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
46168 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
46169                         wxUSE_LIBGNOMEVFS="no"
46170
46171
46172 elif test $pkg_failed = untried; then
46173
46174                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
46175 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
46176                         wxUSE_LIBGNOMEVFS="no"
46177
46178
46179 else
46180         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
46181         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
46182         { echo "$as_me:$LINENO: result: yes" >&5
46183 echo "${ECHO_T}yes" >&6; }
46184
46185                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
46186                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
46187                         cat >>confdefs.h <<\_ACEOF
46188 #define wxUSE_LIBGNOMEVFS 1
46189 _ACEOF
46190
46191
46192 fi
46193         fi
46194     fi
46195
46196     if test "$wxUSE_LIBHILDON" = "yes" ; then
46197
46198 pkg_failed=no
46199 { echo "$as_me:$LINENO: checking for HILDON" >&5
46200 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
46201
46202 if test -n "$PKG_CONFIG"; then
46203     if test -n "$HILDON_CFLAGS"; then
46204         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
46205     else
46206         if test -n "$PKG_CONFIG" && \
46207     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
46208   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
46209   ac_status=$?
46210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46211   (exit $ac_status); }; then
46212   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
46213 else
46214   pkg_failed=yes
46215 fi
46216     fi
46217 else
46218         pkg_failed=untried
46219 fi
46220 if test -n "$PKG_CONFIG"; then
46221     if test -n "$HILDON_LIBS"; then
46222         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
46223     else
46224         if test -n "$PKG_CONFIG" && \
46225     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
46226   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
46227   ac_status=$?
46228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46229   (exit $ac_status); }; then
46230   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
46231 else
46232   pkg_failed=yes
46233 fi
46234     fi
46235 else
46236         pkg_failed=untried
46237 fi
46238
46239
46240
46241 if test $pkg_failed = yes; then
46242
46243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46244         _pkg_short_errors_supported=yes
46245 else
46246         _pkg_short_errors_supported=no
46247 fi
46248         if test $_pkg_short_errors_supported = yes; then
46249                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
46250         else
46251                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
46252         fi
46253         # Put the nasty error message in config.log where it belongs
46254         echo "$HILDON_PKG_ERRORS" >&5
46255
46256
46257                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
46258 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
46259                         wxUSE_LIBHILDON="no"
46260
46261
46262 elif test $pkg_failed = untried; then
46263
46264                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
46265 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
46266                         wxUSE_LIBHILDON="no"
46267
46268
46269 else
46270         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
46271         HILDON_LIBS=$pkg_cv_HILDON_LIBS
46272         { echo "$as_me:$LINENO: result: yes" >&5
46273 echo "${ECHO_T}yes" >&6; }
46274
46275                 EXTRALIBS_HILDON="$HILDON_LIBS"
46276                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
46277                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
46278                 cat >>confdefs.h <<\_ACEOF
46279 #define wxUSE_LIBHILDON 1
46280 _ACEOF
46281
46282
46283 fi
46284     fi
46285 fi
46286
46287 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
46288   cat >>confdefs.h <<\_ACEOF
46289 #define wxUSE_CMDLINE_PARSER 1
46290 _ACEOF
46291
46292 fi
46293
46294 if test "$wxUSE_STOPWATCH" = "yes"; then
46295   cat >>confdefs.h <<\_ACEOF
46296 #define wxUSE_STOPWATCH 1
46297 _ACEOF
46298
46299 fi
46300
46301 if test "$wxUSE_DATETIME" = "yes"; then
46302   cat >>confdefs.h <<\_ACEOF
46303 #define wxUSE_DATETIME 1
46304 _ACEOF
46305
46306 fi
46307
46308 if test "$wxUSE_FILE" = "yes"; then
46309   cat >>confdefs.h <<\_ACEOF
46310 #define wxUSE_FILE 1
46311 _ACEOF
46312
46313 fi
46314
46315 if test "$wxUSE_FFILE" = "yes"; then
46316   cat >>confdefs.h <<\_ACEOF
46317 #define wxUSE_FFILE 1
46318 _ACEOF
46319
46320 fi
46321
46322 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
46323   if test "$wxUSE_STREAMS" != yes; then
46324     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
46325 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
46326     wxUSE_ARCHIVE_STREAMS=no
46327   else
46328     cat >>confdefs.h <<\_ACEOF
46329 #define wxUSE_ARCHIVE_STREAMS 1
46330 _ACEOF
46331
46332   fi
46333 fi
46334
46335 if test "$wxUSE_ZIPSTREAM" = "yes"; then
46336   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
46337     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
46338 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
46339   elif test "$wxUSE_ZLIB" = "no"; then
46340     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
46341 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
46342   else
46343     cat >>confdefs.h <<\_ACEOF
46344 #define wxUSE_ZIPSTREAM 1
46345 _ACEOF
46346
46347   fi
46348 fi
46349
46350 if test "$wxUSE_TARSTREAM" = "yes"; then
46351   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
46352     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
46353 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
46354   else
46355     cat >>confdefs.h <<\_ACEOF
46356 #define wxUSE_TARSTREAM 1
46357 _ACEOF
46358
46359   fi
46360 fi
46361
46362 if test "$wxUSE_FILESYSTEM" = "yes"; then
46363   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
46364     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
46365 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
46366     wxUSE_FILESYSTEM=no
46367   else
46368     cat >>confdefs.h <<\_ACEOF
46369 #define wxUSE_FILESYSTEM 1
46370 _ACEOF
46371
46372   fi
46373 fi
46374
46375 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
46376   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
46377     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
46378 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
46379   else
46380     cat >>confdefs.h <<\_ACEOF
46381 #define wxUSE_FS_ARCHIVE 1
46382 _ACEOF
46383
46384   fi
46385 fi
46386
46387 if test "$wxUSE_FS_ZIP" = "yes"; then
46388   if test "$wxUSE_FS_ARCHIVE" != yes; then
46389     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
46390 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
46391   else
46392     cat >>confdefs.h <<\_ACEOF
46393 #define wxUSE_FS_ZIP 1
46394 _ACEOF
46395
46396   fi
46397 fi
46398
46399 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
46400   if test "$USE_UNIX" != 1; then
46401     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
46402 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
46403     wxUSE_ON_FATAL_EXCEPTION=no
46404   else
46405     cat >>confdefs.h <<\_ACEOF
46406 #define wxUSE_ON_FATAL_EXCEPTION 1
46407 _ACEOF
46408
46409   fi
46410 fi
46411
46412 if test "$wxUSE_STACKWALKER" = "yes"; then
46413     cat >>confdefs.h <<\_ACEOF
46414 #define wxUSE_STACKWALKER 1
46415 _ACEOF
46416
46417 fi
46418
46419 if test "$wxUSE_DEBUGREPORT" = "yes"; then
46420     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
46421         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
46422 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
46423         wxUSE_DEBUGREPORT=no
46424     else
46425         cat >>confdefs.h <<\_ACEOF
46426 #define wxUSE_DEBUGREPORT 1
46427 _ACEOF
46428
46429         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
46430             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
46431         fi
46432     fi
46433 fi
46434
46435 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
46436   cat >>confdefs.h <<\_ACEOF
46437 #define wxUSE_SNGLINST_CHECKER 1
46438 _ACEOF
46439
46440 fi
46441
46442 if test "$wxUSE_BUSYINFO" = "yes"; then
46443   cat >>confdefs.h <<\_ACEOF
46444 #define wxUSE_BUSYINFO 1
46445 _ACEOF
46446
46447 fi
46448
46449 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
46450   cat >>confdefs.h <<\_ACEOF
46451 #define wxUSE_STD_IOSTREAM 1
46452 _ACEOF
46453
46454 fi
46455
46456 if test "$wxUSE_STD_STRING" = "yes"; then
46457   cat >>confdefs.h <<\_ACEOF
46458 #define wxUSE_STD_STRING 1
46459 _ACEOF
46460
46461 fi
46462
46463 if test "$wxUSE_STDPATHS" = "yes"; then
46464   cat >>confdefs.h <<\_ACEOF
46465 #define wxUSE_STDPATHS 1
46466 _ACEOF
46467
46468 fi
46469
46470 if test "$wxUSE_TEXTBUFFER" = "yes"; then
46471     cat >>confdefs.h <<\_ACEOF
46472 #define wxUSE_TEXTBUFFER 1
46473 _ACEOF
46474
46475 fi
46476
46477 if test "$wxUSE_TEXTFILE" = "yes"; then
46478   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
46479     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
46480 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
46481   else
46482     cat >>confdefs.h <<\_ACEOF
46483 #define wxUSE_TEXTFILE 1
46484 _ACEOF
46485
46486   fi
46487 fi
46488
46489 if test "$wxUSE_CONFIG" = "yes" ; then
46490   if test "$wxUSE_TEXTFILE" != "yes"; then
46491     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
46492 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
46493   else
46494     cat >>confdefs.h <<\_ACEOF
46495 #define wxUSE_CONFIG 1
46496 _ACEOF
46497
46498     cat >>confdefs.h <<\_ACEOF
46499 #define wxUSE_CONFIG_NATIVE 1
46500 _ACEOF
46501
46502     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
46503   fi
46504 fi
46505
46506 if test "$wxUSE_INTL" = "yes" ; then
46507   if test "$wxUSE_FILE" != "yes"; then
46508     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
46509 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
46510   else
46511     cat >>confdefs.h <<\_ACEOF
46512 #define wxUSE_INTL 1
46513 _ACEOF
46514
46515     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
46516     GUIDIST="$GUIDIST INTL_DIST"
46517   fi
46518 fi
46519
46520 if test "$wxUSE_LOG" = "yes"; then
46521   cat >>confdefs.h <<\_ACEOF
46522 #define wxUSE_LOG 1
46523 _ACEOF
46524
46525
46526     if test "$wxUSE_LOGGUI" = "yes"; then
46527       cat >>confdefs.h <<\_ACEOF
46528 #define wxUSE_LOGGUI 1
46529 _ACEOF
46530
46531     fi
46532
46533     if test "$wxUSE_LOGWINDOW" = "yes"; then
46534       cat >>confdefs.h <<\_ACEOF
46535 #define wxUSE_LOGWINDOW 1
46536 _ACEOF
46537
46538     fi
46539
46540     if test "$wxUSE_LOGDIALOG" = "yes"; then
46541       cat >>confdefs.h <<\_ACEOF
46542 #define wxUSE_LOG_DIALOG 1
46543 _ACEOF
46544
46545     fi
46546
46547         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
46548 fi
46549
46550 if test "$wxUSE_LONGLONG" = "yes"; then
46551   cat >>confdefs.h <<\_ACEOF
46552 #define wxUSE_LONGLONG 1
46553 _ACEOF
46554
46555 fi
46556
46557 if test "$wxUSE_GEOMETRY" = "yes"; then
46558   cat >>confdefs.h <<\_ACEOF
46559 #define wxUSE_GEOMETRY 1
46560 _ACEOF
46561
46562 fi
46563
46564 if test "$wxUSE_BASE64" = "yes"; then
46565   cat >>confdefs.h <<\_ACEOF
46566 #define wxUSE_BASE64 1
46567 _ACEOF
46568
46569 fi
46570
46571 if test "$wxUSE_STREAMS" = "yes" ; then
46572   cat >>confdefs.h <<\_ACEOF
46573 #define wxUSE_STREAMS 1
46574 _ACEOF
46575
46576 fi
46577
46578 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
46579   cat >>confdefs.h <<\_ACEOF
46580 #define wxUSE_PRINTF_POS_PARAMS 1
46581 _ACEOF
46582
46583 fi
46584
46585 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
46586   cat >>confdefs.h <<\_ACEOF
46587 #define wxUSE_OBJC_UNIQUIFYING 1
46588 _ACEOF
46589
46590 fi
46591
46592
46593 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
46594     cat >>confdefs.h <<\_ACEOF
46595 #define wxUSE_CONSOLE_EVENTLOOP 1
46596 _ACEOF
46597
46598
46599     if test "$wxUSE_UNIX" = "yes"; then
46600         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
46601             cat >>confdefs.h <<\_ACEOF
46602 #define wxUSE_SELECT_DISPATCHER 1
46603 _ACEOF
46604
46605         fi
46606
46607         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
46608
46609 for ac_header in sys/epoll.h
46610 do
46611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46615   echo $ECHO_N "(cached) $ECHO_C" >&6
46616 else
46617   cat >conftest.$ac_ext <<_ACEOF
46618 /* confdefs.h.  */
46619 _ACEOF
46620 cat confdefs.h >>conftest.$ac_ext
46621 cat >>conftest.$ac_ext <<_ACEOF
46622 /* end confdefs.h.  */
46623 $ac_includes_default
46624
46625 #include <$ac_header>
46626 _ACEOF
46627 rm -f conftest.$ac_objext
46628 if { (ac_try="$ac_compile"
46629 case "(($ac_try" in
46630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46631   *) ac_try_echo=$ac_try;;
46632 esac
46633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46634   (eval "$ac_compile") 2>conftest.er1
46635   ac_status=$?
46636   grep -v '^ *+' conftest.er1 >conftest.err
46637   rm -f conftest.er1
46638   cat conftest.err >&5
46639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46640   (exit $ac_status); } && {
46641          test -z "$ac_c_werror_flag" ||
46642          test ! -s conftest.err
46643        } && test -s conftest.$ac_objext; then
46644   eval "$as_ac_Header=yes"
46645 else
46646   echo "$as_me: failed program was:" >&5
46647 sed 's/^/| /' conftest.$ac_ext >&5
46648
46649         eval "$as_ac_Header=no"
46650 fi
46651
46652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46653 fi
46654 ac_res=`eval echo '${'$as_ac_Header'}'`
46655                { echo "$as_me:$LINENO: result: $ac_res" >&5
46656 echo "${ECHO_T}$ac_res" >&6; }
46657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46658   cat >>confdefs.h <<_ACEOF
46659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46660 _ACEOF
46661
46662 fi
46663
46664 done
46665
46666             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
46667                 cat >>confdefs.h <<\_ACEOF
46668 #define wxUSE_EPOLL_DISPATCHER 1
46669 _ACEOF
46670
46671             else
46672                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
46673 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
46674             fi
46675         fi
46676     fi
46677 fi
46678
46679
46680
46681
46682 for ac_func in gettimeofday ftime
46683 do
46684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46688   echo $ECHO_N "(cached) $ECHO_C" >&6
46689 else
46690   cat >conftest.$ac_ext <<_ACEOF
46691 /* confdefs.h.  */
46692 _ACEOF
46693 cat confdefs.h >>conftest.$ac_ext
46694 cat >>conftest.$ac_ext <<_ACEOF
46695 /* end confdefs.h.  */
46696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46698 #define $ac_func innocuous_$ac_func
46699
46700 /* System header to define __stub macros and hopefully few prototypes,
46701     which can conflict with char $ac_func (); below.
46702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46703     <limits.h> exists even on freestanding compilers.  */
46704
46705 #ifdef __STDC__
46706 # include <limits.h>
46707 #else
46708 # include <assert.h>
46709 #endif
46710
46711 #undef $ac_func
46712
46713 /* Override any GCC internal prototype to avoid an error.
46714    Use char because int might match the return type of a GCC
46715    builtin and then its argument prototype would still apply.  */
46716 #ifdef __cplusplus
46717 extern "C"
46718 #endif
46719 char $ac_func ();
46720 /* The GNU C library defines this for functions which it implements
46721     to always fail with ENOSYS.  Some functions are actually named
46722     something starting with __ and the normal name is an alias.  */
46723 #if defined __stub_$ac_func || defined __stub___$ac_func
46724 choke me
46725 #endif
46726
46727 int
46728 main ()
46729 {
46730 return $ac_func ();
46731   ;
46732   return 0;
46733 }
46734 _ACEOF
46735 rm -f conftest.$ac_objext conftest$ac_exeext
46736 if { (ac_try="$ac_link"
46737 case "(($ac_try" in
46738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46739   *) ac_try_echo=$ac_try;;
46740 esac
46741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46742   (eval "$ac_link") 2>conftest.er1
46743   ac_status=$?
46744   grep -v '^ *+' conftest.er1 >conftest.err
46745   rm -f conftest.er1
46746   cat conftest.err >&5
46747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46748   (exit $ac_status); } && {
46749          test -z "$ac_c_werror_flag" ||
46750          test ! -s conftest.err
46751        } && test -s conftest$ac_exeext &&
46752        $as_test_x conftest$ac_exeext; then
46753   eval "$as_ac_var=yes"
46754 else
46755   echo "$as_me: failed program was:" >&5
46756 sed 's/^/| /' conftest.$ac_ext >&5
46757
46758         eval "$as_ac_var=no"
46759 fi
46760
46761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46762       conftest$ac_exeext conftest.$ac_ext
46763 fi
46764 ac_res=`eval echo '${'$as_ac_var'}'`
46765                { echo "$as_me:$LINENO: result: $ac_res" >&5
46766 echo "${ECHO_T}$ac_res" >&6; }
46767 if test `eval echo '${'$as_ac_var'}'` = yes; then
46768   cat >>confdefs.h <<_ACEOF
46769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46770 _ACEOF
46771  break
46772 fi
46773 done
46774
46775
46776 if test "$ac_cv_func_gettimeofday" = "yes"; then
46777     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
46778 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
46779 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
46780   echo $ECHO_N "(cached) $ECHO_C" >&6
46781 else
46782
46783                 cat >conftest.$ac_ext <<_ACEOF
46784 /* confdefs.h.  */
46785 _ACEOF
46786 cat confdefs.h >>conftest.$ac_ext
46787 cat >>conftest.$ac_ext <<_ACEOF
46788 /* end confdefs.h.  */
46789
46790                 #include <sys/time.h>
46791                 #include <unistd.h>
46792
46793 int
46794 main ()
46795 {
46796
46797                 struct timeval tv;
46798                 gettimeofday(&tv, NULL);
46799
46800   ;
46801   return 0;
46802 }
46803 _ACEOF
46804 rm -f conftest.$ac_objext
46805 if { (ac_try="$ac_compile"
46806 case "(($ac_try" in
46807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46808   *) ac_try_echo=$ac_try;;
46809 esac
46810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46811   (eval "$ac_compile") 2>conftest.er1
46812   ac_status=$?
46813   grep -v '^ *+' conftest.er1 >conftest.err
46814   rm -f conftest.er1
46815   cat conftest.err >&5
46816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46817   (exit $ac_status); } && {
46818          test -z "$ac_c_werror_flag" ||
46819          test ! -s conftest.err
46820        } && test -s conftest.$ac_objext; then
46821   wx_cv_func_gettimeofday_has_2_args=yes
46822 else
46823   echo "$as_me: failed program was:" >&5
46824 sed 's/^/| /' conftest.$ac_ext >&5
46825
46826         cat >conftest.$ac_ext <<_ACEOF
46827 /* confdefs.h.  */
46828 _ACEOF
46829 cat confdefs.h >>conftest.$ac_ext
46830 cat >>conftest.$ac_ext <<_ACEOF
46831 /* end confdefs.h.  */
46832
46833                     #include <sys/time.h>
46834                     #include <unistd.h>
46835
46836 int
46837 main ()
46838 {
46839
46840                     struct timeval tv;
46841                     gettimeofday(&tv);
46842
46843   ;
46844   return 0;
46845 }
46846 _ACEOF
46847 rm -f conftest.$ac_objext
46848 if { (ac_try="$ac_compile"
46849 case "(($ac_try" in
46850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46851   *) ac_try_echo=$ac_try;;
46852 esac
46853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46854   (eval "$ac_compile") 2>conftest.er1
46855   ac_status=$?
46856   grep -v '^ *+' conftest.er1 >conftest.err
46857   rm -f conftest.er1
46858   cat conftest.err >&5
46859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46860   (exit $ac_status); } && {
46861          test -z "$ac_c_werror_flag" ||
46862          test ! -s conftest.err
46863        } && test -s conftest.$ac_objext; then
46864   wx_cv_func_gettimeofday_has_2_args=no
46865 else
46866   echo "$as_me: failed program was:" >&5
46867 sed 's/^/| /' conftest.$ac_ext >&5
46868
46869
46870                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
46871 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
46872                     wx_cv_func_gettimeofday_has_2_args=unknown
46873
46874
46875 fi
46876
46877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46878
46879 fi
46880
46881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46882
46883 fi
46884 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
46885 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
46886
46887     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
46888         cat >>confdefs.h <<\_ACEOF
46889 #define WX_GETTIMEOFDAY_NO_TZ 1
46890 _ACEOF
46891
46892     fi
46893 fi
46894
46895 if test "$wxUSE_DATETIME" = "yes"; then
46896         { echo "$as_me:$LINENO: checking for strptime" >&5
46897 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
46898 if test "${ac_cv_func_strptime+set}" = set; then
46899   echo $ECHO_N "(cached) $ECHO_C" >&6
46900 else
46901   cat >conftest.$ac_ext <<_ACEOF
46902 /* confdefs.h.  */
46903 _ACEOF
46904 cat confdefs.h >>conftest.$ac_ext
46905 cat >>conftest.$ac_ext <<_ACEOF
46906 /* end confdefs.h.  */
46907 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
46908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46909 #define strptime innocuous_strptime
46910
46911 /* System header to define __stub macros and hopefully few prototypes,
46912     which can conflict with char strptime (); below.
46913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46914     <limits.h> exists even on freestanding compilers.  */
46915
46916 #ifdef __STDC__
46917 # include <limits.h>
46918 #else
46919 # include <assert.h>
46920 #endif
46921
46922 #undef strptime
46923
46924 /* Override any GCC internal prototype to avoid an error.
46925    Use char because int might match the return type of a GCC
46926    builtin and then its argument prototype would still apply.  */
46927 #ifdef __cplusplus
46928 extern "C"
46929 #endif
46930 char strptime ();
46931 /* The GNU C library defines this for functions which it implements
46932     to always fail with ENOSYS.  Some functions are actually named
46933     something starting with __ and the normal name is an alias.  */
46934 #if defined __stub_strptime || defined __stub___strptime
46935 choke me
46936 #endif
46937
46938 int
46939 main ()
46940 {
46941 return strptime ();
46942   ;
46943   return 0;
46944 }
46945 _ACEOF
46946 rm -f conftest.$ac_objext conftest$ac_exeext
46947 if { (ac_try="$ac_link"
46948 case "(($ac_try" in
46949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46950   *) ac_try_echo=$ac_try;;
46951 esac
46952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46953   (eval "$ac_link") 2>conftest.er1
46954   ac_status=$?
46955   grep -v '^ *+' conftest.er1 >conftest.err
46956   rm -f conftest.er1
46957   cat conftest.err >&5
46958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46959   (exit $ac_status); } && {
46960          test -z "$ac_c_werror_flag" ||
46961          test ! -s conftest.err
46962        } && test -s conftest$ac_exeext &&
46963        $as_test_x conftest$ac_exeext; then
46964   ac_cv_func_strptime=yes
46965 else
46966   echo "$as_me: failed program was:" >&5
46967 sed 's/^/| /' conftest.$ac_ext >&5
46968
46969         ac_cv_func_strptime=no
46970 fi
46971
46972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46973       conftest$ac_exeext conftest.$ac_ext
46974 fi
46975 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46976 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46977
46978     if test "$ac_cv_func_strptime" = "yes"; then
46979         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46980 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46981 if test "${wx_cv_func_strptime_decl+set}" = set; then
46982   echo $ECHO_N "(cached) $ECHO_C" >&6
46983 else
46984
46985                 ac_ext=cpp
46986 ac_cpp='$CXXCPP $CPPFLAGS'
46987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46990
46991                 cat >conftest.$ac_ext <<_ACEOF
46992 /* confdefs.h.  */
46993 _ACEOF
46994 cat confdefs.h >>conftest.$ac_ext
46995 cat >>conftest.$ac_ext <<_ACEOF
46996 /* end confdefs.h.  */
46997
46998                         #include <time.h>
46999
47000 int
47001 main ()
47002 {
47003
47004                         struct tm t;
47005                         strptime("foo", "bar", &t);
47006
47007   ;
47008   return 0;
47009 }
47010 _ACEOF
47011 rm -f conftest.$ac_objext
47012 if { (ac_try="$ac_compile"
47013 case "(($ac_try" in
47014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47015   *) ac_try_echo=$ac_try;;
47016 esac
47017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47018   (eval "$ac_compile") 2>conftest.er1
47019   ac_status=$?
47020   grep -v '^ *+' conftest.er1 >conftest.err
47021   rm -f conftest.er1
47022   cat conftest.err >&5
47023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47024   (exit $ac_status); } && {
47025          test -z "$ac_cxx_werror_flag" ||
47026          test ! -s conftest.err
47027        } && test -s conftest.$ac_objext; then
47028   wx_cv_func_strptime_decl=yes
47029 else
47030   echo "$as_me: failed program was:" >&5
47031 sed 's/^/| /' conftest.$ac_ext >&5
47032
47033         wx_cv_func_strptime_decl=no
47034
47035 fi
47036
47037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47038                 ac_ext=c
47039 ac_cpp='$CPP $CPPFLAGS'
47040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47043
47044
47045
47046 fi
47047 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
47048 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
47049     fi
47050     if test "$wx_cv_func_strptime_decl" = "yes"; then
47051         cat >>confdefs.h <<\_ACEOF
47052 #define HAVE_STRPTIME_DECL 1
47053 _ACEOF
47054
47055     else
47056         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
47057     fi
47058     if test "$ac_cv_func_strptime" = "yes"; then
47059                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
47060 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
47061 if test "${wx_cv_func_strptime_ok+set}" = set; then
47062   echo $ECHO_N "(cached) $ECHO_C" >&6
47063 else
47064   if test "$cross_compiling" = yes; then
47065                   wx_cv_func_strptime_ok=no
47066
47067 else
47068   cat >conftest.$ac_ext <<_ACEOF
47069
47070                     #include <stdlib.h>
47071                     #include <time.h>
47072                     #include "confdefs.h"
47073
47074                     $wx_strptime_decl
47075
47076                     int main()
47077                     {
47078                         struct tm t;
47079                         return !!strptime("", "%x", &t);
47080                     }
47081
47082 _ACEOF
47083 rm -f conftest$ac_exeext
47084 if { (ac_try="$ac_link"
47085 case "(($ac_try" in
47086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47087   *) ac_try_echo=$ac_try;;
47088 esac
47089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47090   (eval "$ac_link") 2>&5
47091   ac_status=$?
47092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47093   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47094   { (case "(($ac_try" in
47095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47096   *) ac_try_echo=$ac_try;;
47097 esac
47098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47099   (eval "$ac_try") 2>&5
47100   ac_status=$?
47101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47102   (exit $ac_status); }; }; then
47103   wx_cv_func_strptime_ok=yes
47104 else
47105   echo "$as_me: program exited with status $ac_status" >&5
47106 echo "$as_me: failed program was:" >&5
47107 sed 's/^/| /' conftest.$ac_ext >&5
47108
47109 ( exit $ac_status )
47110 wx_cv_func_strptime_ok=no
47111 fi
47112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47113 fi
47114
47115
47116
47117 fi
47118 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
47119 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
47120
47121         if test "$wx_cv_func_strptime_ok" = "yes"; then
47122             cat >>confdefs.h <<\_ACEOF
47123 #define HAVE_STRPTIME 1
47124 _ACEOF
47125
47126         fi
47127     fi
47128
47129             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
47130 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
47131 if test "${wx_cv_var_timezone+set}" = set; then
47132   echo $ECHO_N "(cached) $ECHO_C" >&6
47133 else
47134
47135                         ac_ext=cpp
47136 ac_cpp='$CXXCPP $CPPFLAGS'
47137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47140
47141                         cat >conftest.$ac_ext <<_ACEOF
47142 /* confdefs.h.  */
47143 _ACEOF
47144 cat confdefs.h >>conftest.$ac_ext
47145 cat >>conftest.$ac_ext <<_ACEOF
47146 /* end confdefs.h.  */
47147
47148                                 #include <time.h>
47149
47150 int
47151 main ()
47152 {
47153
47154                                 int tz;
47155                                 tz = timezone;
47156
47157   ;
47158   return 0;
47159 }
47160 _ACEOF
47161 rm -f conftest.$ac_objext
47162 if { (ac_try="$ac_compile"
47163 case "(($ac_try" in
47164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47165   *) ac_try_echo=$ac_try;;
47166 esac
47167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47168   (eval "$ac_compile") 2>conftest.er1
47169   ac_status=$?
47170   grep -v '^ *+' conftest.er1 >conftest.err
47171   rm -f conftest.er1
47172   cat conftest.err >&5
47173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47174   (exit $ac_status); } && {
47175          test -z "$ac_cxx_werror_flag" ||
47176          test ! -s conftest.err
47177        } && test -s conftest.$ac_objext; then
47178
47179                                 wx_cv_var_timezone=timezone
47180
47181 else
47182   echo "$as_me: failed program was:" >&5
47183 sed 's/^/| /' conftest.$ac_ext >&5
47184
47185
47186                                 cat >conftest.$ac_ext <<_ACEOF
47187 /* confdefs.h.  */
47188 _ACEOF
47189 cat confdefs.h >>conftest.$ac_ext
47190 cat >>conftest.$ac_ext <<_ACEOF
47191 /* end confdefs.h.  */
47192
47193                                         #include <time.h>
47194
47195 int
47196 main ()
47197 {
47198
47199                                         int tz;
47200                                         tz = _timezone;
47201
47202   ;
47203   return 0;
47204 }
47205 _ACEOF
47206 rm -f conftest.$ac_objext
47207 if { (ac_try="$ac_compile"
47208 case "(($ac_try" in
47209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47210   *) ac_try_echo=$ac_try;;
47211 esac
47212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47213   (eval "$ac_compile") 2>conftest.er1
47214   ac_status=$?
47215   grep -v '^ *+' conftest.er1 >conftest.err
47216   rm -f conftest.er1
47217   cat conftest.err >&5
47218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47219   (exit $ac_status); } && {
47220          test -z "$ac_cxx_werror_flag" ||
47221          test ! -s conftest.err
47222        } && test -s conftest.$ac_objext; then
47223
47224                                         wx_cv_var_timezone=_timezone
47225
47226 else
47227   echo "$as_me: failed program was:" >&5
47228 sed 's/^/| /' conftest.$ac_ext >&5
47229
47230
47231                                         cat >conftest.$ac_ext <<_ACEOF
47232 /* confdefs.h.  */
47233 _ACEOF
47234 cat confdefs.h >>conftest.$ac_ext
47235 cat >>conftest.$ac_ext <<_ACEOF
47236 /* end confdefs.h.  */
47237
47238                                                 #include <time.h>
47239
47240 int
47241 main ()
47242 {
47243
47244                                                 int tz;
47245                                                 tz = __timezone;
47246
47247   ;
47248   return 0;
47249 }
47250 _ACEOF
47251 rm -f conftest.$ac_objext
47252 if { (ac_try="$ac_compile"
47253 case "(($ac_try" in
47254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47255   *) ac_try_echo=$ac_try;;
47256 esac
47257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47258   (eval "$ac_compile") 2>conftest.er1
47259   ac_status=$?
47260   grep -v '^ *+' conftest.er1 >conftest.err
47261   rm -f conftest.er1
47262   cat conftest.err >&5
47263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47264   (exit $ac_status); } && {
47265          test -z "$ac_cxx_werror_flag" ||
47266          test ! -s conftest.err
47267        } && test -s conftest.$ac_objext; then
47268
47269                                                 wx_cv_var_timezone=__timezone
47270
47271 else
47272   echo "$as_me: failed program was:" >&5
47273 sed 's/^/| /' conftest.$ac_ext >&5
47274
47275
47276                                                 if test "$USE_DOS" = 0 ; then
47277                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
47278 echo "$as_me: WARNING: no timezone variable" >&2;}
47279                                                 fi
47280
47281
47282 fi
47283
47284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47285
47286
47287 fi
47288
47289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47290
47291
47292 fi
47293
47294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47295                         ac_ext=c
47296 ac_cpp='$CPP $CPPFLAGS'
47297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47300
47301
47302
47303 fi
47304 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
47305 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
47306
47307         if test "x$wx_cv_var_timezone" != x ; then
47308         cat >>confdefs.h <<_ACEOF
47309 #define WX_TIMEZONE $wx_cv_var_timezone
47310 _ACEOF
47311
47312     fi
47313
47314
47315 for ac_func in localtime
47316 do
47317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47321   echo $ECHO_N "(cached) $ECHO_C" >&6
47322 else
47323   cat >conftest.$ac_ext <<_ACEOF
47324 /* confdefs.h.  */
47325 _ACEOF
47326 cat confdefs.h >>conftest.$ac_ext
47327 cat >>conftest.$ac_ext <<_ACEOF
47328 /* end confdefs.h.  */
47329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47331 #define $ac_func innocuous_$ac_func
47332
47333 /* System header to define __stub macros and hopefully few prototypes,
47334     which can conflict with char $ac_func (); below.
47335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47336     <limits.h> exists even on freestanding compilers.  */
47337
47338 #ifdef __STDC__
47339 # include <limits.h>
47340 #else
47341 # include <assert.h>
47342 #endif
47343
47344 #undef $ac_func
47345
47346 /* Override any GCC internal prototype to avoid an error.
47347    Use char because int might match the return type of a GCC
47348    builtin and then its argument prototype would still apply.  */
47349 #ifdef __cplusplus
47350 extern "C"
47351 #endif
47352 char $ac_func ();
47353 /* The GNU C library defines this for functions which it implements
47354     to always fail with ENOSYS.  Some functions are actually named
47355     something starting with __ and the normal name is an alias.  */
47356 #if defined __stub_$ac_func || defined __stub___$ac_func
47357 choke me
47358 #endif
47359
47360 int
47361 main ()
47362 {
47363 return $ac_func ();
47364   ;
47365   return 0;
47366 }
47367 _ACEOF
47368 rm -f conftest.$ac_objext conftest$ac_exeext
47369 if { (ac_try="$ac_link"
47370 case "(($ac_try" in
47371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47372   *) ac_try_echo=$ac_try;;
47373 esac
47374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47375   (eval "$ac_link") 2>conftest.er1
47376   ac_status=$?
47377   grep -v '^ *+' conftest.er1 >conftest.err
47378   rm -f conftest.er1
47379   cat conftest.err >&5
47380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47381   (exit $ac_status); } && {
47382          test -z "$ac_c_werror_flag" ||
47383          test ! -s conftest.err
47384        } && test -s conftest$ac_exeext &&
47385        $as_test_x conftest$ac_exeext; then
47386   eval "$as_ac_var=yes"
47387 else
47388   echo "$as_me: failed program was:" >&5
47389 sed 's/^/| /' conftest.$ac_ext >&5
47390
47391         eval "$as_ac_var=no"
47392 fi
47393
47394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47395       conftest$ac_exeext conftest.$ac_ext
47396 fi
47397 ac_res=`eval echo '${'$as_ac_var'}'`
47398                { echo "$as_me:$LINENO: result: $ac_res" >&5
47399 echo "${ECHO_T}$ac_res" >&6; }
47400 if test `eval echo '${'$as_ac_var'}'` = yes; then
47401   cat >>confdefs.h <<_ACEOF
47402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47403 _ACEOF
47404
47405 fi
47406 done
47407
47408
47409     if test "$ac_cv_func_localtime" = "yes"; then
47410         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
47411 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
47412 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
47413   echo $ECHO_N "(cached) $ECHO_C" >&6
47414 else
47415
47416             cat >conftest.$ac_ext <<_ACEOF
47417 /* confdefs.h.  */
47418 _ACEOF
47419 cat confdefs.h >>conftest.$ac_ext
47420 cat >>conftest.$ac_ext <<_ACEOF
47421 /* end confdefs.h.  */
47422
47423                     #include <time.h>
47424
47425 int
47426 main ()
47427 {
47428
47429                     struct tm tm;
47430                     tm.tm_gmtoff++;
47431
47432   ;
47433   return 0;
47434 }
47435 _ACEOF
47436 rm -f conftest.$ac_objext
47437 if { (ac_try="$ac_compile"
47438 case "(($ac_try" in
47439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47440   *) ac_try_echo=$ac_try;;
47441 esac
47442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47443   (eval "$ac_compile") 2>conftest.er1
47444   ac_status=$?
47445   grep -v '^ *+' conftest.er1 >conftest.err
47446   rm -f conftest.er1
47447   cat conftest.err >&5
47448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47449   (exit $ac_status); } && {
47450          test -z "$ac_c_werror_flag" ||
47451          test ! -s conftest.err
47452        } && test -s conftest.$ac_objext; then
47453
47454                     wx_cv_struct_tm_has_gmtoff=yes
47455
47456 else
47457   echo "$as_me: failed program was:" >&5
47458 sed 's/^/| /' conftest.$ac_ext >&5
47459
47460         wx_cv_struct_tm_has_gmtoff=no
47461
47462 fi
47463
47464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47465
47466 fi
47467 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
47468 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
47469     fi
47470
47471     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
47472         cat >>confdefs.h <<\_ACEOF
47473 #define WX_GMTOFF_IN_TM 1
47474 _ACEOF
47475
47476     fi
47477
47478     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
47479 fi
47480
47481
47482 if test "$wxUSE_SOCKETS" = "yes"; then
47483     if test "$wxUSE_MGL" = "1"; then
47484         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
47485 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
47486         wxUSE_SOCKETS="no"
47487     fi
47488 fi
47489
47490 if test "$wxUSE_SOCKETS" = "yes"; then
47491         if test "$TOOLKIT" != "MSW"; then
47492                 { echo "$as_me:$LINENO: checking for socket" >&5
47493 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
47494 if test "${ac_cv_func_socket+set}" = set; then
47495   echo $ECHO_N "(cached) $ECHO_C" >&6
47496 else
47497   cat >conftest.$ac_ext <<_ACEOF
47498 /* confdefs.h.  */
47499 _ACEOF
47500 cat confdefs.h >>conftest.$ac_ext
47501 cat >>conftest.$ac_ext <<_ACEOF
47502 /* end confdefs.h.  */
47503 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
47504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47505 #define socket innocuous_socket
47506
47507 /* System header to define __stub macros and hopefully few prototypes,
47508     which can conflict with char socket (); below.
47509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47510     <limits.h> exists even on freestanding compilers.  */
47511
47512 #ifdef __STDC__
47513 # include <limits.h>
47514 #else
47515 # include <assert.h>
47516 #endif
47517
47518 #undef socket
47519
47520 /* Override any GCC internal prototype to avoid an error.
47521    Use char because int might match the return type of a GCC
47522    builtin and then its argument prototype would still apply.  */
47523 #ifdef __cplusplus
47524 extern "C"
47525 #endif
47526 char socket ();
47527 /* The GNU C library defines this for functions which it implements
47528     to always fail with ENOSYS.  Some functions are actually named
47529     something starting with __ and the normal name is an alias.  */
47530 #if defined __stub_socket || defined __stub___socket
47531 choke me
47532 #endif
47533
47534 int
47535 main ()
47536 {
47537 return socket ();
47538   ;
47539   return 0;
47540 }
47541 _ACEOF
47542 rm -f conftest.$ac_objext conftest$ac_exeext
47543 if { (ac_try="$ac_link"
47544 case "(($ac_try" in
47545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47546   *) ac_try_echo=$ac_try;;
47547 esac
47548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47549   (eval "$ac_link") 2>conftest.er1
47550   ac_status=$?
47551   grep -v '^ *+' conftest.er1 >conftest.err
47552   rm -f conftest.er1
47553   cat conftest.err >&5
47554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47555   (exit $ac_status); } && {
47556          test -z "$ac_c_werror_flag" ||
47557          test ! -s conftest.err
47558        } && test -s conftest$ac_exeext &&
47559        $as_test_x conftest$ac_exeext; then
47560   ac_cv_func_socket=yes
47561 else
47562   echo "$as_me: failed program was:" >&5
47563 sed 's/^/| /' conftest.$ac_ext >&5
47564
47565         ac_cv_func_socket=no
47566 fi
47567
47568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47569       conftest$ac_exeext conftest.$ac_ext
47570 fi
47571 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
47572 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
47573 if test $ac_cv_func_socket = yes; then
47574   :
47575 else
47576
47577                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
47578 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
47579 if test "${ac_cv_lib_socket_socket+set}" = set; then
47580   echo $ECHO_N "(cached) $ECHO_C" >&6
47581 else
47582   ac_check_lib_save_LIBS=$LIBS
47583 LIBS="-lsocket  $LIBS"
47584 cat >conftest.$ac_ext <<_ACEOF
47585 /* confdefs.h.  */
47586 _ACEOF
47587 cat confdefs.h >>conftest.$ac_ext
47588 cat >>conftest.$ac_ext <<_ACEOF
47589 /* end confdefs.h.  */
47590
47591 /* Override any GCC internal prototype to avoid an error.
47592    Use char because int might match the return type of a GCC
47593    builtin and then its argument prototype would still apply.  */
47594 #ifdef __cplusplus
47595 extern "C"
47596 #endif
47597 char socket ();
47598 int
47599 main ()
47600 {
47601 return socket ();
47602   ;
47603   return 0;
47604 }
47605 _ACEOF
47606 rm -f conftest.$ac_objext conftest$ac_exeext
47607 if { (ac_try="$ac_link"
47608 case "(($ac_try" in
47609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47610   *) ac_try_echo=$ac_try;;
47611 esac
47612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47613   (eval "$ac_link") 2>conftest.er1
47614   ac_status=$?
47615   grep -v '^ *+' conftest.er1 >conftest.err
47616   rm -f conftest.er1
47617   cat conftest.err >&5
47618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47619   (exit $ac_status); } && {
47620          test -z "$ac_c_werror_flag" ||
47621          test ! -s conftest.err
47622        } && test -s conftest$ac_exeext &&
47623        $as_test_x conftest$ac_exeext; then
47624   ac_cv_lib_socket_socket=yes
47625 else
47626   echo "$as_me: failed program was:" >&5
47627 sed 's/^/| /' conftest.$ac_ext >&5
47628
47629         ac_cv_lib_socket_socket=no
47630 fi
47631
47632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47633       conftest$ac_exeext conftest.$ac_ext
47634 LIBS=$ac_check_lib_save_LIBS
47635 fi
47636 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
47637 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
47638 if test $ac_cv_lib_socket_socket = yes; then
47639   if test "$INET_LINK" != " -lsocket"; then
47640                         INET_LINK="$INET_LINK -lsocket"
47641                     fi
47642 else
47643
47644                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
47645 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
47646                         wxUSE_SOCKETS=no
47647
47648
47649 fi
47650
47651
47652
47653 fi
47654
47655     fi
47656 fi
47657
47658 if test "$wxUSE_SOCKETS" = "yes" ; then
47659                 if test "$TOOLKIT" != "MSW"; then
47660                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
47661 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
47662 if test "${wx_cv_type_getsockname3+set}" = set; then
47663   echo $ECHO_N "(cached) $ECHO_C" >&6
47664 else
47665
47666                 ac_ext=cpp
47667 ac_cpp='$CXXCPP $CPPFLAGS'
47668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47671
47672                 cat >conftest.$ac_ext <<_ACEOF
47673 /* confdefs.h.  */
47674 _ACEOF
47675 cat confdefs.h >>conftest.$ac_ext
47676 cat >>conftest.$ac_ext <<_ACEOF
47677 /* end confdefs.h.  */
47678
47679                         #include <sys/types.h>
47680                         #include <sys/socket.h>
47681
47682 int
47683 main ()
47684 {
47685
47686                         socklen_t len;
47687                         getsockname(0, 0, &len);
47688
47689   ;
47690   return 0;
47691 }
47692 _ACEOF
47693 rm -f conftest.$ac_objext
47694 if { (ac_try="$ac_compile"
47695 case "(($ac_try" in
47696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47697   *) ac_try_echo=$ac_try;;
47698 esac
47699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47700   (eval "$ac_compile") 2>conftest.er1
47701   ac_status=$?
47702   grep -v '^ *+' conftest.er1 >conftest.err
47703   rm -f conftest.er1
47704   cat conftest.err >&5
47705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47706   (exit $ac_status); } && {
47707          test -z "$ac_cxx_werror_flag" ||
47708          test ! -s conftest.err
47709        } && test -s conftest.$ac_objext; then
47710   wx_cv_type_getsockname3=socklen_t
47711 else
47712   echo "$as_me: failed program was:" >&5
47713 sed 's/^/| /' conftest.$ac_ext >&5
47714
47715
47716                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
47717                         if test "$GCC" = yes ; then
47718                             CFLAGS="-Werror $CFLAGS"
47719                         fi
47720
47721                         cat >conftest.$ac_ext <<_ACEOF
47722 /* confdefs.h.  */
47723 _ACEOF
47724 cat confdefs.h >>conftest.$ac_ext
47725 cat >>conftest.$ac_ext <<_ACEOF
47726 /* end confdefs.h.  */
47727
47728                                 #include <sys/types.h>
47729                                 #include <sys/socket.h>
47730
47731 int
47732 main ()
47733 {
47734
47735                                 size_t len;
47736                                 getsockname(0, 0, &len);
47737
47738   ;
47739   return 0;
47740 }
47741 _ACEOF
47742 rm -f conftest.$ac_objext
47743 if { (ac_try="$ac_compile"
47744 case "(($ac_try" in
47745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47746   *) ac_try_echo=$ac_try;;
47747 esac
47748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47749   (eval "$ac_compile") 2>conftest.er1
47750   ac_status=$?
47751   grep -v '^ *+' conftest.er1 >conftest.err
47752   rm -f conftest.er1
47753   cat conftest.err >&5
47754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47755   (exit $ac_status); } && {
47756          test -z "$ac_cxx_werror_flag" ||
47757          test ! -s conftest.err
47758        } && test -s conftest.$ac_objext; then
47759   wx_cv_type_getsockname3=size_t
47760 else
47761   echo "$as_me: failed program was:" >&5
47762 sed 's/^/| /' conftest.$ac_ext >&5
47763
47764         cat >conftest.$ac_ext <<_ACEOF
47765 /* confdefs.h.  */
47766 _ACEOF
47767 cat confdefs.h >>conftest.$ac_ext
47768 cat >>conftest.$ac_ext <<_ACEOF
47769 /* end confdefs.h.  */
47770
47771                                     #include <sys/types.h>
47772                                     #include <sys/socket.h>
47773
47774 int
47775 main ()
47776 {
47777
47778                                     int len;
47779                                     getsockname(0, 0, &len);
47780
47781   ;
47782   return 0;
47783 }
47784 _ACEOF
47785 rm -f conftest.$ac_objext
47786 if { (ac_try="$ac_compile"
47787 case "(($ac_try" in
47788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47789   *) ac_try_echo=$ac_try;;
47790 esac
47791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47792   (eval "$ac_compile") 2>conftest.er1
47793   ac_status=$?
47794   grep -v '^ *+' conftest.er1 >conftest.err
47795   rm -f conftest.er1
47796   cat conftest.err >&5
47797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47798   (exit $ac_status); } && {
47799          test -z "$ac_cxx_werror_flag" ||
47800          test ! -s conftest.err
47801        } && test -s conftest.$ac_objext; then
47802   wx_cv_type_getsockname3=int
47803 else
47804   echo "$as_me: failed program was:" >&5
47805 sed 's/^/| /' conftest.$ac_ext >&5
47806
47807         wx_cv_type_getsockname3=unknown
47808
47809 fi
47810
47811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47812
47813 fi
47814
47815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47816
47817                         CFLAGS="$CFLAGS_OLD"
47818
47819
47820 fi
47821
47822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47823                 ac_ext=c
47824 ac_cpp='$CPP $CPPFLAGS'
47825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47828
47829
47830 fi
47831 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
47832 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
47833
47834         if test "$wx_cv_type_getsockname3" = "unknown"; then
47835             wxUSE_SOCKETS=no
47836             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47837 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47838         else
47839             cat >>confdefs.h <<_ACEOF
47840 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
47841 _ACEOF
47842
47843         fi
47844                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
47845 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
47846 if test "${wx_cv_type_getsockopt5+set}" = set; then
47847   echo $ECHO_N "(cached) $ECHO_C" >&6
47848 else
47849
47850                                                                                                 ac_ext=cpp
47851 ac_cpp='$CXXCPP $CPPFLAGS'
47852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47855
47856                 cat >conftest.$ac_ext <<_ACEOF
47857 /* confdefs.h.  */
47858 _ACEOF
47859 cat confdefs.h >>conftest.$ac_ext
47860 cat >>conftest.$ac_ext <<_ACEOF
47861 /* end confdefs.h.  */
47862
47863                         #include <sys/types.h>
47864                         #include <sys/socket.h>
47865
47866 int
47867 main ()
47868 {
47869
47870                         socklen_t len;
47871                         getsockopt(0, 0, 0, 0, &len);
47872
47873   ;
47874   return 0;
47875 }
47876 _ACEOF
47877 rm -f conftest.$ac_objext
47878 if { (ac_try="$ac_compile"
47879 case "(($ac_try" in
47880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47881   *) ac_try_echo=$ac_try;;
47882 esac
47883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47884   (eval "$ac_compile") 2>conftest.er1
47885   ac_status=$?
47886   grep -v '^ *+' conftest.er1 >conftest.err
47887   rm -f conftest.er1
47888   cat conftest.err >&5
47889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47890   (exit $ac_status); } && {
47891          test -z "$ac_cxx_werror_flag" ||
47892          test ! -s conftest.err
47893        } && test -s conftest.$ac_objext; then
47894   wx_cv_type_getsockopt5=socklen_t
47895 else
47896   echo "$as_me: failed program was:" >&5
47897 sed 's/^/| /' conftest.$ac_ext >&5
47898
47899
47900                         cat >conftest.$ac_ext <<_ACEOF
47901 /* confdefs.h.  */
47902 _ACEOF
47903 cat confdefs.h >>conftest.$ac_ext
47904 cat >>conftest.$ac_ext <<_ACEOF
47905 /* end confdefs.h.  */
47906
47907                                 #include <sys/types.h>
47908                                 #include <sys/socket.h>
47909
47910 int
47911 main ()
47912 {
47913
47914                                 size_t len;
47915                                 getsockopt(0, 0, 0, 0, &len);
47916
47917   ;
47918   return 0;
47919 }
47920 _ACEOF
47921 rm -f conftest.$ac_objext
47922 if { (ac_try="$ac_compile"
47923 case "(($ac_try" in
47924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47925   *) ac_try_echo=$ac_try;;
47926 esac
47927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47928   (eval "$ac_compile") 2>conftest.er1
47929   ac_status=$?
47930   grep -v '^ *+' conftest.er1 >conftest.err
47931   rm -f conftest.er1
47932   cat conftest.err >&5
47933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47934   (exit $ac_status); } && {
47935          test -z "$ac_cxx_werror_flag" ||
47936          test ! -s conftest.err
47937        } && test -s conftest.$ac_objext; then
47938   wx_cv_type_getsockopt5=size_t
47939 else
47940   echo "$as_me: failed program was:" >&5
47941 sed 's/^/| /' conftest.$ac_ext >&5
47942
47943         cat >conftest.$ac_ext <<_ACEOF
47944 /* confdefs.h.  */
47945 _ACEOF
47946 cat confdefs.h >>conftest.$ac_ext
47947 cat >>conftest.$ac_ext <<_ACEOF
47948 /* end confdefs.h.  */
47949
47950                                     #include <sys/types.h>
47951                                     #include <sys/socket.h>
47952
47953 int
47954 main ()
47955 {
47956
47957                                     int len;
47958                                     getsockopt(0, 0, 0, 0, &len);
47959
47960   ;
47961   return 0;
47962 }
47963 _ACEOF
47964 rm -f conftest.$ac_objext
47965 if { (ac_try="$ac_compile"
47966 case "(($ac_try" in
47967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47968   *) ac_try_echo=$ac_try;;
47969 esac
47970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47971   (eval "$ac_compile") 2>conftest.er1
47972   ac_status=$?
47973   grep -v '^ *+' conftest.er1 >conftest.err
47974   rm -f conftest.er1
47975   cat conftest.err >&5
47976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47977   (exit $ac_status); } && {
47978          test -z "$ac_cxx_werror_flag" ||
47979          test ! -s conftest.err
47980        } && test -s conftest.$ac_objext; then
47981   wx_cv_type_getsockopt5=int
47982 else
47983   echo "$as_me: failed program was:" >&5
47984 sed 's/^/| /' conftest.$ac_ext >&5
47985
47986         wx_cv_type_getsockopt5=unknown
47987
47988 fi
47989
47990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47991
47992 fi
47993
47994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47995
47996
47997 fi
47998
47999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48000                 ac_ext=c
48001 ac_cpp='$CPP $CPPFLAGS'
48002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48005
48006
48007 fi
48008 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
48009 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
48010
48011         if test "$wx_cv_type_getsockopt5" = "unknown"; then
48012             wxUSE_SOCKETS=no
48013             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
48014 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
48015         else
48016             cat >>confdefs.h <<_ACEOF
48017 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
48018 _ACEOF
48019
48020         fi
48021     fi
48022 fi
48023
48024 if test "$wxUSE_SOCKETS" = "yes" ; then
48025     cat >>confdefs.h <<\_ACEOF
48026 #define wxUSE_SOCKETS 1
48027 _ACEOF
48028
48029     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
48030 fi
48031
48032 if test "$wxUSE_PROTOCOL" = "yes"; then
48033     if test "$wxUSE_SOCKETS" != "yes"; then
48034         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
48035 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
48036         wxUSE_PROTOCOL=no
48037     fi
48038 fi
48039
48040 if test "$wxUSE_PROTOCOL" = "yes"; then
48041     cat >>confdefs.h <<\_ACEOF
48042 #define wxUSE_PROTOCOL 1
48043 _ACEOF
48044
48045
48046     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
48047         cat >>confdefs.h <<\_ACEOF
48048 #define wxUSE_PROTOCOL_HTTP 1
48049 _ACEOF
48050
48051     fi
48052     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
48053         cat >>confdefs.h <<\_ACEOF
48054 #define wxUSE_PROTOCOL_FTP 1
48055 _ACEOF
48056
48057     fi
48058     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
48059         cat >>confdefs.h <<\_ACEOF
48060 #define wxUSE_PROTOCOL_FILE 1
48061 _ACEOF
48062
48063     fi
48064 else
48065     if test "$wxUSE_FS_INET" = "yes"; then
48066         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
48067 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
48068         wxUSE_FS_INET="no"
48069     fi
48070 fi
48071
48072 if test "$wxUSE_URL" = "yes"; then
48073     if test "$wxUSE_PROTOCOL" != "yes"; then
48074         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
48075 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
48076         wxUSE_URL=no
48077     fi
48078     if test "$wxUSE_URL" = "yes"; then
48079         cat >>confdefs.h <<\_ACEOF
48080 #define wxUSE_URL 1
48081 _ACEOF
48082
48083     fi
48084 fi
48085
48086 if test "$wxUSE_VARIANT" = "yes"; then
48087     cat >>confdefs.h <<\_ACEOF
48088 #define wxUSE_VARIANT 1
48089 _ACEOF
48090
48091 fi
48092
48093 if test "$wxUSE_FS_INET" = "yes"; then
48094   cat >>confdefs.h <<\_ACEOF
48095 #define wxUSE_FS_INET 1
48096 _ACEOF
48097
48098 fi
48099
48100
48101 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
48102     wxUSE_JOYSTICK=no
48103
48104         if test "$TOOLKIT" = "MSW"; then
48105         wxUSE_JOYSTICK=yes
48106
48107         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
48108         if test "$USE_DARWIN" = 1; then
48109                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
48110 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
48111             ac_ext=cpp
48112 ac_cpp='$CXXCPP $CPPFLAGS'
48113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48116
48117             cat >conftest.$ac_ext <<_ACEOF
48118 /* confdefs.h.  */
48119 _ACEOF
48120 cat confdefs.h >>conftest.$ac_ext
48121 cat >>conftest.$ac_ext <<_ACEOF
48122 /* end confdefs.h.  */
48123  #include <IOKit/hid/IOHIDLib.h>
48124 int
48125 main ()
48126 {
48127  IOHIDQueueInterface *qi = NULL;
48128                               IOHIDCallbackFunction cb = NULL;
48129                               qi->setEventCallout(NULL, cb, NULL, NULL);
48130   ;
48131   return 0;
48132 }
48133 _ACEOF
48134 rm -f conftest.$ac_objext
48135 if { (ac_try="$ac_compile"
48136 case "(($ac_try" in
48137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48138   *) ac_try_echo=$ac_try;;
48139 esac
48140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48141   (eval "$ac_compile") 2>conftest.er1
48142   ac_status=$?
48143   grep -v '^ *+' conftest.er1 >conftest.err
48144   rm -f conftest.er1
48145   cat conftest.err >&5
48146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48147   (exit $ac_status); } && {
48148          test -z "$ac_cxx_werror_flag" ||
48149          test ! -s conftest.err
48150        } && test -s conftest.$ac_objext; then
48151    wxUSE_JOYSTICK=yes
48152
48153 else
48154   echo "$as_me: failed program was:" >&5
48155 sed 's/^/| /' conftest.$ac_ext >&5
48156
48157
48158 fi
48159
48160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48161             ac_ext=c
48162 ac_cpp='$CPP $CPPFLAGS'
48163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48166
48167             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
48168 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
48169         fi
48170
48171         else
48172                 if test "$wxUSE_MGL" != "1"; then
48173
48174 for ac_header in linux/joystick.h
48175 do
48176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48180   echo $ECHO_N "(cached) $ECHO_C" >&6
48181 else
48182   cat >conftest.$ac_ext <<_ACEOF
48183 /* confdefs.h.  */
48184 _ACEOF
48185 cat confdefs.h >>conftest.$ac_ext
48186 cat >>conftest.$ac_ext <<_ACEOF
48187 /* end confdefs.h.  */
48188 $ac_includes_default
48189
48190 #include <$ac_header>
48191 _ACEOF
48192 rm -f conftest.$ac_objext
48193 if { (ac_try="$ac_compile"
48194 case "(($ac_try" in
48195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48196   *) ac_try_echo=$ac_try;;
48197 esac
48198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48199   (eval "$ac_compile") 2>conftest.er1
48200   ac_status=$?
48201   grep -v '^ *+' conftest.er1 >conftest.err
48202   rm -f conftest.er1
48203   cat conftest.err >&5
48204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48205   (exit $ac_status); } && {
48206          test -z "$ac_c_werror_flag" ||
48207          test ! -s conftest.err
48208        } && test -s conftest.$ac_objext; then
48209   eval "$as_ac_Header=yes"
48210 else
48211   echo "$as_me: failed program was:" >&5
48212 sed 's/^/| /' conftest.$ac_ext >&5
48213
48214         eval "$as_ac_Header=no"
48215 fi
48216
48217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48218 fi
48219 ac_res=`eval echo '${'$as_ac_Header'}'`
48220                { echo "$as_me:$LINENO: result: $ac_res" >&5
48221 echo "${ECHO_T}$ac_res" >&6; }
48222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48223   cat >>confdefs.h <<_ACEOF
48224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48225 _ACEOF
48226  wxUSE_JOYSTICK=yes
48227 fi
48228
48229 done
48230
48231         fi
48232     fi
48233
48234     if test "$wxUSE_JOYSTICK" = "yes"; then
48235         cat >>confdefs.h <<\_ACEOF
48236 #define wxUSE_JOYSTICK 1
48237 _ACEOF
48238
48239         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
48240     else
48241         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
48242 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
48243     fi
48244 fi
48245
48246
48247
48248 if test "$wxUSE_FONTENUM" = "yes" ; then
48249   cat >>confdefs.h <<\_ACEOF
48250 #define wxUSE_FONTENUM 1
48251 _ACEOF
48252
48253 fi
48254
48255 if test "$wxUSE_FONTMAP" = "yes" ; then
48256   cat >>confdefs.h <<\_ACEOF
48257 #define wxUSE_FONTMAP 1
48258 _ACEOF
48259
48260 fi
48261
48262 if test "$wxUSE_UNICODE" = "yes" ; then
48263   cat >>confdefs.h <<\_ACEOF
48264 #define wxUSE_UNICODE 1
48265 _ACEOF
48266
48267
48268   if test "$USE_WIN32" != 1; then
48269       wxUSE_UNICODE_MSLU=no
48270   fi
48271
48272   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
48273         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
48274 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
48275 if test "${ac_cv_lib_unicows_main+set}" = set; then
48276   echo $ECHO_N "(cached) $ECHO_C" >&6
48277 else
48278   ac_check_lib_save_LIBS=$LIBS
48279 LIBS="-lunicows  $LIBS"
48280 cat >conftest.$ac_ext <<_ACEOF
48281 /* confdefs.h.  */
48282 _ACEOF
48283 cat confdefs.h >>conftest.$ac_ext
48284 cat >>conftest.$ac_ext <<_ACEOF
48285 /* end confdefs.h.  */
48286
48287
48288 int
48289 main ()
48290 {
48291 return main ();
48292   ;
48293   return 0;
48294 }
48295 _ACEOF
48296 rm -f conftest.$ac_objext conftest$ac_exeext
48297 if { (ac_try="$ac_link"
48298 case "(($ac_try" in
48299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48300   *) ac_try_echo=$ac_try;;
48301 esac
48302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48303   (eval "$ac_link") 2>conftest.er1
48304   ac_status=$?
48305   grep -v '^ *+' conftest.er1 >conftest.err
48306   rm -f conftest.er1
48307   cat conftest.err >&5
48308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48309   (exit $ac_status); } && {
48310          test -z "$ac_c_werror_flag" ||
48311          test ! -s conftest.err
48312        } && test -s conftest$ac_exeext &&
48313        $as_test_x conftest$ac_exeext; then
48314   ac_cv_lib_unicows_main=yes
48315 else
48316   echo "$as_me: failed program was:" >&5
48317 sed 's/^/| /' conftest.$ac_ext >&5
48318
48319         ac_cv_lib_unicows_main=no
48320 fi
48321
48322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48323       conftest$ac_exeext conftest.$ac_ext
48324 LIBS=$ac_check_lib_save_LIBS
48325 fi
48326 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
48327 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
48328 if test $ac_cv_lib_unicows_main = yes; then
48329
48330                 cat >>confdefs.h <<\_ACEOF
48331 #define wxUSE_UNICODE_MSLU 1
48332 _ACEOF
48333
48334
48335 else
48336
48337                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
48338                              Applications will only run on Windows NT/2000/XP!" >&5
48339 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
48340                              Applications will only run on Windows NT/2000/XP!" >&2;}
48341                 wxUSE_UNICODE_MSLU=no
48342
48343 fi
48344
48345     fi
48346 fi
48347
48348 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
48349     cat >>confdefs.h <<\_ACEOF
48350 #define wxUSE_UNICODE_UTF8 1
48351 _ACEOF
48352
48353
48354     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
48355         cat >>confdefs.h <<\_ACEOF
48356 #define wxUSE_UTF8_LOCALE_ONLY 1
48357 _ACEOF
48358
48359     fi
48360 fi
48361
48362
48363 if test "$wxUSE_CONSTRAINTS" = "yes"; then
48364     cat >>confdefs.h <<\_ACEOF
48365 #define wxUSE_CONSTRAINTS 1
48366 _ACEOF
48367
48368     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
48369 fi
48370
48371 if test "$wxUSE_MDI" = "yes"; then
48372     cat >>confdefs.h <<\_ACEOF
48373 #define wxUSE_MDI 1
48374 _ACEOF
48375
48376
48377     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
48378         cat >>confdefs.h <<\_ACEOF
48379 #define wxUSE_MDI_ARCHITECTURE 1
48380 _ACEOF
48381
48382         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
48383     fi
48384 fi
48385
48386 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
48387     cat >>confdefs.h <<\_ACEOF
48388 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
48389 _ACEOF
48390
48391     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
48392     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
48393         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
48394     fi
48395 fi
48396
48397 if test "$wxUSE_HELP" = "yes"; then
48398     cat >>confdefs.h <<\_ACEOF
48399 #define wxUSE_HELP 1
48400 _ACEOF
48401
48402     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
48403
48404     if test "$wxUSE_MSW" = 1; then
48405       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
48406         cat >>confdefs.h <<\_ACEOF
48407 #define wxUSE_MS_HTML_HELP 1
48408 _ACEOF
48409
48410       fi
48411     fi
48412
48413     if test "$wxUSE_WXHTML_HELP" = "yes"; then
48414       if test "$wxUSE_HTML" = "yes"; then
48415         cat >>confdefs.h <<\_ACEOF
48416 #define wxUSE_WXHTML_HELP 1
48417 _ACEOF
48418
48419       else
48420         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
48421 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
48422         wxUSE_WXHTML_HELP=no
48423       fi
48424     fi
48425 fi
48426
48427 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
48428     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48429         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
48430 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
48431     else
48432         cat >>confdefs.h <<\_ACEOF
48433 #define wxUSE_PRINTING_ARCHITECTURE 1
48434 _ACEOF
48435
48436     fi
48437     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
48438 fi
48439
48440 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
48441   cat >>confdefs.h <<\_ACEOF
48442 #define wxUSE_POSTSCRIPT 1
48443 _ACEOF
48444
48445 fi
48446
48447 cat >>confdefs.h <<\_ACEOF
48448 #define wxUSE_AFM_FOR_POSTSCRIPT 1
48449 _ACEOF
48450
48451
48452 if test "$wxUSE_SVG" = "yes"; then
48453     cat >>confdefs.h <<\_ACEOF
48454 #define wxUSE_SVG 1
48455 _ACEOF
48456
48457 fi
48458
48459
48460 if test "$wxUSE_METAFILE" = "yes"; then
48461     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
48462         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
48463 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
48464         wxUSE_METAFILE=no
48465     fi
48466 fi
48467
48468
48469 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
48470                           -o "$wxUSE_CLIPBOARD"     = "yes" \
48471                           -o "$wxUSE_OLE"     = "yes" \
48472                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
48473     { echo "$as_me:$LINENO: checking for ole2.h" >&5
48474 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
48475 if test "${ac_cv_header_ole2_h+set}" = set; then
48476   echo $ECHO_N "(cached) $ECHO_C" >&6
48477 else
48478   cat >conftest.$ac_ext <<_ACEOF
48479 /* confdefs.h.  */
48480 _ACEOF
48481 cat confdefs.h >>conftest.$ac_ext
48482 cat >>conftest.$ac_ext <<_ACEOF
48483 /* end confdefs.h.  */
48484
48485
48486 #include <ole2.h>
48487 _ACEOF
48488 rm -f conftest.$ac_objext
48489 if { (ac_try="$ac_compile"
48490 case "(($ac_try" in
48491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48492   *) ac_try_echo=$ac_try;;
48493 esac
48494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48495   (eval "$ac_compile") 2>conftest.er1
48496   ac_status=$?
48497   grep -v '^ *+' conftest.er1 >conftest.err
48498   rm -f conftest.er1
48499   cat conftest.err >&5
48500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48501   (exit $ac_status); } && {
48502          test -z "$ac_c_werror_flag" ||
48503          test ! -s conftest.err
48504        } && test -s conftest.$ac_objext; then
48505   ac_cv_header_ole2_h=yes
48506 else
48507   echo "$as_me: failed program was:" >&5
48508 sed 's/^/| /' conftest.$ac_ext >&5
48509
48510         ac_cv_header_ole2_h=no
48511 fi
48512
48513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48514 fi
48515 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
48516 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
48517
48518
48519
48520     if test "$ac_cv_header_ole2_h" = "yes" ; then
48521         if test "$GCC" = yes ; then
48522             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
48523 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
48524             cat >conftest.$ac_ext <<_ACEOF
48525 /* confdefs.h.  */
48526 _ACEOF
48527 cat confdefs.h >>conftest.$ac_ext
48528 cat >>conftest.$ac_ext <<_ACEOF
48529 /* end confdefs.h.  */
48530 #include <windows.h>
48531                             #include <ole2.h>
48532 int
48533 main ()
48534 {
48535
48536   ;
48537   return 0;
48538 }
48539 _ACEOF
48540 rm -f conftest.$ac_objext
48541 if { (ac_try="$ac_compile"
48542 case "(($ac_try" in
48543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48544   *) ac_try_echo=$ac_try;;
48545 esac
48546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48547   (eval "$ac_compile") 2>conftest.er1
48548   ac_status=$?
48549   grep -v '^ *+' conftest.er1 >conftest.err
48550   rm -f conftest.er1
48551   cat conftest.err >&5
48552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48553   (exit $ac_status); } && {
48554          test -z "$ac_c_werror_flag" ||
48555          test ! -s conftest.err
48556        } && test -s conftest.$ac_objext; then
48557   { echo "$as_me:$LINENO: result: no" >&5
48558 echo "${ECHO_T}no" >&6; }
48559 else
48560   echo "$as_me: failed program was:" >&5
48561 sed 's/^/| /' conftest.$ac_ext >&5
48562
48563         { echo "$as_me:$LINENO: result: yes" >&5
48564 echo "${ECHO_T}yes" >&6; }
48565                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
48566 fi
48567
48568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48569             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
48570             if test "$wxUSE_OLE" = "yes" ; then
48571                 cat >>confdefs.h <<\_ACEOF
48572 #define wxUSE_OLE 1
48573 _ACEOF
48574
48575                 cat >>confdefs.h <<\_ACEOF
48576 #define wxUSE_OLE_AUTOMATION 1
48577 _ACEOF
48578
48579                 cat >>confdefs.h <<\_ACEOF
48580 #define wxUSE_ACTIVEX 1
48581 _ACEOF
48582
48583                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
48584             fi
48585         fi
48586
48587                 if test "$wxUSE_DATAOBJ" = "yes" ; then
48588             cat >>confdefs.h <<\_ACEOF
48589 #define wxUSE_DATAOBJ 1
48590 _ACEOF
48591
48592         fi
48593     else
48594         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
48595 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
48596
48597         wxUSE_CLIPBOARD=no
48598         wxUSE_DRAG_AND_DROP=no
48599         wxUSE_DATAOBJ=no
48600         wxUSE_OLE=no
48601     fi
48602
48603     if test "$wxUSE_METAFILE" = "yes"; then
48604         cat >>confdefs.h <<\_ACEOF
48605 #define wxUSE_METAFILE 1
48606 _ACEOF
48607
48608
48609                 cat >>confdefs.h <<\_ACEOF
48610 #define wxUSE_ENH_METAFILE 1
48611 _ACEOF
48612
48613     fi
48614 fi
48615
48616 if test "$wxUSE_IPC" = "yes"; then
48617     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
48618         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
48619 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
48620         wxUSE_IPC=no
48621     fi
48622
48623     if test "$wxUSE_IPC" = "yes"; then
48624         cat >>confdefs.h <<\_ACEOF
48625 #define wxUSE_IPC 1
48626 _ACEOF
48627
48628         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48629     fi
48630 fi
48631
48632 if test "$wxUSE_DATAOBJ" = "yes"; then
48633     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48634         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
48635 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
48636         wxUSE_DATAOBJ=no
48637     else
48638         cat >>confdefs.h <<\_ACEOF
48639 #define wxUSE_DATAOBJ 1
48640 _ACEOF
48641
48642     fi
48643 else
48644     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
48645 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
48646     wxUSE_CLIPBOARD=no
48647     wxUSE_DRAG_AND_DROP=no
48648 fi
48649
48650 if test "$wxUSE_CLIPBOARD" = "yes"; then
48651     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48652         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
48653 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
48654         wxUSE_CLIPBOARD=no
48655     fi
48656
48657     if test "$wxUSE_CLIPBOARD" = "yes"; then
48658         cat >>confdefs.h <<\_ACEOF
48659 #define wxUSE_CLIPBOARD 1
48660 _ACEOF
48661
48662     fi
48663 fi
48664
48665 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
48666     if test "$wxUSE_GTK" = 1; then
48667         if test "$WXGTK12" != 1; then
48668             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
48669 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
48670             wxUSE_DRAG_AND_DROP=no
48671         fi
48672     fi
48673
48674     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
48675             "$wxUSE_DFB" = 1; then
48676         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
48677 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
48678         wxUSE_DRAG_AND_DROP=no
48679     fi
48680
48681     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
48682         cat >>confdefs.h <<\_ACEOF
48683 #define wxUSE_DRAG_AND_DROP 1
48684 _ACEOF
48685
48686     fi
48687
48688 fi
48689
48690 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
48691     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
48692 fi
48693
48694 if test "$wxUSE_SPLINES" = "yes" ; then
48695   cat >>confdefs.h <<\_ACEOF
48696 #define wxUSE_SPLINES 1
48697 _ACEOF
48698
48699 fi
48700
48701 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
48702   cat >>confdefs.h <<\_ACEOF
48703 #define wxUSE_MOUSEWHEEL 1
48704 _ACEOF
48705
48706 fi
48707
48708
48709 USES_CONTROLS=0
48710 if test "$wxUSE_CONTROLS" = "yes"; then
48711   USES_CONTROLS=1
48712 fi
48713
48714 if test "$wxUSE_ACCEL" = "yes"; then
48715   cat >>confdefs.h <<\_ACEOF
48716 #define wxUSE_ACCEL 1
48717 _ACEOF
48718
48719   USES_CONTROLS=1
48720 fi
48721
48722 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
48723   cat >>confdefs.h <<\_ACEOF
48724 #define wxUSE_ANIMATIONCTRL 1
48725 _ACEOF
48726
48727   USES_CONTROLS=1
48728   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
48729 fi
48730
48731 if test "$wxUSE_BUTTON" = "yes"; then
48732   cat >>confdefs.h <<\_ACEOF
48733 #define wxUSE_BUTTON 1
48734 _ACEOF
48735
48736   USES_CONTROLS=1
48737 fi
48738
48739 if test "$wxUSE_BMPBUTTON" = "yes"; then
48740   cat >>confdefs.h <<\_ACEOF
48741 #define wxUSE_BMPBUTTON 1
48742 _ACEOF
48743
48744   USES_CONTROLS=1
48745 fi
48746
48747 if test "$wxUSE_CALCTRL" = "yes"; then
48748   cat >>confdefs.h <<\_ACEOF
48749 #define wxUSE_CALENDARCTRL 1
48750 _ACEOF
48751
48752   USES_CONTROLS=1
48753   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
48754 fi
48755
48756 if test "$wxUSE_CARET" = "yes"; then
48757   cat >>confdefs.h <<\_ACEOF
48758 #define wxUSE_CARET 1
48759 _ACEOF
48760
48761   USES_CONTROLS=1
48762   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
48763 fi
48764
48765 if test "$wxUSE_COLLPANE" = "yes"; then
48766     cat >>confdefs.h <<\_ACEOF
48767 #define wxUSE_COLLPANE 1
48768 _ACEOF
48769
48770     USES_CONTROLS=1
48771     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
48772 fi
48773
48774 if test "$wxUSE_COMBOBOX" = "yes"; then
48775   cat >>confdefs.h <<\_ACEOF
48776 #define wxUSE_COMBOBOX 1
48777 _ACEOF
48778
48779   USES_CONTROLS=1
48780 fi
48781
48782 if test "$wxUSE_COMBOCTRL" = "yes"; then
48783   cat >>confdefs.h <<\_ACEOF
48784 #define wxUSE_COMBOCTRL 1
48785 _ACEOF
48786
48787   USES_CONTROLS=1
48788 fi
48789
48790 if test "$wxUSE_CHOICE" = "yes"; then
48791   cat >>confdefs.h <<\_ACEOF
48792 #define wxUSE_CHOICE 1
48793 _ACEOF
48794
48795   USES_CONTROLS=1
48796 fi
48797
48798 if test "$wxUSE_CHOICEBOOK" = "yes"; then
48799     cat >>confdefs.h <<\_ACEOF
48800 #define wxUSE_CHOICEBOOK 1
48801 _ACEOF
48802
48803     USES_CONTROLS=1
48804 fi
48805
48806 if test "$wxUSE_CHECKBOX" = "yes"; then
48807   cat >>confdefs.h <<\_ACEOF
48808 #define wxUSE_CHECKBOX 1
48809 _ACEOF
48810
48811   USES_CONTROLS=1
48812 fi
48813
48814 if test "$wxUSE_CHECKLST" = "yes"; then
48815   cat >>confdefs.h <<\_ACEOF
48816 #define wxUSE_CHECKLISTBOX 1
48817 _ACEOF
48818
48819   USES_CONTROLS=1
48820 fi
48821
48822 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
48823   cat >>confdefs.h <<\_ACEOF
48824 #define wxUSE_COLOURPICKERCTRL 1
48825 _ACEOF
48826
48827   USES_CONTROLS=1
48828 fi
48829
48830 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
48831   cat >>confdefs.h <<\_ACEOF
48832 #define wxUSE_DATEPICKCTRL 1
48833 _ACEOF
48834
48835   USES_CONTROLS=1
48836 fi
48837
48838 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
48839   cat >>confdefs.h <<\_ACEOF
48840 #define wxUSE_DIRPICKERCTRL 1
48841 _ACEOF
48842
48843   USES_CONTROLS=1
48844 fi
48845
48846 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
48847   cat >>confdefs.h <<\_ACEOF
48848 #define wxUSE_FILEPICKERCTRL 1
48849 _ACEOF
48850
48851   USES_CONTROLS=1
48852 fi
48853
48854 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
48855   cat >>confdefs.h <<\_ACEOF
48856 #define wxUSE_FONTPICKERCTRL 1
48857 _ACEOF
48858
48859   USES_CONTROLS=1
48860 fi
48861
48862 if test "$wxUSE_DISPLAY" = "yes"; then
48863     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
48864         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
48865 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
48866         wxUSE_DISPLAY=no
48867     else
48868         cat >>confdefs.h <<\_ACEOF
48869 #define wxUSE_DISPLAY 1
48870 _ACEOF
48871
48872         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
48873     fi
48874 fi
48875
48876 if test "$wxUSE_DETECT_SM" = "yes"; then
48877     cat >>confdefs.h <<\_ACEOF
48878 #define wxUSE_DETECT_SM 1
48879 _ACEOF
48880
48881 fi
48882
48883 if test "$wxUSE_GAUGE" = "yes"; then
48884   cat >>confdefs.h <<\_ACEOF
48885 #define wxUSE_GAUGE 1
48886 _ACEOF
48887
48888   USES_CONTROLS=1
48889 fi
48890
48891 if test "$wxUSE_GRID" = "yes"; then
48892   cat >>confdefs.h <<\_ACEOF
48893 #define wxUSE_GRID 1
48894 _ACEOF
48895
48896   USES_CONTROLS=1
48897   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
48898 fi
48899
48900 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
48901   cat >>confdefs.h <<\_ACEOF
48902 #define wxUSE_HYPERLINKCTRL 1
48903 _ACEOF
48904
48905   USES_CONTROLS=1
48906 fi
48907
48908 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
48909   cat >>confdefs.h <<\_ACEOF
48910 #define wxUSE_BITMAPCOMBOBOX 1
48911 _ACEOF
48912
48913   USES_CONTROLS=1
48914 fi
48915
48916 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
48917   cat >>confdefs.h <<\_ACEOF
48918 #define wxUSE_DATAVIEWCTRL 1
48919 _ACEOF
48920
48921   USES_CONTROLS=1
48922   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
48923 fi
48924
48925 if test "$wxUSE_IMAGLIST" = "yes"; then
48926     cat >>confdefs.h <<\_ACEOF
48927 #define wxUSE_IMAGLIST 1
48928 _ACEOF
48929
48930 fi
48931
48932 if test "$wxUSE_LISTBOOK" = "yes"; then
48933     cat >>confdefs.h <<\_ACEOF
48934 #define wxUSE_LISTBOOK 1
48935 _ACEOF
48936
48937     USES_CONTROLS=1
48938 fi
48939
48940 if test "$wxUSE_LISTBOX" = "yes"; then
48941     cat >>confdefs.h <<\_ACEOF
48942 #define wxUSE_LISTBOX 1
48943 _ACEOF
48944
48945     USES_CONTROLS=1
48946 fi
48947
48948 if test "$wxUSE_LISTCTRL" = "yes"; then
48949     if test "$wxUSE_IMAGLIST" = "yes"; then
48950         cat >>confdefs.h <<\_ACEOF
48951 #define wxUSE_LISTCTRL 1
48952 _ACEOF
48953
48954         USES_CONTROLS=1
48955         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
48956     else
48957         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
48958 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
48959     fi
48960 fi
48961
48962 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
48963     cat >>confdefs.h <<\_ACEOF
48964 #define wxUSE_EDITABLELISTBOX 1
48965 _ACEOF
48966
48967     USES_CONTROLS=1
48968     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48969 fi
48970
48971 if test "$wxUSE_NOTEBOOK" = "yes"; then
48972     cat >>confdefs.h <<\_ACEOF
48973 #define wxUSE_NOTEBOOK 1
48974 _ACEOF
48975
48976     USES_CONTROLS=1
48977     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48978 fi
48979
48980 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48981   cat >>confdefs.h <<\_ACEOF
48982 #define wxUSE_ODCOMBOBOX 1
48983 _ACEOF
48984
48985   USES_CONTROLS=1
48986   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48987 fi
48988
48989 if test "$wxUSE_RADIOBOX" = "yes"; then
48990     cat >>confdefs.h <<\_ACEOF
48991 #define wxUSE_RADIOBOX 1
48992 _ACEOF
48993
48994     USES_CONTROLS=1
48995 fi
48996
48997 if test "$wxUSE_RADIOBTN" = "yes"; then
48998     cat >>confdefs.h <<\_ACEOF
48999 #define wxUSE_RADIOBTN 1
49000 _ACEOF
49001
49002     USES_CONTROLS=1
49003 fi
49004
49005 if test "$wxUSE_SASH" = "yes"; then
49006     cat >>confdefs.h <<\_ACEOF
49007 #define wxUSE_SASH 1
49008 _ACEOF
49009
49010     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
49011 fi
49012
49013 if test "$wxUSE_SCROLLBAR" = "yes"; then
49014     cat >>confdefs.h <<\_ACEOF
49015 #define wxUSE_SCROLLBAR 1
49016 _ACEOF
49017
49018     USES_CONTROLS=1
49019     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
49020 fi
49021
49022 if test "$wxUSE_SEARCHCTRL" = "yes"; then
49023     cat >>confdefs.h <<\_ACEOF
49024 #define wxUSE_SEARCHCTRL 1
49025 _ACEOF
49026
49027     USES_CONTROLS=1
49028 fi
49029
49030 if test "$wxUSE_SLIDER" = "yes"; then
49031     cat >>confdefs.h <<\_ACEOF
49032 #define wxUSE_SLIDER 1
49033 _ACEOF
49034
49035     USES_CONTROLS=1
49036 fi
49037
49038 if test "$wxUSE_SPINBTN" = "yes"; then
49039     cat >>confdefs.h <<\_ACEOF
49040 #define wxUSE_SPINBTN 1
49041 _ACEOF
49042
49043     USES_CONTROLS=1
49044 fi
49045
49046 if test "$wxUSE_SPINCTRL" = "yes"; then
49047     cat >>confdefs.h <<\_ACEOF
49048 #define wxUSE_SPINCTRL 1
49049 _ACEOF
49050
49051     USES_CONTROLS=1
49052 fi
49053
49054 if test "$wxUSE_SPLITTER" = "yes"; then
49055     cat >>confdefs.h <<\_ACEOF
49056 #define wxUSE_SPLITTER 1
49057 _ACEOF
49058
49059     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
49060 fi
49061
49062 if test "$wxUSE_STATBMP" = "yes"; then
49063     cat >>confdefs.h <<\_ACEOF
49064 #define wxUSE_STATBMP 1
49065 _ACEOF
49066
49067     USES_CONTROLS=1
49068 fi
49069
49070 if test "$wxUSE_STATBOX" = "yes"; then
49071     cat >>confdefs.h <<\_ACEOF
49072 #define wxUSE_STATBOX 1
49073 _ACEOF
49074
49075     USES_CONTROLS=1
49076 fi
49077
49078 if test "$wxUSE_STATTEXT" = "yes"; then
49079     cat >>confdefs.h <<\_ACEOF
49080 #define wxUSE_STATTEXT 1
49081 _ACEOF
49082
49083     USES_CONTROLS=1
49084 fi
49085
49086 if test "$wxUSE_STATLINE" = "yes"; then
49087     cat >>confdefs.h <<\_ACEOF
49088 #define wxUSE_STATLINE 1
49089 _ACEOF
49090
49091     USES_CONTROLS=1
49092 fi
49093
49094 if test "$wxUSE_STATUSBAR" = "yes"; then
49095         cat >>confdefs.h <<\_ACEOF
49096 #define wxUSE_NATIVE_STATUSBAR 1
49097 _ACEOF
49098
49099     cat >>confdefs.h <<\_ACEOF
49100 #define wxUSE_STATUSBAR 1
49101 _ACEOF
49102
49103     USES_CONTROLS=1
49104
49105     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
49106 fi
49107
49108 if test "$wxUSE_TAB_DIALOG" = "yes"; then
49109     cat >>confdefs.h <<\_ACEOF
49110 #define wxUSE_TAB_DIALOG 1
49111 _ACEOF
49112
49113 fi
49114
49115 if test "$wxUSE_TEXTCTRL" = "yes"; then
49116     cat >>confdefs.h <<\_ACEOF
49117 #define wxUSE_TEXTCTRL 1
49118 _ACEOF
49119
49120     USES_CONTROLS=1
49121     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
49122 fi
49123
49124 if test "$wxUSE_TOGGLEBTN" = "yes"; then
49125     if test "$wxUSE_COCOA" = 1 ; then
49126         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
49127 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
49128         wxUSE_TOGGLEBTN=no
49129     fi
49130
49131     if test "$wxUSE_TOGGLEBTN" = "yes"; then
49132         cat >>confdefs.h <<\_ACEOF
49133 #define wxUSE_TOGGLEBTN 1
49134 _ACEOF
49135
49136         USES_CONTROLS=1
49137     fi
49138 fi
49139
49140 if test "$wxUSE_TOOLBAR" = "yes"; then
49141     cat >>confdefs.h <<\_ACEOF
49142 #define wxUSE_TOOLBAR 1
49143 _ACEOF
49144
49145     USES_CONTROLS=1
49146
49147     if test "$wxUSE_UNIVERSAL" = "yes"; then
49148         wxUSE_TOOLBAR_NATIVE="no"
49149     else
49150         wxUSE_TOOLBAR_NATIVE="yes"
49151         cat >>confdefs.h <<\_ACEOF
49152 #define wxUSE_TOOLBAR_NATIVE 1
49153 _ACEOF
49154
49155     fi
49156
49157     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
49158 fi
49159
49160 if test "$wxUSE_TOOLTIPS" = "yes"; then
49161     if test "$wxUSE_MOTIF" = 1; then
49162         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
49163 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
49164     else
49165         if test "$wxUSE_UNIVERSAL" = "yes"; then
49166             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
49167 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
49168         else
49169             cat >>confdefs.h <<\_ACEOF
49170 #define wxUSE_TOOLTIPS 1
49171 _ACEOF
49172
49173         fi
49174     fi
49175 fi
49176
49177 if test "$wxUSE_TREEBOOK" = "yes"; then
49178     cat >>confdefs.h <<\_ACEOF
49179 #define wxUSE_TREEBOOK 1
49180 _ACEOF
49181
49182     USES_CONTROLS=1
49183 fi
49184
49185 if test "$wxUSE_TOOLBOOK" = "yes"; then
49186     cat >>confdefs.h <<\_ACEOF
49187 #define wxUSE_TOOLBOOK 1
49188 _ACEOF
49189
49190     USES_CONTROLS=1
49191 fi
49192
49193 if test "$wxUSE_TREECTRL" = "yes"; then
49194     if test "$wxUSE_IMAGLIST" = "yes"; then
49195         cat >>confdefs.h <<\_ACEOF
49196 #define wxUSE_TREECTRL 1
49197 _ACEOF
49198
49199         USES_CONTROLS=1
49200         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
49201     else
49202         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
49203 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
49204     fi
49205 fi
49206
49207 if test "$wxUSE_POPUPWIN" = "yes"; then
49208     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
49209         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
49210 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
49211     else
49212         if test "$wxUSE_PM" = 1; then
49213             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
49214 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
49215         else
49216             cat >>confdefs.h <<\_ACEOF
49217 #define wxUSE_POPUPWIN 1
49218 _ACEOF
49219
49220             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
49221
49222             USES_CONTROLS=1
49223         fi
49224     fi
49225 fi
49226
49227 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
49228     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
49229         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
49230 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
49231     else
49232         cat >>confdefs.h <<\_ACEOF
49233 #define wxUSE_DIALUP_MANAGER 1
49234 _ACEOF
49235
49236         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
49237     fi
49238 fi
49239
49240 if test "$wxUSE_TIPWINDOW" = "yes"; then
49241     if test "$wxUSE_PM" = 1; then
49242         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
49243 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
49244     else
49245         cat >>confdefs.h <<\_ACEOF
49246 #define wxUSE_TIPWINDOW 1
49247 _ACEOF
49248
49249     fi
49250 fi
49251
49252 if test "$USES_CONTROLS" = 1; then
49253     cat >>confdefs.h <<\_ACEOF
49254 #define wxUSE_CONTROLS 1
49255 _ACEOF
49256
49257 fi
49258
49259
49260 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
49261     cat >>confdefs.h <<\_ACEOF
49262 #define wxUSE_ACCESSIBILITY 1
49263 _ACEOF
49264
49265     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
49266 fi
49267
49268 if test "$wxUSE_DRAGIMAGE" = "yes"; then
49269     cat >>confdefs.h <<\_ACEOF
49270 #define wxUSE_DRAGIMAGE 1
49271 _ACEOF
49272
49273     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
49274 fi
49275
49276 if test "$wxUSE_EXCEPTIONS" = "yes"; then
49277     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
49278         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
49279 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
49280     else
49281         cat >>confdefs.h <<\_ACEOF
49282 #define wxUSE_EXCEPTIONS 1
49283 _ACEOF
49284
49285         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
49286     fi
49287 fi
49288
49289 USE_HTML=0
49290 if test "$wxUSE_HTML" = "yes"; then
49291     cat >>confdefs.h <<\_ACEOF
49292 #define wxUSE_HTML 1
49293 _ACEOF
49294
49295     USE_HTML=1
49296     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
49297     if test "$wxUSE_MAC" = 1; then
49298         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
49299     fi
49300 fi
49301 if test "$wxUSE_WEBKIT" = "yes"; then
49302     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
49303         old_CPPFLAGS="$CPPFLAGS"
49304         CPPFLAGS="-x objective-c++ $CPPFLAGS"
49305         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
49306 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
49307 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
49308   echo $ECHO_N "(cached) $ECHO_C" >&6
49309 else
49310   cat >conftest.$ac_ext <<_ACEOF
49311 /* confdefs.h.  */
49312 _ACEOF
49313 cat confdefs.h >>conftest.$ac_ext
49314 cat >>conftest.$ac_ext <<_ACEOF
49315 /* end confdefs.h.  */
49316
49317                            #include <Carbon/Carbon.h>
49318                            #include <WebKit/WebKit.h>
49319
49320
49321 #include <WebKit/HIWebView.h>
49322 _ACEOF
49323 rm -f conftest.$ac_objext
49324 if { (ac_try="$ac_compile"
49325 case "(($ac_try" in
49326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49327   *) ac_try_echo=$ac_try;;
49328 esac
49329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49330   (eval "$ac_compile") 2>conftest.er1
49331   ac_status=$?
49332   grep -v '^ *+' conftest.er1 >conftest.err
49333   rm -f conftest.er1
49334   cat conftest.err >&5
49335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49336   (exit $ac_status); } && {
49337          test -z "$ac_c_werror_flag" ||
49338          test ! -s conftest.err
49339        } && test -s conftest.$ac_objext; then
49340   ac_cv_header_WebKit_HIWebView_h=yes
49341 else
49342   echo "$as_me: failed program was:" >&5
49343 sed 's/^/| /' conftest.$ac_ext >&5
49344
49345         ac_cv_header_WebKit_HIWebView_h=no
49346 fi
49347
49348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49349 fi
49350 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
49351 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
49352 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
49353
49354                            cat >>confdefs.h <<\_ACEOF
49355 #define wxUSE_WEBKIT 1
49356 _ACEOF
49357
49358                            WEBKIT_LINK="-framework WebKit"
49359
49360 else
49361
49362                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
49363 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
49364                            wxUSE_WEBKIT=no
49365
49366 fi
49367
49368
49369         CPPFLAGS="$old_CPPFLAGS"
49370     elif test "$wxUSE_COCOA" = 1; then
49371         cat >>confdefs.h <<\_ACEOF
49372 #define wxUSE_WEBKIT 1
49373 _ACEOF
49374
49375     else
49376         wxUSE_WEBKIT=no
49377     fi
49378 fi
49379
49380 USE_XRC=0
49381 if test "$wxUSE_XRC" = "yes"; then
49382     if test "$wxUSE_XML" != "yes"; then
49383         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
49384 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
49385         wxUSE_XRC=no
49386     else
49387         cat >>confdefs.h <<\_ACEOF
49388 #define wxUSE_XRC 1
49389 _ACEOF
49390
49391         USE_XRC=1
49392         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
49393     fi
49394 fi
49395
49396 USE_AUI=0
49397 if test "$wxUSE_AUI" = "yes"; then
49398    cat >>confdefs.h <<\_ACEOF
49399 #define wxUSE_AUI 1
49400 _ACEOF
49401
49402    USE_AUI=1
49403    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
49404 fi
49405
49406 USE_STC=0
49407 if test "$wxUSE_STC" = "yes"; then
49408    cat >>confdefs.h <<\_ACEOF
49409 #define wxUSE_STC 1
49410 _ACEOF
49411
49412    USE_STC=1
49413    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
49414 fi
49415
49416 if test "$wxUSE_MENUS" = "yes"; then
49417     cat >>confdefs.h <<\_ACEOF
49418 #define wxUSE_MENUS 1
49419 _ACEOF
49420
49421     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
49422 fi
49423
49424 if test "$wxUSE_METAFILE" = "yes"; then
49425     cat >>confdefs.h <<\_ACEOF
49426 #define wxUSE_METAFILE 1
49427 _ACEOF
49428
49429 fi
49430
49431 if test "$wxUSE_MIMETYPE" = "yes"; then
49432     cat >>confdefs.h <<\_ACEOF
49433 #define wxUSE_MIMETYPE 1
49434 _ACEOF
49435
49436 fi
49437
49438 if test "$wxUSE_MINIFRAME" = "yes"; then
49439     cat >>confdefs.h <<\_ACEOF
49440 #define wxUSE_MINIFRAME 1
49441 _ACEOF
49442
49443 fi
49444
49445 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
49446     cat >>confdefs.h <<\_ACEOF
49447 #define wxUSE_SYSTEM_OPTIONS 1
49448 _ACEOF
49449
49450 fi
49451
49452 if test "$wxUSE_TASKBARICON" = "yes"; then
49453     cat >>confdefs.h <<\_ACEOF
49454 #define wxUSE_TASKBARICON 1
49455 _ACEOF
49456
49457     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
49458 fi
49459
49460
49461 if test "$wxUSE_VALIDATORS" = "yes"; then
49462     cat >>confdefs.h <<\_ACEOF
49463 #define wxUSE_VALIDATORS 1
49464 _ACEOF
49465
49466     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
49467 fi
49468
49469 if test "$wxUSE_PALETTE" = "yes" ; then
49470     if test "$wxUSE_DFB" = 1; then
49471         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
49472 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
49473         wxUSE_PALETTE=no
49474     else
49475         cat >>confdefs.h <<\_ACEOF
49476 #define wxUSE_PALETTE 1
49477 _ACEOF
49478
49479     fi
49480 fi
49481
49482 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
49483     LIBS=" -lunicows $LIBS"
49484 fi
49485
49486 USE_RICHTEXT=0
49487 if test "$wxUSE_RICHTEXT" = "yes"; then
49488     cat >>confdefs.h <<\_ACEOF
49489 #define wxUSE_RICHTEXT 1
49490 _ACEOF
49491
49492     USE_RICHTEXT=1
49493     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
49494 fi
49495
49496
49497 if test "$wxUSE_IMAGE" = "yes" ; then
49498     cat >>confdefs.h <<\_ACEOF
49499 #define wxUSE_IMAGE 1
49500 _ACEOF
49501
49502
49503     if test "$wxUSE_GIF" = "yes" ; then
49504       cat >>confdefs.h <<\_ACEOF
49505 #define wxUSE_GIF 1
49506 _ACEOF
49507
49508     fi
49509
49510     if test "$wxUSE_PCX" = "yes" ; then
49511       cat >>confdefs.h <<\_ACEOF
49512 #define wxUSE_PCX 1
49513 _ACEOF
49514
49515     fi
49516
49517     if test "$wxUSE_TGA" = "yes" ; then
49518       cat >>confdefs.h <<\_ACEOF
49519 #define wxUSE_TGA 1
49520 _ACEOF
49521
49522     fi
49523
49524     if test "$wxUSE_IFF" = "yes" ; then
49525       cat >>confdefs.h <<\_ACEOF
49526 #define wxUSE_IFF 1
49527 _ACEOF
49528
49529     fi
49530
49531     if test "$wxUSE_PNM" = "yes" ; then
49532       cat >>confdefs.h <<\_ACEOF
49533 #define wxUSE_PNM 1
49534 _ACEOF
49535
49536     fi
49537
49538     if test "$wxUSE_XPM" = "yes" ; then
49539       cat >>confdefs.h <<\_ACEOF
49540 #define wxUSE_XPM 1
49541 _ACEOF
49542
49543     fi
49544
49545     if test "$wxUSE_ICO_CUR" = "yes" ; then
49546       cat >>confdefs.h <<\_ACEOF
49547 #define wxUSE_ICO_CUR 1
49548 _ACEOF
49549
49550     fi
49551 fi
49552
49553
49554 if test "$wxUSE_ABOUTDLG" = "yes"; then
49555     cat >>confdefs.h <<\_ACEOF
49556 #define wxUSE_ABOUTDLG 1
49557 _ACEOF
49558
49559 fi
49560
49561 if test "$wxUSE_CHOICEDLG" = "yes"; then
49562     cat >>confdefs.h <<\_ACEOF
49563 #define wxUSE_CHOICEDLG 1
49564 _ACEOF
49565
49566 fi
49567
49568 if test "$wxUSE_COLOURDLG" = "yes"; then
49569     cat >>confdefs.h <<\_ACEOF
49570 #define wxUSE_COLOURDLG 1
49571 _ACEOF
49572
49573 fi
49574
49575 if test "$wxUSE_FILEDLG" = "yes"; then
49576     cat >>confdefs.h <<\_ACEOF
49577 #define wxUSE_FILEDLG 1
49578 _ACEOF
49579
49580 fi
49581
49582 if test "$wxUSE_FINDREPLDLG" = "yes"; then
49583     cat >>confdefs.h <<\_ACEOF
49584 #define wxUSE_FINDREPLDLG 1
49585 _ACEOF
49586
49587 fi
49588
49589 if test "$wxUSE_FONTDLG" = "yes"; then
49590     cat >>confdefs.h <<\_ACEOF
49591 #define wxUSE_FONTDLG 1
49592 _ACEOF
49593
49594 fi
49595
49596 if test "$wxUSE_DIRDLG" = "yes"; then
49597     if test "$wxUSE_TREECTRL" != "yes"; then
49598         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
49599 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
49600     else
49601         cat >>confdefs.h <<\_ACEOF
49602 #define wxUSE_DIRDLG 1
49603 _ACEOF
49604
49605     fi
49606 fi
49607
49608 if test "$wxUSE_MSGDLG" = "yes"; then
49609     cat >>confdefs.h <<\_ACEOF
49610 #define wxUSE_MSGDLG 1
49611 _ACEOF
49612
49613 fi
49614
49615 if test "$wxUSE_NUMBERDLG" = "yes"; then
49616     cat >>confdefs.h <<\_ACEOF
49617 #define wxUSE_NUMBERDLG 1
49618 _ACEOF
49619
49620 fi
49621
49622 if test "$wxUSE_PROGRESSDLG" = "yes"; then
49623     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49624        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
49625 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
49626     else
49627         cat >>confdefs.h <<\_ACEOF
49628 #define wxUSE_PROGRESSDLG 1
49629 _ACEOF
49630
49631     fi
49632 fi
49633
49634 if test "$wxUSE_SPLASH" = "yes"; then
49635     cat >>confdefs.h <<\_ACEOF
49636 #define wxUSE_SPLASH 1
49637 _ACEOF
49638
49639     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
49640 fi
49641
49642 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
49643     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49644        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
49645 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
49646     else
49647         cat >>confdefs.h <<\_ACEOF
49648 #define wxUSE_STARTUP_TIPS 1
49649 _ACEOF
49650
49651     fi
49652 fi
49653
49654 if test "$wxUSE_TEXTDLG" = "yes"; then
49655     cat >>confdefs.h <<\_ACEOF
49656 #define wxUSE_TEXTDLG 1
49657 _ACEOF
49658
49659 fi
49660
49661 if test "$wxUSE_WIZARDDLG" = "yes"; then
49662     cat >>confdefs.h <<\_ACEOF
49663 #define wxUSE_WIZARDDLG 1
49664 _ACEOF
49665
49666     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
49667 fi
49668
49669
49670 if test "$wxUSE_MSW" = 1 ; then
49671
49672 if test "$wxUSE_DC_CACHEING" = "yes"; then
49673     cat >>confdefs.h <<\_ACEOF
49674 #define wxUSE_DC_CACHEING 1
49675 _ACEOF
49676
49677 fi
49678
49679 if test "$wxUSE_INICONF" = "yes"; then
49680     cat >>confdefs.h <<\_ACEOF
49681 #define wxUSE_INICONF 1
49682 _ACEOF
49683
49684 fi
49685
49686 if test "$wxUSE_DIB" = "yes"; then
49687     cat >>confdefs.h <<\_ACEOF
49688 #define wxUSE_WXDIB 1
49689 _ACEOF
49690
49691 fi
49692
49693 if test "$wxUSE_OWNER_DRAWN" = "yes"; then
49694     cat >>confdefs.h <<\_ACEOF
49695 #define wxUSE_OWNER_DRAWN 1
49696 _ACEOF
49697
49698 fi
49699
49700 if test "$wxUSE_REGKEY" = "yes"; then
49701     cat >>confdefs.h <<\_ACEOF
49702 #define wxUSE_REGKEY 1
49703 _ACEOF
49704
49705 fi
49706
49707 if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
49708     cat >>confdefs.h <<\_ACEOF
49709 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
49710 _ACEOF
49711
49712 fi
49713
49714 if test "$wxUSE_UXTHEME" = "yes"; then
49715     cat >>confdefs.h <<\_ACEOF
49716 #define wxUSE_UXTHEME 1
49717 _ACEOF
49718
49719 fi
49720
49721 fi
49722
49723
49724 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
49725    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
49726       cat >>confdefs.h <<\_ACEOF
49727 #define wxUSE_GRAPHICS_CONTEXT 1
49728 _ACEOF
49729
49730    elif test "$wxUSE_GTK" != 1; then
49731             cat >>confdefs.h <<\_ACEOF
49732 #define wxUSE_GRAPHICS_CONTEXT 1
49733 _ACEOF
49734
49735    else
49736
49737 pkg_failed=no
49738 { echo "$as_me:$LINENO: checking for CAIRO" >&5
49739 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
49740
49741 if test -n "$PKG_CONFIG"; then
49742     if test -n "$CAIRO_CFLAGS"; then
49743         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
49744     else
49745         if test -n "$PKG_CONFIG" && \
49746     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49747   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49748   ac_status=$?
49749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49750   (exit $ac_status); }; then
49751   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
49752 else
49753   pkg_failed=yes
49754 fi
49755     fi
49756 else
49757         pkg_failed=untried
49758 fi
49759 if test -n "$PKG_CONFIG"; then
49760     if test -n "$CAIRO_LIBS"; then
49761         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
49762     else
49763         if test -n "$PKG_CONFIG" && \
49764     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49765   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49766   ac_status=$?
49767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49768   (exit $ac_status); }; then
49769   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
49770 else
49771   pkg_failed=yes
49772 fi
49773     fi
49774 else
49775         pkg_failed=untried
49776 fi
49777
49778
49779
49780 if test $pkg_failed = yes; then
49781
49782 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49783         _pkg_short_errors_supported=yes
49784 else
49785         _pkg_short_errors_supported=no
49786 fi
49787         if test $_pkg_short_errors_supported = yes; then
49788                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
49789         else
49790                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
49791         fi
49792         # Put the nasty error message in config.log where it belongs
49793         echo "$CAIRO_PKG_ERRORS" >&5
49794
49795         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49796 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49797
49798 elif test $pkg_failed = untried; then
49799         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49800 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49801
49802 else
49803         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
49804         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
49805         { echo "$as_me:$LINENO: result: yes" >&5
49806 echo "${ECHO_T}yes" >&6; }
49807         cat >>confdefs.h <<\_ACEOF
49808 #define wxUSE_GRAPHICS_CONTEXT 1
49809 _ACEOF
49810
49811 fi
49812    fi
49813 fi
49814
49815
49816 USE_MEDIA=0
49817
49818 if test "$wxUSE_MEDIACTRL" = "yes"; then
49819     USE_MEDIA=1
49820
49821                 if test "$wxUSE_GTK" = 1; then
49822         wxUSE_GSTREAMER="no"
49823
49824                                                                 GST_VERSION_MAJOR=0
49825         GST_VERSION_MINOR=10
49826         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49827
49828         if test "$wxUSE_GSTREAMER8" = "no"; then
49829
49830 pkg_failed=no
49831 { echo "$as_me:$LINENO: checking for GST" >&5
49832 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49833
49834 if test -n "$PKG_CONFIG"; then
49835     if test -n "$GST_CFLAGS"; then
49836         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49837     else
49838         if test -n "$PKG_CONFIG" && \
49839     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49840   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49841   ac_status=$?
49842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49843   (exit $ac_status); }; then
49844   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49845 else
49846   pkg_failed=yes
49847 fi
49848     fi
49849 else
49850         pkg_failed=untried
49851 fi
49852 if test -n "$PKG_CONFIG"; then
49853     if test -n "$GST_LIBS"; then
49854         pkg_cv_GST_LIBS="$GST_LIBS"
49855     else
49856         if test -n "$PKG_CONFIG" && \
49857     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49858   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49859   ac_status=$?
49860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49861   (exit $ac_status); }; then
49862   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49863 else
49864   pkg_failed=yes
49865 fi
49866     fi
49867 else
49868         pkg_failed=untried
49869 fi
49870
49871
49872
49873 if test $pkg_failed = yes; then
49874
49875 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49876         _pkg_short_errors_supported=yes
49877 else
49878         _pkg_short_errors_supported=no
49879 fi
49880         if test $_pkg_short_errors_supported = yes; then
49881                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49882         else
49883                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49884         fi
49885         # Put the nasty error message in config.log where it belongs
49886         echo "$GST_PKG_ERRORS" >&5
49887
49888
49889                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49890 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49891                     GST_VERSION_MINOR=8
49892
49893
49894 elif test $pkg_failed = untried; then
49895
49896                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49897 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49898                     GST_VERSION_MINOR=8
49899
49900
49901 else
49902         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49903         GST_LIBS=$pkg_cv_GST_LIBS
49904         { echo "$as_me:$LINENO: result: yes" >&5
49905 echo "${ECHO_T}yes" >&6; }
49906
49907                     wxUSE_GSTREAMER="yes"
49908                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49909
49910 fi
49911         else
49912                         GST_VERSION_MINOR=8
49913         fi
49914
49915         if test $GST_VERSION_MINOR = "8"; then
49916             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49917
49918 pkg_failed=no
49919 { echo "$as_me:$LINENO: checking for GST" >&5
49920 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49921
49922 if test -n "$PKG_CONFIG"; then
49923     if test -n "$GST_CFLAGS"; then
49924         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49925     else
49926         if test -n "$PKG_CONFIG" && \
49927     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49928   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49929   ac_status=$?
49930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49931   (exit $ac_status); }; then
49932   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49933 else
49934   pkg_failed=yes
49935 fi
49936     fi
49937 else
49938         pkg_failed=untried
49939 fi
49940 if test -n "$PKG_CONFIG"; then
49941     if test -n "$GST_LIBS"; then
49942         pkg_cv_GST_LIBS="$GST_LIBS"
49943     else
49944         if test -n "$PKG_CONFIG" && \
49945     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49946   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49947   ac_status=$?
49948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49949   (exit $ac_status); }; then
49950   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49951 else
49952   pkg_failed=yes
49953 fi
49954     fi
49955 else
49956         pkg_failed=untried
49957 fi
49958
49959
49960
49961 if test $pkg_failed = yes; then
49962
49963 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49964         _pkg_short_errors_supported=yes
49965 else
49966         _pkg_short_errors_supported=no
49967 fi
49968         if test $_pkg_short_errors_supported = yes; then
49969                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49970         else
49971                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49972         fi
49973         # Put the nasty error message in config.log where it belongs
49974         echo "$GST_PKG_ERRORS" >&5
49975
49976
49977                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49978 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49979
49980 elif test $pkg_failed = untried; then
49981
49982                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49983 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49984
49985 else
49986         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49987         GST_LIBS=$pkg_cv_GST_LIBS
49988         { echo "$as_me:$LINENO: result: yes" >&5
49989 echo "${ECHO_T}yes" >&6; }
49990         wxUSE_GSTREAMER="yes"
49991 fi
49992         fi
49993
49994
49995         if test "$wxUSE_GSTREAMER" = "yes"; then
49996             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49997             LIBS="$GST_LIBS $LIBS"
49998
49999             cat >>confdefs.h <<\_ACEOF
50000 #define wxUSE_GSTREAMER 1
50001 _ACEOF
50002
50003         else
50004             USE_MEDIA=0
50005         fi
50006     fi
50007
50008     if test $USE_MEDIA = 1; then
50009         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
50010         cat >>confdefs.h <<\_ACEOF
50011 #define wxUSE_MEDIACTRL 1
50012 _ACEOF
50013
50014     fi
50015 fi
50016
50017
50018 if test "$cross_compiling" = "yes"; then
50019         OSINFO="\"$host\""
50020 else
50021         OSINFO=`uname -s -r -m`
50022     OSINFO="\"$OSINFO\""
50023 fi
50024
50025 cat >>confdefs.h <<_ACEOF
50026 #define WXWIN_OS_DESCRIPTION $OSINFO
50027 _ACEOF
50028
50029
50030
50031 if test "x$prefix" != "xNONE"; then
50032     wxPREFIX=$prefix
50033 else
50034     wxPREFIX=$ac_default_prefix
50035 fi
50036
50037 cat >>confdefs.h <<_ACEOF
50038 #define wxINSTALL_PREFIX "$wxPREFIX"
50039 _ACEOF
50040
50041
50042
50043
50044 STD_BASE_LIBS="base"
50045 STD_GUI_LIBS=""
50046 BUILT_WX_LIBS="base"
50047 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
50048
50049 if test "$wxUSE_SOCKETS" = "yes" ; then
50050     STD_BASE_LIBS="net $STD_BASE_LIBS"
50051     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
50052 fi
50053 if test "$wxUSE_ODBC" != "no" ; then
50054     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
50055 fi
50056 if test "$wxUSE_XML" = "yes" ; then
50057     STD_BASE_LIBS="xml $STD_BASE_LIBS"
50058     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
50059 fi
50060
50061 if test "$wxUSE_GUI" = "yes"; then
50062     STD_GUI_LIBS="adv core"
50063     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
50064
50065     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
50066         STD_GUI_LIBS="qa $STD_GUI_LIBS"
50067         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
50068     fi
50069     if test "$wxUSE_ODBC" != "no" ; then
50070         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
50071     fi
50072     if test "$wxUSE_HTML" = "yes" ; then
50073         STD_GUI_LIBS="html $STD_GUI_LIBS"
50074         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
50075     fi
50076     if test "$wxUSE_MEDIACTRL" = "yes" ; then
50077         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
50078     fi
50079     if test "$wxUSE_OPENGL" = "yes" ; then
50080         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
50081     fi
50082     if test "$wxUSE_AUI" = "yes" ; then
50083         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
50084     fi
50085     if test "$wxUSE_STC" = "yes" ; then
50086         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
50087     fi
50088     if test "$wxUSE_XRC" = "yes" ; then
50089         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
50090         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
50091     fi
50092 fi
50093
50094
50095
50096
50097
50098
50099
50100
50101 if test "$wxUSE_MAC" = 1 ; then
50102     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
50103         if test "$USE_DARWIN" = 1; then
50104             LDFLAGS="$LDFLAGS -framework QuickTime"
50105         else
50106             LDFLAGS="$LDFLAGS -lQuickTimeLib"
50107         fi
50108     fi
50109     if test "$USE_DARWIN" = 1; then
50110         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
50111     else
50112         LDFLAGS="$LDFLAGS -lCarbonLib"
50113     fi
50114 fi
50115 if test "$wxUSE_COCOA" = 1 ; then
50116     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
50117     if test "$wxUSE_MEDIACTRL" = "yes"; then
50118         LDFLAGS="$LDFLAGS -framework QuickTime"
50119     fi
50120 fi
50121 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
50122     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
50123 fi
50124
50125 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
50126
50127 if test "$wxUSE_GUI" = "yes"; then
50128
50129
50130         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
50131                      erase event exec font image minimal mobile \
50132                      mobile/wxedit mobile/styles propsize render \
50133                      shaped svg taborder vscroll widgets"
50134
50135     if test "$wxUSE_MONOLITHIC" != "yes"; then
50136         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
50137     fi
50138     if test "$TOOLKIT" = "MSW"; then
50139         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
50140         if test "$wxUSE_UNIVERSAL" != "yes"; then
50141             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
50142         fi
50143     fi
50144     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
50145         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
50146     fi
50147 else
50148     SAMPLES_SUBDIRS="console"
50149 fi
50150
50151
50152 if test "x$INTELCC" = "xyes" ; then
50153                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
50154 elif test "$GCC" = yes ; then
50155     CWARNINGS="-Wall -Wundef"
50156 fi
50157
50158 if test "x$INTELCXX" = "xyes" ; then
50159                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
50160 elif test "$GXX" = yes ; then
50161         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
50162 fi
50163
50164
50165 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
50166 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
50167
50168
50169 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
50170  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
50171  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
50172  $CPPFLAGS `
50173
50174 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
50175 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
50176 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
50177
50178 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
50179
50180
50181 if test "x$MWCC" = "xyes"; then
50182
50183             CC="$CC -cwd source -I-"
50184     CXX="$CXX -cwd source -I-"
50185 fi
50186
50187
50188 LIBS=`echo $LIBS`
50189 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
50190 EXTRALIBS_XML="$EXPAT_LINK"
50191 EXTRALIBS_HTML="$MSPACK_LINK"
50192 EXTRALIBS_ODBC="$ODBC_LINK"
50193 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
50194 if test "$wxUSE_GUI" = "yes"; then
50195     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
50196 fi
50197 if test "$wxUSE_OPENGL" = "yes"; then
50198     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
50199 fi
50200
50201 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
50202
50203 WXCONFIG_LIBS="$LIBS"
50204
50205 if test "$wxUSE_REGEX" = "builtin" ; then
50206     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
50207 fi
50208 if test "$wxUSE_EXPAT" = "builtin" ; then
50209     wxconfig_3rdparty="expat $wxconfig_3rdparty"
50210 fi
50211 if test "$wxUSE_ODBC" = "builtin" ; then
50212     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
50213 fi
50214 if test "$wxUSE_LIBTIFF" = "builtin" ; then
50215     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
50216 fi
50217 if test "$wxUSE_LIBJPEG" = "builtin" ; then
50218     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
50219 fi
50220 if test "$wxUSE_LIBPNG" = "builtin" ; then
50221     wxconfig_3rdparty="png $wxconfig_3rdparty"
50222 fi
50223 if test "$wxUSE_ZLIB" = "builtin" ; then
50224     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
50225 fi
50226
50227 for i in $wxconfig_3rdparty ; do
50228     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
50229 done
50230
50231
50232 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
50233     WXUNIV=1
50234
50235     case "$wxUNIV_THEMES" in
50236         ''|all)
50237             cat >>confdefs.h <<\_ACEOF
50238 #define wxUSE_ALL_THEMES 1
50239 _ACEOF
50240
50241             ;;
50242
50243         *)
50244             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
50245                 cat >>confdefs.h <<_ACEOF
50246 #define wxUSE_THEME_$t 1
50247 _ACEOF
50248
50249             done
50250     esac
50251 else
50252     WXUNIV=0
50253 fi
50254
50255
50256
50257
50258
50259
50260
50261
50262
50263 if test $wxUSE_MONOLITHIC = "yes" ; then
50264     MONOLITHIC=1
50265 else
50266     MONOLITHIC=0
50267 fi
50268
50269 if test $wxUSE_PLUGINS = "yes" ; then
50270     USE_PLUGINS=1
50271 else
50272     USE_PLUGINS=0
50273 fi
50274
50275 if test $wxUSE_ODBC != "no" ; then
50276     USE_ODBC=1
50277 else
50278     USE_ODBC=0
50279 fi
50280
50281 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
50282     USE_QA=1
50283 else
50284     USE_QA=0
50285 fi
50286
50287 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
50288     OFFICIAL_BUILD=1
50289 else
50290     OFFICIAL_BUILD=0
50291 fi
50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302
50303
50304
50305
50306
50307
50308
50309
50310
50311
50312
50313
50314
50315
50316
50317
50318 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
50319
50320
50321
50322
50323
50324
50325
50326
50327 case "$TOOLKIT" in
50328     GTK)
50329         TOOLKIT_DESC="GTK+"
50330         if test "$WXGTK20" = 1; then
50331             TOOLKIT_DESC="$TOOLKIT_DESC 2"
50332             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
50333                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
50334             fi
50335             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
50336                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
50337             fi
50338             if test "$wxUSE_LIBHILDON" = "yes"; then
50339                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
50340             fi
50341
50342             if test "$TOOLKIT_EXTRA" != ""; then
50343                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
50344             fi
50345         fi
50346         ;;
50347
50348     ?*)
50349         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
50350         ;;
50351
50352     *)
50353         TOOLKIT_DESC="base only"
50354         ;;
50355 esac
50356
50357 if test "$wxUSE_WINE" = "yes"; then
50358     BAKEFILE_FORCE_PLATFORM=win32
50359 fi
50360
50361 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
50362 then
50363     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
50364 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
50365 if test "${wx_cv_gcc_pch_bug+set}" = set; then
50366   echo $ECHO_N "(cached) $ECHO_C" >&6
50367 else
50368
50369             echo '#include <stdio.h>
50370                   const wchar_t test_var[] = L"awidetest";' > conftest.h
50371
50372             echo '#include "conftest.h"
50373                   int main()
50374                   {
50375                      printf("%ls", test_var);
50376                      return 0;
50377                   }' > conftest.cpp
50378
50379             wx_cv_gcc_pch_bug="pch not supported"
50380
50381             if $CXX conftest.h >/dev/null 2>&1
50382             then
50383                 wx_cv_gcc_pch_bug=
50384
50385                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
50386                 then
50387                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
50388                         grep awidetest >/dev/null
50389                     then
50390                         wx_cv_gcc_pch_bug=no
50391                     else
50392                         wx_cv_gcc_pch_bug=yes
50393                     fi
50394                 fi
50395             fi
50396
50397             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
50398
50399 fi
50400 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
50401 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
50402
50403     if test "$wx_cv_gcc_pch_bug" = yes; then
50404                         bk_use_pch=no
50405     fi
50406 fi
50407
50408
50409
50410
50411     if test "x$BAKEFILE_HOST" = "x"; then
50412                if test "x${host}" = "x" ; then
50413                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
50414 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
50415    { (exit 1); exit 1; }; }
50416                fi
50417
50418         BAKEFILE_HOST="${host}"
50419     fi
50420
50421     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
50422
50423     if test -n "$ac_tool_prefix"; then
50424   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
50425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
50426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50428 if test "${ac_cv_prog_RANLIB+set}" = set; then
50429   echo $ECHO_N "(cached) $ECHO_C" >&6
50430 else
50431   if test -n "$RANLIB"; then
50432   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
50433 else
50434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50435 for as_dir in $PATH
50436 do
50437   IFS=$as_save_IFS
50438   test -z "$as_dir" && as_dir=.
50439   for ac_exec_ext in '' $ac_executable_extensions; do
50440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50441     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
50442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50443     break 2
50444   fi
50445 done
50446 done
50447 IFS=$as_save_IFS
50448
50449 fi
50450 fi
50451 RANLIB=$ac_cv_prog_RANLIB
50452 if test -n "$RANLIB"; then
50453   { echo "$as_me:$LINENO: result: $RANLIB" >&5
50454 echo "${ECHO_T}$RANLIB" >&6; }
50455 else
50456   { echo "$as_me:$LINENO: result: no" >&5
50457 echo "${ECHO_T}no" >&6; }
50458 fi
50459
50460
50461 fi
50462 if test -z "$ac_cv_prog_RANLIB"; then
50463   ac_ct_RANLIB=$RANLIB
50464   # Extract the first word of "ranlib", so it can be a program name with args.
50465 set dummy ranlib; ac_word=$2
50466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50468 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
50469   echo $ECHO_N "(cached) $ECHO_C" >&6
50470 else
50471   if test -n "$ac_ct_RANLIB"; then
50472   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
50473 else
50474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50475 for as_dir in $PATH
50476 do
50477   IFS=$as_save_IFS
50478   test -z "$as_dir" && as_dir=.
50479   for ac_exec_ext in '' $ac_executable_extensions; do
50480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50481     ac_cv_prog_ac_ct_RANLIB="ranlib"
50482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50483     break 2
50484   fi
50485 done
50486 done
50487 IFS=$as_save_IFS
50488
50489 fi
50490 fi
50491 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
50492 if test -n "$ac_ct_RANLIB"; then
50493   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
50494 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
50495 else
50496   { echo "$as_me:$LINENO: result: no" >&5
50497 echo "${ECHO_T}no" >&6; }
50498 fi
50499
50500   if test "x$ac_ct_RANLIB" = x; then
50501     RANLIB=":"
50502   else
50503     case $cross_compiling:$ac_tool_warned in
50504 yes:)
50505 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50506 whose name does not start with the host triplet.  If you think this
50507 configuration is useful to you, please write to autoconf@gnu.org." >&5
50508 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50509 whose name does not start with the host triplet.  If you think this
50510 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50511 ac_tool_warned=yes ;;
50512 esac
50513     RANLIB=$ac_ct_RANLIB
50514   fi
50515 else
50516   RANLIB="$ac_cv_prog_RANLIB"
50517 fi
50518
50519     # Find a good install program.  We prefer a C program (faster),
50520 # so one script is as good as another.  But avoid the broken or
50521 # incompatible versions:
50522 # SysV /etc/install, /usr/sbin/install
50523 # SunOS /usr/etc/install
50524 # IRIX /sbin/install
50525 # AIX /bin/install
50526 # AmigaOS /C/install, which installs bootblocks on floppy discs
50527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
50529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
50530 # OS/2's system install, which has a completely different semantic
50531 # ./install, which can be erroneously created by make from ./install.sh.
50532 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
50533 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
50534 if test -z "$INSTALL"; then
50535 if test "${ac_cv_path_install+set}" = set; then
50536   echo $ECHO_N "(cached) $ECHO_C" >&6
50537 else
50538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50539 for as_dir in $PATH
50540 do
50541   IFS=$as_save_IFS
50542   test -z "$as_dir" && as_dir=.
50543   # Account for people who put trailing slashes in PATH elements.
50544 case $as_dir/ in
50545   ./ | .// | /cC/* | \
50546   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
50547   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
50548   /usr/ucb/* ) ;;
50549   *)
50550     # OSF1 and SCO ODT 3.0 have their own names for install.
50551     # Don't use installbsd from OSF since it installs stuff as root
50552     # by default.
50553     for ac_prog in ginstall scoinst install; do
50554       for ac_exec_ext in '' $ac_executable_extensions; do
50555         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
50556           if test $ac_prog = install &&
50557             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50558             # AIX install.  It has an incompatible calling convention.
50559             :
50560           elif test $ac_prog = install &&
50561             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50562             # program-specific install script used by HP pwplus--don't use.
50563             :
50564           else
50565             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
50566             break 3
50567           fi
50568         fi
50569       done
50570     done
50571     ;;
50572 esac
50573 done
50574 IFS=$as_save_IFS
50575
50576
50577 fi
50578   if test "${ac_cv_path_install+set}" = set; then
50579     INSTALL=$ac_cv_path_install
50580   else
50581     # As a last resort, use the slow shell script.  Don't cache a
50582     # value for INSTALL within a source directory, because that will
50583     # break other packages using the cache if that directory is
50584     # removed, or if the value is a relative name.
50585     INSTALL=$ac_install_sh
50586   fi
50587 fi
50588 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50589 echo "${ECHO_T}$INSTALL" >&6; }
50590
50591 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50592 # It thinks the first close brace ends the variable substitution.
50593 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50594
50595 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50596
50597 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50598
50599     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50600 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50601 LN_S=$as_ln_s
50602 if test "$LN_S" = "ln -s"; then
50603   { echo "$as_me:$LINENO: result: yes" >&5
50604 echo "${ECHO_T}yes" >&6; }
50605 else
50606   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50607 echo "${ECHO_T}no, using $LN_S" >&6; }
50608 fi
50609
50610
50611     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50612 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50613 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50614 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50615   echo $ECHO_N "(cached) $ECHO_C" >&6
50616 else
50617   cat >conftest.make <<\_ACEOF
50618 SHELL = /bin/sh
50619 all:
50620         @echo '@@@%%%=$(MAKE)=@@@%%%'
50621 _ACEOF
50622 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50623 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50624   *@@@%%%=?*=@@@%%%*)
50625     eval ac_cv_prog_make_${ac_make}_set=yes;;
50626   *)
50627     eval ac_cv_prog_make_${ac_make}_set=no;;
50628 esac
50629 rm -f conftest.make
50630 fi
50631 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50632   { echo "$as_me:$LINENO: result: yes" >&5
50633 echo "${ECHO_T}yes" >&6; }
50634   SET_MAKE=
50635 else
50636   { echo "$as_me:$LINENO: result: no" >&5
50637 echo "${ECHO_T}no" >&6; }
50638   SET_MAKE="MAKE=${MAKE-make}"
50639 fi
50640
50641
50642
50643     if test "x$SUNCXX" = "xyes"; then
50644                                 AR=$CXX
50645         AROPTIONS="-xar -o"
50646
50647     elif test "x$SGICC" = "xyes"; then
50648                 AR=$CXX
50649         AROPTIONS="-ar -o"
50650
50651     else
50652         if test -n "$ac_tool_prefix"; then
50653   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50654 set dummy ${ac_tool_prefix}ar; ac_word=$2
50655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50657 if test "${ac_cv_prog_AR+set}" = set; then
50658   echo $ECHO_N "(cached) $ECHO_C" >&6
50659 else
50660   if test -n "$AR"; then
50661   ac_cv_prog_AR="$AR" # Let the user override the test.
50662 else
50663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50664 for as_dir in $PATH
50665 do
50666   IFS=$as_save_IFS
50667   test -z "$as_dir" && as_dir=.
50668   for ac_exec_ext in '' $ac_executable_extensions; do
50669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50670     ac_cv_prog_AR="${ac_tool_prefix}ar"
50671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50672     break 2
50673   fi
50674 done
50675 done
50676 IFS=$as_save_IFS
50677
50678 fi
50679 fi
50680 AR=$ac_cv_prog_AR
50681 if test -n "$AR"; then
50682   { echo "$as_me:$LINENO: result: $AR" >&5
50683 echo "${ECHO_T}$AR" >&6; }
50684 else
50685   { echo "$as_me:$LINENO: result: no" >&5
50686 echo "${ECHO_T}no" >&6; }
50687 fi
50688
50689
50690 fi
50691 if test -z "$ac_cv_prog_AR"; then
50692   ac_ct_AR=$AR
50693   # Extract the first word of "ar", so it can be a program name with args.
50694 set dummy ar; ac_word=$2
50695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50697 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50698   echo $ECHO_N "(cached) $ECHO_C" >&6
50699 else
50700   if test -n "$ac_ct_AR"; then
50701   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50702 else
50703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50704 for as_dir in $PATH
50705 do
50706   IFS=$as_save_IFS
50707   test -z "$as_dir" && as_dir=.
50708   for ac_exec_ext in '' $ac_executable_extensions; do
50709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50710     ac_cv_prog_ac_ct_AR="ar"
50711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50712     break 2
50713   fi
50714 done
50715 done
50716 IFS=$as_save_IFS
50717
50718 fi
50719 fi
50720 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50721 if test -n "$ac_ct_AR"; then
50722   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50723 echo "${ECHO_T}$ac_ct_AR" >&6; }
50724 else
50725   { echo "$as_me:$LINENO: result: no" >&5
50726 echo "${ECHO_T}no" >&6; }
50727 fi
50728
50729   if test "x$ac_ct_AR" = x; then
50730     AR="ar"
50731   else
50732     case $cross_compiling:$ac_tool_warned in
50733 yes:)
50734 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50735 whose name does not start with the host triplet.  If you think this
50736 configuration is useful to you, please write to autoconf@gnu.org." >&5
50737 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50738 whose name does not start with the host triplet.  If you think this
50739 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50740 ac_tool_warned=yes ;;
50741 esac
50742     AR=$ac_ct_AR
50743   fi
50744 else
50745   AR="$ac_cv_prog_AR"
50746 fi
50747
50748         AROPTIONS=rcu
50749     fi
50750
50751
50752     if test -n "$ac_tool_prefix"; then
50753   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50754 set dummy ${ac_tool_prefix}strip; ac_word=$2
50755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50757 if test "${ac_cv_prog_STRIP+set}" = set; then
50758   echo $ECHO_N "(cached) $ECHO_C" >&6
50759 else
50760   if test -n "$STRIP"; then
50761   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50762 else
50763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50764 for as_dir in $PATH
50765 do
50766   IFS=$as_save_IFS
50767   test -z "$as_dir" && as_dir=.
50768   for ac_exec_ext in '' $ac_executable_extensions; do
50769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50770     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50772     break 2
50773   fi
50774 done
50775 done
50776 IFS=$as_save_IFS
50777
50778 fi
50779 fi
50780 STRIP=$ac_cv_prog_STRIP
50781 if test -n "$STRIP"; then
50782   { echo "$as_me:$LINENO: result: $STRIP" >&5
50783 echo "${ECHO_T}$STRIP" >&6; }
50784 else
50785   { echo "$as_me:$LINENO: result: no" >&5
50786 echo "${ECHO_T}no" >&6; }
50787 fi
50788
50789
50790 fi
50791 if test -z "$ac_cv_prog_STRIP"; then
50792   ac_ct_STRIP=$STRIP
50793   # Extract the first word of "strip", so it can be a program name with args.
50794 set dummy strip; ac_word=$2
50795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50797 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50798   echo $ECHO_N "(cached) $ECHO_C" >&6
50799 else
50800   if test -n "$ac_ct_STRIP"; then
50801   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50802 else
50803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50804 for as_dir in $PATH
50805 do
50806   IFS=$as_save_IFS
50807   test -z "$as_dir" && as_dir=.
50808   for ac_exec_ext in '' $ac_executable_extensions; do
50809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50810     ac_cv_prog_ac_ct_STRIP="strip"
50811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50812     break 2
50813   fi
50814 done
50815 done
50816 IFS=$as_save_IFS
50817
50818 fi
50819 fi
50820 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50821 if test -n "$ac_ct_STRIP"; then
50822   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50823 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50824 else
50825   { echo "$as_me:$LINENO: result: no" >&5
50826 echo "${ECHO_T}no" >&6; }
50827 fi
50828
50829   if test "x$ac_ct_STRIP" = x; then
50830     STRIP=":"
50831   else
50832     case $cross_compiling:$ac_tool_warned in
50833 yes:)
50834 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50835 whose name does not start with the host triplet.  If you think this
50836 configuration is useful to you, please write to autoconf@gnu.org." >&5
50837 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50838 whose name does not start with the host triplet.  If you think this
50839 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50840 ac_tool_warned=yes ;;
50841 esac
50842     STRIP=$ac_ct_STRIP
50843   fi
50844 else
50845   STRIP="$ac_cv_prog_STRIP"
50846 fi
50847
50848     if test -n "$ac_tool_prefix"; then
50849   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50850 set dummy ${ac_tool_prefix}nm; ac_word=$2
50851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50853 if test "${ac_cv_prog_NM+set}" = set; then
50854   echo $ECHO_N "(cached) $ECHO_C" >&6
50855 else
50856   if test -n "$NM"; then
50857   ac_cv_prog_NM="$NM" # Let the user override the test.
50858 else
50859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50860 for as_dir in $PATH
50861 do
50862   IFS=$as_save_IFS
50863   test -z "$as_dir" && as_dir=.
50864   for ac_exec_ext in '' $ac_executable_extensions; do
50865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50866     ac_cv_prog_NM="${ac_tool_prefix}nm"
50867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50868     break 2
50869   fi
50870 done
50871 done
50872 IFS=$as_save_IFS
50873
50874 fi
50875 fi
50876 NM=$ac_cv_prog_NM
50877 if test -n "$NM"; then
50878   { echo "$as_me:$LINENO: result: $NM" >&5
50879 echo "${ECHO_T}$NM" >&6; }
50880 else
50881   { echo "$as_me:$LINENO: result: no" >&5
50882 echo "${ECHO_T}no" >&6; }
50883 fi
50884
50885
50886 fi
50887 if test -z "$ac_cv_prog_NM"; then
50888   ac_ct_NM=$NM
50889   # Extract the first word of "nm", so it can be a program name with args.
50890 set dummy nm; ac_word=$2
50891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50893 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50894   echo $ECHO_N "(cached) $ECHO_C" >&6
50895 else
50896   if test -n "$ac_ct_NM"; then
50897   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50898 else
50899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50900 for as_dir in $PATH
50901 do
50902   IFS=$as_save_IFS
50903   test -z "$as_dir" && as_dir=.
50904   for ac_exec_ext in '' $ac_executable_extensions; do
50905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50906     ac_cv_prog_ac_ct_NM="nm"
50907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50908     break 2
50909   fi
50910 done
50911 done
50912 IFS=$as_save_IFS
50913
50914 fi
50915 fi
50916 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50917 if test -n "$ac_ct_NM"; then
50918   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50919 echo "${ECHO_T}$ac_ct_NM" >&6; }
50920 else
50921   { echo "$as_me:$LINENO: result: no" >&5
50922 echo "${ECHO_T}no" >&6; }
50923 fi
50924
50925   if test "x$ac_ct_NM" = x; then
50926     NM=":"
50927   else
50928     case $cross_compiling:$ac_tool_warned in
50929 yes:)
50930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50931 whose name does not start with the host triplet.  If you think this
50932 configuration is useful to you, please write to autoconf@gnu.org." >&5
50933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50934 whose name does not start with the host triplet.  If you think this
50935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50936 ac_tool_warned=yes ;;
50937 esac
50938     NM=$ac_ct_NM
50939   fi
50940 else
50941   NM="$ac_cv_prog_NM"
50942 fi
50943
50944
50945     case ${BAKEFILE_HOST} in
50946         *-hp-hpux* )
50947                                     INSTALL_DIR="mkdir -p"
50948             ;;
50949         * )
50950                                     INSTALL_DIR='$(INSTALL) -d'
50951             ;;
50952     esac
50953
50954
50955     LDFLAGS_GUI=
50956     case ${BAKEFILE_HOST} in
50957         *-*-cygwin* | *-*-mingw32* )
50958         LDFLAGS_GUI="-mwindows"
50959     esac
50960
50961
50962     fi
50963
50964         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50965 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50966 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50967   echo $ECHO_N "(cached) $ECHO_C" >&6
50968 else
50969
50970         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50971                 egrep -s GNU > /dev/null); then
50972             bakefile_cv_prog_makeisgnu="yes"
50973         else
50974             bakefile_cv_prog_makeisgnu="no"
50975         fi
50976
50977 fi
50978 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50979 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50980
50981     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50982         IF_GNU_MAKE=""
50983     else
50984         IF_GNU_MAKE="#"
50985     fi
50986
50987
50988
50989     PLATFORM_UNIX=0
50990     PLATFORM_WIN32=0
50991     PLATFORM_MSDOS=0
50992     PLATFORM_MAC=0
50993     PLATFORM_MACOS=0
50994     PLATFORM_MACOSX=0
50995     PLATFORM_OS2=0
50996     PLATFORM_BEOS=0
50997
50998     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50999         case "${BAKEFILE_HOST}" in
51000             *-*-mingw32* )
51001                 PLATFORM_WIN32=1
51002             ;;
51003             *-pc-msdosdjgpp )
51004                 PLATFORM_MSDOS=1
51005             ;;
51006             *-pc-os2_emx | *-pc-os2-emx )
51007                 PLATFORM_OS2=1
51008             ;;
51009             *-*-darwin* )
51010                 PLATFORM_MAC=1
51011                 PLATFORM_MACOSX=1
51012             ;;
51013             *-*-beos* )
51014                 PLATFORM_BEOS=1
51015             ;;
51016             powerpc-apple-macos* )
51017                 PLATFORM_MAC=1
51018                 PLATFORM_MACOS=1
51019             ;;
51020             * )
51021                 PLATFORM_UNIX=1
51022             ;;
51023         esac
51024     else
51025         case "$BAKEFILE_FORCE_PLATFORM" in
51026             win32 )
51027                 PLATFORM_WIN32=1
51028             ;;
51029             msdos )
51030                 PLATFORM_MSDOS=1
51031             ;;
51032             os2 )
51033                 PLATFORM_OS2=1
51034             ;;
51035             darwin )
51036                 PLATFORM_MAC=1
51037                 PLATFORM_MACOSX=1
51038             ;;
51039             unix )
51040                 PLATFORM_UNIX=1
51041             ;;
51042             beos )
51043                 PLATFORM_BEOS=1
51044             ;;
51045             * )
51046                                             ;;
51047         esac
51048     fi
51049
51050
51051
51052
51053
51054
51055
51056
51057
51058
51059
51060     # Check whether --enable-omf was given.
51061 if test "${enable_omf+set}" = set; then
51062   enableval=$enable_omf; bk_os2_use_omf="$enableval"
51063 fi
51064
51065
51066     case "${BAKEFILE_HOST}" in
51067       *-*-darwin* )
51068                         if test "x$GCC" = "xyes"; then
51069             CFLAGS="$CFLAGS -fno-common"
51070             CXXFLAGS="$CXXFLAGS -fno-common"
51071         fi
51072         if test "x$XLCC" = "xyes"; then
51073             CFLAGS="$CFLAGS -qnocommon"
51074             CXXFLAGS="$CXXFLAGS -qnocommon"
51075         fi
51076         ;;
51077
51078       *-pc-os2_emx | *-pc-os2-emx )
51079         if test "x$bk_os2_use_omf" = "xyes" ; then
51080             AR=emxomfar
51081             RANLIB=:
51082             LDFLAGS="-Zomf $LDFLAGS"
51083             CFLAGS="-Zomf $CFLAGS"
51084             CXXFLAGS="-Zomf $CXXFLAGS"
51085             OS2_LIBEXT="lib"
51086         else
51087             OS2_LIBEXT="a"
51088         fi
51089         ;;
51090
51091       i*86-*-beos* )
51092         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
51093         ;;
51094     esac
51095
51096
51097     SO_SUFFIX="so"
51098     SO_SUFFIX_MODULE="so"
51099     EXEEXT=""
51100     LIBPREFIX="lib"
51101     LIBEXT=".a"
51102     DLLPREFIX="lib"
51103     DLLPREFIX_MODULE=""
51104     DLLIMP_SUFFIX=""
51105     dlldir="$libdir"
51106
51107     case "${BAKEFILE_HOST}" in
51108         *-hp-hpux* )
51109             SO_SUFFIX="sl"
51110             SO_SUFFIX_MODULE="sl"
51111         ;;
51112         *-*-aix* )
51113                                                                         SO_SUFFIX="a"
51114             SO_SUFFIX_MODULE="a"
51115         ;;
51116         *-*-cygwin* )
51117             SO_SUFFIX="dll"
51118             SO_SUFFIX_MODULE="dll"
51119             DLLIMP_SUFFIX="dll.a"
51120             EXEEXT=".exe"
51121             DLLPREFIX="cyg"
51122             dlldir="$bindir"
51123         ;;
51124         *-*-mingw32* )
51125             SO_SUFFIX="dll"
51126             SO_SUFFIX_MODULE="dll"
51127             DLLIMP_SUFFIX="dll.a"
51128             EXEEXT=".exe"
51129             DLLPREFIX=""
51130             dlldir="$bindir"
51131         ;;
51132         *-pc-msdosdjgpp )
51133             EXEEXT=".exe"
51134             DLLPREFIX=""
51135             dlldir="$bindir"
51136         ;;
51137         *-pc-os2_emx | *-pc-os2-emx )
51138             SO_SUFFIX="dll"
51139             SO_SUFFIX_MODULE="dll"
51140             DLLIMP_SUFFIX=$OS2_LIBEXT
51141             EXEEXT=".exe"
51142             DLLPREFIX=""
51143             LIBPREFIX=""
51144             LIBEXT=".$OS2_LIBEXT"
51145             dlldir="$bindir"
51146         ;;
51147         *-*-darwin* )
51148             SO_SUFFIX="dylib"
51149             SO_SUFFIX_MODULE="bundle"
51150         ;;
51151     esac
51152
51153     if test "x$DLLIMP_SUFFIX" = "x" ; then
51154         DLLIMP_SUFFIX="$SO_SUFFIX"
51155     fi
51156
51157
51158
51159
51160
51161
51162
51163
51164
51165
51166
51167
51168         PIC_FLAG=""
51169     if test "x$GCC" = "xyes"; then
51170                 PIC_FLAG="-fPIC"
51171     fi
51172
51173         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
51174     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
51175     WINDOWS_IMPLIB=0
51176
51177     case "${BAKEFILE_HOST}" in
51178       *-hp-hpux* )
51179                 if test "x$GCC" != "xyes"; then
51180                         LDFLAGS="$LDFLAGS -L/usr/lib"
51181
51182             SHARED_LD_CC="${CC} -b -o"
51183             SHARED_LD_CXX="${CXX} -b -o"
51184             PIC_FLAG="+Z"
51185         fi
51186       ;;
51187
51188       *-*-linux* )
51189         if test "$INTELCC" = "yes"; then
51190             PIC_FLAG="-KPIC"
51191         elif test "x$SUNCXX" = "xyes"; then
51192             SHARED_LD_CC="${CC} -G -o"
51193             SHARED_LD_CXX="${CXX} -G -o"
51194             PIC_FLAG="-KPIC"
51195         fi
51196       ;;
51197
51198       *-*-solaris2* )
51199         if test "x$SUNCXX" = xyes ; then
51200             SHARED_LD_CC="${CC} -G -o"
51201             SHARED_LD_CXX="${CXX} -G -o"
51202             PIC_FLAG="-KPIC"
51203         fi
51204       ;;
51205
51206       *-*-darwin* )
51207
51208 D='$'
51209 cat <<EOF >shared-ld-sh
51210 #!/bin/sh
51211 #-----------------------------------------------------------------------------
51212 #-- Name:        distrib/mac/shared-ld-sh
51213 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
51214 #-- Author:      Gilles Depeyrot
51215 #-- Copyright:   (c) 2002 Gilles Depeyrot
51216 #-- Licence:     any use permitted
51217 #-----------------------------------------------------------------------------
51218
51219 verbose=0
51220 args=""
51221 objects=""
51222 linking_flag="-dynamiclib"
51223 ldargs="-r -keep_private_externs -nostdlib"
51224
51225 while test ${D}# -gt 0; do
51226     case ${D}1 in
51227
51228        -v)
51229         verbose=1
51230         ;;
51231
51232        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
51233         # collect these options and values
51234         args="${D}{args} ${D}1 ${D}2"
51235         shift
51236         ;;
51237
51238        -s|-Wl,*)
51239         # collect these load args
51240         ldargs="${D}{ldargs} ${D}1"
51241         ;;
51242
51243        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
51244         # collect these options
51245         args="${D}{args} ${D}1"
51246         ;;
51247
51248        -dynamiclib|-bundle)
51249         linking_flag="${D}1"
51250         ;;
51251
51252        -*)
51253         echo "shared-ld: unhandled option '${D}1'"
51254         exit 1
51255         ;;
51256
51257         *.o | *.a | *.dylib)
51258         # collect object files
51259         objects="${D}{objects} ${D}1"
51260         ;;
51261
51262         *)
51263         echo "shared-ld: unhandled argument '${D}1'"
51264         exit 1
51265         ;;
51266
51267     esac
51268     shift
51269 done
51270
51271 status=0
51272
51273 #
51274 # Link one module containing all the others
51275 #
51276 if test ${D}{verbose} = 1; then
51277     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
51278 fi
51279 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
51280 status=${D}?
51281
51282 #
51283 # Link the shared library from the single module created, but only if the
51284 # previous command didn't fail:
51285 #
51286 if test ${D}{status} = 0; then
51287     if test ${D}{verbose} = 1; then
51288         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
51289     fi
51290     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
51291     status=${D}?
51292 fi
51293
51294 #
51295 # Remove intermediate module
51296 #
51297 rm -f master.${D}${D}.o
51298
51299 exit ${D}status
51300 EOF
51301
51302         chmod +x shared-ld-sh
51303
51304         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
51305         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
51306
51307
51308                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
51309 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
51310 if test "${bakefile_cv_gcc31+set}" = set; then
51311   echo $ECHO_N "(cached) $ECHO_C" >&6
51312 else
51313
51314            cat >conftest.$ac_ext <<_ACEOF
51315 /* confdefs.h.  */
51316 _ACEOF
51317 cat confdefs.h >>conftest.$ac_ext
51318 cat >>conftest.$ac_ext <<_ACEOF
51319 /* end confdefs.h.  */
51320
51321 int
51322 main ()
51323 {
51324
51325                    #if (__GNUC__ < 3) || \
51326                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
51327                        This is old gcc
51328                    #endif
51329
51330   ;
51331   return 0;
51332 }
51333 _ACEOF
51334 rm -f conftest.$ac_objext
51335 if { (ac_try="$ac_compile"
51336 case "(($ac_try" in
51337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51338   *) ac_try_echo=$ac_try;;
51339 esac
51340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51341   (eval "$ac_compile") 2>conftest.er1
51342   ac_status=$?
51343   grep -v '^ *+' conftest.er1 >conftest.err
51344   rm -f conftest.er1
51345   cat conftest.err >&5
51346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51347   (exit $ac_status); } && {
51348          test -z "$ac_c_werror_flag" ||
51349          test ! -s conftest.err
51350        } && test -s conftest.$ac_objext; then
51351
51352                    bakefile_cv_gcc31=yes
51353
51354 else
51355   echo "$as_me: failed program was:" >&5
51356 sed 's/^/| /' conftest.$ac_ext >&5
51357
51358
51359                    bakefile_cv_gcc31=no
51360
51361
51362 fi
51363
51364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51365
51366 fi
51367 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
51368 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
51369         if test "$bakefile_cv_gcc31" = "no"; then
51370                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
51371             SHARED_LD_CXX="$SHARED_LD_CC"
51372         else
51373                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
51374             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
51375         fi
51376
51377         if test "x$GCC" == "xyes"; then
51378             PIC_FLAG="-dynamic -fPIC"
51379         fi
51380         if test "x$XLCC" = "xyes"; then
51381             PIC_FLAG="-dynamic -DPIC"
51382         fi
51383       ;;
51384
51385       *-*-aix* )
51386         if test "x$GCC" = "xyes"; then
51387                                                             PIC_FLAG=""
51388
51389                                                                                     case "${BAKEFILE_HOST}" in
51390                 *-*-aix5* )
51391                     LD_EXPFULL="-Wl,-bexpfull"
51392                     ;;
51393             esac
51394
51395             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
51396             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
51397         else
51398                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
51399 set dummy makeC++SharedLib; ac_word=$2
51400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51402 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
51403   echo $ECHO_N "(cached) $ECHO_C" >&6
51404 else
51405   if test -n "$AIX_CXX_LD"; then
51406   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
51407 else
51408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51409 for as_dir in $PATH
51410 do
51411   IFS=$as_save_IFS
51412   test -z "$as_dir" && as_dir=.
51413   for ac_exec_ext in '' $ac_executable_extensions; do
51414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51415     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
51416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51417     break 2
51418   fi
51419 done
51420 done
51421 IFS=$as_save_IFS
51422
51423   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
51424 fi
51425 fi
51426 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
51427 if test -n "$AIX_CXX_LD"; then
51428   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
51429 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
51430 else
51431   { echo "$as_me:$LINENO: result: no" >&5
51432 echo "${ECHO_T}no" >&6; }
51433 fi
51434
51435
51436             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
51437             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
51438         fi
51439       ;;
51440
51441       *-*-beos* )
51442                         SHARED_LD_CC="${LD} -nostart -o"
51443         SHARED_LD_CXX="${LD} -nostart -o"
51444       ;;
51445
51446       *-*-irix* )
51447                 if test "x$GCC" != "xyes"; then
51448             PIC_FLAG="-KPIC"
51449         fi
51450       ;;
51451
51452       *-*-cygwin* | *-*-mingw32* )
51453         PIC_FLAG=""
51454         SHARED_LD_CC="\$(CC) -shared -o"
51455         SHARED_LD_CXX="\$(CXX) -shared -o"
51456         WINDOWS_IMPLIB=1
51457       ;;
51458
51459       *-pc-os2_emx | *-pc-os2-emx )
51460         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51461         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51462         PIC_FLAG=""
51463
51464 D='$'
51465 cat <<EOF >dllar.sh
51466 #!/bin/sh
51467 #
51468 # dllar - a tool to build both a .dll and an .a file
51469 # from a set of object (.o) files for EMX/OS2.
51470 #
51471 #  Written by Andrew Zabolotny, bit@freya.etu.ru
51472 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
51473 #
51474 #  This script will accept a set of files on the command line.
51475 #  All the public symbols from the .o files will be exported into
51476 #  a .DEF file, then linker will be run (through gcc) against them to
51477 #  build a shared library consisting of all given .o files. All libraries
51478 #  (.a) will be first decompressed into component .o files then act as
51479 #  described above. You can optionally give a description (-d "description")
51480 #  which will be put into .DLL. To see the list of accepted options (as well
51481 #  as command-line format) simply run this program without options. The .DLL
51482 #  is built to be imported by name (there is no guarantee that new versions
51483 #  of the library you build will have same ordinals for same symbols).
51484 #
51485 #  dllar is free software; you can redistribute it and/or modify
51486 #  it under the terms of the GNU General Public License as published by
51487 #  the Free Software Foundation; either version 2, or (at your option)
51488 #  any later version.
51489 #
51490 #  dllar is distributed in the hope that it will be useful,
51491 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
51492 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
51493 #  GNU General Public License for more details.
51494 #
51495 #  You should have received a copy of the GNU General Public License
51496 #  along with dllar; see the file COPYING.  If not, write to the Free
51497 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
51498 #  02111-1307, USA.
51499
51500 # To successfuly run this program you will need:
51501 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
51502 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
51503 #  - gcc
51504 #    (used to build the .dll)
51505 #  - emxexp
51506 #    (used to create .def file from .o files)
51507 #  - emximp
51508 #    (used to create .a file from .def file)
51509 #  - GNU text utilites (cat, sort, uniq)
51510 #    used to process emxexp output
51511 #  - GNU file utilities (mv, rm)
51512 #  - GNU sed
51513 #  - lxlite (optional, see flag below)
51514 #    (used for general .dll cleanup)
51515 #
51516
51517 flag_USE_LXLITE=1;
51518
51519 #
51520 # helper functions
51521 # basnam, variant of basename, which does _not_ remove the path, _iff_
51522 #                              second argument (suffix to remove) is given
51523 basnam(){
51524     case ${D}# in
51525     1)
51526         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
51527         ;;
51528     2)
51529         echo ${D}1 | sed 's/'${D}2'${D}//'
51530         ;;
51531     *)
51532         echo "error in basnam ${D}*"
51533         exit 8
51534         ;;
51535     esac
51536 }
51537
51538 # Cleanup temporary files and output
51539 CleanUp() {
51540     cd ${D}curDir
51541     for i in ${D}inputFiles ; do
51542         case ${D}i in
51543         *!)
51544             rm -rf \`basnam ${D}i !\`
51545             ;;
51546         *)
51547             ;;
51548         esac
51549     done
51550
51551     # Kill result in case of failure as there is just to many stupid make/nmake
51552     # things out there which doesn't do this.
51553     if [ ${D}# -eq 0 ]; then
51554         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
51555     fi
51556 }
51557
51558 # Print usage and exit script with rc=1.
51559 PrintHelp() {
51560  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
51561  echo '       [-name-mangler-script script.sh]'
51562  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
51563  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
51564  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
51565  echo '       [*.o] [*.a]'
51566  echo '*> "output_file" should have no extension.'
51567  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
51568  echo '   The import library name is derived from this and is set to "name".a,'
51569  echo '   unless overridden by -import'
51570  echo '*> "importlib_name" should have no extension.'
51571  echo '   If it has the .o, or .a extension, it is automatically removed.'
51572  echo '   This name is used as the import library name and may be longer and'
51573  echo '   more descriptive than the DLL name which has to follow the old '
51574  echo '   8.3 convention of FAT.'
51575  echo '*> "script.sh may be given to override the output_file name by a'
51576  echo '   different name. It is mainly useful if the regular make process'
51577  echo '   of some package does not take into account OS/2 restriction of'
51578  echo '   DLL name lengths. It takes the importlib name as input and is'
51579  echo '   supposed to procude a shorter name as output. The script should'
51580  echo '   expect to get importlib_name without extension and should produce'
51581  echo '   a (max.) 8 letter name without extension.'
51582  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51583  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51584  echo '   These flags will be put at the start of GCC command line.'
51585  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51586  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51587  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51588  echo '   If the last character of a symbol is "*", all symbols beginning'
51589  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51590  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51591  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51592  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51593  echo '   C runtime DLLs.'
51594  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51595  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51596  echo '   unchanged to GCC at the end of command line.'
51597  echo '*> If you create a DLL from a library and you do not specify -o,'
51598  echo '   the basename for DLL and import library will be set to library name,'
51599  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51600  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51601  echo '   library will be renamed into gcc_s.a.'
51602  echo '--------'
51603  echo 'Example:'
51604  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51605  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51606  CleanUp
51607  exit 1
51608 }
51609
51610 # Execute a command.
51611 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51612 # @Uses    Whatever CleanUp() uses.
51613 doCommand() {
51614     echo "${D}*"
51615     eval ${D}*
51616     rcCmd=${D}?
51617
51618     if [ ${D}rcCmd -ne 0 ]; then
51619         echo "command failed, exit code="${D}rcCmd
51620         CleanUp
51621         exit ${D}rcCmd
51622     fi
51623 }
51624
51625 # main routine
51626 # setup globals
51627 cmdLine=${D}*
51628 outFile=""
51629 outimpFile=""
51630 inputFiles=""
51631 renameScript=""
51632 description=""
51633 CC=gcc.exe
51634 CFLAGS="-s -Zcrtdll"
51635 EXTRA_CFLAGS=""
51636 EXPORT_BY_ORDINALS=0
51637 exclude_symbols=""
51638 library_flags=""
51639 curDir=\`pwd\`
51640 curDirS=curDir
51641 case ${D}curDirS in
51642 */)
51643   ;;
51644 *)
51645   curDirS=${D}{curDirS}"/"
51646   ;;
51647 esac
51648 # Parse commandline
51649 libsToLink=0
51650 omfLinking=0
51651 while [ ${D}1 ]; do
51652     case ${D}1 in
51653     -ord*)
51654         EXPORT_BY_ORDINALS=1;
51655         ;;
51656     -o*)
51657         shift
51658         outFile=${D}1
51659         ;;
51660     -i*)
51661         shift
51662         outimpFile=${D}1
51663         ;;
51664     -name-mangler-script)
51665         shift
51666         renameScript=${D}1
51667         ;;
51668     -d*)
51669         shift
51670         description=${D}1
51671         ;;
51672     -f*)
51673         shift
51674         CFLAGS=${D}1
51675         ;;
51676     -c*)
51677         shift
51678         CC=${D}1
51679         ;;
51680     -h*)
51681         PrintHelp
51682         ;;
51683     -ex*)
51684         shift
51685         exclude_symbols=${D}{exclude_symbols}${D}1" "
51686         ;;
51687     -libf*)
51688         shift
51689         library_flags=${D}{library_flags}${D}1" "
51690         ;;
51691     -nocrt*)
51692         CFLAGS="-s"
51693         ;;
51694     -nolxl*)
51695         flag_USE_LXLITE=0
51696         ;;
51697     -* | /*)
51698         case ${D}1 in
51699         -L* | -l*)
51700             libsToLink=1
51701             ;;
51702         -Zomf)
51703             omfLinking=1
51704             ;;
51705         *)
51706             ;;
51707         esac
51708         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51709         ;;
51710     *.dll)
51711         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51712         if [ ${D}omfLinking -eq 1 ]; then
51713             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51714         else
51715             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51716         fi
51717         ;;
51718     *)
51719         found=0;
51720         if [ ${D}libsToLink -ne 0 ]; then
51721             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51722         else
51723             for file in ${D}1 ; do
51724                 if [ -f ${D}file ]; then
51725                     inputFiles="${D}{inputFiles} ${D}file"
51726                     found=1
51727                 fi
51728             done
51729             if [ ${D}found -eq 0 ]; then
51730                 echo "ERROR: No file(s) found: "${D}1
51731                 exit 8
51732             fi
51733         fi
51734       ;;
51735     esac
51736     shift
51737 done # iterate cmdline words
51738
51739 #
51740 if [ -z "${D}inputFiles" ]; then
51741     echo "dllar: no input files"
51742     PrintHelp
51743 fi
51744
51745 # Now extract all .o files from .a files
51746 newInputFiles=""
51747 for file in ${D}inputFiles ; do
51748     case ${D}file in
51749     *.a | *.lib)
51750         case ${D}file in
51751         *.a)
51752             suffix=".a"
51753             AR="ar"
51754             ;;
51755         *.lib)
51756             suffix=".lib"
51757             AR="emxomfar"
51758             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51759             ;;
51760         *)
51761             ;;
51762         esac
51763         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51764         mkdir ${D}dirname
51765         if [ ${D}? -ne 0 ]; then
51766             echo "Failed to create subdirectory ./${D}dirname"
51767             CleanUp
51768             exit 8;
51769         fi
51770         # Append '!' to indicate archive
51771         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51772         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51773         cd ${D}curDir
51774         found=0;
51775         for subfile in ${D}dirname/*.o* ; do
51776             if [ -f ${D}subfile ]; then
51777                 found=1
51778                 if [ -s ${D}subfile ]; then
51779                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51780                     newInputFiles="${D}newInputFiles ${D}subfile"
51781                 fi
51782             fi
51783         done
51784         if [ ${D}found -eq 0 ]; then
51785             echo "WARNING: there are no files in archive \\'${D}file\\'"
51786         fi
51787         ;;
51788     *)
51789         newInputFiles="${D}{newInputFiles} ${D}file"
51790         ;;
51791     esac
51792 done
51793 inputFiles="${D}newInputFiles"
51794
51795 # Output filename(s).
51796 do_backup=0;
51797 if [ -z ${D}outFile ]; then
51798     do_backup=1;
51799     set outFile ${D}inputFiles; outFile=${D}2
51800 fi
51801
51802 # If it is an archive, remove the '!' and the '_%' suffixes
51803 case ${D}outFile in
51804 *_%!)
51805     outFile=\`basnam ${D}outFile _%!\`
51806     ;;
51807 *)
51808     ;;
51809 esac
51810 case ${D}outFile in
51811 *.dll)
51812     outFile=\`basnam ${D}outFile .dll\`
51813     ;;
51814 *.DLL)
51815     outFile=\`basnam ${D}outFile .DLL\`
51816     ;;
51817 *.o)
51818     outFile=\`basnam ${D}outFile .o\`
51819     ;;
51820 *.obj)
51821     outFile=\`basnam ${D}outFile .obj\`
51822     ;;
51823 *.a)
51824     outFile=\`basnam ${D}outFile .a\`
51825     ;;
51826 *.lib)
51827     outFile=\`basnam ${D}outFile .lib\`
51828     ;;
51829 *)
51830     ;;
51831 esac
51832 case ${D}outimpFile in
51833 *.a)
51834     outimpFile=\`basnam ${D}outimpFile .a\`
51835     ;;
51836 *.lib)
51837     outimpFile=\`basnam ${D}outimpFile .lib\`
51838     ;;
51839 *)
51840     ;;
51841 esac
51842 if [ -z ${D}outimpFile ]; then
51843     outimpFile=${D}outFile
51844 fi
51845 defFile="${D}{outFile}.def"
51846 arcFile="${D}{outimpFile}.a"
51847 arcFile2="${D}{outimpFile}.lib"
51848
51849 #create ${D}dllFile as something matching 8.3 restrictions,
51850 if [ -z ${D}renameScript ] ; then
51851     dllFile="${D}outFile"
51852 else
51853     dllFile=\`${D}renameScript ${D}outimpFile\`
51854 fi
51855
51856 if [ ${D}do_backup -ne 0 ] ; then
51857     if [ -f ${D}arcFile ] ; then
51858         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51859     fi
51860     if [ -f ${D}arcFile2 ] ; then
51861         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51862     fi
51863 fi
51864
51865 # Extract public symbols from all the object files.
51866 tmpdefFile=${D}{defFile}_%
51867 rm -f ${D}tmpdefFile
51868 for file in ${D}inputFiles ; do
51869     case ${D}file in
51870     *!)
51871         ;;
51872     *)
51873         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51874         ;;
51875     esac
51876 done
51877
51878 # Create the def file.
51879 rm -f ${D}defFile
51880 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51881 dllFile="${D}{dllFile}.dll"
51882 if [ ! -z ${D}description ]; then
51883     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51884 fi
51885 echo "EXPORTS" >> ${D}defFile
51886
51887 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51888 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51889
51890 # Checks if the export is ok or not.
51891 for word in ${D}exclude_symbols; do
51892     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51893     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51894 done
51895
51896
51897 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51898     sed "=" < ${D}tmpdefFile | \\
51899     sed '
51900       N
51901       : loop
51902       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51903       t loop
51904     ' > ${D}{tmpdefFile}%
51905     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51906 else
51907     rm -f ${D}{tmpdefFile}%
51908 fi
51909 cat ${D}tmpdefFile >> ${D}defFile
51910 rm -f ${D}tmpdefFile
51911
51912 # Do linking, create implib, and apply lxlite.
51913 gccCmdl="";
51914 for file in ${D}inputFiles ; do
51915     case ${D}file in
51916     *!)
51917         ;;
51918     *)
51919         gccCmdl="${D}gccCmdl ${D}file"
51920         ;;
51921     esac
51922 done
51923 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51924 touch "${D}{outFile}.dll"
51925
51926 doCommand "emximp -o ${D}arcFile ${D}defFile"
51927 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51928     add_flags="";
51929     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51930         add_flags="-ynd"
51931     fi
51932     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51933 fi
51934 doCommand "emxomf -s -l ${D}arcFile"
51935
51936 # Successful exit.
51937 CleanUp 1
51938 exit 0
51939 EOF
51940
51941         chmod +x dllar.sh
51942       ;;
51943
51944       powerpc-apple-macos* | \
51945       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51946       *-*-mirbsd* | \
51947       *-*-sunos4* | \
51948       *-*-osf* | \
51949       *-*-dgux5* | \
51950       *-*-sysv5* | \
51951       *-pc-msdosdjgpp )
51952               ;;
51953
51954       *)
51955         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51956 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51957    { (exit 1); exit 1; }; }
51958     esac
51959
51960     if test "x$PIC_FLAG" != "x" ; then
51961         PIC_FLAG="$PIC_FLAG -DPIC"
51962     fi
51963
51964     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51965         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51966     fi
51967     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51968         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51969     fi
51970
51971
51972
51973
51974
51975
51976
51977
51978
51979     USE_SOVERSION=0
51980     USE_SOVERLINUX=0
51981     USE_SOVERSOLARIS=0
51982     USE_SOVERCYGWIN=0
51983     USE_SOSYMLINKS=0
51984     USE_MACVERSION=0
51985     SONAME_FLAG=
51986
51987     case "${BAKEFILE_HOST}" in
51988       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
51989         if test "x$SUNCXX" = "xyes"; then
51990             SONAME_FLAG="-h "
51991         else
51992             SONAME_FLAG="-Wl,-soname,"
51993         fi
51994         USE_SOVERSION=1
51995         USE_SOVERLINUX=1
51996         USE_SOSYMLINKS=1
51997       ;;
51998
51999       *-*-solaris2* )
52000         SONAME_FLAG="-h "
52001         USE_SOVERSION=1
52002         USE_SOVERSOLARIS=1
52003         USE_SOSYMLINKS=1
52004       ;;
52005
52006       *-*-darwin* )
52007         USE_MACVERSION=1
52008         USE_SOVERSION=1
52009         USE_SOSYMLINKS=1
52010       ;;
52011
52012       *-*-cygwin* )
52013         USE_SOVERSION=1
52014         USE_SOVERCYGWIN=1
52015       ;;
52016     esac
52017
52018
52019
52020
52021
52022
52023
52024
52025
52026
52027     # Check whether --enable-dependency-tracking was given.
52028 if test "${enable_dependency_tracking+set}" = set; then
52029   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
52030 fi
52031
52032
52033     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
52034 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
52035
52036     BK_DEPS=""
52037     if test "x$bk_use_trackdeps" = "xno" ; then
52038         DEPS_TRACKING=0
52039         { echo "$as_me:$LINENO: result: disabled" >&5
52040 echo "${ECHO_T}disabled" >&6; }
52041     else
52042         DEPS_TRACKING=1
52043
52044         if test "x$GCC" = "xyes"; then
52045             DEPSMODE=gcc
52046             case "${BAKEFILE_HOST}" in
52047                 *-*-darwin* )
52048                                                             DEPSFLAG="-no-cpp-precomp -MMD"
52049                 ;;
52050                 * )
52051                     DEPSFLAG="-MMD"
52052                 ;;
52053             esac
52054             { echo "$as_me:$LINENO: result: gcc" >&5
52055 echo "${ECHO_T}gcc" >&6; }
52056         elif test "x$MWCC" = "xyes"; then
52057             DEPSMODE=mwcc
52058             DEPSFLAG="-MM"
52059             { echo "$as_me:$LINENO: result: mwcc" >&5
52060 echo "${ECHO_T}mwcc" >&6; }
52061         elif test "x$SUNCC" = "xyes"; then
52062             DEPSMODE=unixcc
52063             DEPSFLAG="-xM1"
52064             { echo "$as_me:$LINENO: result: Sun cc" >&5
52065 echo "${ECHO_T}Sun cc" >&6; }
52066         elif test "x$SGICC" = "xyes"; then
52067             DEPSMODE=unixcc
52068             DEPSFLAG="-M"
52069             { echo "$as_me:$LINENO: result: SGI cc" >&5
52070 echo "${ECHO_T}SGI cc" >&6; }
52071         elif test "x$HPCC" = "xyes"; then
52072             DEPSMODE=unixcc
52073             DEPSFLAG="+make"
52074             { echo "$as_me:$LINENO: result: HP cc" >&5
52075 echo "${ECHO_T}HP cc" >&6; }
52076         elif test "x$COMPAQCC" = "xyes"; then
52077             DEPSMODE=gcc
52078             DEPSFLAG="-MD"
52079             { echo "$as_me:$LINENO: result: Compaq cc" >&5
52080 echo "${ECHO_T}Compaq cc" >&6; }
52081         else
52082             DEPS_TRACKING=0
52083             { echo "$as_me:$LINENO: result: none" >&5
52084 echo "${ECHO_T}none" >&6; }
52085         fi
52086
52087         if test $DEPS_TRACKING = 1 ; then
52088
52089 D='$'
52090 cat <<EOF >bk-deps
52091 #!/bin/sh
52092
52093 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
52094 # script. It is used to track C/C++ files dependencies in portable way.
52095 #
52096 # Permission is given to use this file in any way.
52097
52098 DEPSMODE=${DEPSMODE}
52099 DEPSDIR=.deps
52100 DEPSFLAG="${DEPSFLAG}"
52101
52102 mkdir -p ${D}DEPSDIR
52103
52104 if test ${D}DEPSMODE = gcc ; then
52105     ${D}* ${D}{DEPSFLAG}
52106     status=${D}?
52107     if test ${D}{status} != 0 ; then
52108         exit ${D}{status}
52109     fi
52110     # move created file to the location we want it in:
52111     while test ${D}# -gt 0; do
52112         case "${D}1" in
52113             -o )
52114                 shift
52115                 objfile=${D}1
52116             ;;
52117             -* )
52118             ;;
52119             * )
52120                 srcfile=${D}1
52121             ;;
52122         esac
52123         shift
52124     done
52125     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
52126     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
52127     if test -f ${D}depfile ; then
52128         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
52129         rm -f ${D}depfile
52130     else
52131         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
52132         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
52133         if test ! -f ${D}depfile ; then
52134             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
52135             depfile="${D}objfile.d"
52136         fi
52137         if test -f ${D}depfile ; then
52138             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
52139             rm -f ${D}depfile
52140         fi
52141     fi
52142     exit 0
52143 elif test ${D}DEPSMODE = mwcc ; then
52144     ${D}* || exit ${D}?
52145     # Run mwcc again with -MM and redirect into the dep file we want
52146     # NOTE: We can't use shift here because we need ${D}* to be valid
52147     prevarg=
52148     for arg in ${D}* ; do
52149         if test "${D}prevarg" = "-o"; then
52150             objfile=${D}arg
52151         else
52152             case "${D}arg" in
52153                 -* )
52154                 ;;
52155                 * )
52156                     srcfile=${D}arg
52157                 ;;
52158             esac
52159         fi
52160         prevarg="${D}arg"
52161     done
52162     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
52163     exit 0
52164 elif test ${D}DEPSMODE = unixcc; then
52165     ${D}* || exit ${D}?
52166     # Run compiler again with deps flag and redirect into the dep file.
52167     # It doesn't work if the '-o FILE' option is used, but without it the
52168     # dependency file will contain the wrong name for the object. So it is
52169     # removed from the command line, and the dep file is fixed with sed.
52170     cmd=""
52171     while test ${D}# -gt 0; do
52172         case "${D}1" in
52173             -o )
52174                 shift
52175                 objfile=${D}1
52176             ;;
52177             * )
52178                 eval arg${D}#=\\${D}1
52179                 cmd="${D}cmd \\${D}arg${D}#"
52180             ;;
52181         esac
52182         shift
52183     done
52184     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
52185     exit 0
52186 else
52187     ${D}*
52188     exit ${D}?
52189 fi
52190 EOF
52191
52192             chmod +x bk-deps
52193                                     BK_DEPS="`pwd`/bk-deps"
52194         fi
52195     fi
52196
52197
52198
52199
52200
52201     case ${BAKEFILE_HOST} in
52202         *-*-cygwin* | *-*-mingw32* )
52203                         if test -n "$ac_tool_prefix"; then
52204   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
52205 set dummy ${ac_tool_prefix}windres; ac_word=$2
52206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52208 if test "${ac_cv_prog_WINDRES+set}" = set; then
52209   echo $ECHO_N "(cached) $ECHO_C" >&6
52210 else
52211   if test -n "$WINDRES"; then
52212   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
52213 else
52214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52215 for as_dir in $PATH
52216 do
52217   IFS=$as_save_IFS
52218   test -z "$as_dir" && as_dir=.
52219   for ac_exec_ext in '' $ac_executable_extensions; do
52220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52221     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
52222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52223     break 2
52224   fi
52225 done
52226 done
52227 IFS=$as_save_IFS
52228
52229 fi
52230 fi
52231 WINDRES=$ac_cv_prog_WINDRES
52232 if test -n "$WINDRES"; then
52233   { echo "$as_me:$LINENO: result: $WINDRES" >&5
52234 echo "${ECHO_T}$WINDRES" >&6; }
52235 else
52236   { echo "$as_me:$LINENO: result: no" >&5
52237 echo "${ECHO_T}no" >&6; }
52238 fi
52239
52240
52241 fi
52242 if test -z "$ac_cv_prog_WINDRES"; then
52243   ac_ct_WINDRES=$WINDRES
52244   # Extract the first word of "windres", so it can be a program name with args.
52245 set dummy windres; ac_word=$2
52246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52248 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
52249   echo $ECHO_N "(cached) $ECHO_C" >&6
52250 else
52251   if test -n "$ac_ct_WINDRES"; then
52252   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
52253 else
52254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52255 for as_dir in $PATH
52256 do
52257   IFS=$as_save_IFS
52258   test -z "$as_dir" && as_dir=.
52259   for ac_exec_ext in '' $ac_executable_extensions; do
52260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52261     ac_cv_prog_ac_ct_WINDRES="windres"
52262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52263     break 2
52264   fi
52265 done
52266 done
52267 IFS=$as_save_IFS
52268
52269 fi
52270 fi
52271 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
52272 if test -n "$ac_ct_WINDRES"; then
52273   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
52274 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
52275 else
52276   { echo "$as_me:$LINENO: result: no" >&5
52277 echo "${ECHO_T}no" >&6; }
52278 fi
52279
52280   if test "x$ac_ct_WINDRES" = x; then
52281     WINDRES=""
52282   else
52283     case $cross_compiling:$ac_tool_warned in
52284 yes:)
52285 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52286 whose name does not start with the host triplet.  If you think this
52287 configuration is useful to you, please write to autoconf@gnu.org." >&5
52288 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52289 whose name does not start with the host triplet.  If you think this
52290 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52291 ac_tool_warned=yes ;;
52292 esac
52293     WINDRES=$ac_ct_WINDRES
52294   fi
52295 else
52296   WINDRES="$ac_cv_prog_WINDRES"
52297 fi
52298
52299          ;;
52300
52301       *-*-darwin* | powerpc-apple-macos* )
52302             # Extract the first word of "Rez", so it can be a program name with args.
52303 set dummy Rez; ac_word=$2
52304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52306 if test "${ac_cv_prog_REZ+set}" = set; then
52307   echo $ECHO_N "(cached) $ECHO_C" >&6
52308 else
52309   if test -n "$REZ"; then
52310   ac_cv_prog_REZ="$REZ" # Let the user override the test.
52311 else
52312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52313 for as_dir in $PATH
52314 do
52315   IFS=$as_save_IFS
52316   test -z "$as_dir" && as_dir=.
52317   for ac_exec_ext in '' $ac_executable_extensions; do
52318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52319     ac_cv_prog_REZ="Rez"
52320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52321     break 2
52322   fi
52323 done
52324 done
52325 IFS=$as_save_IFS
52326
52327   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
52328 fi
52329 fi
52330 REZ=$ac_cv_prog_REZ
52331 if test -n "$REZ"; then
52332   { echo "$as_me:$LINENO: result: $REZ" >&5
52333 echo "${ECHO_T}$REZ" >&6; }
52334 else
52335   { echo "$as_me:$LINENO: result: no" >&5
52336 echo "${ECHO_T}no" >&6; }
52337 fi
52338
52339
52340             # Extract the first word of "SetFile", so it can be a program name with args.
52341 set dummy SetFile; ac_word=$2
52342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52344 if test "${ac_cv_prog_SETFILE+set}" = set; then
52345   echo $ECHO_N "(cached) $ECHO_C" >&6
52346 else
52347   if test -n "$SETFILE"; then
52348   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
52349 else
52350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52351 for as_dir in $PATH
52352 do
52353   IFS=$as_save_IFS
52354   test -z "$as_dir" && as_dir=.
52355   for ac_exec_ext in '' $ac_executable_extensions; do
52356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52357     ac_cv_prog_SETFILE="SetFile"
52358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52359     break 2
52360   fi
52361 done
52362 done
52363 IFS=$as_save_IFS
52364
52365   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
52366 fi
52367 fi
52368 SETFILE=$ac_cv_prog_SETFILE
52369 if test -n "$SETFILE"; then
52370   { echo "$as_me:$LINENO: result: $SETFILE" >&5
52371 echo "${ECHO_T}$SETFILE" >&6; }
52372 else
52373   { echo "$as_me:$LINENO: result: no" >&5
52374 echo "${ECHO_T}no" >&6; }
52375 fi
52376
52377
52378         ;;
52379     esac
52380
52381
52382
52383
52384
52385
52386     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
52387
52388
52389 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
52390
52391
52392
52393     # Check whether --enable-precomp-headers was given.
52394 if test "${enable_precomp_headers+set}" = set; then
52395   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
52396 fi
52397
52398
52399     GCC_PCH=0
52400     ICC_PCH=0
52401     USE_PCH=0
52402     BK_MAKE_PCH=""
52403
52404     case ${BAKEFILE_HOST} in
52405         *-*-cygwin* )
52406                                                 bk_use_pch="no"
52407             ;;
52408     esac
52409
52410     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
52411         if test "x$GCC" = "xyes"; then
52412                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
52413 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
52414             cat >conftest.$ac_ext <<_ACEOF
52415 /* confdefs.h.  */
52416 _ACEOF
52417 cat confdefs.h >>conftest.$ac_ext
52418 cat >>conftest.$ac_ext <<_ACEOF
52419 /* end confdefs.h.  */
52420
52421 int
52422 main ()
52423 {
52424
52425                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
52426                         There is no PCH support
52427                     #endif
52428                     #if (__GNUC__ < 3)
52429                         There is no PCH support
52430                     #endif
52431                     #if (__GNUC__ == 3) && \
52432                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
52433                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
52434                        ( defined(__INTEL_COMPILER) )
52435                         There is no PCH support
52436                     #endif
52437
52438   ;
52439   return 0;
52440 }
52441 _ACEOF
52442 rm -f conftest.$ac_objext
52443 if { (ac_try="$ac_compile"
52444 case "(($ac_try" in
52445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52446   *) ac_try_echo=$ac_try;;
52447 esac
52448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52449   (eval "$ac_compile") 2>conftest.er1
52450   ac_status=$?
52451   grep -v '^ *+' conftest.er1 >conftest.err
52452   rm -f conftest.er1
52453   cat conftest.err >&5
52454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52455   (exit $ac_status); } && {
52456          test -z "$ac_c_werror_flag" ||
52457          test ! -s conftest.err
52458        } && test -s conftest.$ac_objext; then
52459
52460                     { echo "$as_me:$LINENO: result: yes" >&5
52461 echo "${ECHO_T}yes" >&6; }
52462                     GCC_PCH=1
52463
52464 else
52465   echo "$as_me: failed program was:" >&5
52466 sed 's/^/| /' conftest.$ac_ext >&5
52467
52468
52469                     cat >conftest.$ac_ext <<_ACEOF
52470 /* confdefs.h.  */
52471 _ACEOF
52472 cat confdefs.h >>conftest.$ac_ext
52473 cat >>conftest.$ac_ext <<_ACEOF
52474 /* end confdefs.h.  */
52475
52476 int
52477 main ()
52478 {
52479
52480                             #if !defined(__INTEL_COMPILER) || \
52481                                 (__INTEL_COMPILER < 800)
52482                                 There is no PCH support
52483                             #endif
52484
52485   ;
52486   return 0;
52487 }
52488 _ACEOF
52489 rm -f conftest.$ac_objext
52490 if { (ac_try="$ac_compile"
52491 case "(($ac_try" in
52492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52493   *) ac_try_echo=$ac_try;;
52494 esac
52495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52496   (eval "$ac_compile") 2>conftest.er1
52497   ac_status=$?
52498   grep -v '^ *+' conftest.er1 >conftest.err
52499   rm -f conftest.er1
52500   cat conftest.err >&5
52501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52502   (exit $ac_status); } && {
52503          test -z "$ac_c_werror_flag" ||
52504          test ! -s conftest.err
52505        } && test -s conftest.$ac_objext; then
52506
52507                             { echo "$as_me:$LINENO: result: yes" >&5
52508 echo "${ECHO_T}yes" >&6; }
52509                             ICC_PCH=1
52510
52511 else
52512   echo "$as_me: failed program was:" >&5
52513 sed 's/^/| /' conftest.$ac_ext >&5
52514
52515
52516                             { echo "$as_me:$LINENO: result: no" >&5
52517 echo "${ECHO_T}no" >&6; }
52518
52519 fi
52520
52521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52522
52523 fi
52524
52525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52526             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
52527                 USE_PCH=1
52528
52529 D='$'
52530 cat <<EOF >bk-make-pch
52531 #!/bin/sh
52532
52533 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
52534 # script. It is used to generated precompiled headers.
52535 #
52536 # Permission is given to use this file in any way.
52537
52538 outfile="${D}{1}"
52539 header="${D}{2}"
52540 shift
52541 shift
52542
52543 compiler=""
52544 headerfile=""
52545
52546 while test ${D}{#} -gt 0; do
52547     add_to_cmdline=1
52548     case "${D}{1}" in
52549         -I* )
52550             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
52551             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
52552                 headerfile="${D}{incdir}/${D}{header}"
52553             fi
52554         ;;
52555         -use-pch|-use_pch )
52556             shift
52557             add_to_cmdline=0
52558         ;;
52559     esac
52560     if test ${D}add_to_cmdline = 1 ; then
52561         compiler="${D}{compiler} ${D}{1}"
52562     fi
52563     shift
52564 done
52565
52566 if test "x${D}{headerfile}" = "x" ; then
52567     echo "error: can't find header ${D}{header} in include paths" >&2
52568 else
52569     if test -f ${D}{outfile} ; then
52570         rm -f ${D}{outfile}
52571     else
52572         mkdir -p \`dirname ${D}{outfile}\`
52573     fi
52574     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
52575     mkdir -p .deps
52576     if test "x${GCC_PCH}" = "x1" ; then
52577         # can do this because gcc is >= 3.4:
52578         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52579     elif test "x${ICC_PCH}" = "x1" ; then
52580         filename=pch_gen-${D}${D}
52581         file=${D}{filename}.c
52582         dfile=${D}{filename}.d
52583         cat > ${D}file <<EOT
52584 #include "${D}header"
52585 EOT
52586         # using -MF icc complains about differing command lines in creation/use
52587         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
52588           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52589           rm -f ${D}file ${D}dfile ${D}{filename}.o
52590     fi
52591     exit ${D}{?}
52592 fi
52593 EOF
52594
52595                 chmod +x bk-make-pch
52596                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52597             fi
52598         fi
52599     fi
52600
52601
52602
52603
52604
52605     COND_BUILD_DEBUG="#"
52606     if test "x$BUILD" = "xdebug" ; then
52607         COND_BUILD_DEBUG=""
52608     fi
52609
52610     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52611     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52612         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52613     fi
52614
52615     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52616     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52617         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52618     fi
52619
52620     COND_BUILD_DEBUG_UNICODE_0="#"
52621     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52622         COND_BUILD_DEBUG_UNICODE_0=""
52623     fi
52624
52625     COND_BUILD_DEBUG_UNICODE_1="#"
52626     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52627         COND_BUILD_DEBUG_UNICODE_1=""
52628     fi
52629
52630     COND_BUILD_RELEASE="#"
52631     if test "x$BUILD" = "xrelease" ; then
52632         COND_BUILD_RELEASE=""
52633     fi
52634
52635     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52636     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52637         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52638     fi
52639
52640     COND_BUILD_RELEASE_UNICODE_0="#"
52641     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52642         COND_BUILD_RELEASE_UNICODE_0=""
52643     fi
52644
52645     COND_BUILD_RELEASE_UNICODE_1="#"
52646     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52647         COND_BUILD_RELEASE_UNICODE_1=""
52648     fi
52649
52650     COND_DEBUG_FLAG_1="#"
52651     if test "x$DEBUG_FLAG" = "x1" ; then
52652         COND_DEBUG_FLAG_1=""
52653     fi
52654
52655     COND_DEBUG_INFO_0="#"
52656     if test "x$DEBUG_INFO" = "x0" ; then
52657         COND_DEBUG_INFO_0=""
52658     fi
52659
52660     COND_DEBUG_INFO_1="#"
52661     if test "x$DEBUG_INFO" = "x1" ; then
52662         COND_DEBUG_INFO_1=""
52663     fi
52664
52665     COND_DEPS_TRACKING_0="#"
52666     if test "x$DEPS_TRACKING" = "x0" ; then
52667         COND_DEPS_TRACKING_0=""
52668     fi
52669
52670     COND_DEPS_TRACKING_1="#"
52671     if test "x$DEPS_TRACKING" = "x1" ; then
52672         COND_DEPS_TRACKING_1=""
52673     fi
52674
52675     COND_GCC_PCH_1="#"
52676     if test "x$GCC_PCH" = "x1" ; then
52677         COND_GCC_PCH_1=""
52678     fi
52679
52680     COND_ICC_PCH_1="#"
52681     if test "x$ICC_PCH" = "x1" ; then
52682         COND_ICC_PCH_1=""
52683     fi
52684
52685     COND_MONOLITHIC_0="#"
52686     if test "x$MONOLITHIC" = "x0" ; then
52687         COND_MONOLITHIC_0=""
52688     fi
52689
52690     COND_MONOLITHIC_0_SHARED_0="#"
52691     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52692         COND_MONOLITHIC_0_SHARED_0=""
52693     fi
52694
52695     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52696     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52697         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52698     fi
52699
52700     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52701     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52702         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52703     fi
52704
52705     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52706     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52707         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52708     fi
52709
52710     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52711     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52712         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52713     fi
52714
52715     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
52716     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52717         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
52718     fi
52719
52720     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52721     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52722         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52723     fi
52724
52725     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
52726     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
52727         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
52728     fi
52729
52730     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52731     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52732         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52733     fi
52734
52735     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52736     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52737         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52738     fi
52739
52740     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52741     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52742         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52743     fi
52744
52745     COND_MONOLITHIC_0_SHARED_1="#"
52746     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52747         COND_MONOLITHIC_0_SHARED_1=""
52748     fi
52749
52750     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52751     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52752         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52753     fi
52754
52755     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52756     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52757         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52758     fi
52759
52760     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52761     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52762         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52763     fi
52764
52765     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52766     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52767         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52768     fi
52769
52770     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
52771     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52772         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
52773     fi
52774
52775     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52776     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52777         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52778     fi
52779
52780     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
52781     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
52782         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
52783     fi
52784
52785     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52786     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52787         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52788     fi
52789
52790     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52791     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52792         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52793     fi
52794
52795     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52796     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52797         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52798     fi
52799
52800     COND_MONOLITHIC_0_USE_AUI_1="#"
52801     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52802         COND_MONOLITHIC_0_USE_AUI_1=""
52803     fi
52804
52805     COND_MONOLITHIC_0_USE_GUI_1="#"
52806     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52807         COND_MONOLITHIC_0_USE_GUI_1=""
52808     fi
52809
52810     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52811     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52812         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52813     fi
52814
52815     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
52816     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52817         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
52818     fi
52819
52820     COND_MONOLITHIC_0_USE_HTML_1="#"
52821     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52822         COND_MONOLITHIC_0_USE_HTML_1=""
52823     fi
52824
52825     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52826     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52827         COND_MONOLITHIC_0_USE_MEDIA_1=""
52828     fi
52829
52830     COND_MONOLITHIC_0_USE_ODBC_1="#"
52831     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
52832         COND_MONOLITHIC_0_USE_ODBC_1=""
52833     fi
52834
52835     COND_MONOLITHIC_0_USE_QA_1="#"
52836     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52837         COND_MONOLITHIC_0_USE_QA_1=""
52838     fi
52839
52840     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52841     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52842         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52843     fi
52844
52845     COND_MONOLITHIC_0_USE_STC_1="#"
52846     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52847         COND_MONOLITHIC_0_USE_STC_1=""
52848     fi
52849
52850     COND_MONOLITHIC_0_USE_XRC_1="#"
52851     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52852         COND_MONOLITHIC_0_USE_XRC_1=""
52853     fi
52854
52855     COND_MONOLITHIC_1="#"
52856     if test "x$MONOLITHIC" = "x1" ; then
52857         COND_MONOLITHIC_1=""
52858     fi
52859
52860     COND_MONOLITHIC_1_SHARED_0="#"
52861     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52862         COND_MONOLITHIC_1_SHARED_0=""
52863     fi
52864
52865     COND_MONOLITHIC_1_SHARED_1="#"
52866     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52867         COND_MONOLITHIC_1_SHARED_1=""
52868     fi
52869
52870     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52871     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52872         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52873     fi
52874
52875     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52876     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52877         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52878     fi
52879
52880     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52881     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52882         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52883     fi
52884
52885     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52886     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52887         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52888     fi
52889
52890     COND_PLATFORM_MACOSX_1="#"
52891     if test "x$PLATFORM_MACOSX" = "x1" ; then
52892         COND_PLATFORM_MACOSX_1=""
52893     fi
52894
52895     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
52896     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
52897         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
52898     fi
52899
52900     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
52901     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
52902         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
52903     fi
52904
52905     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
52906     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
52907         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
52908     fi
52909
52910     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
52911     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
52912         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
52913     fi
52914
52915     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
52916     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52917         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
52918     fi
52919
52920     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
52921     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
52922         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
52923     fi
52924
52925     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
52926     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
52927         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
52928     fi
52929
52930     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52931     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52932         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52933     fi
52934
52935     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52936     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52937         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52938     fi
52939
52940     COND_PLATFORM_MACOS_1="#"
52941     if test "x$PLATFORM_MACOS" = "x1" ; then
52942         COND_PLATFORM_MACOS_1=""
52943     fi
52944
52945     COND_PLATFORM_MAC_1="#"
52946     if test "x$PLATFORM_MAC" = "x1" ; then
52947         COND_PLATFORM_MAC_1=""
52948     fi
52949
52950     COND_PLATFORM_MSDOS_0="#"
52951     if test "x$PLATFORM_MSDOS" = "x0" ; then
52952         COND_PLATFORM_MSDOS_0=""
52953     fi
52954
52955     COND_PLATFORM_MSDOS_1="#"
52956     if test "x$PLATFORM_MSDOS" = "x1" ; then
52957         COND_PLATFORM_MSDOS_1=""
52958     fi
52959
52960     COND_PLATFORM_OS2_1="#"
52961     if test "x$PLATFORM_OS2" = "x1" ; then
52962         COND_PLATFORM_OS2_1=""
52963     fi
52964
52965     COND_PLATFORM_UNIX_0="#"
52966     if test "x$PLATFORM_UNIX" = "x0" ; then
52967         COND_PLATFORM_UNIX_0=""
52968     fi
52969
52970     COND_PLATFORM_UNIX_1="#"
52971     if test "x$PLATFORM_UNIX" = "x1" ; then
52972         COND_PLATFORM_UNIX_1=""
52973     fi
52974
52975     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52976     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52977         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52978     fi
52979
52980     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52981     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52982         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52983     fi
52984
52985     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52986     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52987         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52988     fi
52989
52990     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52991     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52992         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52993     fi
52994
52995     COND_PLATFORM_WIN32_0="#"
52996     if test "x$PLATFORM_WIN32" = "x0" ; then
52997         COND_PLATFORM_WIN32_0=""
52998     fi
52999
53000     COND_PLATFORM_WIN32_1="#"
53001     if test "x$PLATFORM_WIN32" = "x1" ; then
53002         COND_PLATFORM_WIN32_1=""
53003     fi
53004
53005     COND_SHARED_0="#"
53006     if test "x$SHARED" = "x0" ; then
53007         COND_SHARED_0=""
53008     fi
53009
53010     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
53011     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
53012         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
53013     fi
53014
53015     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
53016     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
53017         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
53018     fi
53019
53020     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
53021     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
53022         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
53023     fi
53024
53025     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
53026     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
53027         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
53028     fi
53029
53030     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
53031     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53032         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
53033     fi
53034
53035     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
53036     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53037         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
53038     fi
53039
53040     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
53041     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53042         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
53043     fi
53044
53045     COND_SHARED_0_USE_STC_1="#"
53046     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
53047         COND_SHARED_0_USE_STC_1=""
53048     fi
53049
53050     COND_SHARED_0_USE_XRC_1="#"
53051     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
53052         COND_SHARED_0_USE_XRC_1=""
53053     fi
53054
53055     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
53056     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
53057         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
53058     fi
53059
53060     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
53061     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
53062         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
53063     fi
53064
53065     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
53066     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
53067         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
53068     fi
53069
53070     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
53071     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
53072         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
53073     fi
53074
53075     COND_SHARED_1="#"
53076     if test "x$SHARED" = "x1" ; then
53077         COND_SHARED_1=""
53078     fi
53079
53080     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
53081     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
53082         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
53083     fi
53084
53085     COND_SHARED_1_USE_XRC_1="#"
53086     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
53087         COND_SHARED_1_USE_XRC_1=""
53088     fi
53089
53090     COND_TOOLKIT_="#"
53091     if test "x$TOOLKIT" = "x" ; then
53092         COND_TOOLKIT_=""
53093     fi
53094
53095     COND_TOOLKIT_COCOA="#"
53096     if test "x$TOOLKIT" = "xCOCOA" ; then
53097         COND_TOOLKIT_COCOA=""
53098     fi
53099
53100     COND_TOOLKIT_COCOA_USE_GUI_1="#"
53101     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
53102         COND_TOOLKIT_COCOA_USE_GUI_1=""
53103     fi
53104
53105     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
53106     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53107         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
53108     fi
53109
53110     COND_TOOLKIT_DFB="#"
53111     if test "x$TOOLKIT" = "xDFB" ; then
53112         COND_TOOLKIT_DFB=""
53113     fi
53114
53115     COND_TOOLKIT_DFB_USE_GUI_1="#"
53116     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
53117         COND_TOOLKIT_DFB_USE_GUI_1=""
53118     fi
53119
53120     COND_TOOLKIT_GTK="#"
53121     if test "x$TOOLKIT" = "xGTK" ; then
53122         COND_TOOLKIT_GTK=""
53123     fi
53124
53125     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
53126     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
53127         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
53128     fi
53129
53130     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
53131     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
53132         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
53133     fi
53134
53135     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
53136     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
53137         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
53138     fi
53139
53140     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
53141     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53142         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
53143     fi
53144
53145     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
53146     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
53147         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
53148     fi
53149
53150     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
53151     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53152         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
53153     fi
53154
53155     COND_TOOLKIT_GTK_USE_GUI_1="#"
53156     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
53157         COND_TOOLKIT_GTK_USE_GUI_1=""
53158     fi
53159
53160     COND_TOOLKIT_MAC="#"
53161     if test "x$TOOLKIT" = "xMAC" ; then
53162         COND_TOOLKIT_MAC=""
53163     fi
53164
53165     COND_TOOLKIT_MAC_USE_GUI_1="#"
53166     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
53167         COND_TOOLKIT_MAC_USE_GUI_1=""
53168     fi
53169
53170     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
53171     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53172         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
53173     fi
53174
53175     COND_TOOLKIT_MGL="#"
53176     if test "x$TOOLKIT" = "xMGL" ; then
53177         COND_TOOLKIT_MGL=""
53178     fi
53179
53180     COND_TOOLKIT_MGL_USE_GUI_1="#"
53181     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
53182         COND_TOOLKIT_MGL_USE_GUI_1=""
53183     fi
53184
53185     COND_TOOLKIT_MOTIF="#"
53186     if test "x$TOOLKIT" = "xMOTIF" ; then
53187         COND_TOOLKIT_MOTIF=""
53188     fi
53189
53190     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
53191     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
53192         COND_TOOLKIT_MOTIF_USE_GUI_1=""
53193     fi
53194
53195     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
53196     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53197         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
53198     fi
53199
53200     COND_TOOLKIT_MSW="#"
53201     if test "x$TOOLKIT" = "xMSW" ; then
53202         COND_TOOLKIT_MSW=""
53203     fi
53204
53205     COND_TOOLKIT_MSW_USE_GUI_1="#"
53206     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
53207         COND_TOOLKIT_MSW_USE_GUI_1=""
53208     fi
53209
53210     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
53211     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53212         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
53213     fi
53214
53215     COND_TOOLKIT_MSW_WXUNIV_0="#"
53216     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
53217         COND_TOOLKIT_MSW_WXUNIV_0=""
53218     fi
53219
53220     COND_TOOLKIT_PM="#"
53221     if test "x$TOOLKIT" = "xPM" ; then
53222         COND_TOOLKIT_PM=""
53223     fi
53224
53225     COND_TOOLKIT_PM_USE_GUI_1="#"
53226     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
53227         COND_TOOLKIT_PM_USE_GUI_1=""
53228     fi
53229
53230     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
53231     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53232         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
53233     fi
53234
53235     COND_TOOLKIT_WINCE="#"
53236     if test "x$TOOLKIT" = "xWINCE" ; then
53237         COND_TOOLKIT_WINCE=""
53238     fi
53239
53240     COND_TOOLKIT_WINCE_USE_GUI_1="#"
53241     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
53242         COND_TOOLKIT_WINCE_USE_GUI_1=""
53243     fi
53244
53245     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
53246     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53247         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
53248     fi
53249
53250     COND_TOOLKIT_WINCE_WXUNIV_0="#"
53251     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
53252         COND_TOOLKIT_WINCE_WXUNIV_0=""
53253     fi
53254
53255     COND_TOOLKIT_X11="#"
53256     if test "x$TOOLKIT" = "xX11" ; then
53257         COND_TOOLKIT_X11=""
53258     fi
53259
53260     COND_TOOLKIT_X11_USE_GUI_1="#"
53261     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
53262         COND_TOOLKIT_X11_USE_GUI_1=""
53263     fi
53264
53265     COND_UNICODE_1="#"
53266     if test "x$UNICODE" = "x1" ; then
53267         COND_UNICODE_1=""
53268     fi
53269
53270     COND_USE_EXCEPTIONS_0="#"
53271     if test "x$USE_EXCEPTIONS" = "x0" ; then
53272         COND_USE_EXCEPTIONS_0=""
53273     fi
53274
53275     COND_USE_EXCEPTIONS_1="#"
53276     if test "x$USE_EXCEPTIONS" = "x1" ; then
53277         COND_USE_EXCEPTIONS_1=""
53278     fi
53279
53280     COND_USE_GUI_0="#"
53281     if test "x$USE_GUI" = "x0" ; then
53282         COND_USE_GUI_0=""
53283     fi
53284
53285     COND_USE_GUI_1="#"
53286     if test "x$USE_GUI" = "x1" ; then
53287         COND_USE_GUI_1=""
53288     fi
53289
53290     COND_USE_GUI_1_USE_OPENGL_1="#"
53291     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
53292         COND_USE_GUI_1_USE_OPENGL_1=""
53293     fi
53294
53295     COND_USE_GUI_1_WXUNIV_0="#"
53296     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53297         COND_USE_GUI_1_WXUNIV_0=""
53298     fi
53299
53300     COND_USE_GUI_1_WXUNIV_1="#"
53301     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
53302         COND_USE_GUI_1_WXUNIV_1=""
53303     fi
53304
53305     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
53306     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53307         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
53308     fi
53309
53310     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
53311     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53312         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
53313     fi
53314
53315     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
53316     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53317         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
53318     fi
53319
53320     COND_USE_ODBC_1="#"
53321     if test "x$USE_ODBC" = "x1" ; then
53322         COND_USE_ODBC_1=""
53323     fi
53324
53325     COND_USE_OPENGL_1="#"
53326     if test "x$USE_OPENGL" = "x1" ; then
53327         COND_USE_OPENGL_1=""
53328     fi
53329
53330     COND_USE_PCH_1="#"
53331     if test "x$USE_PCH" = "x1" ; then
53332         COND_USE_PCH_1=""
53333     fi
53334
53335     COND_USE_PLUGINS_0="#"
53336     if test "x$USE_PLUGINS" = "x0" ; then
53337         COND_USE_PLUGINS_0=""
53338     fi
53339
53340     COND_USE_RTTI_0="#"
53341     if test "x$USE_RTTI" = "x0" ; then
53342         COND_USE_RTTI_0=""
53343     fi
53344
53345     COND_USE_RTTI_1="#"
53346     if test "x$USE_RTTI" = "x1" ; then
53347         COND_USE_RTTI_1=""
53348     fi
53349
53350     COND_USE_SOSYMLINKS_1="#"
53351     if test "x$USE_SOSYMLINKS" = "x1" ; then
53352         COND_USE_SOSYMLINKS_1=""
53353     fi
53354
53355     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
53356     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
53357         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
53358     fi
53359
53360     COND_USE_SOVERLINUX_1="#"
53361     if test "x$USE_SOVERLINUX" = "x1" ; then
53362         COND_USE_SOVERLINUX_1=""
53363     fi
53364
53365     COND_USE_SOVERSION_0="#"
53366     if test "x$USE_SOVERSION" = "x0" ; then
53367         COND_USE_SOVERSION_0=""
53368     fi
53369
53370     COND_USE_SOVERSOLARIS_1="#"
53371     if test "x$USE_SOVERSOLARIS" = "x1" ; then
53372         COND_USE_SOVERSOLARIS_1=""
53373     fi
53374
53375     COND_USE_STC_1="#"
53376     if test "x$USE_STC" = "x1" ; then
53377         COND_USE_STC_1=""
53378     fi
53379
53380     COND_USE_THREADS_0="#"
53381     if test "x$USE_THREADS" = "x0" ; then
53382         COND_USE_THREADS_0=""
53383     fi
53384
53385     COND_USE_THREADS_1="#"
53386     if test "x$USE_THREADS" = "x1" ; then
53387         COND_USE_THREADS_1=""
53388     fi
53389
53390     COND_USE_XRC_1="#"
53391     if test "x$USE_XRC" = "x1" ; then
53392         COND_USE_XRC_1=""
53393     fi
53394
53395     COND_WINDOWS_IMPLIB_1="#"
53396     if test "x$WINDOWS_IMPLIB" = "x1" ; then
53397         COND_WINDOWS_IMPLIB_1=""
53398     fi
53399
53400     COND_WITH_PLUGIN_SDL_1="#"
53401     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
53402         COND_WITH_PLUGIN_SDL_1=""
53403     fi
53404
53405     COND_WXUNIV_0="#"
53406     if test "x$WXUNIV" = "x0" ; then
53407         COND_WXUNIV_0=""
53408     fi
53409
53410     COND_WXUNIV_1="#"
53411     if test "x$WXUNIV" = "x1" ; then
53412         COND_WXUNIV_1=""
53413     fi
53414
53415     COND_WXUSE_EXPAT_BUILTIN="#"
53416     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53417         COND_WXUSE_EXPAT_BUILTIN=""
53418     fi
53419
53420     COND_WXUSE_LIBJPEG_BUILTIN="#"
53421     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53422         COND_WXUSE_LIBJPEG_BUILTIN=""
53423     fi
53424
53425     COND_WXUSE_LIBPNG_BUILTIN="#"
53426     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53427         COND_WXUSE_LIBPNG_BUILTIN=""
53428     fi
53429
53430     COND_WXUSE_LIBTIFF_BUILTIN="#"
53431     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53432         COND_WXUSE_LIBTIFF_BUILTIN=""
53433     fi
53434
53435     COND_WXUSE_ODBC_BUILTIN="#"
53436     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
53437         COND_WXUSE_ODBC_BUILTIN=""
53438     fi
53439
53440     COND_WXUSE_REGEX_BUILTIN="#"
53441     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53442         COND_WXUSE_REGEX_BUILTIN=""
53443     fi
53444
53445     COND_WXUSE_ZLIB_BUILTIN="#"
53446     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53447         COND_WXUSE_ZLIB_BUILTIN=""
53448     fi
53449
53450
53451
53452     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
53453         { { 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
53454 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;}
53455    { (exit 1); exit 1; }; }
53456     fi
53457
53458     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
53459         { { 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
53460 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;}
53461    { (exit 1); exit 1; }; }
53462     fi
53463
53464
53465 if test $GCC_PCH = 1
53466 then
53467     if test "$wx_cv_gcc_pch_bug" = yes; then
53468         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53469 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53470         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53471 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53472         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53473 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53474     fi
53475
53476     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
53477 fi
53478
53479
53480 if test "$wxUSE_MAC" = 1 ; then
53481     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53482         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53483         mv temp bk-deps
53484         chmod +x bk-deps
53485     fi
53486 fi
53487
53488 if test "$wxUSE_SHARED" = "yes"; then
53489
53490                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
53491     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
53492
53493                 case "${host}" in
53494       *-pc-os2_emx | *-pc-os2-emx )
53495         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53496         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53497         cp -p ${srcdir}/src/os2/dllnames.sh .
53498         cp -p ${srcdir}/src/os2/dllar.sh .
53499       ;;
53500     esac
53501 else
53502
53503         EXE_LINKER="$CXX -o"
53504
53505 fi
53506 if test "$wxUSE_OMF" = "yes"; then
53507     case "${host}" in
53508       *-pc-os2_emx | *-pc-os2-emx )
53509         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53510         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53511         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53512       ;;
53513     esac
53514 fi
53515
53516 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53517
53518
53519 case "${host}" in
53520     *-*-solaris2* )
53521                         if "$GCC" = yes; then
53522             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53523             LIBS=`echo $LIBS | sed 's/-mt//'`
53524             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53525         fi
53526         ;;
53527
53528     *-*-linux* )
53529                         if test "x$SUNCXX" = xyes; then
53530             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53531             LIBS=`echo $LIBS | sed 's/-pthread//'`
53532             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53533         fi
53534         ;;
53535 esac
53536
53537 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53538 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53539
53540 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53541
53542
53543
53544
53545
53546
53547
53548
53549
53550
53551
53552
53553
53554
53555
53556
53557
53558
53559
53560
53561
53562
53563
53564
53565
53566
53567
53568
53569
53570
53571
53572
53573
53574
53575
53576
53577
53578
53579
53580
53581
53582
53583
53584
53585
53586
53587
53588
53589
53590
53591
53592
53593
53594
53595
53596
53597
53598
53599
53600
53601
53602 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53603 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53604 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53605 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53606   echo $ECHO_N "(cached) $ECHO_C" >&6
53607 else
53608   cat >conftest.make <<\_ACEOF
53609 SHELL = /bin/sh
53610 all:
53611         @echo '@@@%%%=$(MAKE)=@@@%%%'
53612 _ACEOF
53613 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53614 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53615   *@@@%%%=?*=@@@%%%*)
53616     eval ac_cv_prog_make_${ac_make}_set=yes;;
53617   *)
53618     eval ac_cv_prog_make_${ac_make}_set=no;;
53619 esac
53620 rm -f conftest.make
53621 fi
53622 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53623   { echo "$as_me:$LINENO: result: yes" >&5
53624 echo "${ECHO_T}yes" >&6; }
53625   SET_MAKE=
53626 else
53627   { echo "$as_me:$LINENO: result: no" >&5
53628 echo "${ECHO_T}no" >&6; }
53629   SET_MAKE="MAKE=${MAKE-make}"
53630 fi
53631
53632
53633
53634 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53635
53636
53637 if test "$USE_WIN32" = 1; then
53638     ac_config_commands="$ac_config_commands
53639             rcdefs.h
53640         "
53641
53642 fi
53643
53644 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53645
53646
53647 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53648
53649
53650 if test "$wx_cv_version_script" = "yes"; then
53651     ac_config_files="$ac_config_files version-script"
53652
53653 fi
53654 ac_config_files="$ac_config_files Makefile"
53655
53656
53657 ac_config_commands="$ac_config_commands wx-config"
53658
53659
53660
53661 if test "$wxWITH_SUBDIRS" != "no"; then
53662 if test "$wxUSE_GUI" = "yes"; then
53663     SUBDIRS="samples demos utils"
53664 else         SUBDIRS="samples utils"
53665 fi
53666
53667
53668
53669 # Check whether --with-cppunit-prefix was given.
53670 if test "${with_cppunit_prefix+set}" = set; then
53671   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53672 else
53673   cppunit_config_prefix=""
53674 fi
53675
53676
53677 # Check whether --with-cppunit-exec-prefix was given.
53678 if test "${with_cppunit_exec_prefix+set}" = set; then
53679   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53680 else
53681   cppunit_config_exec_prefix=""
53682 fi
53683
53684
53685   if test x$cppunit_config_exec_prefix != x ; then
53686      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53687      if test x${CPPUNIT_CONFIG+set} != xset ; then
53688         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53689      fi
53690   fi
53691   if test x$cppunit_config_prefix != x ; then
53692      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53693      if test x${CPPUNIT_CONFIG+set} != xset ; then
53694         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53695      fi
53696   fi
53697
53698   # Extract the first word of "cppunit-config", so it can be a program name with args.
53699 set dummy cppunit-config; ac_word=$2
53700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53702 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53703   echo $ECHO_N "(cached) $ECHO_C" >&6
53704 else
53705   case $CPPUNIT_CONFIG in
53706   [\\/]* | ?:[\\/]*)
53707   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53708   ;;
53709   *)
53710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53711 for as_dir in $PATH
53712 do
53713   IFS=$as_save_IFS
53714   test -z "$as_dir" && as_dir=.
53715   for ac_exec_ext in '' $ac_executable_extensions; do
53716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53717     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53719     break 2
53720   fi
53721 done
53722 done
53723 IFS=$as_save_IFS
53724
53725   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53726   ;;
53727 esac
53728 fi
53729 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53730 if test -n "$CPPUNIT_CONFIG"; then
53731   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53732 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53733 else
53734   { echo "$as_me:$LINENO: result: no" >&5
53735 echo "${ECHO_T}no" >&6; }
53736 fi
53737
53738
53739   cppunit_version_min=1.8.0
53740
53741   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53742 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53743   no_cppunit=""
53744   if test "$CPPUNIT_CONFIG" = "no" ; then
53745     { echo "$as_me:$LINENO: result: no" >&5
53746 echo "${ECHO_T}no" >&6; }
53747     no_cppunit=yes
53748   else
53749     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53750     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53751     cppunit_version=`$CPPUNIT_CONFIG --version`
53752
53753     cppunit_major_version=`echo $cppunit_version | \
53754            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53755     cppunit_minor_version=`echo $cppunit_version | \
53756            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53757     cppunit_micro_version=`echo $cppunit_version | \
53758            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53759
53760     cppunit_major_min=`echo $cppunit_version_min | \
53761            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53762     cppunit_minor_min=`echo $cppunit_version_min | \
53763            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53764     cppunit_micro_min=`echo $cppunit_version_min | \
53765            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53766
53767     cppunit_version_proper=`expr \
53768         $cppunit_major_version \> $cppunit_major_min \| \
53769         $cppunit_major_version \= $cppunit_major_min \& \
53770         $cppunit_minor_version \> $cppunit_minor_min \| \
53771         $cppunit_major_version \= $cppunit_major_min \& \
53772         $cppunit_minor_version \= $cppunit_minor_min \& \
53773         $cppunit_micro_version \>= $cppunit_micro_min `
53774
53775     if test "$cppunit_version_proper" = "1" ; then
53776       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53777 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53778     else
53779       { echo "$as_me:$LINENO: result: no" >&5
53780 echo "${ECHO_T}no" >&6; }
53781       no_cppunit=yes
53782     fi
53783   fi
53784
53785   if test "x$no_cppunit" = x ; then
53786      SUBDIRS="$SUBDIRS tests"
53787   else
53788      CPPUNIT_CFLAGS=""
53789      CPPUNIT_LIBS=""
53790      :
53791   fi
53792
53793
53794
53795
53796
53797 for subdir in `echo $SUBDIRS`; do
53798     if test -d ${srcdir}/${subdir} ; then
53799         if test "$wxUSE_GUI" = "yes"; then
53800             if test ${subdir} = "samples"; then
53801                                                 makefiles="samples/Makefile.in $makefiles"
53802                 for sample in `echo $SAMPLES_SUBDIRS`; do
53803                     if test -d $srcdir/samples/$sample; then
53804                         makefiles="samples/$sample/Makefile.in $makefiles"
53805                     fi
53806                 done
53807             else
53808                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
53809                 eval "disabled=\$$disabled_var"
53810                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53811                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53812             fi
53813         else                                     if test ${subdir} = "samples"; then
53814                 makefiles="samples/Makefile.in samples/console/Makefile.in"
53815             elif test ${subdir} = "utils"; then
53816                 makefiles=""
53817                 for util in HelpGen tex2rtf ; do
53818                     if test -d $srcdir/utils/$util ; then
53819                         makefiles="utils/$util/Makefile.in \
53820                                    utils/$util/src/Makefile.in \
53821                                    $makefiles"
53822                     fi
53823                 done
53824             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53825             fi
53826         fi
53827
53828         for mkin in $makefiles ; do
53829             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53830             ac_config_files="$ac_config_files $mk"
53831
53832         done
53833     fi
53834 done
53835 fi
53836 cat >confcache <<\_ACEOF
53837 # This file is a shell script that caches the results of configure
53838 # tests run on this system so they can be shared between configure
53839 # scripts and configure runs, see configure's option --config-cache.
53840 # It is not useful on other systems.  If it contains results you don't
53841 # want to keep, you may remove or edit it.
53842 #
53843 # config.status only pays attention to the cache file if you give it
53844 # the --recheck option to rerun configure.
53845 #
53846 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53847 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53848 # following values.
53849
53850 _ACEOF
53851
53852 # The following way of writing the cache mishandles newlines in values,
53853 # but we know of no workaround that is simple, portable, and efficient.
53854 # So, we kill variables containing newlines.
53855 # Ultrix sh set writes to stderr and can't be redirected directly,
53856 # and sets the high bit in the cache file unless we assign to the vars.
53857 (
53858   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53859     eval ac_val=\$$ac_var
53860     case $ac_val in #(
53861     *${as_nl}*)
53862       case $ac_var in #(
53863       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53864 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53865       esac
53866       case $ac_var in #(
53867       _ | IFS | as_nl) ;; #(
53868       *) $as_unset $ac_var ;;
53869       esac ;;
53870     esac
53871   done
53872
53873   (set) 2>&1 |
53874     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53875     *${as_nl}ac_space=\ *)
53876       # `set' does not quote correctly, so add quotes (double-quote
53877       # substitution turns \\\\ into \\, and sed turns \\ into \).
53878       sed -n \
53879         "s/'/'\\\\''/g;
53880           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53881       ;; #(
53882     *)
53883       # `set' quotes correctly as required by POSIX, so do not add quotes.
53884       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53885       ;;
53886     esac |
53887     sort
53888 ) |
53889   sed '
53890      /^ac_cv_env_/b end
53891      t clear
53892      :clear
53893      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53894      t end
53895      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53896      :end' >>confcache
53897 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53898   if test -w "$cache_file"; then
53899     test "x$cache_file" != "x/dev/null" &&
53900       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53901 echo "$as_me: updating cache $cache_file" >&6;}
53902     cat confcache >$cache_file
53903   else
53904     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53905 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53906   fi
53907 fi
53908 rm -f confcache
53909
53910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53911 # Let make expand exec_prefix.
53912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53913
53914 DEFS=-DHAVE_CONFIG_H
53915
53916 ac_libobjs=
53917 ac_ltlibobjs=
53918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53919   # 1. Remove the extension, and $U if already installed.
53920   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53921   ac_i=`echo "$ac_i" | sed "$ac_script"`
53922   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53923   #    will be set to the directory where LIBOBJS objects are built.
53924   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53925   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53926 done
53927 LIBOBJS=$ac_libobjs
53928
53929 LTLIBOBJS=$ac_ltlibobjs
53930
53931
53932
53933 : ${CONFIG_STATUS=./config.status}
53934 ac_clean_files_save=$ac_clean_files
53935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53938 cat >$CONFIG_STATUS <<_ACEOF
53939 #! $SHELL
53940 # Generated by $as_me.
53941 # Run this file to recreate the current configuration.
53942 # Compiler output produced by configure, useful for debugging
53943 # configure, is in config.log if it exists.
53944
53945 debug=false
53946 ac_cs_recheck=false
53947 ac_cs_silent=false
53948 SHELL=\${CONFIG_SHELL-$SHELL}
53949 _ACEOF
53950
53951 cat >>$CONFIG_STATUS <<\_ACEOF
53952 ## --------------------- ##
53953 ## M4sh Initialization.  ##
53954 ## --------------------- ##
53955
53956 # Be more Bourne compatible
53957 DUALCASE=1; export DUALCASE # for MKS sh
53958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53959   emulate sh
53960   NULLCMD=:
53961   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53962   # is contrary to our usage.  Disable this feature.
53963   alias -g '${1+"$@"}'='"$@"'
53964   setopt NO_GLOB_SUBST
53965 else
53966   case `(set -o) 2>/dev/null` in
53967   *posix*) set -o posix ;;
53968 esac
53969
53970 fi
53971
53972
53973
53974
53975 # PATH needs CR
53976 # Avoid depending upon Character Ranges.
53977 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53978 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53979 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53980 as_cr_digits='0123456789'
53981 as_cr_alnum=$as_cr_Letters$as_cr_digits
53982
53983 # The user is always right.
53984 if test "${PATH_SEPARATOR+set}" != set; then
53985   echo "#! /bin/sh" >conf$$.sh
53986   echo  "exit 0"   >>conf$$.sh
53987   chmod +x conf$$.sh
53988   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53989     PATH_SEPARATOR=';'
53990   else
53991     PATH_SEPARATOR=:
53992   fi
53993   rm -f conf$$.sh
53994 fi
53995
53996 # Support unset when possible.
53997 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53998   as_unset=unset
53999 else
54000   as_unset=false
54001 fi
54002
54003
54004 # IFS
54005 # We need space, tab and new line, in precisely that order.  Quoting is
54006 # there to prevent editors from complaining about space-tab.
54007 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
54008 # splitting by setting IFS to empty value.)
54009 as_nl='
54010 '
54011 IFS=" ""        $as_nl"
54012
54013 # Find who we are.  Look in the path if we contain no directory separator.
54014 case $0 in
54015   *[\\/]* ) as_myself=$0 ;;
54016   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54017 for as_dir in $PATH
54018 do
54019   IFS=$as_save_IFS
54020   test -z "$as_dir" && as_dir=.
54021   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
54022 done
54023 IFS=$as_save_IFS
54024
54025      ;;
54026 esac
54027 # We did not find ourselves, most probably we were run as `sh COMMAND'
54028 # in which case we are not to be found in the path.
54029 if test "x$as_myself" = x; then
54030   as_myself=$0
54031 fi
54032 if test ! -f "$as_myself"; then
54033   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
54034   { (exit 1); exit 1; }
54035 fi
54036
54037 # Work around bugs in pre-3.0 UWIN ksh.
54038 for as_var in ENV MAIL MAILPATH
54039 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
54040 done
54041 PS1='$ '
54042 PS2='> '
54043 PS4='+ '
54044
54045 # NLS nuisances.
54046 for as_var in \
54047   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
54048   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
54049   LC_TELEPHONE LC_TIME
54050 do
54051   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54052     eval $as_var=C; export $as_var
54053   else
54054     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
54055   fi
54056 done
54057
54058 # Required to use basename.
54059 if expr a : '\(a\)' >/dev/null 2>&1 &&
54060    test "X`expr 00001 : '.*\(...\)'`" = X001; then
54061   as_expr=expr
54062 else
54063   as_expr=false
54064 fi
54065
54066 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
54067   as_basename=basename
54068 else
54069   as_basename=false
54070 fi
54071
54072
54073 # Name of the executable.
54074 as_me=`$as_basename -- "$0" ||
54075 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
54076          X"$0" : 'X\(//\)$' \| \
54077          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54078 echo X/"$0" |
54079     sed '/^.*\/\([^/][^/]*\)\/*$/{
54080             s//\1/
54081             q
54082           }
54083           /^X\/\(\/\/\)$/{
54084             s//\1/
54085             q
54086           }
54087           /^X\/\(\/\).*/{
54088             s//\1/
54089             q
54090           }
54091           s/.*/./; q'`
54092
54093 # CDPATH.
54094 $as_unset CDPATH
54095
54096
54097
54098   as_lineno_1=$LINENO
54099   as_lineno_2=$LINENO
54100   test "x$as_lineno_1" != "x$as_lineno_2" &&
54101   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
54102
54103   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
54104   # uniformly replaced by the line number.  The first 'sed' inserts a
54105   # line-number line after each line using $LINENO; the second 'sed'
54106   # does the real work.  The second script uses 'N' to pair each
54107   # line-number line with the line containing $LINENO, and appends
54108   # trailing '-' during substitution so that $LINENO is not a special
54109   # case at line end.
54110   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
54111   # scripts with optimization help from Paolo Bonzini.  Blame Lee
54112   # E. McMahon (1931-1989) for sed's syntax.  :-)
54113   sed -n '
54114     p
54115     /[$]LINENO/=
54116   ' <$as_myself |
54117     sed '
54118       s/[$]LINENO.*/&-/
54119       t lineno
54120       b
54121       :lineno
54122       N
54123       :loop
54124       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
54125       t loop
54126       s/-\n.*//
54127     ' >$as_me.lineno &&
54128   chmod +x "$as_me.lineno" ||
54129     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
54130    { (exit 1); exit 1; }; }
54131
54132   # Don't try to exec as it changes $[0], causing all sort of problems
54133   # (the dirname of $[0] is not the place where we might find the
54134   # original and so on.  Autoconf is especially sensitive to this).
54135   . "./$as_me.lineno"
54136   # Exit status is that of the last command.
54137   exit
54138 }
54139
54140
54141 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
54142   as_dirname=dirname
54143 else
54144   as_dirname=false
54145 fi
54146
54147 ECHO_C= ECHO_N= ECHO_T=
54148 case `echo -n x` in
54149 -n*)
54150   case `echo 'x\c'` in
54151   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
54152   *)   ECHO_C='\c';;
54153   esac;;
54154 *)
54155   ECHO_N='-n';;
54156 esac
54157
54158 if expr a : '\(a\)' >/dev/null 2>&1 &&
54159    test "X`expr 00001 : '.*\(...\)'`" = X001; then
54160   as_expr=expr
54161 else
54162   as_expr=false
54163 fi
54164
54165 rm -f conf$$ conf$$.exe conf$$.file
54166 if test -d conf$$.dir; then
54167   rm -f conf$$.dir/conf$$.file
54168 else
54169   rm -f conf$$.dir
54170   mkdir conf$$.dir
54171 fi
54172 echo >conf$$.file
54173 if ln -s conf$$.file conf$$ 2>/dev/null; then
54174   as_ln_s='ln -s'
54175   # ... but there are two gotchas:
54176   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
54177   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
54178   # In both cases, we have to default to `cp -p'.
54179   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
54180     as_ln_s='cp -p'
54181 elif ln conf$$.file conf$$ 2>/dev/null; then
54182   as_ln_s=ln
54183 else
54184   as_ln_s='cp -p'
54185 fi
54186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
54187 rmdir conf$$.dir 2>/dev/null
54188
54189 if mkdir -p . 2>/dev/null; then
54190   as_mkdir_p=:
54191 else
54192   test -d ./-p && rmdir ./-p
54193   as_mkdir_p=false
54194 fi
54195
54196 if test -x / >/dev/null 2>&1; then
54197   as_test_x='test -x'
54198 else
54199   if ls -dL / >/dev/null 2>&1; then
54200     as_ls_L_option=L
54201   else
54202     as_ls_L_option=
54203   fi
54204   as_test_x='
54205     eval sh -c '\''
54206       if test -d "$1"; then
54207         test -d "$1/.";
54208       else
54209         case $1 in
54210         -*)set "./$1";;
54211         esac;
54212         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
54213         ???[sx]*):;;*)false;;esac;fi
54214     '\'' sh
54215   '
54216 fi
54217 as_executable_p=$as_test_x
54218
54219 # Sed expression to map a string onto a valid CPP name.
54220 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
54221
54222 # Sed expression to map a string onto a valid variable name.
54223 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
54224
54225
54226 exec 6>&1
54227
54228 # Save the log message, to keep $[0] and so on meaningful, and to
54229 # report actual input values of CONFIG_FILES etc. instead of their
54230 # values after options handling.
54231 ac_log="
54232 This file was extended by wxWidgets $as_me 2.9.0, which was
54233 generated by GNU Autoconf 2.61.  Invocation command line was
54234
54235   CONFIG_FILES    = $CONFIG_FILES
54236   CONFIG_HEADERS  = $CONFIG_HEADERS
54237   CONFIG_LINKS    = $CONFIG_LINKS
54238   CONFIG_COMMANDS = $CONFIG_COMMANDS
54239   $ $0 $@
54240
54241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
54242 "
54243
54244 _ACEOF
54245
54246 cat >>$CONFIG_STATUS <<_ACEOF
54247 # Files that config.status was made for.
54248 config_files="$ac_config_files"
54249 config_headers="$ac_config_headers"
54250 config_commands="$ac_config_commands"
54251
54252 _ACEOF
54253
54254 cat >>$CONFIG_STATUS <<\_ACEOF
54255 ac_cs_usage="\
54256 \`$as_me' instantiates files from templates according to the
54257 current configuration.
54258
54259 Usage: $0 [OPTIONS] [FILE]...
54260
54261   -h, --help       print this help, then exit
54262   -V, --version    print version number and configuration settings, then exit
54263   -q, --quiet      do not print progress messages
54264   -d, --debug      don't remove temporary files
54265       --recheck    update $as_me by reconfiguring in the same conditions
54266   --file=FILE[:TEMPLATE]
54267                    instantiate the configuration file FILE
54268   --header=FILE[:TEMPLATE]
54269                    instantiate the configuration header FILE
54270
54271 Configuration files:
54272 $config_files
54273
54274 Configuration headers:
54275 $config_headers
54276
54277 Configuration commands:
54278 $config_commands
54279
54280 Report bugs to <bug-autoconf@gnu.org>."
54281
54282 _ACEOF
54283 cat >>$CONFIG_STATUS <<_ACEOF
54284 ac_cs_version="\\
54285 wxWidgets config.status 2.9.0
54286 configured by $0, generated by GNU Autoconf 2.61,
54287   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
54288
54289 Copyright (C) 2006 Free Software Foundation, Inc.
54290 This config.status script is free software; the Free Software Foundation
54291 gives unlimited permission to copy, distribute and modify it."
54292
54293 ac_pwd='$ac_pwd'
54294 srcdir='$srcdir'
54295 INSTALL='$INSTALL'
54296 _ACEOF
54297
54298 cat >>$CONFIG_STATUS <<\_ACEOF
54299 # If no file are specified by the user, then we need to provide default
54300 # value.  By we need to know if files were specified by the user.
54301 ac_need_defaults=:
54302 while test $# != 0
54303 do
54304   case $1 in
54305   --*=*)
54306     ac_option=`expr "X$1" : 'X\([^=]*\)='`
54307     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54308     ac_shift=:
54309     ;;
54310   *)
54311     ac_option=$1
54312     ac_optarg=$2
54313     ac_shift=shift
54314     ;;
54315   esac
54316
54317   case $ac_option in
54318   # Handling of the options.
54319   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54320     ac_cs_recheck=: ;;
54321   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54322     echo "$ac_cs_version"; exit ;;
54323   --debug | --debu | --deb | --de | --d | -d )
54324     debug=: ;;
54325   --file | --fil | --fi | --f )
54326     $ac_shift
54327     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
54328     ac_need_defaults=false;;
54329   --header | --heade | --head | --hea )
54330     $ac_shift
54331     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
54332     ac_need_defaults=false;;
54333   --he | --h)
54334     # Conflict between --help and --header
54335     { echo "$as_me: error: ambiguous option: $1
54336 Try \`$0 --help' for more information." >&2
54337    { (exit 1); exit 1; }; };;
54338   --help | --hel | -h )
54339     echo "$ac_cs_usage"; exit ;;
54340   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54341   | -silent | --silent | --silen | --sile | --sil | --si | --s)
54342     ac_cs_silent=: ;;
54343
54344   # This is an error.
54345   -*) { echo "$as_me: error: unrecognized option: $1
54346 Try \`$0 --help' for more information." >&2
54347    { (exit 1); exit 1; }; } ;;
54348
54349   *) ac_config_targets="$ac_config_targets $1"
54350      ac_need_defaults=false ;;
54351
54352   esac
54353   shift
54354 done
54355
54356 ac_configure_extra_args=
54357
54358 if $ac_cs_silent; then
54359   exec 6>/dev/null
54360   ac_configure_extra_args="$ac_configure_extra_args --silent"
54361 fi
54362
54363 _ACEOF
54364 cat >>$CONFIG_STATUS <<_ACEOF
54365 if \$ac_cs_recheck; then
54366   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
54367   CONFIG_SHELL=$SHELL
54368   export CONFIG_SHELL
54369   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54370 fi
54371
54372 _ACEOF
54373 cat >>$CONFIG_STATUS <<\_ACEOF
54374 exec 5>>config.log
54375 {
54376   echo
54377   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54378 ## Running $as_me. ##
54379 _ASBOX
54380   echo "$ac_log"
54381 } >&5
54382
54383 _ACEOF
54384 cat >>$CONFIG_STATUS <<_ACEOF
54385 #
54386 # INIT-COMMANDS
54387 #
54388
54389             CPP="$CPP"
54390             infile="$srcdir/include/wx/msw/genrcdefs.h"
54391             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
54392
54393
54394  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54395  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54396  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54397                      LN_S="${LN_S}"
54398
54399
54400 _ACEOF
54401
54402 cat >>$CONFIG_STATUS <<\_ACEOF
54403
54404 # Handling of arguments.
54405 for ac_config_target in $ac_config_targets
54406 do
54407   case $ac_config_target in
54408     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
54409     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
54410     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
54411     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
54412     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
54413     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54414     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
54415     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
54416
54417   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54418 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54419    { (exit 1); exit 1; }; };;
54420   esac
54421 done
54422
54423
54424 # If the user did not use the arguments to specify the items to instantiate,
54425 # then the envvar interface is used.  Set only those that are not.
54426 # We use the long form for the default assignment because of an extremely
54427 # bizarre bug on SunOS 4.1.3.
54428 if $ac_need_defaults; then
54429   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54430   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54431   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54432 fi
54433
54434 # Have a temporary directory for convenience.  Make it in the build tree
54435 # simply because there is no reason against having it here, and in addition,
54436 # creating and moving files from /tmp can sometimes cause problems.
54437 # Hook for its removal unless debugging.
54438 # Note that there is a small window in which the directory will not be cleaned:
54439 # after its creation but before its name has been assigned to `$tmp'.
54440 $debug ||
54441 {
54442   tmp=
54443   trap 'exit_status=$?
54444   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54445 ' 0
54446   trap '{ (exit 1); exit 1; }' 1 2 13 15
54447 }
54448 # Create a (secure) tmp directory for tmp files.
54449
54450 {
54451   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54452   test -n "$tmp" && test -d "$tmp"
54453 }  ||
54454 {
54455   tmp=./conf$$-$RANDOM
54456   (umask 077 && mkdir "$tmp")
54457 } ||
54458 {
54459    echo "$me: cannot create a temporary directory in ." >&2
54460    { (exit 1); exit 1; }
54461 }
54462
54463 #
54464 # Set up the sed scripts for CONFIG_FILES section.
54465 #
54466
54467 # No need to generate the scripts if there are no CONFIG_FILES.
54468 # This happens for instance when ./config.status config.h
54469 if test -n "$CONFIG_FILES"; then
54470
54471 _ACEOF
54472
54473
54474
54475 ac_delim='%!_!# '
54476 for ac_last_try in false false false false false :; do
54477   cat >conf$$subs.sed <<_ACEOF
54478 SHELL!$SHELL$ac_delim
54479 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54480 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54481 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54482 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54483 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54484 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54485 exec_prefix!$exec_prefix$ac_delim
54486 prefix!$prefix$ac_delim
54487 program_transform_name!$program_transform_name$ac_delim
54488 bindir!$bindir$ac_delim
54489 sbindir!$sbindir$ac_delim
54490 libexecdir!$libexecdir$ac_delim
54491 datarootdir!$datarootdir$ac_delim
54492 datadir!$datadir$ac_delim
54493 sysconfdir!$sysconfdir$ac_delim
54494 sharedstatedir!$sharedstatedir$ac_delim
54495 localstatedir!$localstatedir$ac_delim
54496 includedir!$includedir$ac_delim
54497 oldincludedir!$oldincludedir$ac_delim
54498 docdir!$docdir$ac_delim
54499 infodir!$infodir$ac_delim
54500 htmldir!$htmldir$ac_delim
54501 dvidir!$dvidir$ac_delim
54502 pdfdir!$pdfdir$ac_delim
54503 psdir!$psdir$ac_delim
54504 libdir!$libdir$ac_delim
54505 localedir!$localedir$ac_delim
54506 mandir!$mandir$ac_delim
54507 DEFS!$DEFS$ac_delim
54508 ECHO_C!$ECHO_C$ac_delim
54509 ECHO_N!$ECHO_N$ac_delim
54510 ECHO_T!$ECHO_T$ac_delim
54511 LIBS!$LIBS$ac_delim
54512 build_alias!$build_alias$ac_delim
54513 host_alias!$host_alias$ac_delim
54514 target_alias!$target_alias$ac_delim
54515 build!$build$ac_delim
54516 build_cpu!$build_cpu$ac_delim
54517 build_vendor!$build_vendor$ac_delim
54518 build_os!$build_os$ac_delim
54519 host!$host$ac_delim
54520 host_cpu!$host_cpu$ac_delim
54521 host_vendor!$host_vendor$ac_delim
54522 host_os!$host_os$ac_delim
54523 target!$target$ac_delim
54524 target_cpu!$target_cpu$ac_delim
54525 target_vendor!$target_vendor$ac_delim
54526 target_os!$target_os$ac_delim
54527 wx_top_builddir!$wx_top_builddir$ac_delim
54528 CC!$CC$ac_delim
54529 CFLAGS!$CFLAGS$ac_delim
54530 LDFLAGS!$LDFLAGS$ac_delim
54531 CPPFLAGS!$CPPFLAGS$ac_delim
54532 ac_ct_CC!$ac_ct_CC$ac_delim
54533 EXEEXT!$EXEEXT$ac_delim
54534 OBJEXT!$OBJEXT$ac_delim
54535 CPP!$CPP$ac_delim
54536 GREP!$GREP$ac_delim
54537 EGREP!$EGREP$ac_delim
54538 CXX!$CXX$ac_delim
54539 CXXFLAGS!$CXXFLAGS$ac_delim
54540 ac_ct_CXX!$ac_ct_CXX$ac_delim
54541 RANLIB!$RANLIB$ac_delim
54542 AR!$AR$ac_delim
54543 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54544 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54545 INSTALL_DATA!$INSTALL_DATA$ac_delim
54546 STRIP!$STRIP$ac_delim
54547 WINDRES!$WINDRES$ac_delim
54548 DLLTOOL!$DLLTOOL$ac_delim
54549 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54550 LN_S!$LN_S$ac_delim
54551 subdirs!$subdirs$ac_delim
54552 PKG_CONFIG!$PKG_CONFIG$ac_delim
54553 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54554 GTK_LIBS!$GTK_LIBS$ac_delim
54555 GTK_CONFIG!$GTK_CONFIG$ac_delim
54556 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54557 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54558 XMKMF!$XMKMF$ac_delim
54559 X_CFLAGS!$X_CFLAGS$ac_delim
54560 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54561 X_LIBS!$X_LIBS$ac_delim
54562 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54563 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54564 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54565 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54566 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54567 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54568 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54569 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54570 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54571 REZ!$REZ$ac_delim
54572 DEREZ!$DEREZ$ac_delim
54573 SETFILE!$SETFILE$ac_delim
54574 LIBICONV!$LIBICONV$ac_delim
54575 _ACEOF
54576
54577   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54578     break
54579   elif $ac_last_try; then
54580     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54581 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54582    { (exit 1); exit 1; }; }
54583   else
54584     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54585   fi
54586 done
54587
54588 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54589 if test -n "$ac_eof"; then
54590   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54591   ac_eof=`expr $ac_eof + 1`
54592 fi
54593
54594 cat >>$CONFIG_STATUS <<_ACEOF
54595 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54596 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54597 _ACEOF
54598 sed '
54599 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54600 s/^/s,@/; s/!/@,|#_!!_#|/
54601 :n
54602 t n
54603 s/'"$ac_delim"'$/,g/; t
54604 s/$/\\/; p
54605 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54606 ' >>$CONFIG_STATUS <conf$$subs.sed
54607 rm -f conf$$subs.sed
54608 cat >>$CONFIG_STATUS <<_ACEOF
54609 CEOF$ac_eof
54610 _ACEOF
54611
54612
54613 ac_delim='%!_!# '
54614 for ac_last_try in false false false false false :; do
54615   cat >conf$$subs.sed <<_ACEOF
54616 SDL_CONFIG!$SDL_CONFIG$ac_delim
54617 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54618 SDL_LIBS!$SDL_LIBS$ac_delim
54619 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54620 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54621 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54622 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54623 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54624 HILDON_LIBS!$HILDON_LIBS$ac_delim
54625 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54626 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54627 GST_CFLAGS!$GST_CFLAGS$ac_delim
54628 GST_LIBS!$GST_LIBS$ac_delim
54629 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54630 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54631 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54632 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54633 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54634 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54635 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54636 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
54637 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54638 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54639 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54640 VENDOR!$VENDOR$ac_delim
54641 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54642 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54643 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54644 WXUNIV!$WXUNIV$ac_delim
54645 MONOLITHIC!$MONOLITHIC$ac_delim
54646 USE_PLUGINS!$USE_PLUGINS$ac_delim
54647 CXXWARNINGS!$CXXWARNINGS$ac_delim
54648 EXTRALIBS!$EXTRALIBS$ac_delim
54649 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54650 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54651 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
54652 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54653 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54654 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54655 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54656 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54657 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54658 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54659 UNICODE!$UNICODE$ac_delim
54660 BUILD!$BUILD$ac_delim
54661 DEBUG_INFO!$DEBUG_INFO$ac_delim
54662 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54663 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54664 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54665 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54666 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
54667 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54668 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54669 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54670 SET_MAKE!$SET_MAKE$ac_delim
54671 MAKE_SET!$MAKE_SET$ac_delim
54672 AROPTIONS!$AROPTIONS$ac_delim
54673 NM!$NM$ac_delim
54674 INSTALL_DIR!$INSTALL_DIR$ac_delim
54675 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54676 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54677 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54678 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54679 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54680 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54681 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54682 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54683 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54684 SO_SUFFIX!$SO_SUFFIX$ac_delim
54685 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54686 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54687 LIBPREFIX!$LIBPREFIX$ac_delim
54688 LIBEXT!$LIBEXT$ac_delim
54689 DLLPREFIX!$DLLPREFIX$ac_delim
54690 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54691 dlldir!$dlldir$ac_delim
54692 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54693 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54694 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54695 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54696 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54697 PIC_FLAG!$PIC_FLAG$ac_delim
54698 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54699 USE_SOVERSION!$USE_SOVERSION$ac_delim
54700 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54701 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54702 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54703 USE_MACVERSION!$USE_MACVERSION$ac_delim
54704 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
54705 SONAME_FLAG!$SONAME_FLAG$ac_delim
54706 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54707 BK_DEPS!$BK_DEPS$ac_delim
54708 GCC_PCH!$GCC_PCH$ac_delim
54709 ICC_PCH!$ICC_PCH$ac_delim
54710 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54711 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54712 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54713 _ACEOF
54714
54715   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54716     break
54717   elif $ac_last_try; then
54718     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54719 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54720    { (exit 1); exit 1; }; }
54721   else
54722     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54723   fi
54724 done
54725
54726 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54727 if test -n "$ac_eof"; then
54728   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54729   ac_eof=`expr $ac_eof + 1`
54730 fi
54731
54732 cat >>$CONFIG_STATUS <<_ACEOF
54733 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54735 _ACEOF
54736 sed '
54737 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54738 s/^/s,@/; s/!/@,|#_!!_#|/
54739 :n
54740 t n
54741 s/'"$ac_delim"'$/,g/; t
54742 s/$/\\/; p
54743 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54744 ' >>$CONFIG_STATUS <conf$$subs.sed
54745 rm -f conf$$subs.sed
54746 cat >>$CONFIG_STATUS <<_ACEOF
54747 CEOF$ac_eof
54748 _ACEOF
54749
54750
54751 ac_delim='%!_!# '
54752 for ac_last_try in false false false false false :; do
54753   cat >conf$$subs.sed <<_ACEOF
54754 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54755 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54756 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54757 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54758 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54759 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54760 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54761 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54762 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54763 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54764 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54765 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54766 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54767 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54768 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54769 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54770 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54771 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54772 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54773 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54774 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
54775 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54776 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
54777 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54778 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54779 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54780 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54781 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54782 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54783 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54784 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54785 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
54786 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54787 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
54788 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54789 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54790 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54791 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54792 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54793 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54794 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
54795 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54796 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54797 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
54798 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54799 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54800 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54801 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54802 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54803 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54804 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54805 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54806 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54807 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54808 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54809 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54810 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
54811 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
54812 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
54813 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
54814 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
54815 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
54816 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
54817 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54818 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54819 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54820 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54821 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54822 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54823 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54824 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54825 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54826 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54827 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54828 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54829 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54830 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54831 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54832 COND_SHARED_0!$COND_SHARED_0$ac_delim
54833 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54834 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54835 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54836 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54837 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54838 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54839 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54840 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54841 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
54842 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
54843 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
54844 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
54845 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
54846 COND_SHARED_1!$COND_SHARED_1$ac_delim
54847 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54848 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
54849 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54850 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54851 _ACEOF
54852
54853   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54854     break
54855   elif $ac_last_try; then
54856     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54857 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54858    { (exit 1); exit 1; }; }
54859   else
54860     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54861   fi
54862 done
54863
54864 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54865 if test -n "$ac_eof"; then
54866   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54867   ac_eof=`expr $ac_eof + 1`
54868 fi
54869
54870 cat >>$CONFIG_STATUS <<_ACEOF
54871 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54873 _ACEOF
54874 sed '
54875 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54876 s/^/s,@/; s/!/@,|#_!!_#|/
54877 :n
54878 t n
54879 s/'"$ac_delim"'$/,g/; t
54880 s/$/\\/; p
54881 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54882 ' >>$CONFIG_STATUS <conf$$subs.sed
54883 rm -f conf$$subs.sed
54884 cat >>$CONFIG_STATUS <<_ACEOF
54885 CEOF$ac_eof
54886 _ACEOF
54887
54888
54889 ac_delim='%!_!# '
54890 for ac_last_try in false false false false false :; do
54891   cat >conf$$subs.sed <<_ACEOF
54892 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54893 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54894 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54895 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54896 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54897 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54898 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54899 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54900 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54901 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54902 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54903 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54904 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54905 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
54906 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
54907 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54908 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54909 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54910 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54911 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54912 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54913 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54914 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54915 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54916 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54917 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54918 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54919 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54920 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54921 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54922 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54923 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54924 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54925 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54926 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54927 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54928 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54929 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54930 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54931 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54932 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54933 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54934 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54935 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54936 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
54937 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54938 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54939 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54940 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54941 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54942 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
54943 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54944 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54945 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54946 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54947 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54948 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54949 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54950 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54951 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54952 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54953 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54954 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54955 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54956 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54957 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54958 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54959 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
54960 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54961 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54962 SHARED!$SHARED$ac_delim
54963 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54964 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54965 USE_GUI!$USE_GUI$ac_delim
54966 AFMINSTALL!$AFMINSTALL$ac_delim
54967 WIN32INSTALL!$WIN32INSTALL$ac_delim
54968 TOOLKIT!$TOOLKIT$ac_delim
54969 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54970 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54971 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54972 cross_compiling!$cross_compiling$ac_delim
54973 WIDGET_SET!$WIDGET_SET$ac_delim
54974 WX_RELEASE!$WX_RELEASE$ac_delim
54975 WX_VERSION!$WX_VERSION$ac_delim
54976 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54977 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54978 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
54979 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54980 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54981 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54982 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54983 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54984 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54985 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54986 EXE_LINKER!$EXE_LINKER$ac_delim
54987 GUIDIST!$GUIDIST$ac_delim
54988 DISTDIR!$DISTDIR$ac_delim
54989 _ACEOF
54990
54991   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54992     break
54993   elif $ac_last_try; then
54994     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54995 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54996    { (exit 1); exit 1; }; }
54997   else
54998     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54999   fi
55000 done
55001
55002 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
55003 if test -n "$ac_eof"; then
55004   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
55005   ac_eof=`expr $ac_eof + 1`
55006 fi
55007
55008 cat >>$CONFIG_STATUS <<_ACEOF
55009 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
55010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55011 _ACEOF
55012 sed '
55013 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
55014 s/^/s,@/; s/!/@,|#_!!_#|/
55015 :n
55016 t n
55017 s/'"$ac_delim"'$/,g/; t
55018 s/$/\\/; p
55019 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
55020 ' >>$CONFIG_STATUS <conf$$subs.sed
55021 rm -f conf$$subs.sed
55022 cat >>$CONFIG_STATUS <<_ACEOF
55023 CEOF$ac_eof
55024 _ACEOF
55025
55026
55027 ac_delim='%!_!# '
55028 for ac_last_try in false false false false false :; do
55029   cat >conf$$subs.sed <<_ACEOF
55030 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
55031 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
55032 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
55033 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
55034 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
55035 RESCOMP!$RESCOMP$ac_delim
55036 RESFLAGS!$RESFLAGS$ac_delim
55037 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
55038 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
55039 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
55040 LIBWXMACRES!$LIBWXMACRES$ac_delim
55041 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
55042 MACSETFILE!$MACSETFILE$ac_delim
55043 GCC!$GCC$ac_delim
55044 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
55045 LIBOBJS!$LIBOBJS$ac_delim
55046 LTLIBOBJS!$LTLIBOBJS$ac_delim
55047 _ACEOF
55048
55049   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
55050     break
55051   elif $ac_last_try; then
55052     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
55053 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
55054    { (exit 1); exit 1; }; }
55055   else
55056     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55057   fi
55058 done
55059
55060 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
55061 if test -n "$ac_eof"; then
55062   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
55063   ac_eof=`expr $ac_eof + 1`
55064 fi
55065
55066 cat >>$CONFIG_STATUS <<_ACEOF
55067 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
55068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
55069 _ACEOF
55070 sed '
55071 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
55072 s/^/s,@/; s/!/@,|#_!!_#|/
55073 :n
55074 t n
55075 s/'"$ac_delim"'$/,g/; t
55076 s/$/\\/; p
55077 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
55078 ' >>$CONFIG_STATUS <conf$$subs.sed
55079 rm -f conf$$subs.sed
55080 cat >>$CONFIG_STATUS <<_ACEOF
55081 :end
55082 s/|#_!!_#|//g
55083 CEOF$ac_eof
55084 _ACEOF
55085
55086
55087 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55088 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55089 # trailing colons and then remove the whole line if VPATH becomes empty
55090 # (actually we leave an empty line to preserve line numbers).
55091 if test "x$srcdir" = x.; then
55092   ac_vpsub='/^[  ]*VPATH[        ]*=/{
55093 s/:*\$(srcdir):*/:/
55094 s/:*\${srcdir}:*/:/
55095 s/:*@srcdir@:*/:/
55096 s/^\([^=]*=[     ]*\):*/\1/
55097 s/:*$//
55098 s/^[^=]*=[       ]*$//
55099 }'
55100 fi
55101
55102 cat >>$CONFIG_STATUS <<\_ACEOF
55103 fi # test -n "$CONFIG_FILES"
55104
55105
55106 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
55107 do
55108   case $ac_tag in
55109   :[FHLC]) ac_mode=$ac_tag; continue;;
55110   esac
55111   case $ac_mode$ac_tag in
55112   :[FHL]*:*);;
55113   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
55114 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
55115    { (exit 1); exit 1; }; };;
55116   :[FH]-) ac_tag=-:-;;
55117   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
55118   esac
55119   ac_save_IFS=$IFS
55120   IFS=:
55121   set x $ac_tag
55122   IFS=$ac_save_IFS
55123   shift
55124   ac_file=$1
55125   shift
55126
55127   case $ac_mode in
55128   :L) ac_source=$1;;
55129   :[FH])
55130     ac_file_inputs=
55131     for ac_f
55132     do
55133       case $ac_f in
55134       -) ac_f="$tmp/stdin";;
55135       *) # Look for the file first in the build tree, then in the source tree
55136          # (if the path is not absolute).  The absolute path cannot be DOS-style,
55137          # because $ac_f cannot contain `:'.
55138          test -f "$ac_f" ||
55139            case $ac_f in
55140            [\\/$]*) false;;
55141            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
55142            esac ||
55143            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
55144 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
55145    { (exit 1); exit 1; }; };;
55146       esac
55147       ac_file_inputs="$ac_file_inputs $ac_f"
55148     done
55149
55150     # Let's still pretend it is `configure' which instantiates (i.e., don't
55151     # use $as_me), people would be surprised to read:
55152     #    /* config.h.  Generated by config.status.  */
55153     configure_input="Generated from "`IFS=:
55154           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
55155     if test x"$ac_file" != x-; then
55156       configure_input="$ac_file.  $configure_input"
55157       { echo "$as_me:$LINENO: creating $ac_file" >&5
55158 echo "$as_me: creating $ac_file" >&6;}
55159     fi
55160
55161     case $ac_tag in
55162     *:-:* | *:-) cat >"$tmp/stdin";;
55163     esac
55164     ;;
55165   esac
55166
55167   ac_dir=`$as_dirname -- "$ac_file" ||
55168 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55169          X"$ac_file" : 'X\(//\)[^/]' \| \
55170          X"$ac_file" : 'X\(//\)$' \| \
55171          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
55172 echo X"$ac_file" |
55173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55174             s//\1/
55175             q
55176           }
55177           /^X\(\/\/\)[^/].*/{
55178             s//\1/
55179             q
55180           }
55181           /^X\(\/\/\)$/{
55182             s//\1/
55183             q
55184           }
55185           /^X\(\/\).*/{
55186             s//\1/
55187             q
55188           }
55189           s/.*/./; q'`
55190   { as_dir="$ac_dir"
55191   case $as_dir in #(
55192   -*) as_dir=./$as_dir;;
55193   esac
55194   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55195     as_dirs=
55196     while :; do
55197       case $as_dir in #(
55198       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55199       *) as_qdir=$as_dir;;
55200       esac
55201       as_dirs="'$as_qdir' $as_dirs"
55202       as_dir=`$as_dirname -- "$as_dir" ||
55203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55204          X"$as_dir" : 'X\(//\)[^/]' \| \
55205          X"$as_dir" : 'X\(//\)$' \| \
55206          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55207 echo X"$as_dir" |
55208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55209             s//\1/
55210             q
55211           }
55212           /^X\(\/\/\)[^/].*/{
55213             s//\1/
55214             q
55215           }
55216           /^X\(\/\/\)$/{
55217             s//\1/
55218             q
55219           }
55220           /^X\(\/\).*/{
55221             s//\1/
55222             q
55223           }
55224           s/.*/./; q'`
55225       test -d "$as_dir" && break
55226     done
55227     test -z "$as_dirs" || eval "mkdir $as_dirs"
55228   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55229 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55230    { (exit 1); exit 1; }; }; }
55231   ac_builddir=.
55232
55233 case "$ac_dir" in
55234 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55235 *)
55236   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55237   # A ".." for each directory in $ac_dir_suffix.
55238   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55239   case $ac_top_builddir_sub in
55240   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55241   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55242   esac ;;
55243 esac
55244 ac_abs_top_builddir=$ac_pwd
55245 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55246 # for backward compatibility:
55247 ac_top_builddir=$ac_top_build_prefix
55248
55249 case $srcdir in
55250   .)  # We are building in place.
55251     ac_srcdir=.
55252     ac_top_srcdir=$ac_top_builddir_sub
55253     ac_abs_top_srcdir=$ac_pwd ;;
55254   [\\/]* | ?:[\\/]* )  # Absolute name.
55255     ac_srcdir=$srcdir$ac_dir_suffix;
55256     ac_top_srcdir=$srcdir
55257     ac_abs_top_srcdir=$srcdir ;;
55258   *) # Relative name.
55259     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55260     ac_top_srcdir=$ac_top_build_prefix$srcdir
55261     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55262 esac
55263 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55264
55265
55266   case $ac_mode in
55267   :F)
55268   #
55269   # CONFIG_FILE
55270   #
55271
55272   case $INSTALL in
55273   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
55274   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
55275   esac
55276 _ACEOF
55277
55278 cat >>$CONFIG_STATUS <<\_ACEOF
55279 # If the template does not know about datarootdir, expand it.
55280 # FIXME: This hack should be removed a few years after 2.60.
55281 ac_datarootdir_hack=; ac_datarootdir_seen=
55282
55283 case `sed -n '/datarootdir/ {
55284   p
55285   q
55286 }
55287 /@datadir@/p
55288 /@docdir@/p
55289 /@infodir@/p
55290 /@localedir@/p
55291 /@mandir@/p
55292 ' $ac_file_inputs` in
55293 *datarootdir*) ac_datarootdir_seen=yes;;
55294 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55295   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55296 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55297 _ACEOF
55298 cat >>$CONFIG_STATUS <<_ACEOF
55299   ac_datarootdir_hack='
55300   s&@datadir@&$datadir&g
55301   s&@docdir@&$docdir&g
55302   s&@infodir@&$infodir&g
55303   s&@localedir@&$localedir&g
55304   s&@mandir@&$mandir&g
55305     s&\\\${datarootdir}&$datarootdir&g' ;;
55306 esac
55307 _ACEOF
55308
55309 # Neutralize VPATH when `$srcdir' = `.'.
55310 # Shell code in configure.ac might set extrasub.
55311 # FIXME: do we really want to maintain this feature?
55312 cat >>$CONFIG_STATUS <<_ACEOF
55313   sed "$ac_vpsub
55314 $extrasub
55315 _ACEOF
55316 cat >>$CONFIG_STATUS <<\_ACEOF
55317 :t
55318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55319 s&@configure_input@&$configure_input&;t t
55320 s&@top_builddir@&$ac_top_builddir_sub&;t t
55321 s&@srcdir@&$ac_srcdir&;t t
55322 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55323 s&@top_srcdir@&$ac_top_srcdir&;t t
55324 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55325 s&@builddir@&$ac_builddir&;t t
55326 s&@abs_builddir@&$ac_abs_builddir&;t t
55327 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55328 s&@INSTALL@&$ac_INSTALL&;t t
55329 $ac_datarootdir_hack
55330 " $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
55331
55332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55333   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55334   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55335   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55336 which seems to be undefined.  Please make sure it is defined." >&5
55337 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55338 which seems to be undefined.  Please make sure it is defined." >&2;}
55339
55340   rm -f "$tmp/stdin"
55341   case $ac_file in
55342   -) cat "$tmp/out"; rm -f "$tmp/out";;
55343   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55344   esac
55345  ;;
55346   :H)
55347   #
55348   # CONFIG_HEADER
55349   #
55350 _ACEOF
55351
55352 # Transform confdefs.h into a sed script `conftest.defines', that
55353 # substitutes the proper values into config.h.in to produce config.h.
55354 rm -f conftest.defines conftest.tail
55355 # First, append a space to every undef/define line, to ease matching.
55356 echo 's/$/ /' >conftest.defines
55357 # Then, protect against being on the right side of a sed subst, or in
55358 # an unquoted here document, in config.status.  If some macros were
55359 # called several times there might be several #defines for the same
55360 # symbol, which is useless.  But do not sort them, since the last
55361 # AC_DEFINE must be honored.
55362 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55363 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55364 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55365 # PARAMS is the parameter list in the macro definition--in most cases, it's
55366 # just an empty string.
55367 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
55368 ac_dB='\\)[      (].*,\\1define\\2'
55369 ac_dC=' '
55370 ac_dD=' ,'
55371
55372 uniq confdefs.h |
55373   sed -n '
55374         t rset
55375         :rset
55376         s/^[     ]*#[    ]*define[       ][      ]*//
55377         t ok
55378         d
55379         :ok
55380         s/[\\&,]/\\&/g
55381         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55382         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55383   ' >>conftest.defines
55384
55385 # Remove the space that was appended to ease matching.
55386 # Then replace #undef with comments.  This is necessary, for
55387 # example, in the case of _POSIX_SOURCE, which is predefined and required
55388 # on some systems where configure will not decide to define it.
55389 # (The regexp can be short, since the line contains either #define or #undef.)
55390 echo 's/ $//
55391 s,^[     #]*u.*,/* & */,' >>conftest.defines
55392
55393 # Break up conftest.defines:
55394 ac_max_sed_lines=50
55395
55396 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55397 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55398 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55399 # et cetera.
55400 ac_in='$ac_file_inputs'
55401 ac_out='"$tmp/out1"'
55402 ac_nxt='"$tmp/out2"'
55403
55404 while :
55405 do
55406   # Write a here document:
55407     cat >>$CONFIG_STATUS <<_ACEOF
55408     # First, check the format of the line:
55409     cat >"\$tmp/defines.sed" <<\\CEOF
55410 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55411 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55412 b
55413 :def
55414 _ACEOF
55415   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55416   echo 'CEOF
55417     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55418   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55419   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55420   grep . conftest.tail >/dev/null || break
55421   rm -f conftest.defines
55422   mv conftest.tail conftest.defines
55423 done
55424 rm -f conftest.defines conftest.tail
55425
55426 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55427 cat >>$CONFIG_STATUS <<\_ACEOF
55428   if test x"$ac_file" != x-; then
55429     echo "/* $configure_input  */" >"$tmp/config.h"
55430     cat "$ac_result" >>"$tmp/config.h"
55431     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55432       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55433 echo "$as_me: $ac_file is unchanged" >&6;}
55434     else
55435       rm -f $ac_file
55436       mv "$tmp/config.h" $ac_file
55437     fi
55438   else
55439     echo "/* $configure_input  */"
55440     cat "$ac_result"
55441   fi
55442   rm -f "$tmp/out12"
55443  ;;
55444
55445   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
55446 echo "$as_me: executing $ac_file commands" >&6;}
55447  ;;
55448   esac
55449
55450
55451   case $ac_file$ac_mode in
55452     "rcdefs.h":C)
55453             mkdir -p $outdir &&
55454             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
55455          ;;
55456     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
55457     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
55458     "wx-config":C)  rm -f wx-config
55459                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
55460                     ;;
55461
55462   esac
55463 done # for ac_tag
55464
55465
55466 { (exit 0); exit 0; }
55467 _ACEOF
55468 chmod +x $CONFIG_STATUS
55469 ac_clean_files=$ac_clean_files_save
55470
55471
55472 # configure is writing to config.log, and then calls config.status.
55473 # config.status does its own redirection, appending to config.log.
55474 # Unfortunately, on DOS this fails, as config.log is still kept open
55475 # by configure, so config.status won't be able to write to it; its
55476 # output is simply discarded.  So we exec the FD to /dev/null,
55477 # effectively closing config.log, so it can be properly (re)opened and
55478 # appended to by config.status.  When coming back to configure, we
55479 # need to make the FD available again.
55480 if test "$no_create" != yes; then
55481   ac_cs_success=:
55482   ac_config_status_args=
55483   test "$silent" = yes &&
55484     ac_config_status_args="$ac_config_status_args --quiet"
55485   exec 5>/dev/null
55486   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55487   exec 5>>config.log
55488   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55489   # would make configure fail if this is the last instruction.
55490   $ac_cs_success || { (exit 1); exit 1; }
55491 fi
55492
55493 #
55494 # CONFIG_SUBDIRS section.
55495 #
55496 if test "$no_recursion" != yes; then
55497
55498   # Remove --cache-file and --srcdir arguments so they do not pile up.
55499   ac_sub_configure_args=
55500   ac_prev=
55501   eval "set x $ac_configure_args"
55502   shift
55503   for ac_arg
55504   do
55505     if test -n "$ac_prev"; then
55506       ac_prev=
55507       continue
55508     fi
55509     case $ac_arg in
55510     -cache-file | --cache-file | --cache-fil | --cache-fi \
55511     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55512       ac_prev=cache_file ;;
55513     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55514     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55515     | --c=*)
55516       ;;
55517     --config-cache | -C)
55518       ;;
55519     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55520       ac_prev=srcdir ;;
55521     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55522       ;;
55523     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55524       ac_prev=prefix ;;
55525     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55526       ;;
55527     *)
55528       case $ac_arg in
55529       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55530       esac
55531       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55532     esac
55533   done
55534
55535   # Always prepend --prefix to ensure using the same prefix
55536   # in subdir configurations.
55537   ac_arg="--prefix=$prefix"
55538   case $ac_arg in
55539   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55540   esac
55541   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55542
55543   # Pass --silent
55544   if test "$silent" = yes; then
55545     ac_sub_configure_args="--silent $ac_sub_configure_args"
55546   fi
55547
55548   ac_popdir=`pwd`
55549   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55550
55551     # Do not complain, so a configure script can configure whichever
55552     # parts of a large source tree are present.
55553     test -d "$srcdir/$ac_dir" || continue
55554
55555     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55556     echo "$as_me:$LINENO: $ac_msg" >&5
55557     echo "$ac_msg" >&6
55558     { as_dir="$ac_dir"
55559   case $as_dir in #(
55560   -*) as_dir=./$as_dir;;
55561   esac
55562   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55563     as_dirs=
55564     while :; do
55565       case $as_dir in #(
55566       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55567       *) as_qdir=$as_dir;;
55568       esac
55569       as_dirs="'$as_qdir' $as_dirs"
55570       as_dir=`$as_dirname -- "$as_dir" ||
55571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55572          X"$as_dir" : 'X\(//\)[^/]' \| \
55573          X"$as_dir" : 'X\(//\)$' \| \
55574          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55575 echo X"$as_dir" |
55576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55577             s//\1/
55578             q
55579           }
55580           /^X\(\/\/\)[^/].*/{
55581             s//\1/
55582             q
55583           }
55584           /^X\(\/\/\)$/{
55585             s//\1/
55586             q
55587           }
55588           /^X\(\/\).*/{
55589             s//\1/
55590             q
55591           }
55592           s/.*/./; q'`
55593       test -d "$as_dir" && break
55594     done
55595     test -z "$as_dirs" || eval "mkdir $as_dirs"
55596   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55597 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55598    { (exit 1); exit 1; }; }; }
55599     ac_builddir=.
55600
55601 case "$ac_dir" in
55602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55603 *)
55604   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55605   # A ".." for each directory in $ac_dir_suffix.
55606   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55607   case $ac_top_builddir_sub in
55608   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55609   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55610   esac ;;
55611 esac
55612 ac_abs_top_builddir=$ac_pwd
55613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55614 # for backward compatibility:
55615 ac_top_builddir=$ac_top_build_prefix
55616
55617 case $srcdir in
55618   .)  # We are building in place.
55619     ac_srcdir=.
55620     ac_top_srcdir=$ac_top_builddir_sub
55621     ac_abs_top_srcdir=$ac_pwd ;;
55622   [\\/]* | ?:[\\/]* )  # Absolute name.
55623     ac_srcdir=$srcdir$ac_dir_suffix;
55624     ac_top_srcdir=$srcdir
55625     ac_abs_top_srcdir=$srcdir ;;
55626   *) # Relative name.
55627     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55628     ac_top_srcdir=$ac_top_build_prefix$srcdir
55629     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55630 esac
55631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55632
55633
55634     cd "$ac_dir"
55635
55636     # Check for guested configure; otherwise get Cygnus style configure.
55637     if test -f "$ac_srcdir/configure.gnu"; then
55638       ac_sub_configure=$ac_srcdir/configure.gnu
55639     elif test -f "$ac_srcdir/configure"; then
55640       ac_sub_configure=$ac_srcdir/configure
55641     elif test -f "$ac_srcdir/configure.in"; then
55642       # This should be Cygnus configure.
55643       ac_sub_configure=$ac_aux_dir/configure
55644     else
55645       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55646 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55647       ac_sub_configure=
55648     fi
55649
55650     # The recursion is here.
55651     if test -n "$ac_sub_configure"; then
55652       # Make the cache file name correct relative to the subdirectory.
55653       case $cache_file in
55654       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55655       *) # Relative name.
55656         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55657       esac
55658
55659       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55660 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55661       # The eval makes quoting arguments work.
55662       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55663            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55664         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55665 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55666    { (exit 1); exit 1; }; }
55667     fi
55668
55669     cd "$ac_popdir"
55670   done
55671 fi
55672
55673
55674 echo
55675 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55676 echo ""
55677 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55678 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55679
55680 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
55681 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55682 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
55683 if test "$wxUSE_UNICODE" = "yes"; then
55684     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55685         echo " (using UTF-8)"
55686     else
55687         echo " (using wchar_t)"
55688     fi
55689 else
55690     echo
55691 fi
55692
55693 echo "  What level of wxWidgets compatibility should be enabled?"
55694 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55695 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55696
55697 echo "  Which libraries should wxWidgets use?"
55698 echo "                                       STL                ${wxUSE_STL}"
55699 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55700 echo "                                       png                ${wxUSE_LIBPNG-none}"
55701 echo "                                       regex              ${wxUSE_REGEX}"
55702 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55703 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55704 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55705 fi
55706 echo "                                       zlib               ${wxUSE_ZLIB}"
55707 echo "                                       odbc               ${wxUSE_ODBC}"
55708 echo "                                       expat              ${wxUSE_EXPAT}"
55709 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55710 echo "                                       sdl                ${wxUSE_LIBSDL}"
55711
55712 echo ""
55713