added wxUSE_TASKBARICON; corrected condition for generating the taskbar sample makefi...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47544 2007-07-18 12:58:28Z 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[=SDK] 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-fontmap        use font encodings conversion classes
1704   --enable-fs_archive     use virtual archive filesystems
1705   --enable-fs_inet        use virtual HTTP/FTP filesystems
1706   --enable-fs_zip         now replaced by fs_archive
1707   --enable-geometry       use geometry class
1708   --enable-log            use logging system
1709   --enable-longlong       use wxLongLong class
1710   --enable-mimetype       use wxMimeTypesManager
1711   --enable-snglinst       use wxSingleInstanceChecker class
1712   --enable-stdpaths       use wxStandardPaths class
1713   --enable-stopwatch      use wxStopWatch class
1714   --enable-streams        use wxStream etc classes
1715   --enable-sysoptions     use wxSystemOptions
1716   --enable-tarstream      use wxTar streams
1717   --enable-textbuf        use wxTextBuffer class
1718   --enable-textfile       use wxTextFile class
1719   --enable-timer          use wxTimer class
1720   --enable-sound          use wxSound class
1721   --enable-mediactrl      use wxMediaCtrl class
1722   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1723   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1724   --enable-zipstream      use wxZip streams
1725   --enable-url            use wxURL class
1726   --enable-variant        use wxVariant class
1727   --enable-protocol       use wxProtocol class
1728   --enable-protocol-http  HTTP support in wxProtocol
1729   --enable-protocol-ftp   FTP support in wxProtocol
1730   --enable-protocol-file  FILE support in wxProtocol
1731   --enable-threads        use threads
1732   --enable-docview        use document view architecture
1733   --enable-help           use help subsystem
1734   --enable-mshtmlhelp     use MS HTML Help (win32)
1735   --enable-html           use wxHTML sub-library
1736   --enable-htmlhelp       use wxHTML-based help
1737   --enable-xrc            use XRC resources sub-library
1738   --enable-aui            use AUI docking library
1739   --enable-stc            use wxStyledTextCtrl library
1740   --enable-constraints    use layout-constraints system
1741   --enable-printarch      use printing architecture
1742   --enable-mdi            use multiple document interface architecture
1743   --enable-mdidoc         use docview architecture with MDI
1744   --enable-loggui         use standard GUI logger
1745   --enable-logwin         use wxLogWindow
1746   --enable-logdialog      use wxLogDialog
1747   --enable-webkit         use wxWebKitCtrl (Mac)
1748   --enable-richtext       use wxRichTextCtrl
1749   --enable-graphics_ctx   use graphics context 2D drawing API
1750   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1751   --enable-svg            use wxSVGFileDC device context
1752   --enable-clipboard      use wxClipboard class
1753   --enable-dnd            use Drag'n'Drop classes
1754   --enable-metafile       use win32 metafiles
1755   --disable-controls      disable compilation of all standard controls
1756   --enable-accel          use accelerators
1757   --enable-animatectrl    use wxAnimationCtrl class
1758   --enable-button         use wxButton class
1759   --enable-bmpbutton      use wxBitmapButton class
1760   --enable-bmpcombobox    use wxBitmapComboBox class
1761   --enable-calendar       use wxCalendarCtrl class
1762   --enable-caret          use wxCaret class
1763   --enable-checkbox       use wxCheckBox class
1764   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1765   --enable-choice         use wxChoice class
1766   --enable-choicebook     use wxChoicebook class
1767   --enable-collpane       use wxCollapsiblePane class
1768   --enable-colourpicker   use wxColourPickerCtrl class
1769   --enable-combobox       use wxComboBox class
1770   --enable-comboctrl      use wxComboCtrl class
1771   --enable-datepick       use wxDatePickerCtrl class
1772   --enable-dirpicker      use wxDirPickerCtrl class
1773   --enable-display        use wxDisplay class
1774   --enable-detect_sm      use code to detect X11 session manager
1775   --enable-editablebox    use wxEditableListBox class
1776   --enable-filepicker     use wxFilePickerCtrl class
1777   --enable-fontpicker     use wxFontPickerCtrl class
1778   --enable-gauge          use wxGauge class
1779   --enable-grid           use wxGrid class
1780   --enable-dataviewctrl   use wxDataViewCtrl class
1781   --enable-hyperlink      use wxHyperlinkCtrl class
1782   --enable-imaglist       use wxImageList class
1783   --enable-listbook       use wxListbook class
1784   --enable-listbox        use wxListBox class
1785   --enable-listctrl       use wxListCtrl class
1786   --enable-notebook       use wxNotebook class
1787   --enable-odcombobox     use wxOwnerDrawnComboBox class
1788   --enable-radiobox       use wxRadioBox class
1789   --enable-radiobtn       use wxRadioButton class
1790   --enable-sash           use wxSashWindow class
1791   --enable-scrollbar      use wxScrollBar class and scrollable windows
1792   --enable-searchctrl     use wxSearchCtrl class
1793   --enable-slider         use wxSlider class
1794   --enable-spinbtn        use wxSpinButton class
1795   --enable-spinctrl       use wxSpinCtrl class
1796   --enable-splitter       use wxSplitterWindow class
1797   --enable-statbmp        use wxStaticBitmap class
1798   --enable-statbox        use wxStaticBox class
1799   --enable-statline       use wxStaticLine class
1800   --enable-stattext       use wxStaticText class
1801   --enable-statusbar      use wxStatusBar class
1802   --enable-tabdialog      use wxTabControl class
1803   --enable-taskbaricon    use wxTaskBarIcon class
1804   --enable-textctrl       use wxTextCtrl class
1805   --enable-togglebtn      use wxToggleButton class
1806   --enable-toolbar        use wxToolBar class
1807   --enable-tbarnative     use native wxToolBar class
1808   --enable-treebook       use wxTreebook class
1809   --enable-toolbook       use wxToolbook class
1810   --enable-treectrl       use wxTreeCtrl class
1811   --enable-tipwindow      use wxTipWindow class
1812   --enable-popupwin       use wxPopUpWindow class
1813   --enable-commondlg      use all common dialogs
1814   --enable-aboutdlg       use wxAboutBox
1815   --enable-choicedlg      use wxChoiceDialog
1816   --enable-coldlg         use wxColourDialog
1817   --enable-filedlg        use wxFileDialog
1818   --enable-finddlg        use wxFindReplaceDialog
1819   --enable-fontdlg        use wxFontDialog
1820   --enable-dirdlg         use wxDirDialog
1821   --enable-msgdlg         use wxMessageDialog
1822   --enable-numberdlg      use wxNumberEntryDialog
1823   --enable-splash         use wxSplashScreen
1824   --enable-textdlg        use wxTextDialog
1825   --enable-tipdlg         use startup tips
1826   --enable-progressdlg    use wxProgressDialog
1827   --enable-wizarddlg      use wxWizard
1828   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1829   --enable-miniframe      use wxMiniFrame class
1830   --enable-tooltips       use wxToolTip class
1831   --enable-splines        use spline drawing code
1832   --enable-mousewheel     use mousewheel
1833   --enable-validators     use wxValidator and derived classes
1834   --enable-busyinfo       use wxBusyInfo
1835   --enable-joystick       use wxJoystick
1836   --enable-metafiles      use wxMetaFile (Win32 only)
1837   --enable-dragimage      use wxDragImage
1838   --enable-accessibility  enable accessibility support
1839   --enable-dccache        cache temporary wxDC objects (Win32 only)
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   --disable-largefile     omit support for large files
1850   --disable-gtktest       do not try to compile and run a test GTK+ program
1851   --disable-gtktest       Do not try to compile and run a test GTK program
1852   --disable-sdltest       Do not try to compile and run a test SDL program
1853   --enable-omf            use OMF object format (OS/2)
1854   --disable-dependency-tracking
1855                           don't use dependency tracking even if the compiler
1856                           can
1857   --disable-precomp-headers
1858                           don't use precompiled headers even if compiler can
1859
1860 Optional Packages:
1861   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1862   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1863   --without-subdirs       don't generate makefiles for samples/demos/...
1864   --with-flavour=NAME     specify a name to identify this build
1865   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1866   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1867   --with-motif            use Motif/Lesstif
1868   --with-mac              use Mac OS X
1869   --with-cocoa            use Cocoa
1870   --with-wine             use Wine
1871   --with-msw              use MS-Windows
1872   --with-pm               use OS/2 Presentation Manager
1873   --with-mgl              use SciTech MGL
1874   --with-directfb         use DirectFB
1875   --with-microwin         use MicroWindows
1876   --with-x11              use X11
1877   --with-libpng           use libpng (PNG image format)
1878   --with-libjpeg          use libjpeg (JPEG file format)
1879   --with-libtiff          use libtiff (TIFF file format)
1880   --with-libxpm           use libxpm (XPM file format)
1881   --with-libmspack        use libmspack (CHM help files loading)
1882   --without-gnomeprint    don't use GNOME printing libraries
1883   --with-gnomevfs         use GNOME VFS for associating MIME types
1884   --with-hildon           use Hildon framework for Nokia 770
1885   --with-opengl           use OpenGL (or Mesa)
1886   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1887   --with-sdl              use SDL for audio on Unix
1888   --with-regex            enable support for wxRegEx class
1889   --with-zlib             use zlib for LZW compression
1890   --with-odbc             use the IODBC and wxODBC classes
1891   --with-expat            enable XML support using expat parser
1892   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1893   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1894   --with-x                use the X Window System
1895   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1896   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1897   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1898   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1899   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1900
1901 Some influential environment variables:
1902   CC          C compiler command
1903   CFLAGS      C compiler flags
1904   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1905               nonstandard directory <lib dir>
1906   LIBS        libraries to pass to the linker, e.g. -l<library>
1907   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1908               you have headers in a nonstandard directory <include dir>
1909   CPP         C preprocessor
1910   CXX         C++ compiler command
1911   CXXFLAGS    C++ compiler flags
1912   PKG_CONFIG  path to pkg-config utility
1913   DIRECTFB_CFLAGS
1914               C compiler flags for DIRECTFB, overriding pkg-config
1915   DIRECTFB_LIBS
1916               linker flags for DIRECTFB, overriding pkg-config
1917   XMKMF       Path to xmkmf, Makefile generator for X Window System
1918   PANGOX_CFLAGS
1919               C compiler flags for PANGOX, overriding pkg-config
1920   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1921   PANGOFT2_CFLAGS
1922               C compiler flags for PANGOFT2, overriding pkg-config
1923   PANGOFT2_LIBS
1924               linker flags for PANGOFT2, overriding pkg-config
1925   PANGOXFT_CFLAGS
1926               C compiler flags for PANGOXFT, overriding pkg-config
1927   PANGOXFT_LIBS
1928               linker flags for PANGOXFT, overriding pkg-config
1929   LIBGNOMEPRINTUI_CFLAGS
1930               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1931   LIBGNOMEPRINTUI_LIBS
1932               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1933   GNOMEVFS_CFLAGS
1934               C compiler flags for GNOMEVFS, overriding pkg-config
1935   GNOMEVFS_LIBS
1936               linker flags for GNOMEVFS, overriding pkg-config
1937   HILDON_CFLAGS
1938               C compiler flags for HILDON, overriding pkg-config
1939   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1940   CAIRO_CFLAGS
1941               C compiler flags for CAIRO, overriding pkg-config
1942   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1943   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1944   GST_LIBS    linker flags for GST, overriding pkg-config
1945
1946 Use these variables to override the choices made by `configure' or to help
1947 it to find libraries and programs with nonstandard names/locations.
1948
1949 Report bugs to <wx-dev@lists.wxwidgets.org>.
1950 _ACEOF
1951 ac_status=$?
1952 fi
1953
1954 if test "$ac_init_help" = "recursive"; then
1955   # If there are subdirs, report their specific --help.
1956   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1957     test -d "$ac_dir" || continue
1958     ac_builddir=.
1959
1960 case "$ac_dir" in
1961 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1962 *)
1963   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1964   # A ".." for each directory in $ac_dir_suffix.
1965   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1966   case $ac_top_builddir_sub in
1967   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1968   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1969   esac ;;
1970 esac
1971 ac_abs_top_builddir=$ac_pwd
1972 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1973 # for backward compatibility:
1974 ac_top_builddir=$ac_top_build_prefix
1975
1976 case $srcdir in
1977   .)  # We are building in place.
1978     ac_srcdir=.
1979     ac_top_srcdir=$ac_top_builddir_sub
1980     ac_abs_top_srcdir=$ac_pwd ;;
1981   [\\/]* | ?:[\\/]* )  # Absolute name.
1982     ac_srcdir=$srcdir$ac_dir_suffix;
1983     ac_top_srcdir=$srcdir
1984     ac_abs_top_srcdir=$srcdir ;;
1985   *) # Relative name.
1986     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1987     ac_top_srcdir=$ac_top_build_prefix$srcdir
1988     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1989 esac
1990 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1991
1992     cd "$ac_dir" || { ac_status=$?; continue; }
1993     # Check for guested configure.
1994     if test -f "$ac_srcdir/configure.gnu"; then
1995       echo &&
1996       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1997     elif test -f "$ac_srcdir/configure"; then
1998       echo &&
1999       $SHELL "$ac_srcdir/configure" --help=recursive
2000     else
2001       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2002     fi || ac_status=$?
2003     cd "$ac_pwd" || { ac_status=$?; break; }
2004   done
2005 fi
2006
2007 test -n "$ac_init_help" && exit $ac_status
2008 if $ac_init_version; then
2009   cat <<\_ACEOF
2010 wxWidgets configure 2.9.0
2011 generated by GNU Autoconf 2.61
2012
2013 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2014 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2015 This configure script is free software; the Free Software Foundation
2016 gives unlimited permission to copy, distribute and modify it.
2017 _ACEOF
2018   exit
2019 fi
2020 cat >config.log <<_ACEOF
2021 This file contains any messages produced by compilers while
2022 running configure, to aid debugging if configure makes a mistake.
2023
2024 It was created by wxWidgets $as_me 2.9.0, which was
2025 generated by GNU Autoconf 2.61.  Invocation command line was
2026
2027   $ $0 $@
2028
2029 _ACEOF
2030 exec 5>>config.log
2031 {
2032 cat <<_ASUNAME
2033 ## --------- ##
2034 ## Platform. ##
2035 ## --------- ##
2036
2037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2042
2043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2044 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2045
2046 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2047 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2049 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2050 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2051 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2052 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2053
2054 _ASUNAME
2055
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061   echo "PATH: $as_dir"
2062 done
2063 IFS=$as_save_IFS
2064
2065 } >&5
2066
2067 cat >&5 <<_ACEOF
2068
2069
2070 ## ----------- ##
2071 ## Core tests. ##
2072 ## ----------- ##
2073
2074 _ACEOF
2075
2076
2077 # Keep a trace of the command line.
2078 # Strip out --no-create and --no-recursion so they do not pile up.
2079 # Strip out --silent because we don't want to record it for future runs.
2080 # Also quote any args containing shell meta-characters.
2081 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_configure_args=
2083 ac_configure_args0=
2084 ac_configure_args1=
2085 ac_must_keep_next=false
2086 for ac_pass in 1 2
2087 do
2088   for ac_arg
2089   do
2090     case $ac_arg in
2091     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093     | -silent | --silent | --silen | --sile | --sil)
2094       continue ;;
2095     *\'*)
2096       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097     esac
2098     case $ac_pass in
2099     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2100     2)
2101       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2102       if test $ac_must_keep_next = true; then
2103         ac_must_keep_next=false # Got value, back to normal.
2104       else
2105         case $ac_arg in
2106           *=* | --config-cache | -C | -disable-* | --disable-* \
2107           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109           | -with-* | --with-* | -without-* | --without-* | --x)
2110             case "$ac_configure_args0 " in
2111               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112             esac
2113             ;;
2114           -* ) ac_must_keep_next=true ;;
2115         esac
2116       fi
2117       ac_configure_args="$ac_configure_args '$ac_arg'"
2118       ;;
2119     esac
2120   done
2121 done
2122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2124
2125 # When interrupted or exit'd, cleanup temporary files, and complete
2126 # config.log.  We remove comments because anyway the quotes in there
2127 # would cause problems or look ugly.
2128 # WARNING: Use '\'' to represent an apostrophe within the trap.
2129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130 trap 'exit_status=$?
2131   # Save into config.log some information that might help in debugging.
2132   {
2133     echo
2134
2135     cat <<\_ASBOX
2136 ## ---------------- ##
2137 ## Cache variables. ##
2138 ## ---------------- ##
2139 _ASBOX
2140     echo
2141     # The following way of writing the cache mishandles newlines in values,
2142 (
2143   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144     eval ac_val=\$$ac_var
2145     case $ac_val in #(
2146     *${as_nl}*)
2147       case $ac_var in #(
2148       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2149 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2150       esac
2151       case $ac_var in #(
2152       _ | IFS | as_nl) ;; #(
2153       *) $as_unset $ac_var ;;
2154       esac ;;
2155     esac
2156   done
2157   (set) 2>&1 |
2158     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2159     *${as_nl}ac_space=\ *)
2160       sed -n \
2161         "s/'\''/'\''\\\\'\'''\''/g;
2162           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2163       ;; #(
2164     *)
2165       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2166       ;;
2167     esac |
2168     sort
2169 )
2170     echo
2171
2172     cat <<\_ASBOX
2173 ## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##
2176 _ASBOX
2177     echo
2178     for ac_var in $ac_subst_vars
2179     do
2180       eval ac_val=\$$ac_var
2181       case $ac_val in
2182       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2183       esac
2184       echo "$ac_var='\''$ac_val'\''"
2185     done | sort
2186     echo
2187
2188     if test -n "$ac_subst_files"; then
2189       cat <<\_ASBOX
2190 ## ------------------- ##
2191 ## File substitutions. ##
2192 ## ------------------- ##
2193 _ASBOX
2194       echo
2195       for ac_var in $ac_subst_files
2196       do
2197         eval ac_val=\$$ac_var
2198         case $ac_val in
2199         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200         esac
2201         echo "$ac_var='\''$ac_val'\''"
2202       done | sort
2203       echo
2204     fi
2205
2206     if test -s confdefs.h; then
2207       cat <<\_ASBOX
2208 ## ----------- ##
2209 ## confdefs.h. ##
2210 ## ----------- ##
2211 _ASBOX
2212       echo
2213       cat confdefs.h
2214       echo
2215     fi
2216     test "$ac_signal" != 0 &&
2217       echo "$as_me: caught signal $ac_signal"
2218     echo "$as_me: exit $exit_status"
2219   } >&5
2220   rm -f core *.core core.conftest.* &&
2221     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2222     exit $exit_status
2223 ' 0
2224 for ac_signal in 1 2 13 15; do
2225   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2226 done
2227 ac_signal=0
2228
2229 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2230 rm -f -r conftest* confdefs.h
2231
2232 # Predefined preprocessor variables.
2233
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_NAME "$PACKAGE_NAME"
2236 _ACEOF
2237
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2241 _ACEOF
2242
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2246 _ACEOF
2247
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_STRING "$PACKAGE_STRING"
2251 _ACEOF
2252
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2256 _ACEOF
2257
2258
2259 # Let the site file select an alternate cache file if it wants to.
2260 # Prefer explicitly selected file to automatically selected ones.
2261 if test -n "$CONFIG_SITE"; then
2262   set x "$CONFIG_SITE"
2263 elif test "x$prefix" != xNONE; then
2264   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2265 else
2266   set x "$ac_default_prefix/share/config.site" \
2267         "$ac_default_prefix/etc/config.site"
2268 fi
2269 shift
2270 for ac_site_file
2271 do
2272   if test -r "$ac_site_file"; then
2273     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2274 echo "$as_me: loading site script $ac_site_file" >&6;}
2275     sed 's/^/| /' "$ac_site_file" >&5
2276     . "$ac_site_file"
2277   fi
2278 done
2279
2280 if test -r "$cache_file"; then
2281   # Some versions of bash will fail to source /dev/null (special
2282   # files actually), so we avoid doing that.
2283   if test -f "$cache_file"; then
2284     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2285 echo "$as_me: loading cache $cache_file" >&6;}
2286     case $cache_file in
2287       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288       *)                      . "./$cache_file";;
2289     esac
2290   fi
2291 else
2292   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2293 echo "$as_me: creating cache $cache_file" >&6;}
2294   >$cache_file
2295 fi
2296
2297 # Check that the precious variables saved in the cache have kept the same
2298 # value.
2299 ac_cache_corrupted=false
2300 for ac_var in $ac_precious_vars; do
2301   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302   eval ac_new_set=\$ac_env_${ac_var}_set
2303   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304   eval ac_new_val=\$ac_env_${ac_var}_value
2305   case $ac_old_set,$ac_new_set in
2306     set,)
2307       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2309       ac_cache_corrupted=: ;;
2310     ,set)
2311       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2312 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2313       ac_cache_corrupted=: ;;
2314     ,);;
2315     *)
2316       if test "x$ac_old_val" != "x$ac_new_val"; then
2317         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2318 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2319         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2320 echo "$as_me:   former value:  $ac_old_val" >&2;}
2321         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2322 echo "$as_me:   current value: $ac_new_val" >&2;}
2323         ac_cache_corrupted=:
2324       fi;;
2325   esac
2326   # Pass precious variables to config.status.
2327   if test "$ac_new_set" = set; then
2328     case $ac_new_val in
2329     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330     *) ac_arg=$ac_var=$ac_new_val ;;
2331     esac
2332     case " $ac_configure_args " in
2333       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2334       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2335     esac
2336   fi
2337 done
2338 if $ac_cache_corrupted; then
2339   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2340 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2341   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2342 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2343    { (exit 1); exit 1; }; }
2344 fi
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370 ac_ext=c
2371 ac_cpp='$CPP $CPPFLAGS'
2372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375
2376
2377
2378
2379
2380 ac_aux_dir=
2381 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2382   if test -f "$ac_dir/install-sh"; then
2383     ac_aux_dir=$ac_dir
2384     ac_install_sh="$ac_aux_dir/install-sh -c"
2385     break
2386   elif test -f "$ac_dir/install.sh"; then
2387     ac_aux_dir=$ac_dir
2388     ac_install_sh="$ac_aux_dir/install.sh -c"
2389     break
2390   elif test -f "$ac_dir/shtool"; then
2391     ac_aux_dir=$ac_dir
2392     ac_install_sh="$ac_aux_dir/shtool install -c"
2393     break
2394   fi
2395 done
2396 if test -z "$ac_aux_dir"; then
2397   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2398 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2399    { (exit 1); exit 1; }; }
2400 fi
2401
2402 # These three variables are undocumented and unsupported,
2403 # and are intended to be withdrawn in a future Autoconf release.
2404 # They can cause serious problems if a builder's source tree is in a directory
2405 # whose full name contains unusual characters.
2406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2408 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2409
2410
2411 # Make sure we can run config.sub.
2412 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2413   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2414 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2415    { (exit 1); exit 1; }; }
2416
2417 { echo "$as_me:$LINENO: checking build system type" >&5
2418 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2419 if test "${ac_cv_build+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   ac_build_alias=$build_alias
2423 test "x$ac_build_alias" = x &&
2424   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2425 test "x$ac_build_alias" = x &&
2426   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2427 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2428    { (exit 1); exit 1; }; }
2429 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2430   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2431 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2432    { (exit 1); exit 1; }; }
2433
2434 fi
2435 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2436 echo "${ECHO_T}$ac_cv_build" >&6; }
2437 case $ac_cv_build in
2438 *-*-*) ;;
2439 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2440 echo "$as_me: error: invalid value of canonical build" >&2;}
2441    { (exit 1); exit 1; }; };;
2442 esac
2443 build=$ac_cv_build
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_build
2446 shift
2447 build_cpu=$1
2448 build_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 build_os=$*
2453 IFS=$ac_save_IFS
2454 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 { echo "$as_me:$LINENO: checking host system type" >&5
2458 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2459 if test "${ac_cv_host+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   if test "x$host_alias" = x; then
2463   ac_cv_host=$ac_cv_build
2464 else
2465   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2466     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2467 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2468    { (exit 1); exit 1; }; }
2469 fi
2470
2471 fi
2472 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2473 echo "${ECHO_T}$ac_cv_host" >&6; }
2474 case $ac_cv_host in
2475 *-*-*) ;;
2476 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2477 echo "$as_me: error: invalid value of canonical host" >&2;}
2478    { (exit 1); exit 1; }; };;
2479 esac
2480 host=$ac_cv_host
2481 ac_save_IFS=$IFS; IFS='-'
2482 set x $ac_cv_host
2483 shift
2484 host_cpu=$1
2485 host_vendor=$2
2486 shift; shift
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2489 host_os=$*
2490 IFS=$ac_save_IFS
2491 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2492
2493
2494 { echo "$as_me:$LINENO: checking target system type" >&5
2495 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2496 if test "${ac_cv_target+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   if test "x$target_alias" = x; then
2500   ac_cv_target=$ac_cv_host
2501 else
2502   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2504 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2505    { (exit 1); exit 1; }; }
2506 fi
2507
2508 fi
2509 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2510 echo "${ECHO_T}$ac_cv_target" >&6; }
2511 case $ac_cv_target in
2512 *-*-*) ;;
2513 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2514 echo "$as_me: error: invalid value of canonical target" >&2;}
2515    { (exit 1); exit 1; }; };;
2516 esac
2517 target=$ac_cv_target
2518 ac_save_IFS=$IFS; IFS='-'
2519 set x $ac_cv_target
2520 shift
2521 target_cpu=$1
2522 target_vendor=$2
2523 shift; shift
2524 # Remember, the first character of IFS is used to create $*,
2525 # except with old shells:
2526 target_os=$*
2527 IFS=$ac_save_IFS
2528 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2529
2530
2531 # The aliases save the names the user supplied, while $host etc.
2532 # will get canonicalized.
2533 test -n "$target_alias" &&
2534   test "$program_prefix$program_suffix$program_transform_name" = \
2535     NONENONEs,x,x, &&
2536   program_prefix=${target_alias}-
2537
2538
2539
2540 wx_major_version_number=2
2541 wx_minor_version_number=9
2542 wx_release_number=0
2543 wx_subrelease_number=0
2544
2545 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2546 WX_VERSION=$WX_RELEASE.$wx_release_number
2547 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2548
2549 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2550
2551
2552 wx_top_builddir="`pwd`"
2553
2554
2555
2556
2557 USE_UNIX=1
2558 USE_OS2=0
2559 USE_WIN32=0
2560 USE_DOS=0
2561 USE_BEOS=0
2562 USE_MAC=0
2563
2564 USE_AIX=
2565 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2566 USE_GNU=                            USE_HPUX=
2567 USE_LINUX=
2568 USE_NETBSD=
2569 USE_OPENBSD=
2570 USE_OSF=                            USE_SGI=
2571 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2572 USE_ULTRIX=
2573 USE_UNIXWARE=
2574
2575 USE_ALPHA=
2576
2577 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2578
2579 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2580
2581 DEFAULT_wxUSE_COCOA=0
2582 DEFAULT_wxUSE_GTK=0
2583 DEFAULT_wxUSE_MAC=0
2584 DEFAULT_wxUSE_MGL=0
2585 DEFAULT_wxUSE_MICROWIN=0
2586 DEFAULT_wxUSE_MOTIF=0
2587 DEFAULT_wxUSE_MSW=0
2588 DEFAULT_wxUSE_PM=0
2589 DEFAULT_wxUSE_X11=0
2590 DEFAULT_wxUSE_DFB=0
2591
2592 DEFAULT_DEFAULT_wxUSE_COCOA=0
2593 DEFAULT_DEFAULT_wxUSE_GTK=0
2594 DEFAULT_DEFAULT_wxUSE_MAC=0
2595 DEFAULT_DEFAULT_wxUSE_MGL=0
2596 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2597 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2598 DEFAULT_DEFAULT_wxUSE_MSW=0
2599 DEFAULT_DEFAULT_wxUSE_PM=0
2600 DEFAULT_DEFAULT_wxUSE_X11=0
2601 DEFAULT_DEFAULT_wxUSE_DFB=0
2602
2603 PROGRAM_EXT=
2604 SO_SUFFIX=so
2605 SAMPLES_RPATH_FLAG=
2606 SAMPLES_RPATH_POSTLINK=
2607
2608 DEFAULT_STD_FLAG=yes
2609
2610 case "${host}" in
2611   *-hp-hpux* )
2612     USE_HPUX=1
2613     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2614     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2615     SO_SUFFIX=sl
2616     cat >>confdefs.h <<\_ACEOF
2617 #define __HPUX__ 1
2618 _ACEOF
2619
2620
2621             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2622   ;;
2623   *-*-linux* )
2624     USE_LINUX=1
2625     cat >>confdefs.h <<\_ACEOF
2626 #define __LINUX__ 1
2627 _ACEOF
2628
2629     TMP=`uname -m`
2630     if test "x$TMP" = "xalpha"; then
2631       USE_ALPHA=1
2632       cat >>confdefs.h <<\_ACEOF
2633 #define __ALPHA__ 1
2634 _ACEOF
2635
2636     fi
2637     DEFAULT_DEFAULT_wxUSE_GTK=1
2638   ;;
2639   *-*-gnu* | *-*-k*bsd*-gnu )
2640     USE_GNU=1
2641     TMP=`uname -m`
2642     if test "x$TMP" = "xalpha"; then
2643       USE_ALPHA=1
2644       cat >>confdefs.h <<\_ACEOF
2645 #define __ALPHA__ 1
2646 _ACEOF
2647
2648     fi
2649     DEFAULT_DEFAULT_wxUSE_GTK=1
2650   ;;
2651   *-*-irix5* | *-*-irix6* )
2652     USE_SGI=1
2653     USE_SVR4=1
2654     cat >>confdefs.h <<\_ACEOF
2655 #define __SGI__ 1
2656 _ACEOF
2657
2658     cat >>confdefs.h <<\_ACEOF
2659 #define __SVR4__ 1
2660 _ACEOF
2661
2662     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2663   ;;
2664   *-*-solaris2* )
2665     USE_SUN=1
2666     USE_SOLARIS=1
2667     USE_SVR4=1
2668     cat >>confdefs.h <<\_ACEOF
2669 #define __SUN__ 1
2670 _ACEOF
2671
2672     cat >>confdefs.h <<\_ACEOF
2673 #define __SOLARIS__ 1
2674 _ACEOF
2675
2676     cat >>confdefs.h <<\_ACEOF
2677 #define __SVR4__ 1
2678 _ACEOF
2679
2680     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2681     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2682   ;;
2683   *-*-sunos4* )
2684     USE_SUN=1
2685     USE_SUNOS=1
2686     USE_BSD=1
2687     cat >>confdefs.h <<\_ACEOF
2688 #define __SUN__ 1
2689 _ACEOF
2690
2691     cat >>confdefs.h <<\_ACEOF
2692 #define __SUNOS__ 1
2693 _ACEOF
2694
2695     cat >>confdefs.h <<\_ACEOF
2696 #define __BSD__ 1
2697 _ACEOF
2698
2699     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2700   ;;
2701   *-*-freebsd*)
2702     USE_BSD=1
2703     USE_FREEBSD=1
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __FREEBSD__ 1
2706 _ACEOF
2707
2708     cat >>confdefs.h <<\_ACEOF
2709 #define __BSD__ 1
2710 _ACEOF
2711
2712     DEFAULT_DEFAULT_wxUSE_GTK=1
2713   ;;
2714   *-*-openbsd*|*-*-mirbsd*)
2715     USE_BSD=1
2716     USE_OPENBSD=1
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __OPENBSD__ 1
2719 _ACEOF
2720
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __BSD__ 1
2723 _ACEOF
2724
2725     DEFAULT_DEFAULT_wxUSE_GTK=1
2726   ;;
2727   *-*-netbsd*)
2728     USE_BSD=1
2729     USE_NETBSD=1
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __NETBSD__ 1
2732 _ACEOF
2733
2734     cat >>confdefs.h <<\_ACEOF
2735 #define __BSD__ 1
2736 _ACEOF
2737
2738     DEFAULT_DEFAULT_wxUSE_GTK=1
2739     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2740
2741             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2742   ;;
2743   *-*-osf* )
2744     USE_ALPHA=1
2745     USE_OSF=1
2746     cat >>confdefs.h <<\_ACEOF
2747 #define __ALPHA__ 1
2748 _ACEOF
2749
2750     cat >>confdefs.h <<\_ACEOF
2751 #define __OSF__ 1
2752 _ACEOF
2753
2754     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2755     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2756   ;;
2757   *-*-dgux5* )
2758     USE_ALPHA=1
2759     USE_SVR4=1
2760     cat >>confdefs.h <<\_ACEOF
2761 #define __ALPHA__ 1
2762 _ACEOF
2763
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __SVR4__ 1
2766 _ACEOF
2767
2768     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2769   ;;
2770   *-*-sysv5* )
2771     USE_SYSV=1
2772     USE_SVR4=1
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __SYSV__ 1
2775 _ACEOF
2776
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __SVR4__ 1
2779 _ACEOF
2780
2781     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2782   ;;
2783   *-*-aix* )
2784     USE_AIX=1
2785     USE_SYSV=1
2786     USE_SVR4=1
2787                         SO_SUFFIX=a
2788     cat >>confdefs.h <<\_ACEOF
2789 #define __AIX__ 1
2790 _ACEOF
2791
2792     cat >>confdefs.h <<\_ACEOF
2793 #define __SYSV__ 1
2794 _ACEOF
2795
2796     cat >>confdefs.h <<\_ACEOF
2797 #define __SVR4__ 1
2798 _ACEOF
2799
2800     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2801   ;;
2802
2803   *-*-*UnixWare*)
2804     USE_SYSV=1
2805     USE_SVR4=1
2806     USE_UNIXWARE=1
2807     cat >>confdefs.h <<\_ACEOF
2808 #define __UNIXWARE__ 1
2809 _ACEOF
2810
2811   ;;
2812
2813   *-*-cygwin* | *-*-mingw32* )
2814                 SO_SUFFIX=dll
2815     PROGRAM_EXT=".exe"
2816     DEFAULT_DEFAULT_wxUSE_MSW=1
2817   ;;
2818
2819   *-pc-msdosdjgpp )
2820     USE_UNIX=0
2821     USE_DOS=1
2822     cat >>confdefs.h <<\_ACEOF
2823 #define __DOS__ 1
2824 _ACEOF
2825
2826     PROGRAM_EXT=".exe"
2827     DEFAULT_DEFAULT_wxUSE_MGL=1
2828   ;;
2829
2830   *-pc-os2_emx | *-pc-os2-emx )
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __EMX__ 1
2833 _ACEOF
2834
2835     USE_OS2=1
2836     cat >>confdefs.h <<\_ACEOF
2837 #define __OS2__ 1
2838 _ACEOF
2839
2840     PROGRAM_EXT=".exe"
2841     DEFAULT_DEFAULT_wxUSE_PM=1
2842         CXX=gcc
2843     LDFLAGS="$LDFLAGS -Zcrtdll"
2844                         ac_executable_extensions=".exe"
2845     export ac_executable_extensions
2846             ac_save_IFS="$IFS"
2847     IFS='\\'
2848     ac_TEMP_PATH=
2849     for ac_dir in $PATH; do
2850       IFS=$ac_save_IFS
2851       if test -z "$ac_TEMP_PATH"; then
2852         ac_TEMP_PATH="$ac_dir"
2853       else
2854         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2855       fi
2856     done
2857     export PATH="$ac_TEMP_PATH"
2858     unset ac_TEMP_PATH
2859     DEFAULT_STD_FLAG=no
2860   ;;
2861
2862   *-*-darwin* )
2863         USE_BSD=1
2864     USE_DARWIN=1
2865     SO_SUFFIX=dylib
2866     cat >>confdefs.h <<\_ACEOF
2867 #define __BSD__ 1
2868 _ACEOF
2869
2870     cat >>confdefs.h <<\_ACEOF
2871 #define __DARWIN__ 1
2872 _ACEOF
2873
2874     cat >>confdefs.h <<\_ACEOF
2875 #define TARGET_CARBON 1
2876 _ACEOF
2877
2878     DEFAULT_DEFAULT_wxUSE_MAC=1
2879     DEFAULT_STD_FLAG=no
2880   ;;
2881   powerpc-apple-macos* )
2882         USE_UNIX=0
2883             ac_cv_c_bigendian=yes
2884     SO_SUFFIX=shlib
2885             DEFAULT_DEFAULT_wxUSE_MAC=1
2886     DEFAULT_STD_FLAG=no
2887   ;;
2888
2889   *-*-beos* )
2890         USE_BEOS=1
2891     cat >>confdefs.h <<\_ACEOF
2892 #define __BEOS__ 1
2893 _ACEOF
2894
2895   ;;
2896
2897   *)
2898     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2899 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2900     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2901 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2902
2903     DEFAULT_DEFAULT_wxUSE_X11=1
2904     DEFAULT_wxUSE_SHARED=no
2905 esac
2906
2907
2908
2909
2910           wx_arg_cache_file="configarg.cache"
2911           echo "loading argument cache $wx_arg_cache_file"
2912           rm -f ${wx_arg_cache_file}.tmp
2913           touch ${wx_arg_cache_file}.tmp
2914           touch ${wx_arg_cache_file}
2915
2916
2917 DEFAULT_wxUSE_ALL_FEATURES=yes
2918
2919 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2920 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2921
2922 DEFAULT_wxUSE_DMALLOC=no
2923 DEFAULT_wxUSE_LIBGNOMEVFS=no
2924 DEFAULT_wxUSE_LIBHILDON=no
2925 DEFAULT_wxUSE_LIBMSPACK=no
2926 DEFAULT_wxUSE_LIBSDL=no
2927 DEFAULT_wxUSE_ODBC=no
2928 DEFAULT_wxUSE_OPENGL=no
2929
2930 DEFAULT_wxUSE_ACCESSIBILITY=no
2931 DEFAULT_wxUSE_DATAVIEWCTRL=no
2932 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2933 DEFAULT_wxUSE_MEDIACTRL=no
2934 DEFAULT_wxUSE_TAB_DIALOG=no
2935
2936 DEFAULT_wxUSE_UNICODE_UTF8=auto
2937 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2938
2939 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2940
2941 DEFAULT_wxUSE_GTK2=yes
2942
2943 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2944
2945
2946 for toolkit in `echo $ALL_TOOLKITS`; do
2947   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2948   if test "x$LINE" != "x" ; then
2949     has_toolkit_in_cache=1
2950     eval "DEFAULT_$LINE"
2951     eval "CACHE_$toolkit=1"
2952
2953     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2954     if test "x$LINE" != "x" ; then
2955         eval "DEFAULT_$LINE"
2956     fi
2957   fi
2958 done
2959
2960
2961
2962
2963
2964           enablestring=disable
2965           defaultval=
2966           if test -z "$defaultval"; then
2967               if test x"$enablestring" = xdisable; then
2968                   defaultval=yes
2969               else
2970                   defaultval=no
2971               fi
2972           fi
2973
2974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2975 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2976           no_cache=0
2977           # Check whether --enable-gui was given.
2978 if test "${enable_gui+set}" = set; then
2979   enableval=$enable_gui;
2980                           if test "$enableval" = yes; then
2981                             wx_cv_use_gui='wxUSE_GUI=yes'
2982                           else
2983                             wx_cv_use_gui='wxUSE_GUI=no'
2984                           fi
2985
2986 else
2987
2988                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
2989                           if test "x$LINE" != x ; then
2990                             eval "DEFAULT_$LINE"
2991                           else
2992                             no_cache=1
2993                           fi
2994
2995                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2996
2997 fi
2998
2999
3000           eval "$wx_cv_use_gui"
3001           if test "$no_cache" != 1; then
3002             echo $wx_cv_use_gui >> ${wx_arg_cache_file}.tmp
3003           fi
3004
3005           if test x"$enablestring" = xdisable; then
3006             if test $wxUSE_GUI = yes; then
3007               result=no
3008             else
3009               result=yes
3010             fi
3011           else
3012             result=$wxUSE_GUI
3013           fi
3014
3015           { echo "$as_me:$LINENO: result: $result" >&5
3016 echo "${ECHO_T}$result" >&6; }
3017
3018
3019           enablestring=
3020           defaultval=
3021           if test -z "$defaultval"; then
3022               if test x"$enablestring" = xdisable; then
3023                   defaultval=yes
3024               else
3025                   defaultval=no
3026               fi
3027           fi
3028
3029           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3030 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3031           no_cache=0
3032           # Check whether --enable-monolithic was given.
3033 if test "${enable_monolithic+set}" = set; then
3034   enableval=$enable_monolithic;
3035                           if test "$enableval" = yes; then
3036                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3037                           else
3038                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3039                           fi
3040
3041 else
3042
3043                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3044                           if test "x$LINE" != x ; then
3045                             eval "DEFAULT_$LINE"
3046                           else
3047                             no_cache=1
3048                           fi
3049
3050                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3051
3052 fi
3053
3054
3055           eval "$wx_cv_use_monolithic"
3056           if test "$no_cache" != 1; then
3057             echo $wx_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
3058           fi
3059
3060           if test x"$enablestring" = xdisable; then
3061             if test $wxUSE_MONOLITHIC = yes; then
3062               result=no
3063             else
3064               result=yes
3065             fi
3066           else
3067             result=$wxUSE_MONOLITHIC
3068           fi
3069
3070           { echo "$as_me:$LINENO: result: $result" >&5
3071 echo "${ECHO_T}$result" >&6; }
3072
3073
3074           enablestring=
3075           defaultval=
3076           if test -z "$defaultval"; then
3077               if test x"$enablestring" = xdisable; then
3078                   defaultval=yes
3079               else
3080                   defaultval=no
3081               fi
3082           fi
3083
3084           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3085 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3086           no_cache=0
3087           # Check whether --enable-plugins was given.
3088 if test "${enable_plugins+set}" = set; then
3089   enableval=$enable_plugins;
3090                           if test "$enableval" = yes; then
3091                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3092                           else
3093                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3094                           fi
3095
3096 else
3097
3098                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3099                           if test "x$LINE" != x ; then
3100                             eval "DEFAULT_$LINE"
3101                           else
3102                             no_cache=1
3103                           fi
3104
3105                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3106
3107 fi
3108
3109
3110           eval "$wx_cv_use_plugins"
3111           if test "$no_cache" != 1; then
3112             echo $wx_cv_use_plugins >> ${wx_arg_cache_file}.tmp
3113           fi
3114
3115           if test x"$enablestring" = xdisable; then
3116             if test $wxUSE_PLUGINS = yes; then
3117               result=no
3118             else
3119               result=yes
3120             fi
3121           else
3122             result=$wxUSE_PLUGINS
3123           fi
3124
3125           { echo "$as_me:$LINENO: result: $result" >&5
3126 echo "${ECHO_T}$result" >&6; }
3127
3128
3129           withstring=without
3130           defaultval=$wxUSE_ALL_FEATURES
3131           if test -z "$defaultval"; then
3132               if test x"$withstring" = xwithout; then
3133                   defaultval=yes
3134               else
3135                   defaultval=no
3136               fi
3137           fi
3138           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3139 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3140           no_cache=0
3141
3142 # Check whether --with-subdirs was given.
3143 if test "${with_subdirs+set}" = set; then
3144   withval=$with_subdirs;
3145                         if test "$withval" = yes; then
3146                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3147                         else
3148                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3149                         fi
3150
3151 else
3152
3153                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3154                         if test "x$LINE" != x ; then
3155                           eval "DEFAULT_$LINE"
3156                         else
3157                           no_cache=1
3158                         fi
3159
3160                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3161
3162 fi
3163
3164
3165           eval "$wx_cv_use_subdirs"
3166           if test "$no_cache" != 1; then
3167             echo $wx_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
3168           fi
3169
3170           if test x"$withstring" = xwithout; then
3171             if test $wxWITH_SUBDIRS = yes; then
3172               result=no
3173             else
3174               result=yes
3175             fi
3176           else
3177             result=$wxWITH_SUBDIRS
3178           fi
3179
3180           { echo "$as_me:$LINENO: result: $result" >&5
3181 echo "${ECHO_T}$result" >&6; }
3182
3183
3184 # Check whether --with-flavour was given.
3185 if test "${with_flavour+set}" = set; then
3186   withval=$with_flavour; WX_FLAVOUR="$withval"
3187 fi
3188
3189
3190           enablestring=
3191           defaultval=
3192           if test -z "$defaultval"; then
3193               if test x"$enablestring" = xdisable; then
3194                   defaultval=yes
3195               else
3196                   defaultval=no
3197               fi
3198           fi
3199
3200           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3201 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3202           no_cache=0
3203           # Check whether --enable-official_build was given.
3204 if test "${enable_official_build+set}" = set; then
3205   enableval=$enable_official_build;
3206                           if test "$enableval" = yes; then
3207                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3208                           else
3209                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3210                           fi
3211
3212 else
3213
3214                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3215                           if test "x$LINE" != x ; then
3216                             eval "DEFAULT_$LINE"
3217                           else
3218                             no_cache=1
3219                           fi
3220
3221                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3222
3223 fi
3224
3225
3226           eval "$wx_cv_use_official_build"
3227           if test "$no_cache" != 1; then
3228             echo $wx_cv_use_official_build >> ${wx_arg_cache_file}.tmp
3229           fi
3230
3231           if test x"$enablestring" = xdisable; then
3232             if test $wxUSE_OFFICIAL_BUILD = yes; then
3233               result=no
3234             else
3235               result=yes
3236             fi
3237           else
3238             result=$wxUSE_OFFICIAL_BUILD
3239           fi
3240
3241           { echo "$as_me:$LINENO: result: $result" >&5
3242 echo "${ECHO_T}$result" >&6; }
3243
3244 # Check whether --enable-vendor was given.
3245 if test "${enable_vendor+set}" = set; then
3246   enableval=$enable_vendor; VENDOR="$enableval"
3247 fi
3248
3249 if test "x$VENDOR" = "x"; then
3250     VENDOR="custom"
3251 fi
3252
3253
3254           enablestring=disable
3255           defaultval=
3256           if test -z "$defaultval"; then
3257               if test x"$enablestring" = xdisable; then
3258                   defaultval=yes
3259               else
3260                   defaultval=no
3261               fi
3262           fi
3263
3264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3265 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3266           no_cache=0
3267           # Check whether --enable-all-features was given.
3268 if test "${enable_all_features+set}" = set; then
3269   enableval=$enable_all_features;
3270                           if test "$enableval" = yes; then
3271                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3272                           else
3273                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3274                           fi
3275
3276 else
3277
3278                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3279                           if test "x$LINE" != x ; then
3280                             eval "DEFAULT_$LINE"
3281                           else
3282                             no_cache=1
3283                           fi
3284
3285                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3286
3287 fi
3288
3289
3290           eval "$wx_cv_use_all_features"
3291           if test "$no_cache" != 1; then
3292             echo $wx_cv_use_all_features >> ${wx_arg_cache_file}.tmp
3293           fi
3294
3295           if test x"$enablestring" = xdisable; then
3296             if test $wxUSE_ALL_FEATURES = yes; then
3297               result=no
3298             else
3299               result=yes
3300             fi
3301           else
3302             result=$wxUSE_ALL_FEATURES
3303           fi
3304
3305           { echo "$as_me:$LINENO: result: $result" >&5
3306 echo "${ECHO_T}$result" >&6; }
3307
3308
3309
3310 if test "$wxUSE_GUI" = "yes"; then
3311
3312
3313           enablestring=
3314           defaultval=
3315           if test -z "$defaultval"; then
3316               if test x"$enablestring" = xdisable; then
3317                   defaultval=yes
3318               else
3319                   defaultval=no
3320               fi
3321           fi
3322
3323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3324 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3325           no_cache=0
3326           # Check whether --enable-universal was given.
3327 if test "${enable_universal+set}" = set; then
3328   enableval=$enable_universal;
3329                           if test "$enableval" = yes; then
3330                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3331                           else
3332                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3333                           fi
3334
3335 else
3336
3337                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3338                           if test "x$LINE" != x ; then
3339                             eval "DEFAULT_$LINE"
3340                           else
3341                             no_cache=1
3342                           fi
3343
3344                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3345
3346 fi
3347
3348
3349           eval "$wx_cv_use_universal"
3350           if test "$no_cache" != 1; then
3351             echo $wx_cv_use_universal >> ${wx_arg_cache_file}.tmp
3352           fi
3353
3354           if test x"$enablestring" = xdisable; then
3355             if test $wxUSE_UNIVERSAL = yes; then
3356               result=no
3357             else
3358               result=yes
3359             fi
3360           else
3361             result=$wxUSE_UNIVERSAL
3362           fi
3363
3364           { echo "$as_me:$LINENO: result: $result" >&5
3365 echo "${ECHO_T}$result" >&6; }
3366
3367 if test "$wxUSE_UNIVERSAL" = "yes"; then
3368
3369 # Check whether --with-themes was given.
3370 if test "${with_themes+set}" = set; then
3371   withval=$with_themes; wxUNIV_THEMES="$withval"
3372 fi
3373
3374 fi
3375
3376
3377 # Check whether --with-gtk was given.
3378 if test "${with_gtk+set}" = set; then
3379   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3380 fi
3381
3382
3383 # Check whether --with-motif was given.
3384 if test "${with_motif+set}" = set; then
3385   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3386 fi
3387
3388
3389 # Check whether --with-mac was given.
3390 if test "${with_mac+set}" = set; then
3391   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3392 fi
3393
3394
3395 # Check whether --with-cocoa was given.
3396 if test "${with_cocoa+set}" = set; then
3397   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3398 fi
3399
3400
3401 # Check whether --with-wine was given.
3402 if test "${with_wine+set}" = set; then
3403   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3404 fi
3405
3406
3407 # Check whether --with-msw was given.
3408 if test "${with_msw+set}" = set; then
3409   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3410 fi
3411
3412
3413 # Check whether --with-pm was given.
3414 if test "${with_pm+set}" = set; then
3415   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3416 fi
3417
3418
3419 # Check whether --with-mgl was given.
3420 if test "${with_mgl+set}" = set; then
3421   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3422 fi
3423
3424
3425 # Check whether --with-directfb was given.
3426 if test "${with_directfb+set}" = set; then
3427   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3428 fi
3429
3430
3431 # Check whether --with-microwin was given.
3432 if test "${with_microwin+set}" = set; then
3433   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3434 fi
3435
3436
3437 # Check whether --with-x11 was given.
3438 if test "${with_x11+set}" = set; then
3439   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3440 fi
3441
3442
3443           enablestring=
3444           defaultval=
3445           if test -z "$defaultval"; then
3446               if test x"$enablestring" = xdisable; then
3447                   defaultval=yes
3448               else
3449                   defaultval=no
3450               fi
3451           fi
3452
3453           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3454 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3455           no_cache=0
3456           # Check whether --enable-nanox was given.
3457 if test "${enable_nanox+set}" = set; then
3458   enableval=$enable_nanox;
3459                           if test "$enableval" = yes; then
3460                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3461                           else
3462                             wx_cv_use_nanox='wxUSE_NANOX=no'
3463                           fi
3464
3465 else
3466
3467                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3468                           if test "x$LINE" != x ; then
3469                             eval "DEFAULT_$LINE"
3470                           else
3471                             no_cache=1
3472                           fi
3473
3474                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3475
3476 fi
3477
3478
3479           eval "$wx_cv_use_nanox"
3480           if test "$no_cache" != 1; then
3481             echo $wx_cv_use_nanox >> ${wx_arg_cache_file}.tmp
3482           fi
3483
3484           if test x"$enablestring" = xdisable; then
3485             if test $wxUSE_NANOX = yes; then
3486               result=no
3487             else
3488               result=yes
3489             fi
3490           else
3491             result=$wxUSE_NANOX
3492           fi
3493
3494           { echo "$as_me:$LINENO: result: $result" >&5
3495 echo "${ECHO_T}$result" >&6; }
3496
3497
3498 # Check whether --enable-gtk2 was given.
3499 if test "${enable_gtk2+set}" = set; then
3500   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3501 fi
3502
3503
3504           enablestring=
3505           defaultval=
3506           if test -z "$defaultval"; then
3507               if test x"$enablestring" = xdisable; then
3508                   defaultval=yes
3509               else
3510                   defaultval=no
3511               fi
3512           fi
3513
3514           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3515 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3516           no_cache=0
3517           # Check whether --enable-gpe was given.
3518 if test "${enable_gpe+set}" = set; then
3519   enableval=$enable_gpe;
3520                           if test "$enableval" = yes; then
3521                             wx_cv_use_gpe='wxUSE_GPE=yes'
3522                           else
3523                             wx_cv_use_gpe='wxUSE_GPE=no'
3524                           fi
3525
3526 else
3527
3528                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3529                           if test "x$LINE" != x ; then
3530                             eval "DEFAULT_$LINE"
3531                           else
3532                             no_cache=1
3533                           fi
3534
3535                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3536
3537 fi
3538
3539
3540           eval "$wx_cv_use_gpe"
3541           if test "$no_cache" != 1; then
3542             echo $wx_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3543           fi
3544
3545           if test x"$enablestring" = xdisable; then
3546             if test $wxUSE_GPE = yes; then
3547               result=no
3548             else
3549               result=yes
3550             fi
3551           else
3552             result=$wxUSE_GPE
3553           fi
3554
3555           { echo "$as_me:$LINENO: result: $result" >&5
3556 echo "${ECHO_T}$result" >&6; }
3557
3558
3559
3560
3561           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3562 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3563           no_cache=0
3564
3565 # Check whether --with-libpng was given.
3566 if test "${with_libpng+set}" = set; then
3567   withval=$with_libpng;
3568                         if test "$withval" = yes; then
3569                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3570                         elif test "$withval" = no; then
3571                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3572                         elif test "$withval" = sys; then
3573                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3574                         elif test "$withval" = builtin; then
3575                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3576                         else
3577                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3578 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3579    { (exit 1); exit 1; }; }
3580                         fi
3581
3582 else
3583
3584                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3585                         if test "x$LINE" != x ; then
3586                           eval "DEFAULT_$LINE"
3587                         else
3588                           no_cache=1
3589                         fi
3590
3591                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3592
3593 fi
3594
3595
3596           eval "$wx_cv_use_libpng"
3597           if test "$no_cache" != 1; then
3598             echo $wx_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3599           fi
3600
3601           if test "$wxUSE_LIBPNG" = yes; then
3602             { echo "$as_me:$LINENO: result: yes" >&5
3603 echo "${ECHO_T}yes" >&6; }
3604           elif test "$wxUSE_LIBPNG" = no; then
3605             { echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6; }
3607           elif test "$wxUSE_LIBPNG" = sys; then
3608             { echo "$as_me:$LINENO: result: system version" >&5
3609 echo "${ECHO_T}system version" >&6; }
3610           elif test "$wxUSE_LIBPNG" = builtin; then
3611             { echo "$as_me:$LINENO: result: builtin version" >&5
3612 echo "${ECHO_T}builtin version" >&6; }
3613           else
3614             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3615 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3616    { (exit 1); exit 1; }; }
3617           fi
3618
3619
3620           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3621 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3622           no_cache=0
3623
3624 # Check whether --with-libjpeg was given.
3625 if test "${with_libjpeg+set}" = set; then
3626   withval=$with_libjpeg;
3627                         if test "$withval" = yes; then
3628                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3629                         elif test "$withval" = no; then
3630                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3631                         elif test "$withval" = sys; then
3632                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3633                         elif test "$withval" = builtin; then
3634                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3635                         else
3636                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3637 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3638    { (exit 1); exit 1; }; }
3639                         fi
3640
3641 else
3642
3643                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3644                         if test "x$LINE" != x ; then
3645                           eval "DEFAULT_$LINE"
3646                         else
3647                           no_cache=1
3648                         fi
3649
3650                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3651
3652 fi
3653
3654
3655           eval "$wx_cv_use_libjpeg"
3656           if test "$no_cache" != 1; then
3657             echo $wx_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3658           fi
3659
3660           if test "$wxUSE_LIBJPEG" = yes; then
3661             { echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6; }
3663           elif test "$wxUSE_LIBJPEG" = no; then
3664             { echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6; }
3666           elif test "$wxUSE_LIBJPEG" = sys; then
3667             { echo "$as_me:$LINENO: result: system version" >&5
3668 echo "${ECHO_T}system version" >&6; }
3669           elif test "$wxUSE_LIBJPEG" = builtin; then
3670             { echo "$as_me:$LINENO: result: builtin version" >&5
3671 echo "${ECHO_T}builtin version" >&6; }
3672           else
3673             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3674 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3675    { (exit 1); exit 1; }; }
3676           fi
3677
3678
3679           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3680 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3681           no_cache=0
3682
3683 # Check whether --with-libtiff was given.
3684 if test "${with_libtiff+set}" = set; then
3685   withval=$with_libtiff;
3686                         if test "$withval" = yes; then
3687                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3688                         elif test "$withval" = no; then
3689                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3690                         elif test "$withval" = sys; then
3691                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3692                         elif test "$withval" = builtin; then
3693                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3694                         else
3695                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3696 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3697    { (exit 1); exit 1; }; }
3698                         fi
3699
3700 else
3701
3702                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3703                         if test "x$LINE" != x ; then
3704                           eval "DEFAULT_$LINE"
3705                         else
3706                           no_cache=1
3707                         fi
3708
3709                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3710
3711 fi
3712
3713
3714           eval "$wx_cv_use_libtiff"
3715           if test "$no_cache" != 1; then
3716             echo $wx_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3717           fi
3718
3719           if test "$wxUSE_LIBTIFF" = yes; then
3720             { echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6; }
3722           elif test "$wxUSE_LIBTIFF" = no; then
3723             { echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6; }
3725           elif test "$wxUSE_LIBTIFF" = sys; then
3726             { echo "$as_me:$LINENO: result: system version" >&5
3727 echo "${ECHO_T}system version" >&6; }
3728           elif test "$wxUSE_LIBTIFF" = builtin; then
3729             { echo "$as_me:$LINENO: result: builtin version" >&5
3730 echo "${ECHO_T}builtin version" >&6; }
3731           else
3732             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3733 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3734    { (exit 1); exit 1; }; }
3735           fi
3736
3737
3738           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3739 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3740           no_cache=0
3741
3742 # Check whether --with-libxpm was given.
3743 if test "${with_libxpm+set}" = set; then
3744   withval=$with_libxpm;
3745                         if test "$withval" = yes; then
3746                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3747                         elif test "$withval" = no; then
3748                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3749                         elif test "$withval" = sys; then
3750                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3751                         elif test "$withval" = builtin; then
3752                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3753                         else
3754                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3755 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3756    { (exit 1); exit 1; }; }
3757                         fi
3758
3759 else
3760
3761                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3762                         if test "x$LINE" != x ; then
3763                           eval "DEFAULT_$LINE"
3764                         else
3765                           no_cache=1
3766                         fi
3767
3768                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3769
3770 fi
3771
3772
3773           eval "$wx_cv_use_libxpm"
3774           if test "$no_cache" != 1; then
3775             echo $wx_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3776           fi
3777
3778           if test "$wxUSE_LIBXPM" = yes; then
3779             { echo "$as_me:$LINENO: result: yes" >&5
3780 echo "${ECHO_T}yes" >&6; }
3781           elif test "$wxUSE_LIBXPM" = no; then
3782             { echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6; }
3784           elif test "$wxUSE_LIBXPM" = sys; then
3785             { echo "$as_me:$LINENO: result: system version" >&5
3786 echo "${ECHO_T}system version" >&6; }
3787           elif test "$wxUSE_LIBXPM" = builtin; then
3788             { echo "$as_me:$LINENO: result: builtin version" >&5
3789 echo "${ECHO_T}builtin version" >&6; }
3790           else
3791             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3792 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3793    { (exit 1); exit 1; }; }
3794           fi
3795
3796
3797           withstring=
3798           defaultval=$wxUSE_ALL_FEATURES
3799           if test -z "$defaultval"; then
3800               if test x"$withstring" = xwithout; then
3801                   defaultval=yes
3802               else
3803                   defaultval=no
3804               fi
3805           fi
3806           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3807 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3808           no_cache=0
3809
3810 # Check whether --with-libmspack was given.
3811 if test "${with_libmspack+set}" = set; then
3812   withval=$with_libmspack;
3813                         if test "$withval" = yes; then
3814                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3815                         else
3816                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3817                         fi
3818
3819 else
3820
3821                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3822                         if test "x$LINE" != x ; then
3823                           eval "DEFAULT_$LINE"
3824                         else
3825                           no_cache=1
3826                         fi
3827
3828                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3829
3830 fi
3831
3832
3833           eval "$wx_cv_use_libmspack"
3834           if test "$no_cache" != 1; then
3835             echo $wx_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3836           fi
3837
3838           if test x"$withstring" = xwithout; then
3839             if test $wxUSE_LIBMSPACK = yes; then
3840               result=no
3841             else
3842               result=yes
3843             fi
3844           else
3845             result=$wxUSE_LIBMSPACK
3846           fi
3847
3848           { echo "$as_me:$LINENO: result: $result" >&5
3849 echo "${ECHO_T}$result" >&6; }
3850
3851
3852           withstring=without
3853           defaultval=$wxUSE_ALL_FEATURES
3854           if test -z "$defaultval"; then
3855               if test x"$withstring" = xwithout; then
3856                   defaultval=yes
3857               else
3858                   defaultval=no
3859               fi
3860           fi
3861           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3862 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3863           no_cache=0
3864
3865 # Check whether --with-gnomeprint was given.
3866 if test "${with_gnomeprint+set}" = set; then
3867   withval=$with_gnomeprint;
3868                         if test "$withval" = yes; then
3869                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3870                         else
3871                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3872                         fi
3873
3874 else
3875
3876                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3877                         if test "x$LINE" != x ; then
3878                           eval "DEFAULT_$LINE"
3879                         else
3880                           no_cache=1
3881                         fi
3882
3883                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3884
3885 fi
3886
3887
3888           eval "$wx_cv_use_gnomeprint"
3889           if test "$no_cache" != 1; then
3890             echo $wx_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3891           fi
3892
3893           if test x"$withstring" = xwithout; then
3894             if test $wxUSE_LIBGNOMEPRINT = yes; then
3895               result=no
3896             else
3897               result=yes
3898             fi
3899           else
3900             result=$wxUSE_LIBGNOMEPRINT
3901           fi
3902
3903           { echo "$as_me:$LINENO: result: $result" >&5
3904 echo "${ECHO_T}$result" >&6; }
3905
3906
3907           withstring=
3908           defaultval=$wxUSE_ALL_FEATURES
3909           if test -z "$defaultval"; then
3910               if test x"$withstring" = xwithout; then
3911                   defaultval=yes
3912               else
3913                   defaultval=no
3914               fi
3915           fi
3916           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3917 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3918           no_cache=0
3919
3920 # Check whether --with-gnomevfs was given.
3921 if test "${with_gnomevfs+set}" = set; then
3922   withval=$with_gnomevfs;
3923                         if test "$withval" = yes; then
3924                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3925                         else
3926                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3927                         fi
3928
3929 else
3930
3931                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
3932                         if test "x$LINE" != x ; then
3933                           eval "DEFAULT_$LINE"
3934                         else
3935                           no_cache=1
3936                         fi
3937
3938                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3939
3940 fi
3941
3942
3943           eval "$wx_cv_use_gnomevfs"
3944           if test "$no_cache" != 1; then
3945             echo $wx_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3946           fi
3947
3948           if test x"$withstring" = xwithout; then
3949             if test $wxUSE_LIBGNOMEVFS = yes; then
3950               result=no
3951             else
3952               result=yes
3953             fi
3954           else
3955             result=$wxUSE_LIBGNOMEVFS
3956           fi
3957
3958           { echo "$as_me:$LINENO: result: $result" >&5
3959 echo "${ECHO_T}$result" >&6; }
3960
3961
3962           withstring=
3963           defaultval=$wxUSE_ALL_FEATURES
3964           if test -z "$defaultval"; then
3965               if test x"$withstring" = xwithout; then
3966                   defaultval=yes
3967               else
3968                   defaultval=no
3969               fi
3970           fi
3971           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3972 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3973           no_cache=0
3974
3975 # Check whether --with-hildon was given.
3976 if test "${with_hildon+set}" = set; then
3977   withval=$with_hildon;
3978                         if test "$withval" = yes; then
3979                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3980                         else
3981                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3982                         fi
3983
3984 else
3985
3986                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
3987                         if test "x$LINE" != x ; then
3988                           eval "DEFAULT_$LINE"
3989                         else
3990                           no_cache=1
3991                         fi
3992
3993                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3994
3995 fi
3996
3997
3998           eval "$wx_cv_use_hildon"
3999           if test "$no_cache" != 1; then
4000             echo $wx_cv_use_hildon >> ${wx_arg_cache_file}.tmp
4001           fi
4002
4003           if test x"$withstring" = xwithout; then
4004             if test $wxUSE_LIBHILDON = yes; then
4005               result=no
4006             else
4007               result=yes
4008             fi
4009           else
4010             result=$wxUSE_LIBHILDON
4011           fi
4012
4013           { echo "$as_me:$LINENO: result: $result" >&5
4014 echo "${ECHO_T}$result" >&6; }
4015
4016
4017           withstring=
4018           defaultval=$wxUSE_ALL_FEATURES
4019           if test -z "$defaultval"; then
4020               if test x"$withstring" = xwithout; then
4021                   defaultval=yes
4022               else
4023                   defaultval=no
4024               fi
4025           fi
4026           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4027 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4028           no_cache=0
4029
4030 # Check whether --with-opengl was given.
4031 if test "${with_opengl+set}" = set; then
4032   withval=$with_opengl;
4033                         if test "$withval" = yes; then
4034                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4035                         else
4036                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4037                         fi
4038
4039 else
4040
4041                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4042                         if test "x$LINE" != x ; then
4043                           eval "DEFAULT_$LINE"
4044                         else
4045                           no_cache=1
4046                         fi
4047
4048                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4049
4050 fi
4051
4052
4053           eval "$wx_cv_use_opengl"
4054           if test "$no_cache" != 1; then
4055             echo $wx_cv_use_opengl >> ${wx_arg_cache_file}.tmp
4056           fi
4057
4058           if test x"$withstring" = xwithout; then
4059             if test $wxUSE_OPENGL = yes; then
4060               result=no
4061             else
4062               result=yes
4063             fi
4064           else
4065             result=$wxUSE_OPENGL
4066           fi
4067
4068           { echo "$as_me:$LINENO: result: $result" >&5
4069 echo "${ECHO_T}$result" >&6; }
4070
4071
4072 fi
4073
4074
4075           withstring=
4076           defaultval=$wxUSE_ALL_FEATURES
4077           if test -z "$defaultval"; then
4078               if test x"$withstring" = xwithout; then
4079                   defaultval=yes
4080               else
4081                   defaultval=no
4082               fi
4083           fi
4084           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4085 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4086           no_cache=0
4087
4088 # Check whether --with-dmalloc was given.
4089 if test "${with_dmalloc+set}" = set; then
4090   withval=$with_dmalloc;
4091                         if test "$withval" = yes; then
4092                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4093                         else
4094                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4095                         fi
4096
4097 else
4098
4099                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4100                         if test "x$LINE" != x ; then
4101                           eval "DEFAULT_$LINE"
4102                         else
4103                           no_cache=1
4104                         fi
4105
4106                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4107
4108 fi
4109
4110
4111           eval "$wx_cv_use_dmalloc"
4112           if test "$no_cache" != 1; then
4113             echo $wx_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
4114           fi
4115
4116           if test x"$withstring" = xwithout; then
4117             if test $wxUSE_DMALLOC = yes; then
4118               result=no
4119             else
4120               result=yes
4121             fi
4122           else
4123             result=$wxUSE_DMALLOC
4124           fi
4125
4126           { echo "$as_me:$LINENO: result: $result" >&5
4127 echo "${ECHO_T}$result" >&6; }
4128
4129
4130           withstring=
4131           defaultval=$wxUSE_ALL_FEATURES
4132           if test -z "$defaultval"; then
4133               if test x"$withstring" = xwithout; then
4134                   defaultval=yes
4135               else
4136                   defaultval=no
4137               fi
4138           fi
4139           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4140 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4141           no_cache=0
4142
4143 # Check whether --with-sdl was given.
4144 if test "${with_sdl+set}" = set; then
4145   withval=$with_sdl;
4146                         if test "$withval" = yes; then
4147                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4148                         else
4149                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4150                         fi
4151
4152 else
4153
4154                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4155                         if test "x$LINE" != x ; then
4156                           eval "DEFAULT_$LINE"
4157                         else
4158                           no_cache=1
4159                         fi
4160
4161                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4162
4163 fi
4164
4165
4166           eval "$wx_cv_use_sdl"
4167           if test "$no_cache" != 1; then
4168             echo $wx_cv_use_sdl >> ${wx_arg_cache_file}.tmp
4169           fi
4170
4171           if test x"$withstring" = xwithout; then
4172             if test $wxUSE_LIBSDL = yes; then
4173               result=no
4174             else
4175               result=yes
4176             fi
4177           else
4178             result=$wxUSE_LIBSDL
4179           fi
4180
4181           { echo "$as_me:$LINENO: result: $result" >&5
4182 echo "${ECHO_T}$result" >&6; }
4183
4184
4185           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4186 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4187           no_cache=0
4188
4189 # Check whether --with-regex was given.
4190 if test "${with_regex+set}" = set; then
4191   withval=$with_regex;
4192                         if test "$withval" = yes; then
4193                           wx_cv_use_regex='wxUSE_REGEX=yes'
4194                         elif test "$withval" = no; then
4195                           wx_cv_use_regex='wxUSE_REGEX=no'
4196                         elif test "$withval" = sys; then
4197                           wx_cv_use_regex='wxUSE_REGEX=sys'
4198                         elif test "$withval" = builtin; then
4199                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4200                         else
4201                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4202 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4203    { (exit 1); exit 1; }; }
4204                         fi
4205
4206 else
4207
4208                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4209                         if test "x$LINE" != x ; then
4210                           eval "DEFAULT_$LINE"
4211                         else
4212                           no_cache=1
4213                         fi
4214
4215                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4216
4217 fi
4218
4219
4220           eval "$wx_cv_use_regex"
4221           if test "$no_cache" != 1; then
4222             echo $wx_cv_use_regex >> ${wx_arg_cache_file}.tmp
4223           fi
4224
4225           if test "$wxUSE_REGEX" = yes; then
4226             { echo "$as_me:$LINENO: result: yes" >&5
4227 echo "${ECHO_T}yes" >&6; }
4228           elif test "$wxUSE_REGEX" = no; then
4229             { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4231           elif test "$wxUSE_REGEX" = sys; then
4232             { echo "$as_me:$LINENO: result: system version" >&5
4233 echo "${ECHO_T}system version" >&6; }
4234           elif test "$wxUSE_REGEX" = builtin; then
4235             { echo "$as_me:$LINENO: result: builtin version" >&5
4236 echo "${ECHO_T}builtin version" >&6; }
4237           else
4238             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4239 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4240    { (exit 1); exit 1; }; }
4241           fi
4242
4243
4244           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4245 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4246           no_cache=0
4247
4248 # Check whether --with-zlib was given.
4249 if test "${with_zlib+set}" = set; then
4250   withval=$with_zlib;
4251                         if test "$withval" = yes; then
4252                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4253                         elif test "$withval" = no; then
4254                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4255                         elif test "$withval" = sys; then
4256                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4257                         elif test "$withval" = builtin; then
4258                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4259                         else
4260                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4261 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4262    { (exit 1); exit 1; }; }
4263                         fi
4264
4265 else
4266
4267                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4268                         if test "x$LINE" != x ; then
4269                           eval "DEFAULT_$LINE"
4270                         else
4271                           no_cache=1
4272                         fi
4273
4274                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4275
4276 fi
4277
4278
4279           eval "$wx_cv_use_zlib"
4280           if test "$no_cache" != 1; then
4281             echo $wx_cv_use_zlib >> ${wx_arg_cache_file}.tmp
4282           fi
4283
4284           if test "$wxUSE_ZLIB" = yes; then
4285             { echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6; }
4287           elif test "$wxUSE_ZLIB" = no; then
4288             { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4290           elif test "$wxUSE_ZLIB" = sys; then
4291             { echo "$as_me:$LINENO: result: system version" >&5
4292 echo "${ECHO_T}system version" >&6; }
4293           elif test "$wxUSE_ZLIB" = builtin; then
4294             { echo "$as_me:$LINENO: result: builtin version" >&5
4295 echo "${ECHO_T}builtin version" >&6; }
4296           else
4297             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4298 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4299    { (exit 1); exit 1; }; }
4300           fi
4301
4302
4303           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4304 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4305           no_cache=0
4306
4307 # Check whether --with-odbc was given.
4308 if test "${with_odbc+set}" = set; then
4309   withval=$with_odbc;
4310                         if test "$withval" = yes; then
4311                           wx_cv_use_odbc='wxUSE_ODBC=yes'
4312                         elif test "$withval" = no; then
4313                           wx_cv_use_odbc='wxUSE_ODBC=no'
4314                         elif test "$withval" = sys; then
4315                           wx_cv_use_odbc='wxUSE_ODBC=sys'
4316                         elif test "$withval" = builtin; then
4317                           wx_cv_use_odbc='wxUSE_ODBC=builtin'
4318                         else
4319                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4320 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4321    { (exit 1); exit 1; }; }
4322                         fi
4323
4324 else
4325
4326                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4327                         if test "x$LINE" != x ; then
4328                           eval "DEFAULT_$LINE"
4329                         else
4330                           no_cache=1
4331                         fi
4332
4333                         wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
4334
4335 fi
4336
4337
4338           eval "$wx_cv_use_odbc"
4339           if test "$no_cache" != 1; then
4340             echo $wx_cv_use_odbc >> ${wx_arg_cache_file}.tmp
4341           fi
4342
4343           if test "$wxUSE_ODBC" = yes; then
4344             { echo "$as_me:$LINENO: result: yes" >&5
4345 echo "${ECHO_T}yes" >&6; }
4346           elif test "$wxUSE_ODBC" = no; then
4347             { echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6; }
4349           elif test "$wxUSE_ODBC" = sys; then
4350             { echo "$as_me:$LINENO: result: system version" >&5
4351 echo "${ECHO_T}system version" >&6; }
4352           elif test "$wxUSE_ODBC" = builtin; then
4353             { echo "$as_me:$LINENO: result: builtin version" >&5
4354 echo "${ECHO_T}builtin version" >&6; }
4355           else
4356             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4357 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4358    { (exit 1); exit 1; }; }
4359           fi
4360
4361
4362           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4363 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4364           no_cache=0
4365
4366 # Check whether --with-expat was given.
4367 if test "${with_expat+set}" = set; then
4368   withval=$with_expat;
4369                         if test "$withval" = yes; then
4370                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4371                         elif test "$withval" = no; then
4372                           wx_cv_use_expat='wxUSE_EXPAT=no'
4373                         elif test "$withval" = sys; then
4374                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4375                         elif test "$withval" = builtin; then
4376                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4377                         else
4378                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4379 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4380    { (exit 1); exit 1; }; }
4381                         fi
4382
4383 else
4384
4385                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4386                         if test "x$LINE" != x ; then
4387                           eval "DEFAULT_$LINE"
4388                         else
4389                           no_cache=1
4390                         fi
4391
4392                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4393
4394 fi
4395
4396
4397           eval "$wx_cv_use_expat"
4398           if test "$no_cache" != 1; then
4399             echo $wx_cv_use_expat >> ${wx_arg_cache_file}.tmp
4400           fi
4401
4402           if test "$wxUSE_EXPAT" = yes; then
4403             { echo "$as_me:$LINENO: result: yes" >&5
4404 echo "${ECHO_T}yes" >&6; }
4405           elif test "$wxUSE_EXPAT" = no; then
4406             { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4408           elif test "$wxUSE_EXPAT" = sys; then
4409             { echo "$as_me:$LINENO: result: system version" >&5
4410 echo "${ECHO_T}system version" >&6; }
4411           elif test "$wxUSE_EXPAT" = builtin; then
4412             { echo "$as_me:$LINENO: result: builtin version" >&5
4413 echo "${ECHO_T}builtin version" >&6; }
4414           else
4415             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4416 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4417    { (exit 1); exit 1; }; }
4418           fi
4419
4420
4421
4422
4423           enablestring=disable
4424           defaultval=
4425           if test -z "$defaultval"; then
4426               if test x"$enablestring" = xdisable; then
4427                   defaultval=yes
4428               else
4429                   defaultval=no
4430               fi
4431           fi
4432
4433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4434 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4435           no_cache=0
4436           # Check whether --enable-shared was given.
4437 if test "${enable_shared+set}" = set; then
4438   enableval=$enable_shared;
4439                           if test "$enableval" = yes; then
4440                             wx_cv_use_shared='wxUSE_SHARED=yes'
4441                           else
4442                             wx_cv_use_shared='wxUSE_SHARED=no'
4443                           fi
4444
4445 else
4446
4447                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4448                           if test "x$LINE" != x ; then
4449                             eval "DEFAULT_$LINE"
4450                           else
4451                             no_cache=1
4452                           fi
4453
4454                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4455
4456 fi
4457
4458
4459           eval "$wx_cv_use_shared"
4460           if test "$no_cache" != 1; then
4461             echo $wx_cv_use_shared >> ${wx_arg_cache_file}.tmp
4462           fi
4463
4464           if test x"$enablestring" = xdisable; then
4465             if test $wxUSE_SHARED = yes; then
4466               result=no
4467             else
4468               result=yes
4469             fi
4470           else
4471             result=$wxUSE_SHARED
4472           fi
4473
4474           { echo "$as_me:$LINENO: result: $result" >&5
4475 echo "${ECHO_T}$result" >&6; }
4476
4477
4478           enablestring=disable
4479           defaultval=
4480           if test -z "$defaultval"; then
4481               if test x"$enablestring" = xdisable; then
4482                   defaultval=yes
4483               else
4484                   defaultval=no
4485               fi
4486           fi
4487
4488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4489 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4490           no_cache=0
4491           # Check whether --enable-optimise was given.
4492 if test "${enable_optimise+set}" = set; then
4493   enableval=$enable_optimise;
4494                           if test "$enableval" = yes; then
4495                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4496                           else
4497                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4498                           fi
4499
4500 else
4501
4502                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4503                           if test "x$LINE" != x ; then
4504                             eval "DEFAULT_$LINE"
4505                           else
4506                             no_cache=1
4507                           fi
4508
4509                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4510
4511 fi
4512
4513
4514           eval "$wx_cv_use_optimise"
4515           if test "$no_cache" != 1; then
4516             echo $wx_cv_use_optimise >> ${wx_arg_cache_file}.tmp
4517           fi
4518
4519           if test x"$enablestring" = xdisable; then
4520             if test $wxUSE_OPTIMISE = yes; then
4521               result=no
4522             else
4523               result=yes
4524             fi
4525           else
4526             result=$wxUSE_OPTIMISE
4527           fi
4528
4529           { echo "$as_me:$LINENO: result: $result" >&5
4530 echo "${ECHO_T}$result" >&6; }
4531
4532
4533           enablestring=
4534           defaultval=
4535           if test -z "$defaultval"; then
4536               if test x"$enablestring" = xdisable; then
4537                   defaultval=yes
4538               else
4539                   defaultval=no
4540               fi
4541           fi
4542
4543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4544 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4545           no_cache=0
4546           # Check whether --enable-debug was given.
4547 if test "${enable_debug+set}" = set; then
4548   enableval=$enable_debug;
4549                           if test "$enableval" = yes; then
4550                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4551                           else
4552                             wx_cv_use_debug='wxUSE_DEBUG=no'
4553                           fi
4554
4555 else
4556
4557                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4558                           if test "x$LINE" != x ; then
4559                             eval "DEFAULT_$LINE"
4560                           else
4561                             no_cache=1
4562                           fi
4563
4564                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4565
4566 fi
4567
4568
4569           eval "$wx_cv_use_debug"
4570           if test "$no_cache" != 1; then
4571             echo $wx_cv_use_debug >> ${wx_arg_cache_file}.tmp
4572           fi
4573
4574           if test x"$enablestring" = xdisable; then
4575             if test $wxUSE_DEBUG = yes; then
4576               result=no
4577             else
4578               result=yes
4579             fi
4580           else
4581             result=$wxUSE_DEBUG
4582           fi
4583
4584           { echo "$as_me:$LINENO: result: $result" >&5
4585 echo "${ECHO_T}$result" >&6; }
4586
4587
4588           enablestring=
4589           defaultval=
4590           if test -z "$defaultval"; then
4591               if test x"$enablestring" = xdisable; then
4592                   defaultval=yes
4593               else
4594                   defaultval=no
4595               fi
4596           fi
4597
4598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4599 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4600           no_cache=0
4601           # Check whether --enable-stl was given.
4602 if test "${enable_stl+set}" = set; then
4603   enableval=$enable_stl;
4604                           if test "$enableval" = yes; then
4605                             wx_cv_use_stl='wxUSE_STL=yes'
4606                           else
4607                             wx_cv_use_stl='wxUSE_STL=no'
4608                           fi
4609
4610 else
4611
4612                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4613                           if test "x$LINE" != x ; then
4614                             eval "DEFAULT_$LINE"
4615                           else
4616                             no_cache=1
4617                           fi
4618
4619                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4620
4621 fi
4622
4623
4624           eval "$wx_cv_use_stl"
4625           if test "$no_cache" != 1; then
4626             echo $wx_cv_use_stl >> ${wx_arg_cache_file}.tmp
4627           fi
4628
4629           if test x"$enablestring" = xdisable; then
4630             if test $wxUSE_STL = yes; then
4631               result=no
4632             else
4633               result=yes
4634             fi
4635           else
4636             result=$wxUSE_STL
4637           fi
4638
4639           { echo "$as_me:$LINENO: result: $result" >&5
4640 echo "${ECHO_T}$result" >&6; }
4641
4642
4643           enablestring=
4644           defaultval=
4645           if test -z "$defaultval"; then
4646               if test x"$enablestring" = xdisable; then
4647                   defaultval=yes
4648               else
4649                   defaultval=no
4650               fi
4651           fi
4652
4653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4654 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4655           no_cache=0
4656           # Check whether --enable-std_iostreams was given.
4657 if test "${enable_std_iostreams+set}" = set; then
4658   enableval=$enable_std_iostreams;
4659                           if test "$enableval" = yes; then
4660                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4661                           else
4662                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4663                           fi
4664
4665 else
4666
4667                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4668                           if test "x$LINE" != x ; then
4669                             eval "DEFAULT_$LINE"
4670                           else
4671                             no_cache=1
4672                           fi
4673
4674                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4675
4676 fi
4677
4678
4679           eval "$wx_cv_use_std_iostreams"
4680           if test "$no_cache" != 1; then
4681             echo $wx_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4682           fi
4683
4684           if test x"$enablestring" = xdisable; then
4685             if test $wxUSE_STD_IOSTREAM = yes; then
4686               result=no
4687             else
4688               result=yes
4689             fi
4690           else
4691             result=$wxUSE_STD_IOSTREAM
4692           fi
4693
4694           { echo "$as_me:$LINENO: result: $result" >&5
4695 echo "${ECHO_T}$result" >&6; }
4696
4697
4698           enablestring=
4699           defaultval=
4700           if test -z "$defaultval"; then
4701               if test x"$enablestring" = xdisable; then
4702                   defaultval=yes
4703               else
4704                   defaultval=no
4705               fi
4706           fi
4707
4708           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4709 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4710           no_cache=0
4711           # Check whether --enable-std_string was given.
4712 if test "${enable_std_string+set}" = set; then
4713   enableval=$enable_std_string;
4714                           if test "$enableval" = yes; then
4715                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4716                           else
4717                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4718                           fi
4719
4720 else
4721
4722                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4723                           if test "x$LINE" != x ; then
4724                             eval "DEFAULT_$LINE"
4725                           else
4726                             no_cache=1
4727                           fi
4728
4729                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4730
4731 fi
4732
4733
4734           eval "$wx_cv_use_std_string"
4735           if test "$no_cache" != 1; then
4736             echo $wx_cv_use_std_string >> ${wx_arg_cache_file}.tmp
4737           fi
4738
4739           if test x"$enablestring" = xdisable; then
4740             if test $wxUSE_STD_STRING = yes; then
4741               result=no
4742             else
4743               result=yes
4744             fi
4745           else
4746             result=$wxUSE_STD_STRING
4747           fi
4748
4749           { echo "$as_me:$LINENO: result: $result" >&5
4750 echo "${ECHO_T}$result" >&6; }
4751
4752
4753           enablestring=disable
4754           defaultval=
4755           if test -z "$defaultval"; then
4756               if test x"$enablestring" = xdisable; then
4757                   defaultval=yes
4758               else
4759                   defaultval=no
4760               fi
4761           fi
4762
4763           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4764 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4765           no_cache=0
4766           # Check whether --enable-unicode was given.
4767 if test "${enable_unicode+set}" = set; then
4768   enableval=$enable_unicode;
4769                           if test "$enableval" = yes; then
4770                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4771                           else
4772                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4773                           fi
4774
4775 else
4776
4777                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4778                           if test "x$LINE" != x ; then
4779                             eval "DEFAULT_$LINE"
4780                           else
4781                             no_cache=1
4782                           fi
4783
4784                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4785
4786 fi
4787
4788
4789           eval "$wx_cv_use_unicode"
4790           if test "$no_cache" != 1; then
4791             echo $wx_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4792           fi
4793
4794           if test x"$enablestring" = xdisable; then
4795             if test $wxUSE_UNICODE = yes; then
4796               result=no
4797             else
4798               result=yes
4799             fi
4800           else
4801             result=$wxUSE_UNICODE
4802           fi
4803
4804           { echo "$as_me:$LINENO: result: $result" >&5
4805 echo "${ECHO_T}$result" >&6; }
4806
4807
4808           enablestring=
4809           defaultval=
4810           if test -z "$defaultval"; then
4811               if test x"$enablestring" = xdisable; then
4812                   defaultval=yes
4813               else
4814                   defaultval=no
4815               fi
4816           fi
4817
4818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4819 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4820           no_cache=0
4821           # Check whether --enable-mslu was given.
4822 if test "${enable_mslu+set}" = set; then
4823   enableval=$enable_mslu;
4824                           if test "$enableval" = yes; then
4825                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4826                           else
4827                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4828                           fi
4829
4830 else
4831
4832                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4833                           if test "x$LINE" != x ; then
4834                             eval "DEFAULT_$LINE"
4835                           else
4836                             no_cache=1
4837                           fi
4838
4839                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4840
4841 fi
4842
4843
4844           eval "$wx_cv_use_mslu"
4845           if test "$no_cache" != 1; then
4846             echo $wx_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4847           fi
4848
4849           if test x"$enablestring" = xdisable; then
4850             if test $wxUSE_UNICODE_MSLU = yes; then
4851               result=no
4852             else
4853               result=yes
4854             fi
4855           else
4856             result=$wxUSE_UNICODE_MSLU
4857           fi
4858
4859           { echo "$as_me:$LINENO: result: $result" >&5
4860 echo "${ECHO_T}$result" >&6; }
4861
4862
4863           enablestring=
4864           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4865 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4866           no_cache=0
4867           # Check whether --enable-utf8 was given.
4868 if test "${enable_utf8+set}" = set; then
4869   enableval=$enable_utf8;
4870                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4871
4872 else
4873
4874                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4875                           if test "x$LINE" != x ; then
4876                             eval "DEFAULT_$LINE"
4877                           else
4878                             no_cache=1
4879                           fi
4880
4881                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4882
4883 fi
4884
4885
4886           eval "$wx_cv_use_utf8"
4887           if test "$no_cache" != 1; then
4888             echo $wx_cv_use_utf8 >> ${wx_arg_cache_file}.tmp
4889           fi
4890
4891           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4892 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4893
4894
4895           enablestring=
4896           defaultval=
4897           if test -z "$defaultval"; then
4898               if test x"$enablestring" = xdisable; then
4899                   defaultval=yes
4900               else
4901                   defaultval=no
4902               fi
4903           fi
4904
4905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4906 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4907           no_cache=0
4908           # Check whether --enable-utf8only was given.
4909 if test "${enable_utf8only+set}" = set; then
4910   enableval=$enable_utf8only;
4911                           if test "$enableval" = yes; then
4912                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4913                           else
4914                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4915                           fi
4916
4917 else
4918
4919                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
4920                           if test "x$LINE" != x ; then
4921                             eval "DEFAULT_$LINE"
4922                           else
4923                             no_cache=1
4924                           fi
4925
4926                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4927
4928 fi
4929
4930
4931           eval "$wx_cv_use_utf8only"
4932           if test "$no_cache" != 1; then
4933             echo $wx_cv_use_utf8only >> ${wx_arg_cache_file}.tmp
4934           fi
4935
4936           if test x"$enablestring" = xdisable; then
4937             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4938               result=no
4939             else
4940               result=yes
4941             fi
4942           else
4943             result=$wxUSE_UNICODE_UTF8_LOCALE
4944           fi
4945
4946           { echo "$as_me:$LINENO: result: $result" >&5
4947 echo "${ECHO_T}$result" >&6; }
4948
4949
4950           enablestring=
4951           defaultval=
4952           if test -z "$defaultval"; then
4953               if test x"$enablestring" = xdisable; then
4954                   defaultval=yes
4955               else
4956                   defaultval=no
4957               fi
4958           fi
4959
4960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4961 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4962           no_cache=0
4963           # Check whether --enable-extended_rtti was given.
4964 if test "${enable_extended_rtti+set}" = set; then
4965   enableval=$enable_extended_rtti;
4966                           if test "$enableval" = yes; then
4967                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4968                           else
4969                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4970                           fi
4971
4972 else
4973
4974                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
4975                           if test "x$LINE" != x ; then
4976                             eval "DEFAULT_$LINE"
4977                           else
4978                             no_cache=1
4979                           fi
4980
4981                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4982
4983 fi
4984
4985
4986           eval "$wx_cv_use_extended_rtti"
4987           if test "$no_cache" != 1; then
4988             echo $wx_cv_use_extended_rtti >> ${wx_arg_cache_file}.tmp
4989           fi
4990
4991           if test x"$enablestring" = xdisable; then
4992             if test $wxUSE_EXTENDED_RTTI = yes; then
4993               result=no
4994             else
4995               result=yes
4996             fi
4997           else
4998             result=$wxUSE_EXTENDED_RTTI
4999           fi
5000
5001           { echo "$as_me:$LINENO: result: $result" >&5
5002 echo "${ECHO_T}$result" >&6; }
5003
5004 if test "$USE_OS2" = "1"; then
5005     DEFAULT_wxUSE_OMF=no
5006
5007           enablestring=
5008           defaultval=
5009           if test -z "$defaultval"; then
5010               if test x"$enablestring" = xdisable; then
5011                   defaultval=yes
5012               else
5013                   defaultval=no
5014               fi
5015           fi
5016
5017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5018 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5019           no_cache=0
5020           # Check whether --enable-omf was given.
5021 if test "${enable_omf+set}" = set; then
5022   enableval=$enable_omf;
5023                           if test "$enableval" = yes; then
5024                             wx_cv_use_omf='wxUSE_OMF=yes'
5025                           else
5026                             wx_cv_use_omf='wxUSE_OMF=no'
5027                           fi
5028
5029 else
5030
5031                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5032                           if test "x$LINE" != x ; then
5033                             eval "DEFAULT_$LINE"
5034                           else
5035                             no_cache=1
5036                           fi
5037
5038                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5039
5040 fi
5041
5042
5043           eval "$wx_cv_use_omf"
5044           if test "$no_cache" != 1; then
5045             echo $wx_cv_use_omf >> ${wx_arg_cache_file}.tmp
5046           fi
5047
5048           if test x"$enablestring" = xdisable; then
5049             if test $wxUSE_OMF = yes; then
5050               result=no
5051             else
5052               result=yes
5053             fi
5054           else
5055             result=$wxUSE_OMF
5056           fi
5057
5058           { echo "$as_me:$LINENO: result: $result" >&5
5059 echo "${ECHO_T}$result" >&6; }
5060
5061 fi
5062
5063 if test "$wxUSE_DEBUG" = "yes"; then
5064   DEFAULT_wxUSE_DEBUG_FLAG=yes
5065   DEFAULT_wxUSE_DEBUG_INFO=yes
5066   BUILD=debug
5067 elif test "$wxUSE_DEBUG" = "no"; then
5068   DEFAULT_wxUSE_DEBUG_FLAG=no
5069   DEFAULT_wxUSE_DEBUG_INFO=no
5070   BUILD=release
5071 fi
5072
5073
5074           enablestring=
5075           defaultval=
5076           if test -z "$defaultval"; then
5077               if test x"$enablestring" = xdisable; then
5078                   defaultval=yes
5079               else
5080                   defaultval=no
5081               fi
5082           fi
5083
5084           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5085 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5086           no_cache=0
5087           # Check whether --enable-debug_flag was given.
5088 if test "${enable_debug_flag+set}" = set; then
5089   enableval=$enable_debug_flag;
5090                           if test "$enableval" = yes; then
5091                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5092                           else
5093                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5094                           fi
5095
5096 else
5097
5098                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5099                           if test "x$LINE" != x ; then
5100                             eval "DEFAULT_$LINE"
5101                           else
5102                             no_cache=1
5103                           fi
5104
5105                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5106
5107 fi
5108
5109
5110           eval "$wx_cv_use_debug_flag"
5111           if test "$no_cache" != 1; then
5112             echo $wx_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
5113           fi
5114
5115           if test x"$enablestring" = xdisable; then
5116             if test $wxUSE_DEBUG_FLAG = yes; then
5117               result=no
5118             else
5119               result=yes
5120             fi
5121           else
5122             result=$wxUSE_DEBUG_FLAG
5123           fi
5124
5125           { echo "$as_me:$LINENO: result: $result" >&5
5126 echo "${ECHO_T}$result" >&6; }
5127
5128
5129           enablestring=
5130           defaultval=
5131           if test -z "$defaultval"; then
5132               if test x"$enablestring" = xdisable; then
5133                   defaultval=yes
5134               else
5135                   defaultval=no
5136               fi
5137           fi
5138
5139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5140 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5141           no_cache=0
5142           # Check whether --enable-debug_info was given.
5143 if test "${enable_debug_info+set}" = set; then
5144   enableval=$enable_debug_info;
5145                           if test "$enableval" = yes; then
5146                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5147                           else
5148                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5149                           fi
5150
5151 else
5152
5153                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5154                           if test "x$LINE" != x ; then
5155                             eval "DEFAULT_$LINE"
5156                           else
5157                             no_cache=1
5158                           fi
5159
5160                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5161
5162 fi
5163
5164
5165           eval "$wx_cv_use_debug_info"
5166           if test "$no_cache" != 1; then
5167             echo $wx_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
5168           fi
5169
5170           if test x"$enablestring" = xdisable; then
5171             if test $wxUSE_DEBUG_INFO = yes; then
5172               result=no
5173             else
5174               result=yes
5175             fi
5176           else
5177             result=$wxUSE_DEBUG_INFO
5178           fi
5179
5180           { echo "$as_me:$LINENO: result: $result" >&5
5181 echo "${ECHO_T}$result" >&6; }
5182
5183
5184           enablestring=
5185           defaultval=
5186           if test -z "$defaultval"; then
5187               if test x"$enablestring" = xdisable; then
5188                   defaultval=yes
5189               else
5190                   defaultval=no
5191               fi
5192           fi
5193
5194           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5195 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5196           no_cache=0
5197           # Check whether --enable-debug_gdb was given.
5198 if test "${enable_debug_gdb+set}" = set; then
5199   enableval=$enable_debug_gdb;
5200                           if test "$enableval" = yes; then
5201                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5202                           else
5203                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5204                           fi
5205
5206 else
5207
5208                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5209                           if test "x$LINE" != x ; then
5210                             eval "DEFAULT_$LINE"
5211                           else
5212                             no_cache=1
5213                           fi
5214
5215                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5216
5217 fi
5218
5219
5220           eval "$wx_cv_use_debug_gdb"
5221           if test "$no_cache" != 1; then
5222             echo $wx_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
5223           fi
5224
5225           if test x"$enablestring" = xdisable; then
5226             if test $wxUSE_DEBUG_GDB = yes; then
5227               result=no
5228             else
5229               result=yes
5230             fi
5231           else
5232             result=$wxUSE_DEBUG_GDB
5233           fi
5234
5235           { echo "$as_me:$LINENO: result: $result" >&5
5236 echo "${ECHO_T}$result" >&6; }
5237
5238
5239           enablestring=
5240           defaultval=
5241           if test -z "$defaultval"; then
5242               if test x"$enablestring" = xdisable; then
5243                   defaultval=yes
5244               else
5245                   defaultval=no
5246               fi
5247           fi
5248
5249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5250 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5251           no_cache=0
5252           # Check whether --enable-debug_cntxt was given.
5253 if test "${enable_debug_cntxt+set}" = set; then
5254   enableval=$enable_debug_cntxt;
5255                           if test "$enableval" = yes; then
5256                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5257                           else
5258                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5259                           fi
5260
5261 else
5262
5263                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5264                           if test "x$LINE" != x ; then
5265                             eval "DEFAULT_$LINE"
5266                           else
5267                             no_cache=1
5268                           fi
5269
5270                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5271
5272 fi
5273
5274
5275           eval "$wx_cv_use_debug_cntxt"
5276           if test "$no_cache" != 1; then
5277             echo $wx_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
5278           fi
5279
5280           if test x"$enablestring" = xdisable; then
5281             if test $wxUSE_DEBUG_CONTEXT = yes; then
5282               result=no
5283             else
5284               result=yes
5285             fi
5286           else
5287             result=$wxUSE_DEBUG_CONTEXT
5288           fi
5289
5290           { echo "$as_me:$LINENO: result: $result" >&5
5291 echo "${ECHO_T}$result" >&6; }
5292
5293
5294           enablestring=
5295           defaultval=
5296           if test -z "$defaultval"; then
5297               if test x"$enablestring" = xdisable; then
5298                   defaultval=yes
5299               else
5300                   defaultval=no
5301               fi
5302           fi
5303
5304           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5305 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5306           no_cache=0
5307           # Check whether --enable-mem_tracing was given.
5308 if test "${enable_mem_tracing+set}" = set; then
5309   enableval=$enable_mem_tracing;
5310                           if test "$enableval" = yes; then
5311                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5312                           else
5313                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5314                           fi
5315
5316 else
5317
5318                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5319                           if test "x$LINE" != x ; then
5320                             eval "DEFAULT_$LINE"
5321                           else
5322                             no_cache=1
5323                           fi
5324
5325                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5326
5327 fi
5328
5329
5330           eval "$wx_cv_use_mem_tracing"
5331           if test "$no_cache" != 1; then
5332             echo $wx_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
5333           fi
5334
5335           if test x"$enablestring" = xdisable; then
5336             if test $wxUSE_MEM_TRACING = yes; then
5337               result=no
5338             else
5339               result=yes
5340             fi
5341           else
5342             result=$wxUSE_MEM_TRACING
5343           fi
5344
5345           { echo "$as_me:$LINENO: result: $result" >&5
5346 echo "${ECHO_T}$result" >&6; }
5347
5348
5349           enablestring=
5350           defaultval=
5351           if test -z "$defaultval"; then
5352               if test x"$enablestring" = xdisable; then
5353                   defaultval=yes
5354               else
5355                   defaultval=no
5356               fi
5357           fi
5358
5359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5360 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5361           no_cache=0
5362           # Check whether --enable-profile was given.
5363 if test "${enable_profile+set}" = set; then
5364   enableval=$enable_profile;
5365                           if test "$enableval" = yes; then
5366                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5367                           else
5368                             wx_cv_use_profile='wxUSE_PROFILE=no'
5369                           fi
5370
5371 else
5372
5373                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5374                           if test "x$LINE" != x ; then
5375                             eval "DEFAULT_$LINE"
5376                           else
5377                             no_cache=1
5378                           fi
5379
5380                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5381
5382 fi
5383
5384
5385           eval "$wx_cv_use_profile"
5386           if test "$no_cache" != 1; then
5387             echo $wx_cv_use_profile >> ${wx_arg_cache_file}.tmp
5388           fi
5389
5390           if test x"$enablestring" = xdisable; then
5391             if test $wxUSE_PROFILE = yes; then
5392               result=no
5393             else
5394               result=yes
5395             fi
5396           else
5397             result=$wxUSE_PROFILE
5398           fi
5399
5400           { echo "$as_me:$LINENO: result: $result" >&5
5401 echo "${ECHO_T}$result" >&6; }
5402
5403
5404           enablestring=
5405           defaultval=
5406           if test -z "$defaultval"; then
5407               if test x"$enablestring" = xdisable; then
5408                   defaultval=yes
5409               else
5410                   defaultval=no
5411               fi
5412           fi
5413
5414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5415 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5416           no_cache=0
5417           # Check whether --enable-no_rtti was given.
5418 if test "${enable_no_rtti+set}" = set; then
5419   enableval=$enable_no_rtti;
5420                           if test "$enableval" = yes; then
5421                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5422                           else
5423                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5424                           fi
5425
5426 else
5427
5428                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5429                           if test "x$LINE" != x ; then
5430                             eval "DEFAULT_$LINE"
5431                           else
5432                             no_cache=1
5433                           fi
5434
5435                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5436
5437 fi
5438
5439
5440           eval "$wx_cv_use_no_rtti"
5441           if test "$no_cache" != 1; then
5442             echo $wx_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
5443           fi
5444
5445           if test x"$enablestring" = xdisable; then
5446             if test $wxUSE_NO_RTTI = yes; then
5447               result=no
5448             else
5449               result=yes
5450             fi
5451           else
5452             result=$wxUSE_NO_RTTI
5453           fi
5454
5455           { echo "$as_me:$LINENO: result: $result" >&5
5456 echo "${ECHO_T}$result" >&6; }
5457
5458
5459           enablestring=
5460           defaultval=
5461           if test -z "$defaultval"; then
5462               if test x"$enablestring" = xdisable; then
5463                   defaultval=yes
5464               else
5465                   defaultval=no
5466               fi
5467           fi
5468
5469           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5470 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5471           no_cache=0
5472           # Check whether --enable-no_exceptions was given.
5473 if test "${enable_no_exceptions+set}" = set; then
5474   enableval=$enable_no_exceptions;
5475                           if test "$enableval" = yes; then
5476                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5477                           else
5478                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5479                           fi
5480
5481 else
5482
5483                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5484                           if test "x$LINE" != x ; then
5485                             eval "DEFAULT_$LINE"
5486                           else
5487                             no_cache=1
5488                           fi
5489
5490                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5491
5492 fi
5493
5494
5495           eval "$wx_cv_use_no_exceptions"
5496           if test "$no_cache" != 1; then
5497             echo $wx_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
5498           fi
5499
5500           if test x"$enablestring" = xdisable; then
5501             if test $wxUSE_NO_EXCEPTIONS = yes; then
5502               result=no
5503             else
5504               result=yes
5505             fi
5506           else
5507             result=$wxUSE_NO_EXCEPTIONS
5508           fi
5509
5510           { echo "$as_me:$LINENO: result: $result" >&5
5511 echo "${ECHO_T}$result" >&6; }
5512
5513
5514           enablestring=
5515           defaultval=
5516           if test -z "$defaultval"; then
5517               if test x"$enablestring" = xdisable; then
5518                   defaultval=yes
5519               else
5520                   defaultval=no
5521               fi
5522           fi
5523
5524           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5525 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5526           no_cache=0
5527           # Check whether --enable-permissive was given.
5528 if test "${enable_permissive+set}" = set; then
5529   enableval=$enable_permissive;
5530                           if test "$enableval" = yes; then
5531                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5532                           else
5533                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5534                           fi
5535
5536 else
5537
5538                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5539                           if test "x$LINE" != x ; then
5540                             eval "DEFAULT_$LINE"
5541                           else
5542                             no_cache=1
5543                           fi
5544
5545                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5546
5547 fi
5548
5549
5550           eval "$wx_cv_use_permissive"
5551           if test "$no_cache" != 1; then
5552             echo $wx_cv_use_permissive >> ${wx_arg_cache_file}.tmp
5553           fi
5554
5555           if test x"$enablestring" = xdisable; then
5556             if test $wxUSE_PERMISSIVE = yes; then
5557               result=no
5558             else
5559               result=yes
5560             fi
5561           else
5562             result=$wxUSE_PERMISSIVE
5563           fi
5564
5565           { echo "$as_me:$LINENO: result: $result" >&5
5566 echo "${ECHO_T}$result" >&6; }
5567
5568
5569           enablestring=
5570           defaultval=
5571           if test -z "$defaultval"; then
5572               if test x"$enablestring" = xdisable; then
5573                   defaultval=yes
5574               else
5575                   defaultval=no
5576               fi
5577           fi
5578
5579           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5580 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5581           no_cache=0
5582           # Check whether --enable-no_deps was given.
5583 if test "${enable_no_deps+set}" = set; then
5584   enableval=$enable_no_deps;
5585                           if test "$enableval" = yes; then
5586                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5587                           else
5588                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5589                           fi
5590
5591 else
5592
5593                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5594                           if test "x$LINE" != x ; then
5595                             eval "DEFAULT_$LINE"
5596                           else
5597                             no_cache=1
5598                           fi
5599
5600                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5601
5602 fi
5603
5604
5605           eval "$wx_cv_use_no_deps"
5606           if test "$no_cache" != 1; then
5607             echo $wx_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
5608           fi
5609
5610           if test x"$enablestring" = xdisable; then
5611             if test $wxUSE_NO_DEPS = yes; then
5612               result=no
5613             else
5614               result=yes
5615             fi
5616           else
5617             result=$wxUSE_NO_DEPS
5618           fi
5619
5620           { echo "$as_me:$LINENO: result: $result" >&5
5621 echo "${ECHO_T}$result" >&6; }
5622
5623
5624           enablestring=disable
5625           defaultval=
5626           if test -z "$defaultval"; then
5627               if test x"$enablestring" = xdisable; then
5628                   defaultval=yes
5629               else
5630                   defaultval=no
5631               fi
5632           fi
5633
5634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5635 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5636           no_cache=0
5637           # Check whether --enable-vararg_macros was given.
5638 if test "${enable_vararg_macros+set}" = set; then
5639   enableval=$enable_vararg_macros;
5640                           if test "$enableval" = yes; then
5641                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5642                           else
5643                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5644                           fi
5645
5646 else
5647
5648                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5649                           if test "x$LINE" != x ; then
5650                             eval "DEFAULT_$LINE"
5651                           else
5652                             no_cache=1
5653                           fi
5654
5655                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5656
5657 fi
5658
5659
5660           eval "$wx_cv_use_vararg_macros"
5661           if test "$no_cache" != 1; then
5662             echo $wx_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
5663           fi
5664
5665           if test x"$enablestring" = xdisable; then
5666             if test $wxUSE_VARARG_MACROS = yes; then
5667               result=no
5668             else
5669               result=yes
5670             fi
5671           else
5672             result=$wxUSE_VARARG_MACROS
5673           fi
5674
5675           { echo "$as_me:$LINENO: result: $result" >&5
5676 echo "${ECHO_T}$result" >&6; }
5677
5678
5679           enablestring=
5680           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5681 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5682           no_cache=0
5683           # Check whether --enable-universal_binary was given.
5684 if test "${enable_universal_binary+set}" = set; then
5685   enableval=$enable_universal_binary;
5686                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5687
5688 else
5689
5690                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5691                           if test "x$LINE" != x ; then
5692                             eval "DEFAULT_$LINE"
5693                           else
5694                             no_cache=1
5695                           fi
5696
5697                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5698
5699 fi
5700
5701
5702           eval "$wx_cv_use_universal_binary"
5703           if test "$no_cache" != 1; then
5704             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
5705           fi
5706
5707           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5708 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5709
5710
5711
5712           enablestring=
5713           defaultval=
5714           if test -z "$defaultval"; then
5715               if test x"$enablestring" = xdisable; then
5716                   defaultval=yes
5717               else
5718                   defaultval=no
5719               fi
5720           fi
5721
5722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5723 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5724           no_cache=0
5725           # Check whether --enable-compat26 was given.
5726 if test "${enable_compat26+set}" = set; then
5727   enableval=$enable_compat26;
5728                           if test "$enableval" = yes; then
5729                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5730                           else
5731                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5732                           fi
5733
5734 else
5735
5736                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5737                           if test "x$LINE" != x ; then
5738                             eval "DEFAULT_$LINE"
5739                           else
5740                             no_cache=1
5741                           fi
5742
5743                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5744
5745 fi
5746
5747
5748           eval "$wx_cv_use_compat26"
5749           if test "$no_cache" != 1; then
5750             echo $wx_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
5751           fi
5752
5753           if test x"$enablestring" = xdisable; then
5754             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5755               result=no
5756             else
5757               result=yes
5758             fi
5759           else
5760             result=$WXWIN_COMPATIBILITY_2_6
5761           fi
5762
5763           { echo "$as_me:$LINENO: result: $result" >&5
5764 echo "${ECHO_T}$result" >&6; }
5765
5766
5767           enablestring=disable
5768           defaultval=
5769           if test -z "$defaultval"; then
5770               if test x"$enablestring" = xdisable; then
5771                   defaultval=yes
5772               else
5773                   defaultval=no
5774               fi
5775           fi
5776
5777           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5778 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5779           no_cache=0
5780           # Check whether --enable-compat28 was given.
5781 if test "${enable_compat28+set}" = set; then
5782   enableval=$enable_compat28;
5783                           if test "$enableval" = yes; then
5784                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5785                           else
5786                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5787                           fi
5788
5789 else
5790
5791                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5792                           if test "x$LINE" != x ; then
5793                             eval "DEFAULT_$LINE"
5794                           else
5795                             no_cache=1
5796                           fi
5797
5798                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5799
5800 fi
5801
5802
5803           eval "$wx_cv_use_compat28"
5804           if test "$no_cache" != 1; then
5805             echo $wx_cv_use_compat28 >> ${wx_arg_cache_file}.tmp
5806           fi
5807
5808           if test x"$enablestring" = xdisable; then
5809             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5810               result=no
5811             else
5812               result=yes
5813             fi
5814           else
5815             result=$WXWIN_COMPATIBILITY_2_8
5816           fi
5817
5818           { echo "$as_me:$LINENO: result: $result" >&5
5819 echo "${ECHO_T}$result" >&6; }
5820
5821
5822
5823           enablestring=disable
5824           defaultval=
5825           if test -z "$defaultval"; then
5826               if test x"$enablestring" = xdisable; then
5827                   defaultval=yes
5828               else
5829                   defaultval=no
5830               fi
5831           fi
5832
5833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5834 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5835           no_cache=0
5836           # Check whether --enable-rpath was given.
5837 if test "${enable_rpath+set}" = set; then
5838   enableval=$enable_rpath;
5839                           if test "$enableval" = yes; then
5840                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5841                           else
5842                             wx_cv_use_rpath='wxUSE_RPATH=no'
5843                           fi
5844
5845 else
5846
5847                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5848                           if test "x$LINE" != x ; then
5849                             eval "DEFAULT_$LINE"
5850                           else
5851                             no_cache=1
5852                           fi
5853
5854                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5855
5856 fi
5857
5858
5859           eval "$wx_cv_use_rpath"
5860           if test "$no_cache" != 1; then
5861             echo $wx_cv_use_rpath >> ${wx_arg_cache_file}.tmp
5862           fi
5863
5864           if test x"$enablestring" = xdisable; then
5865             if test $wxUSE_RPATH = yes; then
5866               result=no
5867             else
5868               result=yes
5869             fi
5870           else
5871             result=$wxUSE_RPATH
5872           fi
5873
5874           { echo "$as_me:$LINENO: result: $result" >&5
5875 echo "${ECHO_T}$result" >&6; }
5876
5877
5878
5879           enablestring=
5880           defaultval=
5881           if test -z "$defaultval"; then
5882               if test x"$enablestring" = xdisable; then
5883                   defaultval=yes
5884               else
5885                   defaultval=no
5886               fi
5887           fi
5888
5889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5890 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5891           no_cache=0
5892           # Check whether --enable-objc_uniquifying was given.
5893 if test "${enable_objc_uniquifying+set}" = set; then
5894   enableval=$enable_objc_uniquifying;
5895                           if test "$enableval" = yes; then
5896                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5897                           else
5898                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5899                           fi
5900
5901 else
5902
5903                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
5904                           if test "x$LINE" != x ; then
5905                             eval "DEFAULT_$LINE"
5906                           else
5907                             no_cache=1
5908                           fi
5909
5910                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5911
5912 fi
5913
5914
5915           eval "$wx_cv_use_objc_uniquifying"
5916           if test "$no_cache" != 1; then
5917             echo $wx_cv_use_objc_uniquifying >> ${wx_arg_cache_file}.tmp
5918           fi
5919
5920           if test x"$enablestring" = xdisable; then
5921             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5922               result=no
5923             else
5924               result=yes
5925             fi
5926           else
5927             result=$wxUSE_OBJC_UNIQUIFYING
5928           fi
5929
5930           { echo "$as_me:$LINENO: result: $result" >&5
5931 echo "${ECHO_T}$result" >&6; }
5932
5933
5934
5935           enablestring=disable
5936           defaultval=
5937           if test -z "$defaultval"; then
5938               if test x"$enablestring" = xdisable; then
5939                   defaultval=yes
5940               else
5941                   defaultval=no
5942               fi
5943           fi
5944
5945           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5946 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5947           no_cache=0
5948           # Check whether --enable-visibility was given.
5949 if test "${enable_visibility+set}" = set; then
5950   enableval=$enable_visibility;
5951                           if test "$enableval" = yes; then
5952                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5953                           else
5954                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5955                           fi
5956
5957 else
5958
5959                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
5960                           if test "x$LINE" != x ; then
5961                             eval "DEFAULT_$LINE"
5962                           else
5963                             no_cache=1
5964                           fi
5965
5966                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5967
5968 fi
5969
5970
5971           eval "$wx_cv_use_visibility"
5972           if test "$no_cache" != 1; then
5973             echo $wx_cv_use_visibility >> ${wx_arg_cache_file}.tmp
5974           fi
5975
5976           if test x"$enablestring" = xdisable; then
5977             if test $wxUSE_VISIBILITY = yes; then
5978               result=no
5979             else
5980               result=yes
5981             fi
5982           else
5983             result=$wxUSE_VISIBILITY
5984           fi
5985
5986           { echo "$as_me:$LINENO: result: $result" >&5
5987 echo "${ECHO_T}$result" >&6; }
5988
5989
5990
5991
5992           enablestring=
5993           defaultval=$wxUSE_ALL_FEATURES
5994           if test -z "$defaultval"; then
5995               if test x"$enablestring" = xdisable; then
5996                   defaultval=yes
5997               else
5998                   defaultval=no
5999               fi
6000           fi
6001
6002           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6003 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6004           no_cache=0
6005           # Check whether --enable-intl was given.
6006 if test "${enable_intl+set}" = set; then
6007   enableval=$enable_intl;
6008                           if test "$enableval" = yes; then
6009                             wx_cv_use_intl='wxUSE_INTL=yes'
6010                           else
6011                             wx_cv_use_intl='wxUSE_INTL=no'
6012                           fi
6013
6014 else
6015
6016                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6017                           if test "x$LINE" != x ; then
6018                             eval "DEFAULT_$LINE"
6019                           else
6020                             no_cache=1
6021                           fi
6022
6023                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6024
6025 fi
6026
6027
6028           eval "$wx_cv_use_intl"
6029           if test "$no_cache" != 1; then
6030             echo $wx_cv_use_intl >> ${wx_arg_cache_file}.tmp
6031           fi
6032
6033           if test x"$enablestring" = xdisable; then
6034             if test $wxUSE_INTL = yes; then
6035               result=no
6036             else
6037               result=yes
6038             fi
6039           else
6040             result=$wxUSE_INTL
6041           fi
6042
6043           { echo "$as_me:$LINENO: result: $result" >&5
6044 echo "${ECHO_T}$result" >&6; }
6045
6046
6047           enablestring=
6048           defaultval=$wxUSE_ALL_FEATURES
6049           if test -z "$defaultval"; then
6050               if test x"$enablestring" = xdisable; then
6051                   defaultval=yes
6052               else
6053                   defaultval=no
6054               fi
6055           fi
6056
6057           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6058 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6059           no_cache=0
6060           # Check whether --enable-config was given.
6061 if test "${enable_config+set}" = set; then
6062   enableval=$enable_config;
6063                           if test "$enableval" = yes; then
6064                             wx_cv_use_config='wxUSE_CONFIG=yes'
6065                           else
6066                             wx_cv_use_config='wxUSE_CONFIG=no'
6067                           fi
6068
6069 else
6070
6071                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6072                           if test "x$LINE" != x ; then
6073                             eval "DEFAULT_$LINE"
6074                           else
6075                             no_cache=1
6076                           fi
6077
6078                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6079
6080 fi
6081
6082
6083           eval "$wx_cv_use_config"
6084           if test "$no_cache" != 1; then
6085             echo $wx_cv_use_config >> ${wx_arg_cache_file}.tmp
6086           fi
6087
6088           if test x"$enablestring" = xdisable; then
6089             if test $wxUSE_CONFIG = yes; then
6090               result=no
6091             else
6092               result=yes
6093             fi
6094           else
6095             result=$wxUSE_CONFIG
6096           fi
6097
6098           { echo "$as_me:$LINENO: result: $result" >&5
6099 echo "${ECHO_T}$result" >&6; }
6100
6101
6102
6103           enablestring=
6104           defaultval=$wxUSE_ALL_FEATURES
6105           if test -z "$defaultval"; then
6106               if test x"$enablestring" = xdisable; then
6107                   defaultval=yes
6108               else
6109                   defaultval=no
6110               fi
6111           fi
6112
6113           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6114 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6115           no_cache=0
6116           # Check whether --enable-protocols was given.
6117 if test "${enable_protocols+set}" = set; then
6118   enableval=$enable_protocols;
6119                           if test "$enableval" = yes; then
6120                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6121                           else
6122                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6123                           fi
6124
6125 else
6126
6127                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6128                           if test "x$LINE" != x ; then
6129                             eval "DEFAULT_$LINE"
6130                           else
6131                             no_cache=1
6132                           fi
6133
6134                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6135
6136 fi
6137
6138
6139           eval "$wx_cv_use_protocols"
6140           if test "$no_cache" != 1; then
6141             echo $wx_cv_use_protocols >> ${wx_arg_cache_file}.tmp
6142           fi
6143
6144           if test x"$enablestring" = xdisable; then
6145             if test $wxUSE_PROTOCOL = yes; then
6146               result=no
6147             else
6148               result=yes
6149             fi
6150           else
6151             result=$wxUSE_PROTOCOL
6152           fi
6153
6154           { echo "$as_me:$LINENO: result: $result" >&5
6155 echo "${ECHO_T}$result" >&6; }
6156
6157
6158           enablestring=
6159           defaultval=$wxUSE_ALL_FEATURES
6160           if test -z "$defaultval"; then
6161               if test x"$enablestring" = xdisable; then
6162                   defaultval=yes
6163               else
6164                   defaultval=no
6165               fi
6166           fi
6167
6168           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6169 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6170           no_cache=0
6171           # Check whether --enable-ftp was given.
6172 if test "${enable_ftp+set}" = set; then
6173   enableval=$enable_ftp;
6174                           if test "$enableval" = yes; then
6175                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6176                           else
6177                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6178                           fi
6179
6180 else
6181
6182                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6183                           if test "x$LINE" != x ; then
6184                             eval "DEFAULT_$LINE"
6185                           else
6186                             no_cache=1
6187                           fi
6188
6189                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6190
6191 fi
6192
6193
6194           eval "$wx_cv_use_ftp"
6195           if test "$no_cache" != 1; then
6196             echo $wx_cv_use_ftp >> ${wx_arg_cache_file}.tmp
6197           fi
6198
6199           if test x"$enablestring" = xdisable; then
6200             if test $wxUSE_PROTOCOL_FTP = yes; then
6201               result=no
6202             else
6203               result=yes
6204             fi
6205           else
6206             result=$wxUSE_PROTOCOL_FTP
6207           fi
6208
6209           { echo "$as_me:$LINENO: result: $result" >&5
6210 echo "${ECHO_T}$result" >&6; }
6211
6212
6213           enablestring=
6214           defaultval=$wxUSE_ALL_FEATURES
6215           if test -z "$defaultval"; then
6216               if test x"$enablestring" = xdisable; then
6217                   defaultval=yes
6218               else
6219                   defaultval=no
6220               fi
6221           fi
6222
6223           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6224 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6225           no_cache=0
6226           # Check whether --enable-http was given.
6227 if test "${enable_http+set}" = set; then
6228   enableval=$enable_http;
6229                           if test "$enableval" = yes; then
6230                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6231                           else
6232                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6233                           fi
6234
6235 else
6236
6237                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6238                           if test "x$LINE" != x ; then
6239                             eval "DEFAULT_$LINE"
6240                           else
6241                             no_cache=1
6242                           fi
6243
6244                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6245
6246 fi
6247
6248
6249           eval "$wx_cv_use_http"
6250           if test "$no_cache" != 1; then
6251             echo $wx_cv_use_http >> ${wx_arg_cache_file}.tmp
6252           fi
6253
6254           if test x"$enablestring" = xdisable; then
6255             if test $wxUSE_PROTOCOL_HTTP = yes; then
6256               result=no
6257             else
6258               result=yes
6259             fi
6260           else
6261             result=$wxUSE_PROTOCOL_HTTP
6262           fi
6263
6264           { echo "$as_me:$LINENO: result: $result" >&5
6265 echo "${ECHO_T}$result" >&6; }
6266
6267
6268           enablestring=
6269           defaultval=$wxUSE_ALL_FEATURES
6270           if test -z "$defaultval"; then
6271               if test x"$enablestring" = xdisable; then
6272                   defaultval=yes
6273               else
6274                   defaultval=no
6275               fi
6276           fi
6277
6278           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6279 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6280           no_cache=0
6281           # Check whether --enable-fileproto was given.
6282 if test "${enable_fileproto+set}" = set; then
6283   enableval=$enable_fileproto;
6284                           if test "$enableval" = yes; then
6285                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6286                           else
6287                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6288                           fi
6289
6290 else
6291
6292                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6293                           if test "x$LINE" != x ; then
6294                             eval "DEFAULT_$LINE"
6295                           else
6296                             no_cache=1
6297                           fi
6298
6299                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6300
6301 fi
6302
6303
6304           eval "$wx_cv_use_fileproto"
6305           if test "$no_cache" != 1; then
6306             echo $wx_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
6307           fi
6308
6309           if test x"$enablestring" = xdisable; then
6310             if test $wxUSE_PROTOCOL_FILE = yes; then
6311               result=no
6312             else
6313               result=yes
6314             fi
6315           else
6316             result=$wxUSE_PROTOCOL_FILE
6317           fi
6318
6319           { echo "$as_me:$LINENO: result: $result" >&5
6320 echo "${ECHO_T}$result" >&6; }
6321
6322
6323           enablestring=
6324           defaultval=$wxUSE_ALL_FEATURES
6325           if test -z "$defaultval"; then
6326               if test x"$enablestring" = xdisable; then
6327                   defaultval=yes
6328               else
6329                   defaultval=no
6330               fi
6331           fi
6332
6333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6334 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6335           no_cache=0
6336           # Check whether --enable-sockets was given.
6337 if test "${enable_sockets+set}" = set; then
6338   enableval=$enable_sockets;
6339                           if test "$enableval" = yes; then
6340                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6341                           else
6342                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6343                           fi
6344
6345 else
6346
6347                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6348                           if test "x$LINE" != x ; then
6349                             eval "DEFAULT_$LINE"
6350                           else
6351                             no_cache=1
6352                           fi
6353
6354                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6355
6356 fi
6357
6358
6359           eval "$wx_cv_use_sockets"
6360           if test "$no_cache" != 1; then
6361             echo $wx_cv_use_sockets >> ${wx_arg_cache_file}.tmp
6362           fi
6363
6364           if test x"$enablestring" = xdisable; then
6365             if test $wxUSE_SOCKETS = yes; then
6366               result=no
6367             else
6368               result=yes
6369             fi
6370           else
6371             result=$wxUSE_SOCKETS
6372           fi
6373
6374           { echo "$as_me:$LINENO: result: $result" >&5
6375 echo "${ECHO_T}$result" >&6; }
6376
6377
6378           enablestring=
6379           defaultval=$wxUSE_ALL_FEATURES
6380           if test -z "$defaultval"; then
6381               if test x"$enablestring" = xdisable; then
6382                   defaultval=yes
6383               else
6384                   defaultval=no
6385               fi
6386           fi
6387
6388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6389 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6390           no_cache=0
6391           # Check whether --enable-ole was given.
6392 if test "${enable_ole+set}" = set; then
6393   enableval=$enable_ole;
6394                           if test "$enableval" = yes; then
6395                             wx_cv_use_ole='wxUSE_OLE=yes'
6396                           else
6397                             wx_cv_use_ole='wxUSE_OLE=no'
6398                           fi
6399
6400 else
6401
6402                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6403                           if test "x$LINE" != x ; then
6404                             eval "DEFAULT_$LINE"
6405                           else
6406                             no_cache=1
6407                           fi
6408
6409                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6410
6411 fi
6412
6413
6414           eval "$wx_cv_use_ole"
6415           if test "$no_cache" != 1; then
6416             echo $wx_cv_use_ole >> ${wx_arg_cache_file}.tmp
6417           fi
6418
6419           if test x"$enablestring" = xdisable; then
6420             if test $wxUSE_OLE = yes; then
6421               result=no
6422             else
6423               result=yes
6424             fi
6425           else
6426             result=$wxUSE_OLE
6427           fi
6428
6429           { echo "$as_me:$LINENO: result: $result" >&5
6430 echo "${ECHO_T}$result" >&6; }
6431
6432
6433           enablestring=
6434           defaultval=$wxUSE_ALL_FEATURES
6435           if test -z "$defaultval"; then
6436               if test x"$enablestring" = xdisable; then
6437                   defaultval=yes
6438               else
6439                   defaultval=no
6440               fi
6441           fi
6442
6443           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6444 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6445           no_cache=0
6446           # Check whether --enable-dataobj was given.
6447 if test "${enable_dataobj+set}" = set; then
6448   enableval=$enable_dataobj;
6449                           if test "$enableval" = yes; then
6450                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6451                           else
6452                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6453                           fi
6454
6455 else
6456
6457                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6458                           if test "x$LINE" != x ; then
6459                             eval "DEFAULT_$LINE"
6460                           else
6461                             no_cache=1
6462                           fi
6463
6464                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6465
6466 fi
6467
6468
6469           eval "$wx_cv_use_dataobj"
6470           if test "$no_cache" != 1; then
6471             echo $wx_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
6472           fi
6473
6474           if test x"$enablestring" = xdisable; then
6475             if test $wxUSE_DATAOBJ = yes; then
6476               result=no
6477             else
6478               result=yes
6479             fi
6480           else
6481             result=$wxUSE_DATAOBJ
6482           fi
6483
6484           { echo "$as_me:$LINENO: result: $result" >&5
6485 echo "${ECHO_T}$result" >&6; }
6486
6487
6488
6489           enablestring=
6490           defaultval=$wxUSE_ALL_FEATURES
6491           if test -z "$defaultval"; then
6492               if test x"$enablestring" = xdisable; then
6493                   defaultval=yes
6494               else
6495                   defaultval=no
6496               fi
6497           fi
6498
6499           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6500 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6501           no_cache=0
6502           # Check whether --enable-ipc was given.
6503 if test "${enable_ipc+set}" = set; then
6504   enableval=$enable_ipc;
6505                           if test "$enableval" = yes; then
6506                             wx_cv_use_ipc='wxUSE_IPC=yes'
6507                           else
6508                             wx_cv_use_ipc='wxUSE_IPC=no'
6509                           fi
6510
6511 else
6512
6513                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6514                           if test "x$LINE" != x ; then
6515                             eval "DEFAULT_$LINE"
6516                           else
6517                             no_cache=1
6518                           fi
6519
6520                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6521
6522 fi
6523
6524
6525           eval "$wx_cv_use_ipc"
6526           if test "$no_cache" != 1; then
6527             echo $wx_cv_use_ipc >> ${wx_arg_cache_file}.tmp
6528           fi
6529
6530           if test x"$enablestring" = xdisable; then
6531             if test $wxUSE_IPC = yes; then
6532               result=no
6533             else
6534               result=yes
6535             fi
6536           else
6537             result=$wxUSE_IPC
6538           fi
6539
6540           { echo "$as_me:$LINENO: result: $result" >&5
6541 echo "${ECHO_T}$result" >&6; }
6542
6543
6544
6545           enablestring=
6546           defaultval=$wxUSE_ALL_FEATURES
6547           if test -z "$defaultval"; then
6548               if test x"$enablestring" = xdisable; then
6549                   defaultval=yes
6550               else
6551                   defaultval=no
6552               fi
6553           fi
6554
6555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6556 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6557           no_cache=0
6558           # Check whether --enable-baseevtloop was given.
6559 if test "${enable_baseevtloop+set}" = set; then
6560   enableval=$enable_baseevtloop;
6561                           if test "$enableval" = yes; then
6562                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6563                           else
6564                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6565                           fi
6566
6567 else
6568
6569                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6570                           if test "x$LINE" != x ; then
6571                             eval "DEFAULT_$LINE"
6572                           else
6573                             no_cache=1
6574                           fi
6575
6576                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6577
6578 fi
6579
6580
6581           eval "$wx_cv_use_baseevtloop"
6582           if test "$no_cache" != 1; then
6583             echo $wx_cv_use_baseevtloop >> ${wx_arg_cache_file}.tmp
6584           fi
6585
6586           if test x"$enablestring" = xdisable; then
6587             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6588               result=no
6589             else
6590               result=yes
6591             fi
6592           else
6593             result=$wxUSE_CONSOLE_EVENTLOOP
6594           fi
6595
6596           { echo "$as_me:$LINENO: result: $result" >&5
6597 echo "${ECHO_T}$result" >&6; }
6598
6599
6600           enablestring=
6601           defaultval=$wxUSE_ALL_FEATURES
6602           if test -z "$defaultval"; then
6603               if test x"$enablestring" = xdisable; then
6604                   defaultval=yes
6605               else
6606                   defaultval=no
6607               fi
6608           fi
6609
6610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epoolloop" >&5
6611 echo $ECHO_N "checking for --${enablestring:-enable}-epoolloop... $ECHO_C" >&6; }
6612           no_cache=0
6613           # Check whether --enable-epoolloop was given.
6614 if test "${enable_epoolloop+set}" = set; then
6615   enableval=$enable_epoolloop;
6616                           if test "$enableval" = yes; then
6617                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=yes'
6618                           else
6619                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=no'
6620                           fi
6621
6622 else
6623
6624                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6625                           if test "x$LINE" != x ; then
6626                             eval "DEFAULT_$LINE"
6627                           else
6628                             no_cache=1
6629                           fi
6630
6631                           wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6632
6633 fi
6634
6635
6636           eval "$wx_cv_use_epoolloop"
6637           if test "$no_cache" != 1; then
6638             echo $wx_cv_use_epoolloop >> ${wx_arg_cache_file}.tmp
6639           fi
6640
6641           if test x"$enablestring" = xdisable; then
6642             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6643               result=no
6644             else
6645               result=yes
6646             fi
6647           else
6648             result=$wxUSE_EPOLL_DISPATCHER
6649           fi
6650
6651           { echo "$as_me:$LINENO: result: $result" >&5
6652 echo "${ECHO_T}$result" >&6; }
6653
6654
6655           enablestring=
6656           defaultval=$wxUSE_ALL_FEATURES
6657           if test -z "$defaultval"; then
6658               if test x"$enablestring" = xdisable; then
6659                   defaultval=yes
6660               else
6661                   defaultval=no
6662               fi
6663           fi
6664
6665           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6666 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6667           no_cache=0
6668           # Check whether --enable-selectloop was given.
6669 if test "${enable_selectloop+set}" = set; then
6670   enableval=$enable_selectloop;
6671                           if test "$enableval" = yes; then
6672                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6673                           else
6674                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6675                           fi
6676
6677 else
6678
6679                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6680                           if test "x$LINE" != x ; then
6681                             eval "DEFAULT_$LINE"
6682                           else
6683                             no_cache=1
6684                           fi
6685
6686                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6687
6688 fi
6689
6690
6691           eval "$wx_cv_use_selectloop"
6692           if test "$no_cache" != 1; then
6693             echo $wx_cv_use_selectloop >> ${wx_arg_cache_file}.tmp
6694           fi
6695
6696           if test x"$enablestring" = xdisable; then
6697             if test $wxUSE_SELECT_DISPATCHER = yes; then
6698               result=no
6699             else
6700               result=yes
6701             fi
6702           else
6703             result=$wxUSE_SELECT_DISPATCHER
6704           fi
6705
6706           { echo "$as_me:$LINENO: result: $result" >&5
6707 echo "${ECHO_T}$result" >&6; }
6708
6709
6710
6711           enablestring=
6712           defaultval=$wxUSE_ALL_FEATURES
6713           if test -z "$defaultval"; then
6714               if test x"$enablestring" = xdisable; then
6715                   defaultval=yes
6716               else
6717                   defaultval=no
6718               fi
6719           fi
6720
6721           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6722 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6723           no_cache=0
6724           # Check whether --enable-apple_ieee was given.
6725 if test "${enable_apple_ieee+set}" = set; then
6726   enableval=$enable_apple_ieee;
6727                           if test "$enableval" = yes; then
6728                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6729                           else
6730                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6731                           fi
6732
6733 else
6734
6735                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6736                           if test "x$LINE" != x ; then
6737                             eval "DEFAULT_$LINE"
6738                           else
6739                             no_cache=1
6740                           fi
6741
6742                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6743
6744 fi
6745
6746
6747           eval "$wx_cv_use_apple_ieee"
6748           if test "$no_cache" != 1; then
6749             echo $wx_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
6750           fi
6751
6752           if test x"$enablestring" = xdisable; then
6753             if test $wxUSE_APPLE_IEEE = yes; then
6754               result=no
6755             else
6756               result=yes
6757             fi
6758           else
6759             result=$wxUSE_APPLE_IEEE
6760           fi
6761
6762           { echo "$as_me:$LINENO: result: $result" >&5
6763 echo "${ECHO_T}$result" >&6; }
6764
6765
6766           enablestring=
6767           defaultval=$wxUSE_ALL_FEATURES
6768           if test -z "$defaultval"; then
6769               if test x"$enablestring" = xdisable; then
6770                   defaultval=yes
6771               else
6772                   defaultval=no
6773               fi
6774           fi
6775
6776           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6777 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6778           no_cache=0
6779           # Check whether --enable-arcstream was given.
6780 if test "${enable_arcstream+set}" = set; then
6781   enableval=$enable_arcstream;
6782                           if test "$enableval" = yes; then
6783                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6784                           else
6785                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6786                           fi
6787
6788 else
6789
6790                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6791                           if test "x$LINE" != x ; then
6792                             eval "DEFAULT_$LINE"
6793                           else
6794                             no_cache=1
6795                           fi
6796
6797                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6798
6799 fi
6800
6801
6802           eval "$wx_cv_use_arcstream"
6803           if test "$no_cache" != 1; then
6804             echo $wx_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
6805           fi
6806
6807           if test x"$enablestring" = xdisable; then
6808             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6809               result=no
6810             else
6811               result=yes
6812             fi
6813           else
6814             result=$wxUSE_ARCHIVE_STREAMS
6815           fi
6816
6817           { echo "$as_me:$LINENO: result: $result" >&5
6818 echo "${ECHO_T}$result" >&6; }
6819
6820
6821           enablestring=
6822           defaultval=$wxUSE_ALL_FEATURES
6823           if test -z "$defaultval"; then
6824               if test x"$enablestring" = xdisable; then
6825                   defaultval=yes
6826               else
6827                   defaultval=no
6828               fi
6829           fi
6830
6831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6832 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6833           no_cache=0
6834           # Check whether --enable-base64 was given.
6835 if test "${enable_base64+set}" = set; then
6836   enableval=$enable_base64;
6837                           if test "$enableval" = yes; then
6838                             wx_cv_use_base64='wxUSE_BASE64=yes'
6839                           else
6840                             wx_cv_use_base64='wxUSE_BASE64=no'
6841                           fi
6842
6843 else
6844
6845                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6846                           if test "x$LINE" != x ; then
6847                             eval "DEFAULT_$LINE"
6848                           else
6849                             no_cache=1
6850                           fi
6851
6852                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6853
6854 fi
6855
6856
6857           eval "$wx_cv_use_base64"
6858           if test "$no_cache" != 1; then
6859             echo $wx_cv_use_base64 >> ${wx_arg_cache_file}.tmp
6860           fi
6861
6862           if test x"$enablestring" = xdisable; then
6863             if test $wxUSE_BASE64 = yes; then
6864               result=no
6865             else
6866               result=yes
6867             fi
6868           else
6869             result=$wxUSE_BASE64
6870           fi
6871
6872           { echo "$as_me:$LINENO: result: $result" >&5
6873 echo "${ECHO_T}$result" >&6; }
6874
6875
6876           enablestring=
6877           defaultval=$wxUSE_ALL_FEATURES
6878           if test -z "$defaultval"; then
6879               if test x"$enablestring" = xdisable; then
6880                   defaultval=yes
6881               else
6882                   defaultval=no
6883               fi
6884           fi
6885
6886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6887 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6888           no_cache=0
6889           # Check whether --enable-backtrace was given.
6890 if test "${enable_backtrace+set}" = set; then
6891   enableval=$enable_backtrace;
6892                           if test "$enableval" = yes; then
6893                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6894                           else
6895                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6896                           fi
6897
6898 else
6899
6900                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
6901                           if test "x$LINE" != x ; then
6902                             eval "DEFAULT_$LINE"
6903                           else
6904                             no_cache=1
6905                           fi
6906
6907                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6908
6909 fi
6910
6911
6912           eval "$wx_cv_use_backtrace"
6913           if test "$no_cache" != 1; then
6914             echo $wx_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
6915           fi
6916
6917           if test x"$enablestring" = xdisable; then
6918             if test $wxUSE_STACKWALKER = yes; then
6919               result=no
6920             else
6921               result=yes
6922             fi
6923           else
6924             result=$wxUSE_STACKWALKER
6925           fi
6926
6927           { echo "$as_me:$LINENO: result: $result" >&5
6928 echo "${ECHO_T}$result" >&6; }
6929
6930
6931           enablestring=
6932           defaultval=$wxUSE_ALL_FEATURES
6933           if test -z "$defaultval"; then
6934               if test x"$enablestring" = xdisable; then
6935                   defaultval=yes
6936               else
6937                   defaultval=no
6938               fi
6939           fi
6940
6941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6942 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6943           no_cache=0
6944           # Check whether --enable-catch_segvs was given.
6945 if test "${enable_catch_segvs+set}" = set; then
6946   enableval=$enable_catch_segvs;
6947                           if test "$enableval" = yes; then
6948                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6949                           else
6950                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6951                           fi
6952
6953 else
6954
6955                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
6956                           if test "x$LINE" != x ; then
6957                             eval "DEFAULT_$LINE"
6958                           else
6959                             no_cache=1
6960                           fi
6961
6962                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6963
6964 fi
6965
6966
6967           eval "$wx_cv_use_catch_segvs"
6968           if test "$no_cache" != 1; then
6969             echo $wx_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
6970           fi
6971
6972           if test x"$enablestring" = xdisable; then
6973             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6974               result=no
6975             else
6976               result=yes
6977             fi
6978           else
6979             result=$wxUSE_ON_FATAL_EXCEPTION
6980           fi
6981
6982           { echo "$as_me:$LINENO: result: $result" >&5
6983 echo "${ECHO_T}$result" >&6; }
6984
6985
6986           enablestring=
6987           defaultval=$wxUSE_ALL_FEATURES
6988           if test -z "$defaultval"; then
6989               if test x"$enablestring" = xdisable; then
6990                   defaultval=yes
6991               else
6992                   defaultval=no
6993               fi
6994           fi
6995
6996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6997 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6998           no_cache=0
6999           # Check whether --enable-cmdline was given.
7000 if test "${enable_cmdline+set}" = set; then
7001   enableval=$enable_cmdline;
7002                           if test "$enableval" = yes; then
7003                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
7004                           else
7005                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
7006                           fi
7007
7008 else
7009
7010                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7011                           if test "x$LINE" != x ; then
7012                             eval "DEFAULT_$LINE"
7013                           else
7014                             no_cache=1
7015                           fi
7016
7017                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7018
7019 fi
7020
7021
7022           eval "$wx_cv_use_cmdline"
7023           if test "$no_cache" != 1; then
7024             echo $wx_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
7025           fi
7026
7027           if test x"$enablestring" = xdisable; then
7028             if test $wxUSE_CMDLINE_PARSER = yes; then
7029               result=no
7030             else
7031               result=yes
7032             fi
7033           else
7034             result=$wxUSE_CMDLINE_PARSER
7035           fi
7036
7037           { echo "$as_me:$LINENO: result: $result" >&5
7038 echo "${ECHO_T}$result" >&6; }
7039
7040
7041           enablestring=
7042           defaultval=$wxUSE_ALL_FEATURES
7043           if test -z "$defaultval"; then
7044               if test x"$enablestring" = xdisable; then
7045                   defaultval=yes
7046               else
7047                   defaultval=no
7048               fi
7049           fi
7050
7051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7052 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7053           no_cache=0
7054           # Check whether --enable-datetime was given.
7055 if test "${enable_datetime+set}" = set; then
7056   enableval=$enable_datetime;
7057                           if test "$enableval" = yes; then
7058                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7059                           else
7060                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7061                           fi
7062
7063 else
7064
7065                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7066                           if test "x$LINE" != x ; then
7067                             eval "DEFAULT_$LINE"
7068                           else
7069                             no_cache=1
7070                           fi
7071
7072                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7073
7074 fi
7075
7076
7077           eval "$wx_cv_use_datetime"
7078           if test "$no_cache" != 1; then
7079             echo $wx_cv_use_datetime >> ${wx_arg_cache_file}.tmp
7080           fi
7081
7082           if test x"$enablestring" = xdisable; then
7083             if test $wxUSE_DATETIME = yes; then
7084               result=no
7085             else
7086               result=yes
7087             fi
7088           else
7089             result=$wxUSE_DATETIME
7090           fi
7091
7092           { echo "$as_me:$LINENO: result: $result" >&5
7093 echo "${ECHO_T}$result" >&6; }
7094
7095
7096           enablestring=
7097           defaultval=$wxUSE_ALL_FEATURES
7098           if test -z "$defaultval"; then
7099               if test x"$enablestring" = xdisable; then
7100                   defaultval=yes
7101               else
7102                   defaultval=no
7103               fi
7104           fi
7105
7106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7107 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7108           no_cache=0
7109           # Check whether --enable-debugreport was given.
7110 if test "${enable_debugreport+set}" = set; then
7111   enableval=$enable_debugreport;
7112                           if test "$enableval" = yes; then
7113                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7114                           else
7115                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7116                           fi
7117
7118 else
7119
7120                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7121                           if test "x$LINE" != x ; then
7122                             eval "DEFAULT_$LINE"
7123                           else
7124                             no_cache=1
7125                           fi
7126
7127                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7128
7129 fi
7130
7131
7132           eval "$wx_cv_use_debugreport"
7133           if test "$no_cache" != 1; then
7134             echo $wx_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
7135           fi
7136
7137           if test x"$enablestring" = xdisable; then
7138             if test $wxUSE_DEBUGREPORT = yes; then
7139               result=no
7140             else
7141               result=yes
7142             fi
7143           else
7144             result=$wxUSE_DEBUGREPORT
7145           fi
7146
7147           { echo "$as_me:$LINENO: result: $result" >&5
7148 echo "${ECHO_T}$result" >&6; }
7149
7150
7151           enablestring=
7152           defaultval=$wxUSE_ALL_FEATURES
7153           if test -z "$defaultval"; then
7154               if test x"$enablestring" = xdisable; then
7155                   defaultval=yes
7156               else
7157                   defaultval=no
7158               fi
7159           fi
7160
7161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7162 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7163           no_cache=0
7164           # Check whether --enable-dialupman was given.
7165 if test "${enable_dialupman+set}" = set; then
7166   enableval=$enable_dialupman;
7167                           if test "$enableval" = yes; then
7168                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7169                           else
7170                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7171                           fi
7172
7173 else
7174
7175                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7176                           if test "x$LINE" != x ; then
7177                             eval "DEFAULT_$LINE"
7178                           else
7179                             no_cache=1
7180                           fi
7181
7182                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7183
7184 fi
7185
7186
7187           eval "$wx_cv_use_dialupman"
7188           if test "$no_cache" != 1; then
7189             echo $wx_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
7190           fi
7191
7192           if test x"$enablestring" = xdisable; then
7193             if test $wxUSE_DIALUP_MANAGER = yes; then
7194               result=no
7195             else
7196               result=yes
7197             fi
7198           else
7199             result=$wxUSE_DIALUP_MANAGER
7200           fi
7201
7202           { echo "$as_me:$LINENO: result: $result" >&5
7203 echo "${ECHO_T}$result" >&6; }
7204
7205
7206           enablestring=
7207           defaultval=$wxUSE_ALL_FEATURES
7208           if test -z "$defaultval"; then
7209               if test x"$enablestring" = xdisable; then
7210                   defaultval=yes
7211               else
7212                   defaultval=no
7213               fi
7214           fi
7215
7216           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7217 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7218           no_cache=0
7219           # Check whether --enable-dynlib was given.
7220 if test "${enable_dynlib+set}" = set; then
7221   enableval=$enable_dynlib;
7222                           if test "$enableval" = yes; then
7223                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7224                           else
7225                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7226                           fi
7227
7228 else
7229
7230                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7231                           if test "x$LINE" != x ; then
7232                             eval "DEFAULT_$LINE"
7233                           else
7234                             no_cache=1
7235                           fi
7236
7237                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7238
7239 fi
7240
7241
7242           eval "$wx_cv_use_dynlib"
7243           if test "$no_cache" != 1; then
7244             echo $wx_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
7245           fi
7246
7247           if test x"$enablestring" = xdisable; then
7248             if test $wxUSE_DYNLIB_CLASS = yes; then
7249               result=no
7250             else
7251               result=yes
7252             fi
7253           else
7254             result=$wxUSE_DYNLIB_CLASS
7255           fi
7256
7257           { echo "$as_me:$LINENO: result: $result" >&5
7258 echo "${ECHO_T}$result" >&6; }
7259
7260
7261           enablestring=
7262           defaultval=$wxUSE_ALL_FEATURES
7263           if test -z "$defaultval"; then
7264               if test x"$enablestring" = xdisable; then
7265                   defaultval=yes
7266               else
7267                   defaultval=no
7268               fi
7269           fi
7270
7271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7272 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7273           no_cache=0
7274           # Check whether --enable-dynamicloader was given.
7275 if test "${enable_dynamicloader+set}" = set; then
7276   enableval=$enable_dynamicloader;
7277                           if test "$enableval" = yes; then
7278                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7279                           else
7280                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7281                           fi
7282
7283 else
7284
7285                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7286                           if test "x$LINE" != x ; then
7287                             eval "DEFAULT_$LINE"
7288                           else
7289                             no_cache=1
7290                           fi
7291
7292                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7293
7294 fi
7295
7296
7297           eval "$wx_cv_use_dynamicloader"
7298           if test "$no_cache" != 1; then
7299             echo $wx_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
7300           fi
7301
7302           if test x"$enablestring" = xdisable; then
7303             if test $wxUSE_DYNAMIC_LOADER = yes; then
7304               result=no
7305             else
7306               result=yes
7307             fi
7308           else
7309             result=$wxUSE_DYNAMIC_LOADER
7310           fi
7311
7312           { echo "$as_me:$LINENO: result: $result" >&5
7313 echo "${ECHO_T}$result" >&6; }
7314
7315
7316           enablestring=
7317           defaultval=$wxUSE_ALL_FEATURES
7318           if test -z "$defaultval"; then
7319               if test x"$enablestring" = xdisable; then
7320                   defaultval=yes
7321               else
7322                   defaultval=no
7323               fi
7324           fi
7325
7326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7327 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7328           no_cache=0
7329           # Check whether --enable-exceptions was given.
7330 if test "${enable_exceptions+set}" = set; then
7331   enableval=$enable_exceptions;
7332                           if test "$enableval" = yes; then
7333                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7334                           else
7335                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7336                           fi
7337
7338 else
7339
7340                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7341                           if test "x$LINE" != x ; then
7342                             eval "DEFAULT_$LINE"
7343                           else
7344                             no_cache=1
7345                           fi
7346
7347                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7348
7349 fi
7350
7351
7352           eval "$wx_cv_use_exceptions"
7353           if test "$no_cache" != 1; then
7354             echo $wx_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
7355           fi
7356
7357           if test x"$enablestring" = xdisable; then
7358             if test $wxUSE_EXCEPTIONS = yes; then
7359               result=no
7360             else
7361               result=yes
7362             fi
7363           else
7364             result=$wxUSE_EXCEPTIONS
7365           fi
7366
7367           { echo "$as_me:$LINENO: result: $result" >&5
7368 echo "${ECHO_T}$result" >&6; }
7369
7370
7371           enablestring=
7372           defaultval=$wxUSE_ALL_FEATURES
7373           if test -z "$defaultval"; then
7374               if test x"$enablestring" = xdisable; then
7375                   defaultval=yes
7376               else
7377                   defaultval=no
7378               fi
7379           fi
7380
7381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7382 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7383           no_cache=0
7384           # Check whether --enable-ffile was given.
7385 if test "${enable_ffile+set}" = set; then
7386   enableval=$enable_ffile;
7387                           if test "$enableval" = yes; then
7388                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7389                           else
7390                             wx_cv_use_ffile='wxUSE_FFILE=no'
7391                           fi
7392
7393 else
7394
7395                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7396                           if test "x$LINE" != x ; then
7397                             eval "DEFAULT_$LINE"
7398                           else
7399                             no_cache=1
7400                           fi
7401
7402                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7403
7404 fi
7405
7406
7407           eval "$wx_cv_use_ffile"
7408           if test "$no_cache" != 1; then
7409             echo $wx_cv_use_ffile >> ${wx_arg_cache_file}.tmp
7410           fi
7411
7412           if test x"$enablestring" = xdisable; then
7413             if test $wxUSE_FFILE = yes; then
7414               result=no
7415             else
7416               result=yes
7417             fi
7418           else
7419             result=$wxUSE_FFILE
7420           fi
7421
7422           { echo "$as_me:$LINENO: result: $result" >&5
7423 echo "${ECHO_T}$result" >&6; }
7424
7425
7426           enablestring=
7427           defaultval=$wxUSE_ALL_FEATURES
7428           if test -z "$defaultval"; then
7429               if test x"$enablestring" = xdisable; then
7430                   defaultval=yes
7431               else
7432                   defaultval=no
7433               fi
7434           fi
7435
7436           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7437 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7438           no_cache=0
7439           # Check whether --enable-file was given.
7440 if test "${enable_file+set}" = set; then
7441   enableval=$enable_file;
7442                           if test "$enableval" = yes; then
7443                             wx_cv_use_file='wxUSE_FILE=yes'
7444                           else
7445                             wx_cv_use_file='wxUSE_FILE=no'
7446                           fi
7447
7448 else
7449
7450                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7451                           if test "x$LINE" != x ; then
7452                             eval "DEFAULT_$LINE"
7453                           else
7454                             no_cache=1
7455                           fi
7456
7457                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7458
7459 fi
7460
7461
7462           eval "$wx_cv_use_file"
7463           if test "$no_cache" != 1; then
7464             echo $wx_cv_use_file >> ${wx_arg_cache_file}.tmp
7465           fi
7466
7467           if test x"$enablestring" = xdisable; then
7468             if test $wxUSE_FILE = yes; then
7469               result=no
7470             else
7471               result=yes
7472             fi
7473           else
7474             result=$wxUSE_FILE
7475           fi
7476
7477           { echo "$as_me:$LINENO: result: $result" >&5
7478 echo "${ECHO_T}$result" >&6; }
7479
7480
7481           enablestring=
7482           defaultval=$wxUSE_ALL_FEATURES
7483           if test -z "$defaultval"; then
7484               if test x"$enablestring" = xdisable; then
7485                   defaultval=yes
7486               else
7487                   defaultval=no
7488               fi
7489           fi
7490
7491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7492 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7493           no_cache=0
7494           # Check whether --enable-filesystem was given.
7495 if test "${enable_filesystem+set}" = set; then
7496   enableval=$enable_filesystem;
7497                           if test "$enableval" = yes; then
7498                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7499                           else
7500                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7501                           fi
7502
7503 else
7504
7505                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7506                           if test "x$LINE" != x ; then
7507                             eval "DEFAULT_$LINE"
7508                           else
7509                             no_cache=1
7510                           fi
7511
7512                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7513
7514 fi
7515
7516
7517           eval "$wx_cv_use_filesystem"
7518           if test "$no_cache" != 1; then
7519             echo $wx_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
7520           fi
7521
7522           if test x"$enablestring" = xdisable; then
7523             if test $wxUSE_FILESYSTEM = yes; then
7524               result=no
7525             else
7526               result=yes
7527             fi
7528           else
7529             result=$wxUSE_FILESYSTEM
7530           fi
7531
7532           { echo "$as_me:$LINENO: result: $result" >&5
7533 echo "${ECHO_T}$result" >&6; }
7534
7535
7536           enablestring=
7537           defaultval=$wxUSE_ALL_FEATURES
7538           if test -z "$defaultval"; then
7539               if test x"$enablestring" = xdisable; then
7540                   defaultval=yes
7541               else
7542                   defaultval=no
7543               fi
7544           fi
7545
7546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7547 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7548           no_cache=0
7549           # Check whether --enable-fontmap was given.
7550 if test "${enable_fontmap+set}" = set; then
7551   enableval=$enable_fontmap;
7552                           if test "$enableval" = yes; then
7553                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7554                           else
7555                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7556                           fi
7557
7558 else
7559
7560                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7561                           if test "x$LINE" != x ; then
7562                             eval "DEFAULT_$LINE"
7563                           else
7564                             no_cache=1
7565                           fi
7566
7567                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7568
7569 fi
7570
7571
7572           eval "$wx_cv_use_fontmap"
7573           if test "$no_cache" != 1; then
7574             echo $wx_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
7575           fi
7576
7577           if test x"$enablestring" = xdisable; then
7578             if test $wxUSE_FONTMAP = yes; then
7579               result=no
7580             else
7581               result=yes
7582             fi
7583           else
7584             result=$wxUSE_FONTMAP
7585           fi
7586
7587           { echo "$as_me:$LINENO: result: $result" >&5
7588 echo "${ECHO_T}$result" >&6; }
7589
7590
7591           enablestring=
7592           defaultval=$wxUSE_ALL_FEATURES
7593           if test -z "$defaultval"; then
7594               if test x"$enablestring" = xdisable; then
7595                   defaultval=yes
7596               else
7597                   defaultval=no
7598               fi
7599           fi
7600
7601           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7602 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7603           no_cache=0
7604           # Check whether --enable-fs_archive was given.
7605 if test "${enable_fs_archive+set}" = set; then
7606   enableval=$enable_fs_archive;
7607                           if test "$enableval" = yes; then
7608                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7609                           else
7610                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7611                           fi
7612
7613 else
7614
7615                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7616                           if test "x$LINE" != x ; then
7617                             eval "DEFAULT_$LINE"
7618                           else
7619                             no_cache=1
7620                           fi
7621
7622                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7623
7624 fi
7625
7626
7627           eval "$wx_cv_use_fs_archive"
7628           if test "$no_cache" != 1; then
7629             echo $wx_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
7630           fi
7631
7632           if test x"$enablestring" = xdisable; then
7633             if test $wxUSE_FS_ARCHIVE = yes; then
7634               result=no
7635             else
7636               result=yes
7637             fi
7638           else
7639             result=$wxUSE_FS_ARCHIVE
7640           fi
7641
7642           { echo "$as_me:$LINENO: result: $result" >&5
7643 echo "${ECHO_T}$result" >&6; }
7644
7645
7646           enablestring=
7647           defaultval=$wxUSE_ALL_FEATURES
7648           if test -z "$defaultval"; then
7649               if test x"$enablestring" = xdisable; then
7650                   defaultval=yes
7651               else
7652                   defaultval=no
7653               fi
7654           fi
7655
7656           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7657 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7658           no_cache=0
7659           # Check whether --enable-fs_inet was given.
7660 if test "${enable_fs_inet+set}" = set; then
7661   enableval=$enable_fs_inet;
7662                           if test "$enableval" = yes; then
7663                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7664                           else
7665                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7666                           fi
7667
7668 else
7669
7670                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7671                           if test "x$LINE" != x ; then
7672                             eval "DEFAULT_$LINE"
7673                           else
7674                             no_cache=1
7675                           fi
7676
7677                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7678
7679 fi
7680
7681
7682           eval "$wx_cv_use_fs_inet"
7683           if test "$no_cache" != 1; then
7684             echo $wx_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
7685           fi
7686
7687           if test x"$enablestring" = xdisable; then
7688             if test $wxUSE_FS_INET = yes; then
7689               result=no
7690             else
7691               result=yes
7692             fi
7693           else
7694             result=$wxUSE_FS_INET
7695           fi
7696
7697           { echo "$as_me:$LINENO: result: $result" >&5
7698 echo "${ECHO_T}$result" >&6; }
7699
7700
7701           enablestring=
7702           defaultval=$wxUSE_ALL_FEATURES
7703           if test -z "$defaultval"; then
7704               if test x"$enablestring" = xdisable; then
7705                   defaultval=yes
7706               else
7707                   defaultval=no
7708               fi
7709           fi
7710
7711           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7712 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7713           no_cache=0
7714           # Check whether --enable-fs_zip was given.
7715 if test "${enable_fs_zip+set}" = set; then
7716   enableval=$enable_fs_zip;
7717                           if test "$enableval" = yes; then
7718                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7719                           else
7720                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7721                           fi
7722
7723 else
7724
7725                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7726                           if test "x$LINE" != x ; then
7727                             eval "DEFAULT_$LINE"
7728                           else
7729                             no_cache=1
7730                           fi
7731
7732                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7733
7734 fi
7735
7736
7737           eval "$wx_cv_use_fs_zip"
7738           if test "$no_cache" != 1; then
7739             echo $wx_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
7740           fi
7741
7742           if test x"$enablestring" = xdisable; then
7743             if test $wxUSE_FS_ZIP = yes; then
7744               result=no
7745             else
7746               result=yes
7747             fi
7748           else
7749             result=$wxUSE_FS_ZIP
7750           fi
7751
7752           { echo "$as_me:$LINENO: result: $result" >&5
7753 echo "${ECHO_T}$result" >&6; }
7754
7755
7756           enablestring=
7757           defaultval=$wxUSE_ALL_FEATURES
7758           if test -z "$defaultval"; then
7759               if test x"$enablestring" = xdisable; then
7760                   defaultval=yes
7761               else
7762                   defaultval=no
7763               fi
7764           fi
7765
7766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7767 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7768           no_cache=0
7769           # Check whether --enable-geometry was given.
7770 if test "${enable_geometry+set}" = set; then
7771   enableval=$enable_geometry;
7772                           if test "$enableval" = yes; then
7773                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7774                           else
7775                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7776                           fi
7777
7778 else
7779
7780                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7781                           if test "x$LINE" != x ; then
7782                             eval "DEFAULT_$LINE"
7783                           else
7784                             no_cache=1
7785                           fi
7786
7787                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7788
7789 fi
7790
7791
7792           eval "$wx_cv_use_geometry"
7793           if test "$no_cache" != 1; then
7794             echo $wx_cv_use_geometry >> ${wx_arg_cache_file}.tmp
7795           fi
7796
7797           if test x"$enablestring" = xdisable; then
7798             if test $wxUSE_GEOMETRY = yes; then
7799               result=no
7800             else
7801               result=yes
7802             fi
7803           else
7804             result=$wxUSE_GEOMETRY
7805           fi
7806
7807           { echo "$as_me:$LINENO: result: $result" >&5
7808 echo "${ECHO_T}$result" >&6; }
7809
7810
7811           enablestring=
7812           defaultval=$wxUSE_ALL_FEATURES
7813           if test -z "$defaultval"; then
7814               if test x"$enablestring" = xdisable; then
7815                   defaultval=yes
7816               else
7817                   defaultval=no
7818               fi
7819           fi
7820
7821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7822 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7823           no_cache=0
7824           # Check whether --enable-log was given.
7825 if test "${enable_log+set}" = set; then
7826   enableval=$enable_log;
7827                           if test "$enableval" = yes; then
7828                             wx_cv_use_log='wxUSE_LOG=yes'
7829                           else
7830                             wx_cv_use_log='wxUSE_LOG=no'
7831                           fi
7832
7833 else
7834
7835                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
7836                           if test "x$LINE" != x ; then
7837                             eval "DEFAULT_$LINE"
7838                           else
7839                             no_cache=1
7840                           fi
7841
7842                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7843
7844 fi
7845
7846
7847           eval "$wx_cv_use_log"
7848           if test "$no_cache" != 1; then
7849             echo $wx_cv_use_log >> ${wx_arg_cache_file}.tmp
7850           fi
7851
7852           if test x"$enablestring" = xdisable; then
7853             if test $wxUSE_LOG = yes; then
7854               result=no
7855             else
7856               result=yes
7857             fi
7858           else
7859             result=$wxUSE_LOG
7860           fi
7861
7862           { echo "$as_me:$LINENO: result: $result" >&5
7863 echo "${ECHO_T}$result" >&6; }
7864
7865
7866           enablestring=
7867           defaultval=$wxUSE_ALL_FEATURES
7868           if test -z "$defaultval"; then
7869               if test x"$enablestring" = xdisable; then
7870                   defaultval=yes
7871               else
7872                   defaultval=no
7873               fi
7874           fi
7875
7876           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7877 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7878           no_cache=0
7879           # Check whether --enable-longlong was given.
7880 if test "${enable_longlong+set}" = set; then
7881   enableval=$enable_longlong;
7882                           if test "$enableval" = yes; then
7883                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7884                           else
7885                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7886                           fi
7887
7888 else
7889
7890                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
7891                           if test "x$LINE" != x ; then
7892                             eval "DEFAULT_$LINE"
7893                           else
7894                             no_cache=1
7895                           fi
7896
7897                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7898
7899 fi
7900
7901
7902           eval "$wx_cv_use_longlong"
7903           if test "$no_cache" != 1; then
7904             echo $wx_cv_use_longlong >> ${wx_arg_cache_file}.tmp
7905           fi
7906
7907           if test x"$enablestring" = xdisable; then
7908             if test $wxUSE_LONGLONG = yes; then
7909               result=no
7910             else
7911               result=yes
7912             fi
7913           else
7914             result=$wxUSE_LONGLONG
7915           fi
7916
7917           { echo "$as_me:$LINENO: result: $result" >&5
7918 echo "${ECHO_T}$result" >&6; }
7919
7920
7921           enablestring=
7922           defaultval=$wxUSE_ALL_FEATURES
7923           if test -z "$defaultval"; then
7924               if test x"$enablestring" = xdisable; then
7925                   defaultval=yes
7926               else
7927                   defaultval=no
7928               fi
7929           fi
7930
7931           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7932 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7933           no_cache=0
7934           # Check whether --enable-mimetype was given.
7935 if test "${enable_mimetype+set}" = set; then
7936   enableval=$enable_mimetype;
7937                           if test "$enableval" = yes; then
7938                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7939                           else
7940                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7941                           fi
7942
7943 else
7944
7945                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
7946                           if test "x$LINE" != x ; then
7947                             eval "DEFAULT_$LINE"
7948                           else
7949                             no_cache=1
7950                           fi
7951
7952                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7953
7954 fi
7955
7956
7957           eval "$wx_cv_use_mimetype"
7958           if test "$no_cache" != 1; then
7959             echo $wx_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
7960           fi
7961
7962           if test x"$enablestring" = xdisable; then
7963             if test $wxUSE_MIMETYPE = yes; then
7964               result=no
7965             else
7966               result=yes
7967             fi
7968           else
7969             result=$wxUSE_MIMETYPE
7970           fi
7971
7972           { echo "$as_me:$LINENO: result: $result" >&5
7973 echo "${ECHO_T}$result" >&6; }
7974
7975
7976           enablestring=
7977           defaultval=$wxUSE_ALL_FEATURES
7978           if test -z "$defaultval"; then
7979               if test x"$enablestring" = xdisable; then
7980                   defaultval=yes
7981               else
7982                   defaultval=no
7983               fi
7984           fi
7985
7986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7987 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7988           no_cache=0
7989           # Check whether --enable-snglinst was given.
7990 if test "${enable_snglinst+set}" = set; then
7991   enableval=$enable_snglinst;
7992                           if test "$enableval" = yes; then
7993                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7994                           else
7995                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7996                           fi
7997
7998 else
7999
8000                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8001                           if test "x$LINE" != x ; then
8002                             eval "DEFAULT_$LINE"
8003                           else
8004                             no_cache=1
8005                           fi
8006
8007                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8008
8009 fi
8010
8011
8012           eval "$wx_cv_use_snglinst"
8013           if test "$no_cache" != 1; then
8014             echo $wx_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
8015           fi
8016
8017           if test x"$enablestring" = xdisable; then
8018             if test $wxUSE_SNGLINST_CHECKER = yes; then
8019               result=no
8020             else
8021               result=yes
8022             fi
8023           else
8024             result=$wxUSE_SNGLINST_CHECKER
8025           fi
8026
8027           { echo "$as_me:$LINENO: result: $result" >&5
8028 echo "${ECHO_T}$result" >&6; }
8029
8030
8031           enablestring=
8032           defaultval=$wxUSE_ALL_FEATURES
8033           if test -z "$defaultval"; then
8034               if test x"$enablestring" = xdisable; then
8035                   defaultval=yes
8036               else
8037                   defaultval=no
8038               fi
8039           fi
8040
8041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8042 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8043           no_cache=0
8044           # Check whether --enable-stdpaths was given.
8045 if test "${enable_stdpaths+set}" = set; then
8046   enableval=$enable_stdpaths;
8047                           if test "$enableval" = yes; then
8048                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8049                           else
8050                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8051                           fi
8052
8053 else
8054
8055                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8056                           if test "x$LINE" != x ; then
8057                             eval "DEFAULT_$LINE"
8058                           else
8059                             no_cache=1
8060                           fi
8061
8062                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8063
8064 fi
8065
8066
8067           eval "$wx_cv_use_stdpaths"
8068           if test "$no_cache" != 1; then
8069             echo $wx_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
8070           fi
8071
8072           if test x"$enablestring" = xdisable; then
8073             if test $wxUSE_STDPATHS = yes; then
8074               result=no
8075             else
8076               result=yes
8077             fi
8078           else
8079             result=$wxUSE_STDPATHS
8080           fi
8081
8082           { echo "$as_me:$LINENO: result: $result" >&5
8083 echo "${ECHO_T}$result" >&6; }
8084
8085
8086           enablestring=
8087           defaultval=$wxUSE_ALL_FEATURES
8088           if test -z "$defaultval"; then
8089               if test x"$enablestring" = xdisable; then
8090                   defaultval=yes
8091               else
8092                   defaultval=no
8093               fi
8094           fi
8095
8096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8097 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8098           no_cache=0
8099           # Check whether --enable-stopwatch was given.
8100 if test "${enable_stopwatch+set}" = set; then
8101   enableval=$enable_stopwatch;
8102                           if test "$enableval" = yes; then
8103                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8104                           else
8105                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8106                           fi
8107
8108 else
8109
8110                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8111                           if test "x$LINE" != x ; then
8112                             eval "DEFAULT_$LINE"
8113                           else
8114                             no_cache=1
8115                           fi
8116
8117                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8118
8119 fi
8120
8121
8122           eval "$wx_cv_use_stopwatch"
8123           if test "$no_cache" != 1; then
8124             echo $wx_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
8125           fi
8126
8127           if test x"$enablestring" = xdisable; then
8128             if test $wxUSE_STOPWATCH = yes; then
8129               result=no
8130             else
8131               result=yes
8132             fi
8133           else
8134             result=$wxUSE_STOPWATCH
8135           fi
8136
8137           { echo "$as_me:$LINENO: result: $result" >&5
8138 echo "${ECHO_T}$result" >&6; }
8139
8140
8141           enablestring=
8142           defaultval=$wxUSE_ALL_FEATURES
8143           if test -z "$defaultval"; then
8144               if test x"$enablestring" = xdisable; then
8145                   defaultval=yes
8146               else
8147                   defaultval=no
8148               fi
8149           fi
8150
8151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8152 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8153           no_cache=0
8154           # Check whether --enable-streams was given.
8155 if test "${enable_streams+set}" = set; then
8156   enableval=$enable_streams;
8157                           if test "$enableval" = yes; then
8158                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8159                           else
8160                             wx_cv_use_streams='wxUSE_STREAMS=no'
8161                           fi
8162
8163 else
8164
8165                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8166                           if test "x$LINE" != x ; then
8167                             eval "DEFAULT_$LINE"
8168                           else
8169                             no_cache=1
8170                           fi
8171
8172                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8173
8174 fi
8175
8176
8177           eval "$wx_cv_use_streams"
8178           if test "$no_cache" != 1; then
8179             echo $wx_cv_use_streams >> ${wx_arg_cache_file}.tmp
8180           fi
8181
8182           if test x"$enablestring" = xdisable; then
8183             if test $wxUSE_STREAMS = yes; then
8184               result=no
8185             else
8186               result=yes
8187             fi
8188           else
8189             result=$wxUSE_STREAMS
8190           fi
8191
8192           { echo "$as_me:$LINENO: result: $result" >&5
8193 echo "${ECHO_T}$result" >&6; }
8194
8195
8196           enablestring=
8197           defaultval=$wxUSE_ALL_FEATURES
8198           if test -z "$defaultval"; then
8199               if test x"$enablestring" = xdisable; then
8200                   defaultval=yes
8201               else
8202                   defaultval=no
8203               fi
8204           fi
8205
8206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8207 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8208           no_cache=0
8209           # Check whether --enable-system_options was given.
8210 if test "${enable_system_options+set}" = set; then
8211   enableval=$enable_system_options;
8212                           if test "$enableval" = yes; then
8213                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8214                           else
8215                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8216                           fi
8217
8218 else
8219
8220                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8221                           if test "x$LINE" != x ; then
8222                             eval "DEFAULT_$LINE"
8223                           else
8224                             no_cache=1
8225                           fi
8226
8227                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8228
8229 fi
8230
8231
8232           eval "$wx_cv_use_system_options"
8233           if test "$no_cache" != 1; then
8234             echo $wx_cv_use_system_options >> ${wx_arg_cache_file}.tmp
8235           fi
8236
8237           if test x"$enablestring" = xdisable; then
8238             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8239               result=no
8240             else
8241               result=yes
8242             fi
8243           else
8244             result=$wxUSE_SYSTEM_OPTIONS
8245           fi
8246
8247           { echo "$as_me:$LINENO: result: $result" >&5
8248 echo "${ECHO_T}$result" >&6; }
8249
8250
8251           enablestring=
8252           defaultval=$wxUSE_ALL_FEATURES
8253           if test -z "$defaultval"; then
8254               if test x"$enablestring" = xdisable; then
8255                   defaultval=yes
8256               else
8257                   defaultval=no
8258               fi
8259           fi
8260
8261           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8262 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8263           no_cache=0
8264           # Check whether --enable-tarstream was given.
8265 if test "${enable_tarstream+set}" = set; then
8266   enableval=$enable_tarstream;
8267                           if test "$enableval" = yes; then
8268                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8269                           else
8270                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8271                           fi
8272
8273 else
8274
8275                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8276                           if test "x$LINE" != x ; then
8277                             eval "DEFAULT_$LINE"
8278                           else
8279                             no_cache=1
8280                           fi
8281
8282                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8283
8284 fi
8285
8286
8287           eval "$wx_cv_use_tarstream"
8288           if test "$no_cache" != 1; then
8289             echo $wx_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
8290           fi
8291
8292           if test x"$enablestring" = xdisable; then
8293             if test $wxUSE_TARSTREAM = yes; then
8294               result=no
8295             else
8296               result=yes
8297             fi
8298           else
8299             result=$wxUSE_TARSTREAM
8300           fi
8301
8302           { echo "$as_me:$LINENO: result: $result" >&5
8303 echo "${ECHO_T}$result" >&6; }
8304
8305
8306           enablestring=
8307           defaultval=$wxUSE_ALL_FEATURES
8308           if test -z "$defaultval"; then
8309               if test x"$enablestring" = xdisable; then
8310                   defaultval=yes
8311               else
8312                   defaultval=no
8313               fi
8314           fi
8315
8316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8317 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8318           no_cache=0
8319           # Check whether --enable-textbuf was given.
8320 if test "${enable_textbuf+set}" = set; then
8321   enableval=$enable_textbuf;
8322                           if test "$enableval" = yes; then
8323                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8324                           else
8325                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8326                           fi
8327
8328 else
8329
8330                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8331                           if test "x$LINE" != x ; then
8332                             eval "DEFAULT_$LINE"
8333                           else
8334                             no_cache=1
8335                           fi
8336
8337                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8338
8339 fi
8340
8341
8342           eval "$wx_cv_use_textbuf"
8343           if test "$no_cache" != 1; then
8344             echo $wx_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
8345           fi
8346
8347           if test x"$enablestring" = xdisable; then
8348             if test $wxUSE_TEXTBUFFER = yes; then
8349               result=no
8350             else
8351               result=yes
8352             fi
8353           else
8354             result=$wxUSE_TEXTBUFFER
8355           fi
8356
8357           { echo "$as_me:$LINENO: result: $result" >&5
8358 echo "${ECHO_T}$result" >&6; }
8359
8360
8361           enablestring=
8362           defaultval=$wxUSE_ALL_FEATURES
8363           if test -z "$defaultval"; then
8364               if test x"$enablestring" = xdisable; then
8365                   defaultval=yes
8366               else
8367                   defaultval=no
8368               fi
8369           fi
8370
8371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8372 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8373           no_cache=0
8374           # Check whether --enable-textfile was given.
8375 if test "${enable_textfile+set}" = set; then
8376   enableval=$enable_textfile;
8377                           if test "$enableval" = yes; then
8378                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8379                           else
8380                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8381                           fi
8382
8383 else
8384
8385                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8386                           if test "x$LINE" != x ; then
8387                             eval "DEFAULT_$LINE"
8388                           else
8389                             no_cache=1
8390                           fi
8391
8392                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8393
8394 fi
8395
8396
8397           eval "$wx_cv_use_textfile"
8398           if test "$no_cache" != 1; then
8399             echo $wx_cv_use_textfile >> ${wx_arg_cache_file}.tmp
8400           fi
8401
8402           if test x"$enablestring" = xdisable; then
8403             if test $wxUSE_TEXTFILE = yes; then
8404               result=no
8405             else
8406               result=yes
8407             fi
8408           else
8409             result=$wxUSE_TEXTFILE
8410           fi
8411
8412           { echo "$as_me:$LINENO: result: $result" >&5
8413 echo "${ECHO_T}$result" >&6; }
8414
8415
8416           enablestring=
8417           defaultval=$wxUSE_ALL_FEATURES
8418           if test -z "$defaultval"; then
8419               if test x"$enablestring" = xdisable; then
8420                   defaultval=yes
8421               else
8422                   defaultval=no
8423               fi
8424           fi
8425
8426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8427 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8428           no_cache=0
8429           # Check whether --enable-timer was given.
8430 if test "${enable_timer+set}" = set; then
8431   enableval=$enable_timer;
8432                           if test "$enableval" = yes; then
8433                             wx_cv_use_timer='wxUSE_TIMER=yes'
8434                           else
8435                             wx_cv_use_timer='wxUSE_TIMER=no'
8436                           fi
8437
8438 else
8439
8440                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8441                           if test "x$LINE" != x ; then
8442                             eval "DEFAULT_$LINE"
8443                           else
8444                             no_cache=1
8445                           fi
8446
8447                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8448
8449 fi
8450
8451
8452           eval "$wx_cv_use_timer"
8453           if test "$no_cache" != 1; then
8454             echo $wx_cv_use_timer >> ${wx_arg_cache_file}.tmp
8455           fi
8456
8457           if test x"$enablestring" = xdisable; then
8458             if test $wxUSE_TIMER = yes; then
8459               result=no
8460             else
8461               result=yes
8462             fi
8463           else
8464             result=$wxUSE_TIMER
8465           fi
8466
8467           { echo "$as_me:$LINENO: result: $result" >&5
8468 echo "${ECHO_T}$result" >&6; }
8469
8470
8471           enablestring=
8472           defaultval=$wxUSE_ALL_FEATURES
8473           if test -z "$defaultval"; then
8474               if test x"$enablestring" = xdisable; then
8475                   defaultval=yes
8476               else
8477                   defaultval=no
8478               fi
8479           fi
8480
8481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8482 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8483           no_cache=0
8484           # Check whether --enable-sound was given.
8485 if test "${enable_sound+set}" = set; then
8486   enableval=$enable_sound;
8487                           if test "$enableval" = yes; then
8488                             wx_cv_use_sound='wxUSE_SOUND=yes'
8489                           else
8490                             wx_cv_use_sound='wxUSE_SOUND=no'
8491                           fi
8492
8493 else
8494
8495                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8496                           if test "x$LINE" != x ; then
8497                             eval "DEFAULT_$LINE"
8498                           else
8499                             no_cache=1
8500                           fi
8501
8502                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8503
8504 fi
8505
8506
8507           eval "$wx_cv_use_sound"
8508           if test "$no_cache" != 1; then
8509             echo $wx_cv_use_sound >> ${wx_arg_cache_file}.tmp
8510           fi
8511
8512           if test x"$enablestring" = xdisable; then
8513             if test $wxUSE_SOUND = yes; then
8514               result=no
8515             else
8516               result=yes
8517             fi
8518           else
8519             result=$wxUSE_SOUND
8520           fi
8521
8522           { echo "$as_me:$LINENO: result: $result" >&5
8523 echo "${ECHO_T}$result" >&6; }
8524
8525
8526           enablestring=
8527           defaultval=$wxUSE_ALL_FEATURES
8528           if test -z "$defaultval"; then
8529               if test x"$enablestring" = xdisable; then
8530                   defaultval=yes
8531               else
8532                   defaultval=no
8533               fi
8534           fi
8535
8536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8537 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8538           no_cache=0
8539           # Check whether --enable-mediactrl was given.
8540 if test "${enable_mediactrl+set}" = set; then
8541   enableval=$enable_mediactrl;
8542                           if test "$enableval" = yes; then
8543                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8544                           else
8545                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8546                           fi
8547
8548 else
8549
8550                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8551                           if test "x$LINE" != x ; then
8552                             eval "DEFAULT_$LINE"
8553                           else
8554                             no_cache=1
8555                           fi
8556
8557                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8558
8559 fi
8560
8561
8562           eval "$wx_cv_use_mediactrl"
8563           if test "$no_cache" != 1; then
8564             echo $wx_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
8565           fi
8566
8567           if test x"$enablestring" = xdisable; then
8568             if test $wxUSE_MEDIACTRL = yes; then
8569               result=no
8570             else
8571               result=yes
8572             fi
8573           else
8574             result=$wxUSE_MEDIACTRL
8575           fi
8576
8577           { echo "$as_me:$LINENO: result: $result" >&5
8578 echo "${ECHO_T}$result" >&6; }
8579
8580
8581           enablestring=
8582           defaultval=$wxUSE_ALL_FEATURES
8583           if test -z "$defaultval"; then
8584               if test x"$enablestring" = xdisable; then
8585                   defaultval=yes
8586               else
8587                   defaultval=no
8588               fi
8589           fi
8590
8591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8592 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8593           no_cache=0
8594           # Check whether --enable-gstreamer8 was given.
8595 if test "${enable_gstreamer8+set}" = set; then
8596   enableval=$enable_gstreamer8;
8597                           if test "$enableval" = yes; then
8598                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8599                           else
8600                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8601                           fi
8602
8603 else
8604
8605                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8606                           if test "x$LINE" != x ; then
8607                             eval "DEFAULT_$LINE"
8608                           else
8609                             no_cache=1
8610                           fi
8611
8612                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8613
8614 fi
8615
8616
8617           eval "$wx_cv_use_gstreamer8"
8618           if test "$no_cache" != 1; then
8619             echo $wx_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
8620           fi
8621
8622           if test x"$enablestring" = xdisable; then
8623             if test $wxUSE_GSTREAMER8 = yes; then
8624               result=no
8625             else
8626               result=yes
8627             fi
8628           else
8629             result=$wxUSE_GSTREAMER8
8630           fi
8631
8632           { echo "$as_me:$LINENO: result: $result" >&5
8633 echo "${ECHO_T}$result" >&6; }
8634
8635
8636           enablestring=
8637           defaultval=$wxUSE_ALL_FEATURES
8638           if test -z "$defaultval"; then
8639               if test x"$enablestring" = xdisable; then
8640                   defaultval=yes
8641               else
8642                   defaultval=no
8643               fi
8644           fi
8645
8646           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8647 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8648           no_cache=0
8649           # Check whether --enable-printfposparam was given.
8650 if test "${enable_printfposparam+set}" = set; then
8651   enableval=$enable_printfposparam;
8652                           if test "$enableval" = yes; then
8653                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8654                           else
8655                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8656                           fi
8657
8658 else
8659
8660                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8661                           if test "x$LINE" != x ; then
8662                             eval "DEFAULT_$LINE"
8663                           else
8664                             no_cache=1
8665                           fi
8666
8667                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8668
8669 fi
8670
8671
8672           eval "$wx_cv_use_printfposparam"
8673           if test "$no_cache" != 1; then
8674             echo $wx_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
8675           fi
8676
8677           if test x"$enablestring" = xdisable; then
8678             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8679               result=no
8680             else
8681               result=yes
8682             fi
8683           else
8684             result=$wxUSE_PRINTF_POS_PARAMS
8685           fi
8686
8687           { echo "$as_me:$LINENO: result: $result" >&5
8688 echo "${ECHO_T}$result" >&6; }
8689
8690
8691           enablestring=
8692           defaultval=$wxUSE_ALL_FEATURES
8693           if test -z "$defaultval"; then
8694               if test x"$enablestring" = xdisable; then
8695                   defaultval=yes
8696               else
8697                   defaultval=no
8698               fi
8699           fi
8700
8701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8702 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8703           no_cache=0
8704           # Check whether --enable-zipstream was given.
8705 if test "${enable_zipstream+set}" = set; then
8706   enableval=$enable_zipstream;
8707                           if test "$enableval" = yes; then
8708                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8709                           else
8710                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8711                           fi
8712
8713 else
8714
8715                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8716                           if test "x$LINE" != x ; then
8717                             eval "DEFAULT_$LINE"
8718                           else
8719                             no_cache=1
8720                           fi
8721
8722                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8723
8724 fi
8725
8726
8727           eval "$wx_cv_use_zipstream"
8728           if test "$no_cache" != 1; then
8729             echo $wx_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
8730           fi
8731
8732           if test x"$enablestring" = xdisable; then
8733             if test $wxUSE_ZIPSTREAM = yes; then
8734               result=no
8735             else
8736               result=yes
8737             fi
8738           else
8739             result=$wxUSE_ZIPSTREAM
8740           fi
8741
8742           { echo "$as_me:$LINENO: result: $result" >&5
8743 echo "${ECHO_T}$result" >&6; }
8744
8745
8746
8747           enablestring=
8748           defaultval=$wxUSE_ALL_FEATURES
8749           if test -z "$defaultval"; then
8750               if test x"$enablestring" = xdisable; then
8751                   defaultval=yes
8752               else
8753                   defaultval=no
8754               fi
8755           fi
8756
8757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8758 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8759           no_cache=0
8760           # Check whether --enable-url was given.
8761 if test "${enable_url+set}" = set; then
8762   enableval=$enable_url;
8763                           if test "$enableval" = yes; then
8764                             wx_cv_use_url='wxUSE_URL=yes'
8765                           else
8766                             wx_cv_use_url='wxUSE_URL=no'
8767                           fi
8768
8769 else
8770
8771                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8772                           if test "x$LINE" != x ; then
8773                             eval "DEFAULT_$LINE"
8774                           else
8775                             no_cache=1
8776                           fi
8777
8778                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8779
8780 fi
8781
8782
8783           eval "$wx_cv_use_url"
8784           if test "$no_cache" != 1; then
8785             echo $wx_cv_use_url >> ${wx_arg_cache_file}.tmp
8786           fi
8787
8788           if test x"$enablestring" = xdisable; then
8789             if test $wxUSE_URL = yes; then
8790               result=no
8791             else
8792               result=yes
8793             fi
8794           else
8795             result=$wxUSE_URL
8796           fi
8797
8798           { echo "$as_me:$LINENO: result: $result" >&5
8799 echo "${ECHO_T}$result" >&6; }
8800
8801
8802           enablestring=
8803           defaultval=$wxUSE_ALL_FEATURES
8804           if test -z "$defaultval"; then
8805               if test x"$enablestring" = xdisable; then
8806                   defaultval=yes
8807               else
8808                   defaultval=no
8809               fi
8810           fi
8811
8812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8813 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8814           no_cache=0
8815           # Check whether --enable-variant was given.
8816 if test "${enable_variant+set}" = set; then
8817   enableval=$enable_variant;
8818                           if test "$enableval" = yes; then
8819                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8820                           else
8821                             wx_cv_use_variant='wxUSE_VARIANT=no'
8822                           fi
8823
8824 else
8825
8826                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
8827                           if test "x$LINE" != x ; then
8828                             eval "DEFAULT_$LINE"
8829                           else
8830                             no_cache=1
8831                           fi
8832
8833                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8834
8835 fi
8836
8837
8838           eval "$wx_cv_use_variant"
8839           if test "$no_cache" != 1; then
8840             echo $wx_cv_use_variant >> ${wx_arg_cache_file}.tmp
8841           fi
8842
8843           if test x"$enablestring" = xdisable; then
8844             if test $wxUSE_VARIANT = yes; then
8845               result=no
8846             else
8847               result=yes
8848             fi
8849           else
8850             result=$wxUSE_VARIANT
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}-protocol" >&5
8868 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8869           no_cache=0
8870           # Check whether --enable-protocol was given.
8871 if test "${enable_protocol+set}" = set; then
8872   enableval=$enable_protocol;
8873                           if test "$enableval" = yes; then
8874                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8875                           else
8876                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8877                           fi
8878
8879 else
8880
8881                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
8882                           if test "x$LINE" != x ; then
8883                             eval "DEFAULT_$LINE"
8884                           else
8885                             no_cache=1
8886                           fi
8887
8888                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8889
8890 fi
8891
8892
8893           eval "$wx_cv_use_protocol"
8894           if test "$no_cache" != 1; then
8895             echo $wx_cv_use_protocol >> ${wx_arg_cache_file}.tmp
8896           fi
8897
8898           if test x"$enablestring" = xdisable; then
8899             if test $wxUSE_PROTOCOL = yes; then
8900               result=no
8901             else
8902               result=yes
8903             fi
8904           else
8905             result=$wxUSE_PROTOCOL
8906           fi
8907
8908           { echo "$as_me:$LINENO: result: $result" >&5
8909 echo "${ECHO_T}$result" >&6; }
8910
8911
8912           enablestring=
8913           defaultval=$wxUSE_ALL_FEATURES
8914           if test -z "$defaultval"; then
8915               if test x"$enablestring" = xdisable; then
8916                   defaultval=yes
8917               else
8918                   defaultval=no
8919               fi
8920           fi
8921
8922           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8923 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8924           no_cache=0
8925           # Check whether --enable-protocol_http was given.
8926 if test "${enable_protocol_http+set}" = set; then
8927   enableval=$enable_protocol_http;
8928                           if test "$enableval" = yes; then
8929                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8930                           else
8931                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8932                           fi
8933
8934 else
8935
8936                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
8937                           if test "x$LINE" != x ; then
8938                             eval "DEFAULT_$LINE"
8939                           else
8940                             no_cache=1
8941                           fi
8942
8943                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8944
8945 fi
8946
8947
8948           eval "$wx_cv_use_protocol_http"
8949           if test "$no_cache" != 1; then
8950             echo $wx_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
8951           fi
8952
8953           if test x"$enablestring" = xdisable; then
8954             if test $wxUSE_PROTOCOL_HTTP = yes; then
8955               result=no
8956             else
8957               result=yes
8958             fi
8959           else
8960             result=$wxUSE_PROTOCOL_HTTP
8961           fi
8962
8963           { echo "$as_me:$LINENO: result: $result" >&5
8964 echo "${ECHO_T}$result" >&6; }
8965
8966
8967           enablestring=
8968           defaultval=$wxUSE_ALL_FEATURES
8969           if test -z "$defaultval"; then
8970               if test x"$enablestring" = xdisable; then
8971                   defaultval=yes
8972               else
8973                   defaultval=no
8974               fi
8975           fi
8976
8977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8978 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8979           no_cache=0
8980           # Check whether --enable-protocol_ftp was given.
8981 if test "${enable_protocol_ftp+set}" = set; then
8982   enableval=$enable_protocol_ftp;
8983                           if test "$enableval" = yes; then
8984                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8985                           else
8986                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8987                           fi
8988
8989 else
8990
8991                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
8992                           if test "x$LINE" != x ; then
8993                             eval "DEFAULT_$LINE"
8994                           else
8995                             no_cache=1
8996                           fi
8997
8998                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8999
9000 fi
9001
9002
9003           eval "$wx_cv_use_protocol_ftp"
9004           if test "$no_cache" != 1; then
9005             echo $wx_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
9006           fi
9007
9008           if test x"$enablestring" = xdisable; then
9009             if test $wxUSE_PROTOCOL_FTP = yes; then
9010               result=no
9011             else
9012               result=yes
9013             fi
9014           else
9015             result=$wxUSE_PROTOCOL_FTP
9016           fi
9017
9018           { echo "$as_me:$LINENO: result: $result" >&5
9019 echo "${ECHO_T}$result" >&6; }
9020
9021
9022           enablestring=
9023           defaultval=$wxUSE_ALL_FEATURES
9024           if test -z "$defaultval"; then
9025               if test x"$enablestring" = xdisable; then
9026                   defaultval=yes
9027               else
9028                   defaultval=no
9029               fi
9030           fi
9031
9032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9033 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9034           no_cache=0
9035           # Check whether --enable-protocol_file was given.
9036 if test "${enable_protocol_file+set}" = set; then
9037   enableval=$enable_protocol_file;
9038                           if test "$enableval" = yes; then
9039                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9040                           else
9041                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9042                           fi
9043
9044 else
9045
9046                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9047                           if test "x$LINE" != x ; then
9048                             eval "DEFAULT_$LINE"
9049                           else
9050                             no_cache=1
9051                           fi
9052
9053                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9054
9055 fi
9056
9057
9058           eval "$wx_cv_use_protocol_file"
9059           if test "$no_cache" != 1; then
9060             echo $wx_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
9061           fi
9062
9063           if test x"$enablestring" = xdisable; then
9064             if test $wxUSE_PROTOCOL_FILE = yes; then
9065               result=no
9066             else
9067               result=yes
9068             fi
9069           else
9070             result=$wxUSE_PROTOCOL_FILE
9071           fi
9072
9073           { echo "$as_me:$LINENO: result: $result" >&5
9074 echo "${ECHO_T}$result" >&6; }
9075
9076
9077
9078           enablestring=
9079           defaultval=$wxUSE_ALL_FEATURES
9080           if test -z "$defaultval"; then
9081               if test x"$enablestring" = xdisable; then
9082                   defaultval=yes
9083               else
9084                   defaultval=no
9085               fi
9086           fi
9087
9088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9089 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9090           no_cache=0
9091           # Check whether --enable-threads was given.
9092 if test "${enable_threads+set}" = set; then
9093   enableval=$enable_threads;
9094                           if test "$enableval" = yes; then
9095                             wx_cv_use_threads='wxUSE_THREADS=yes'
9096                           else
9097                             wx_cv_use_threads='wxUSE_THREADS=no'
9098                           fi
9099
9100 else
9101
9102                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9103                           if test "x$LINE" != x ; then
9104                             eval "DEFAULT_$LINE"
9105                           else
9106                             no_cache=1
9107                           fi
9108
9109                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9110
9111 fi
9112
9113
9114           eval "$wx_cv_use_threads"
9115           if test "$no_cache" != 1; then
9116             echo $wx_cv_use_threads >> ${wx_arg_cache_file}.tmp
9117           fi
9118
9119           if test x"$enablestring" = xdisable; then
9120             if test $wxUSE_THREADS = yes; then
9121               result=no
9122             else
9123               result=yes
9124             fi
9125           else
9126             result=$wxUSE_THREADS
9127           fi
9128
9129           { echo "$as_me:$LINENO: result: $result" >&5
9130 echo "${ECHO_T}$result" >&6; }
9131
9132
9133 if test "$wxUSE_GUI" = "yes"; then
9134
9135
9136
9137           enablestring=
9138           defaultval=$wxUSE_ALL_FEATURES
9139           if test -z "$defaultval"; then
9140               if test x"$enablestring" = xdisable; then
9141                   defaultval=yes
9142               else
9143                   defaultval=no
9144               fi
9145           fi
9146
9147           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9148 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9149           no_cache=0
9150           # Check whether --enable-docview was given.
9151 if test "${enable_docview+set}" = set; then
9152   enableval=$enable_docview;
9153                           if test "$enableval" = yes; then
9154                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9155                           else
9156                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9157                           fi
9158
9159 else
9160
9161                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9162                           if test "x$LINE" != x ; then
9163                             eval "DEFAULT_$LINE"
9164                           else
9165                             no_cache=1
9166                           fi
9167
9168                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9169
9170 fi
9171
9172
9173           eval "$wx_cv_use_docview"
9174           if test "$no_cache" != 1; then
9175             echo $wx_cv_use_docview >> ${wx_arg_cache_file}.tmp
9176           fi
9177
9178           if test x"$enablestring" = xdisable; then
9179             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9180               result=no
9181             else
9182               result=yes
9183             fi
9184           else
9185             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9186           fi
9187
9188           { echo "$as_me:$LINENO: result: $result" >&5
9189 echo "${ECHO_T}$result" >&6; }
9190
9191
9192           enablestring=
9193           defaultval=$wxUSE_ALL_FEATURES
9194           if test -z "$defaultval"; then
9195               if test x"$enablestring" = xdisable; then
9196                   defaultval=yes
9197               else
9198                   defaultval=no
9199               fi
9200           fi
9201
9202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9203 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9204           no_cache=0
9205           # Check whether --enable-help was given.
9206 if test "${enable_help+set}" = set; then
9207   enableval=$enable_help;
9208                           if test "$enableval" = yes; then
9209                             wx_cv_use_help='wxUSE_HELP=yes'
9210                           else
9211                             wx_cv_use_help='wxUSE_HELP=no'
9212                           fi
9213
9214 else
9215
9216                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9217                           if test "x$LINE" != x ; then
9218                             eval "DEFAULT_$LINE"
9219                           else
9220                             no_cache=1
9221                           fi
9222
9223                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9224
9225 fi
9226
9227
9228           eval "$wx_cv_use_help"
9229           if test "$no_cache" != 1; then
9230             echo $wx_cv_use_help >> ${wx_arg_cache_file}.tmp
9231           fi
9232
9233           if test x"$enablestring" = xdisable; then
9234             if test $wxUSE_HELP = yes; then
9235               result=no
9236             else
9237               result=yes
9238             fi
9239           else
9240             result=$wxUSE_HELP
9241           fi
9242
9243           { echo "$as_me:$LINENO: result: $result" >&5
9244 echo "${ECHO_T}$result" >&6; }
9245
9246
9247           enablestring=
9248           defaultval=$wxUSE_ALL_FEATURES
9249           if test -z "$defaultval"; then
9250               if test x"$enablestring" = xdisable; then
9251                   defaultval=yes
9252               else
9253                   defaultval=no
9254               fi
9255           fi
9256
9257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9258 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9259           no_cache=0
9260           # Check whether --enable-mshtmlhelp was given.
9261 if test "${enable_mshtmlhelp+set}" = set; then
9262   enableval=$enable_mshtmlhelp;
9263                           if test "$enableval" = yes; then
9264                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9265                           else
9266                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9267                           fi
9268
9269 else
9270
9271                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9272                           if test "x$LINE" != x ; then
9273                             eval "DEFAULT_$LINE"
9274                           else
9275                             no_cache=1
9276                           fi
9277
9278                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9279
9280 fi
9281
9282
9283           eval "$wx_cv_use_mshtmlhelp"
9284           if test "$no_cache" != 1; then
9285             echo $wx_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
9286           fi
9287
9288           if test x"$enablestring" = xdisable; then
9289             if test $wxUSE_MS_HTML_HELP = yes; then
9290               result=no
9291             else
9292               result=yes
9293             fi
9294           else
9295             result=$wxUSE_MS_HTML_HELP
9296           fi
9297
9298           { echo "$as_me:$LINENO: result: $result" >&5
9299 echo "${ECHO_T}$result" >&6; }
9300
9301
9302           enablestring=
9303           defaultval=$wxUSE_ALL_FEATURES
9304           if test -z "$defaultval"; then
9305               if test x"$enablestring" = xdisable; then
9306                   defaultval=yes
9307               else
9308                   defaultval=no
9309               fi
9310           fi
9311
9312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9313 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9314           no_cache=0
9315           # Check whether --enable-html was given.
9316 if test "${enable_html+set}" = set; then
9317   enableval=$enable_html;
9318                           if test "$enableval" = yes; then
9319                             wx_cv_use_html='wxUSE_HTML=yes'
9320                           else
9321                             wx_cv_use_html='wxUSE_HTML=no'
9322                           fi
9323
9324 else
9325
9326                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9327                           if test "x$LINE" != x ; then
9328                             eval "DEFAULT_$LINE"
9329                           else
9330                             no_cache=1
9331                           fi
9332
9333                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9334
9335 fi
9336
9337
9338           eval "$wx_cv_use_html"
9339           if test "$no_cache" != 1; then
9340             echo $wx_cv_use_html >> ${wx_arg_cache_file}.tmp
9341           fi
9342
9343           if test x"$enablestring" = xdisable; then
9344             if test $wxUSE_HTML = yes; then
9345               result=no
9346             else
9347               result=yes
9348             fi
9349           else
9350             result=$wxUSE_HTML
9351           fi
9352
9353           { echo "$as_me:$LINENO: result: $result" >&5
9354 echo "${ECHO_T}$result" >&6; }
9355
9356
9357           enablestring=
9358           defaultval=$wxUSE_ALL_FEATURES
9359           if test -z "$defaultval"; then
9360               if test x"$enablestring" = xdisable; then
9361                   defaultval=yes
9362               else
9363                   defaultval=no
9364               fi
9365           fi
9366
9367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9368 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9369           no_cache=0
9370           # Check whether --enable-htmlhelp was given.
9371 if test "${enable_htmlhelp+set}" = set; then
9372   enableval=$enable_htmlhelp;
9373                           if test "$enableval" = yes; then
9374                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9375                           else
9376                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9377                           fi
9378
9379 else
9380
9381                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9382                           if test "x$LINE" != x ; then
9383                             eval "DEFAULT_$LINE"
9384                           else
9385                             no_cache=1
9386                           fi
9387
9388                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9389
9390 fi
9391
9392
9393           eval "$wx_cv_use_htmlhelp"
9394           if test "$no_cache" != 1; then
9395             echo $wx_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
9396           fi
9397
9398           if test x"$enablestring" = xdisable; then
9399             if test $wxUSE_WXHTML_HELP = yes; then
9400               result=no
9401             else
9402               result=yes
9403             fi
9404           else
9405             result=$wxUSE_WXHTML_HELP
9406           fi
9407
9408           { echo "$as_me:$LINENO: result: $result" >&5
9409 echo "${ECHO_T}$result" >&6; }
9410
9411
9412           enablestring=
9413           defaultval=$wxUSE_ALL_FEATURES
9414           if test -z "$defaultval"; then
9415               if test x"$enablestring" = xdisable; then
9416                   defaultval=yes
9417               else
9418                   defaultval=no
9419               fi
9420           fi
9421
9422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9423 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9424           no_cache=0
9425           # Check whether --enable-xrc was given.
9426 if test "${enable_xrc+set}" = set; then
9427   enableval=$enable_xrc;
9428                           if test "$enableval" = yes; then
9429                             wx_cv_use_xrc='wxUSE_XRC=yes'
9430                           else
9431                             wx_cv_use_xrc='wxUSE_XRC=no'
9432                           fi
9433
9434 else
9435
9436                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9437                           if test "x$LINE" != x ; then
9438                             eval "DEFAULT_$LINE"
9439                           else
9440                             no_cache=1
9441                           fi
9442
9443                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9444
9445 fi
9446
9447
9448           eval "$wx_cv_use_xrc"
9449           if test "$no_cache" != 1; then
9450             echo $wx_cv_use_xrc >> ${wx_arg_cache_file}.tmp
9451           fi
9452
9453           if test x"$enablestring" = xdisable; then
9454             if test $wxUSE_XRC = yes; then
9455               result=no
9456             else
9457               result=yes
9458             fi
9459           else
9460             result=$wxUSE_XRC
9461           fi
9462
9463           { echo "$as_me:$LINENO: result: $result" >&5
9464 echo "${ECHO_T}$result" >&6; }
9465
9466
9467           enablestring=
9468           defaultval=$wxUSE_ALL_FEATURES
9469           if test -z "$defaultval"; then
9470               if test x"$enablestring" = xdisable; then
9471                   defaultval=yes
9472               else
9473                   defaultval=no
9474               fi
9475           fi
9476
9477           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9478 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9479           no_cache=0
9480           # Check whether --enable-aui was given.
9481 if test "${enable_aui+set}" = set; then
9482   enableval=$enable_aui;
9483                           if test "$enableval" = yes; then
9484                             wx_cv_use_aui='wxUSE_AUI=yes'
9485                           else
9486                             wx_cv_use_aui='wxUSE_AUI=no'
9487                           fi
9488
9489 else
9490
9491                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9492                           if test "x$LINE" != x ; then
9493                             eval "DEFAULT_$LINE"
9494                           else
9495                             no_cache=1
9496                           fi
9497
9498                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9499
9500 fi
9501
9502
9503           eval "$wx_cv_use_aui"
9504           if test "$no_cache" != 1; then
9505             echo $wx_cv_use_aui >> ${wx_arg_cache_file}.tmp
9506           fi
9507
9508           if test x"$enablestring" = xdisable; then
9509             if test $wxUSE_AUI = yes; then
9510               result=no
9511             else
9512               result=yes
9513             fi
9514           else
9515             result=$wxUSE_AUI
9516           fi
9517
9518           { echo "$as_me:$LINENO: result: $result" >&5
9519 echo "${ECHO_T}$result" >&6; }
9520
9521
9522           enablestring=
9523           defaultval=$wxUSE_ALL_FEATURES
9524           if test -z "$defaultval"; then
9525               if test x"$enablestring" = xdisable; then
9526                   defaultval=yes
9527               else
9528                   defaultval=no
9529               fi
9530           fi
9531
9532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9533 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9534           no_cache=0
9535           # Check whether --enable-stc was given.
9536 if test "${enable_stc+set}" = set; then
9537   enableval=$enable_stc;
9538                           if test "$enableval" = yes; then
9539                             wx_cv_use_stc='wxUSE_STC=yes'
9540                           else
9541                             wx_cv_use_stc='wxUSE_STC=no'
9542                           fi
9543
9544 else
9545
9546                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9547                           if test "x$LINE" != x ; then
9548                             eval "DEFAULT_$LINE"
9549                           else
9550                             no_cache=1
9551                           fi
9552
9553                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9554
9555 fi
9556
9557
9558           eval "$wx_cv_use_stc"
9559           if test "$no_cache" != 1; then
9560             echo $wx_cv_use_stc >> ${wx_arg_cache_file}.tmp
9561           fi
9562
9563           if test x"$enablestring" = xdisable; then
9564             if test $wxUSE_STC = yes; then
9565               result=no
9566             else
9567               result=yes
9568             fi
9569           else
9570             result=$wxUSE_STC
9571           fi
9572
9573           { echo "$as_me:$LINENO: result: $result" >&5
9574 echo "${ECHO_T}$result" >&6; }
9575
9576
9577           enablestring=
9578           defaultval=$wxUSE_ALL_FEATURES
9579           if test -z "$defaultval"; then
9580               if test x"$enablestring" = xdisable; then
9581                   defaultval=yes
9582               else
9583                   defaultval=no
9584               fi
9585           fi
9586
9587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9588 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9589           no_cache=0
9590           # Check whether --enable-constraints was given.
9591 if test "${enable_constraints+set}" = set; then
9592   enableval=$enable_constraints;
9593                           if test "$enableval" = yes; then
9594                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9595                           else
9596                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9597                           fi
9598
9599 else
9600
9601                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9602                           if test "x$LINE" != x ; then
9603                             eval "DEFAULT_$LINE"
9604                           else
9605                             no_cache=1
9606                           fi
9607
9608                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9609
9610 fi
9611
9612
9613           eval "$wx_cv_use_constraints"
9614           if test "$no_cache" != 1; then
9615             echo $wx_cv_use_constraints >> ${wx_arg_cache_file}.tmp
9616           fi
9617
9618           if test x"$enablestring" = xdisable; then
9619             if test $wxUSE_CONSTRAINTS = yes; then
9620               result=no
9621             else
9622               result=yes
9623             fi
9624           else
9625             result=$wxUSE_CONSTRAINTS
9626           fi
9627
9628           { echo "$as_me:$LINENO: result: $result" >&5
9629 echo "${ECHO_T}$result" >&6; }
9630
9631
9632           enablestring=
9633           defaultval=$wxUSE_ALL_FEATURES
9634           if test -z "$defaultval"; then
9635               if test x"$enablestring" = xdisable; then
9636                   defaultval=yes
9637               else
9638                   defaultval=no
9639               fi
9640           fi
9641
9642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9643 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9644           no_cache=0
9645           # Check whether --enable-printarch was given.
9646 if test "${enable_printarch+set}" = set; then
9647   enableval=$enable_printarch;
9648                           if test "$enableval" = yes; then
9649                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9650                           else
9651                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9652                           fi
9653
9654 else
9655
9656                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9657                           if test "x$LINE" != x ; then
9658                             eval "DEFAULT_$LINE"
9659                           else
9660                             no_cache=1
9661                           fi
9662
9663                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9664
9665 fi
9666
9667
9668           eval "$wx_cv_use_printarch"
9669           if test "$no_cache" != 1; then
9670             echo $wx_cv_use_printarch >> ${wx_arg_cache_file}.tmp
9671           fi
9672
9673           if test x"$enablestring" = xdisable; then
9674             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9675               result=no
9676             else
9677               result=yes
9678             fi
9679           else
9680             result=$wxUSE_PRINTING_ARCHITECTURE
9681           fi
9682
9683           { echo "$as_me:$LINENO: result: $result" >&5
9684 echo "${ECHO_T}$result" >&6; }
9685
9686
9687           enablestring=
9688           defaultval=$wxUSE_ALL_FEATURES
9689           if test -z "$defaultval"; then
9690               if test x"$enablestring" = xdisable; then
9691                   defaultval=yes
9692               else
9693                   defaultval=no
9694               fi
9695           fi
9696
9697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9698 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9699           no_cache=0
9700           # Check whether --enable-mdi was given.
9701 if test "${enable_mdi+set}" = set; then
9702   enableval=$enable_mdi;
9703                           if test "$enableval" = yes; then
9704                             wx_cv_use_mdi='wxUSE_MDI=yes'
9705                           else
9706                             wx_cv_use_mdi='wxUSE_MDI=no'
9707                           fi
9708
9709 else
9710
9711                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
9712                           if test "x$LINE" != x ; then
9713                             eval "DEFAULT_$LINE"
9714                           else
9715                             no_cache=1
9716                           fi
9717
9718                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9719
9720 fi
9721
9722
9723           eval "$wx_cv_use_mdi"
9724           if test "$no_cache" != 1; then
9725             echo $wx_cv_use_mdi >> ${wx_arg_cache_file}.tmp
9726           fi
9727
9728           if test x"$enablestring" = xdisable; then
9729             if test $wxUSE_MDI = yes; then
9730               result=no
9731             else
9732               result=yes
9733             fi
9734           else
9735             result=$wxUSE_MDI
9736           fi
9737
9738           { echo "$as_me:$LINENO: result: $result" >&5
9739 echo "${ECHO_T}$result" >&6; }
9740
9741
9742           enablestring=
9743           defaultval=$wxUSE_ALL_FEATURES
9744           if test -z "$defaultval"; then
9745               if test x"$enablestring" = xdisable; then
9746                   defaultval=yes
9747               else
9748                   defaultval=no
9749               fi
9750           fi
9751
9752           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9753 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9754           no_cache=0
9755           # Check whether --enable-mdidoc was given.
9756 if test "${enable_mdidoc+set}" = set; then
9757   enableval=$enable_mdidoc;
9758                           if test "$enableval" = yes; then
9759                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9760                           else
9761                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9762                           fi
9763
9764 else
9765
9766                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
9767                           if test "x$LINE" != x ; then
9768                             eval "DEFAULT_$LINE"
9769                           else
9770                             no_cache=1
9771                           fi
9772
9773                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9774
9775 fi
9776
9777
9778           eval "$wx_cv_use_mdidoc"
9779           if test "$no_cache" != 1; then
9780             echo $wx_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
9781           fi
9782
9783           if test x"$enablestring" = xdisable; then
9784             if test $wxUSE_MDI_ARCHITECTURE = yes; then
9785               result=no
9786             else
9787               result=yes
9788             fi
9789           else
9790             result=$wxUSE_MDI_ARCHITECTURE
9791           fi
9792
9793           { echo "$as_me:$LINENO: result: $result" >&5
9794 echo "${ECHO_T}$result" >&6; }
9795
9796
9797           enablestring=
9798           defaultval=$wxUSE_ALL_FEATURES
9799           if test -z "$defaultval"; then
9800               if test x"$enablestring" = xdisable; then
9801                   defaultval=yes
9802               else
9803                   defaultval=no
9804               fi
9805           fi
9806
9807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9808 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9809           no_cache=0
9810           # Check whether --enable-loggui was given.
9811 if test "${enable_loggui+set}" = set; then
9812   enableval=$enable_loggui;
9813                           if test "$enableval" = yes; then
9814                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9815                           else
9816                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9817                           fi
9818
9819 else
9820
9821                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
9822                           if test "x$LINE" != x ; then
9823                             eval "DEFAULT_$LINE"
9824                           else
9825                             no_cache=1
9826                           fi
9827
9828                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9829
9830 fi
9831
9832
9833           eval "$wx_cv_use_loggui"
9834           if test "$no_cache" != 1; then
9835             echo $wx_cv_use_loggui >> ${wx_arg_cache_file}.tmp
9836           fi
9837
9838           if test x"$enablestring" = xdisable; then
9839             if test $wxUSE_LOGGUI = yes; then
9840               result=no
9841             else
9842               result=yes
9843             fi
9844           else
9845             result=$wxUSE_LOGGUI
9846           fi
9847
9848           { echo "$as_me:$LINENO: result: $result" >&5
9849 echo "${ECHO_T}$result" >&6; }
9850
9851
9852           enablestring=
9853           defaultval=$wxUSE_ALL_FEATURES
9854           if test -z "$defaultval"; then
9855               if test x"$enablestring" = xdisable; then
9856                   defaultval=yes
9857               else
9858                   defaultval=no
9859               fi
9860           fi
9861
9862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9863 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9864           no_cache=0
9865           # Check whether --enable-logwin was given.
9866 if test "${enable_logwin+set}" = set; then
9867   enableval=$enable_logwin;
9868                           if test "$enableval" = yes; then
9869                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9870                           else
9871                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9872                           fi
9873
9874 else
9875
9876                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
9877                           if test "x$LINE" != x ; then
9878                             eval "DEFAULT_$LINE"
9879                           else
9880                             no_cache=1
9881                           fi
9882
9883                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9884
9885 fi
9886
9887
9888           eval "$wx_cv_use_logwin"
9889           if test "$no_cache" != 1; then
9890             echo $wx_cv_use_logwin >> ${wx_arg_cache_file}.tmp
9891           fi
9892
9893           if test x"$enablestring" = xdisable; then
9894             if test $wxUSE_LOGWINDOW = yes; then
9895               result=no
9896             else
9897               result=yes
9898             fi
9899           else
9900             result=$wxUSE_LOGWINDOW
9901           fi
9902
9903           { echo "$as_me:$LINENO: result: $result" >&5
9904 echo "${ECHO_T}$result" >&6; }
9905
9906
9907           enablestring=
9908           defaultval=$wxUSE_ALL_FEATURES
9909           if test -z "$defaultval"; then
9910               if test x"$enablestring" = xdisable; then
9911                   defaultval=yes
9912               else
9913                   defaultval=no
9914               fi
9915           fi
9916
9917           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9918 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9919           no_cache=0
9920           # Check whether --enable-logdialog was given.
9921 if test "${enable_logdialog+set}" = set; then
9922   enableval=$enable_logdialog;
9923                           if test "$enableval" = yes; then
9924                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9925                           else
9926                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9927                           fi
9928
9929 else
9930
9931                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
9932                           if test "x$LINE" != x ; then
9933                             eval "DEFAULT_$LINE"
9934                           else
9935                             no_cache=1
9936                           fi
9937
9938                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9939
9940 fi
9941
9942
9943           eval "$wx_cv_use_logdialog"
9944           if test "$no_cache" != 1; then
9945             echo $wx_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
9946           fi
9947
9948           if test x"$enablestring" = xdisable; then
9949             if test $wxUSE_LOGDIALOG = yes; then
9950               result=no
9951             else
9952               result=yes
9953             fi
9954           else
9955             result=$wxUSE_LOGDIALOG
9956           fi
9957
9958           { echo "$as_me:$LINENO: result: $result" >&5
9959 echo "${ECHO_T}$result" >&6; }
9960
9961
9962           enablestring=
9963           defaultval=$wxUSE_ALL_FEATURES
9964           if test -z "$defaultval"; then
9965               if test x"$enablestring" = xdisable; then
9966                   defaultval=yes
9967               else
9968                   defaultval=no
9969               fi
9970           fi
9971
9972           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9973 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9974           no_cache=0
9975           # Check whether --enable-webkit was given.
9976 if test "${enable_webkit+set}" = set; then
9977   enableval=$enable_webkit;
9978                           if test "$enableval" = yes; then
9979                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9980                           else
9981                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9982                           fi
9983
9984 else
9985
9986                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
9987                           if test "x$LINE" != x ; then
9988                             eval "DEFAULT_$LINE"
9989                           else
9990                             no_cache=1
9991                           fi
9992
9993                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9994
9995 fi
9996
9997
9998           eval "$wx_cv_use_webkit"
9999           if test "$no_cache" != 1; then
10000             echo $wx_cv_use_webkit >> ${wx_arg_cache_file}.tmp
10001           fi
10002
10003           if test x"$enablestring" = xdisable; then
10004             if test $wxUSE_WEBKIT = yes; then
10005               result=no
10006             else
10007               result=yes
10008             fi
10009           else
10010             result=$wxUSE_WEBKIT
10011           fi
10012
10013           { echo "$as_me:$LINENO: result: $result" >&5
10014 echo "${ECHO_T}$result" >&6; }
10015
10016
10017           enablestring=
10018           defaultval=$wxUSE_ALL_FEATURES
10019           if test -z "$defaultval"; then
10020               if test x"$enablestring" = xdisable; then
10021                   defaultval=yes
10022               else
10023                   defaultval=no
10024               fi
10025           fi
10026
10027           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10028 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10029           no_cache=0
10030           # Check whether --enable-richtext was given.
10031 if test "${enable_richtext+set}" = set; then
10032   enableval=$enable_richtext;
10033                           if test "$enableval" = yes; then
10034                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10035                           else
10036                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10037                           fi
10038
10039 else
10040
10041                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10042                           if test "x$LINE" != x ; then
10043                             eval "DEFAULT_$LINE"
10044                           else
10045                             no_cache=1
10046                           fi
10047
10048                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10049
10050 fi
10051
10052
10053           eval "$wx_cv_use_richtext"
10054           if test "$no_cache" != 1; then
10055             echo $wx_cv_use_richtext >> ${wx_arg_cache_file}.tmp
10056           fi
10057
10058           if test x"$enablestring" = xdisable; then
10059             if test $wxUSE_RICHTEXT = yes; then
10060               result=no
10061             else
10062               result=yes
10063             fi
10064           else
10065             result=$wxUSE_RICHTEXT
10066           fi
10067
10068           { echo "$as_me:$LINENO: result: $result" >&5
10069 echo "${ECHO_T}$result" >&6; }
10070
10071
10072           enablestring=
10073           defaultval=$wxUSE_ALL_FEATURES
10074           if test -z "$defaultval"; then
10075               if test x"$enablestring" = xdisable; then
10076                   defaultval=yes
10077               else
10078                   defaultval=no
10079               fi
10080           fi
10081
10082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10083 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10084           no_cache=0
10085           # Check whether --enable-graphics_ctx was given.
10086 if test "${enable_graphics_ctx+set}" = set; then
10087   enableval=$enable_graphics_ctx;
10088                           if test "$enableval" = yes; then
10089                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10090                           else
10091                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10092                           fi
10093
10094 else
10095
10096                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10097                           if test "x$LINE" != x ; then
10098                             eval "DEFAULT_$LINE"
10099                           else
10100                             no_cache=1
10101                           fi
10102
10103                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10104
10105 fi
10106
10107
10108           eval "$wx_cv_use_graphics_ctx"
10109           if test "$no_cache" != 1; then
10110             echo $wx_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
10111           fi
10112
10113           if test x"$enablestring" = xdisable; then
10114             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10115               result=no
10116             else
10117               result=yes
10118             fi
10119           else
10120             result=$wxUSE_GRAPHICS_CONTEXT
10121           fi
10122
10123           { echo "$as_me:$LINENO: result: $result" >&5
10124 echo "${ECHO_T}$result" >&6; }
10125
10126
10127           enablestring=
10128           defaultval=$wxUSE_ALL_FEATURES
10129           if test -z "$defaultval"; then
10130               if test x"$enablestring" = xdisable; then
10131                   defaultval=yes
10132               else
10133                   defaultval=no
10134               fi
10135           fi
10136
10137           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10138 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10139           no_cache=0
10140           # Check whether --enable-postscript was given.
10141 if test "${enable_postscript+set}" = set; then
10142   enableval=$enable_postscript;
10143                           if test "$enableval" = yes; then
10144                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10145                           else
10146                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10147                           fi
10148
10149 else
10150
10151                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10152                           if test "x$LINE" != x ; then
10153                             eval "DEFAULT_$LINE"
10154                           else
10155                             no_cache=1
10156                           fi
10157
10158                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10159
10160 fi
10161
10162
10163           eval "$wx_cv_use_postscript"
10164           if test "$no_cache" != 1; then
10165             echo $wx_cv_use_postscript >> ${wx_arg_cache_file}.tmp
10166           fi
10167
10168           if test x"$enablestring" = xdisable; then
10169             if test $wxUSE_POSTSCRIPT = yes; then
10170               result=no
10171             else
10172               result=yes
10173             fi
10174           else
10175             result=$wxUSE_POSTSCRIPT
10176           fi
10177
10178           { echo "$as_me:$LINENO: result: $result" >&5
10179 echo "${ECHO_T}$result" >&6; }
10180
10181
10182           enablestring=
10183           defaultval=$wxUSE_ALL_FEATURES
10184           if test -z "$defaultval"; then
10185               if test x"$enablestring" = xdisable; then
10186                   defaultval=yes
10187               else
10188                   defaultval=no
10189               fi
10190           fi
10191
10192           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10193 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10194           no_cache=0
10195           # Check whether --enable-svg was given.
10196 if test "${enable_svg+set}" = set; then
10197   enableval=$enable_svg;
10198                           if test "$enableval" = yes; then
10199                             wx_cv_use_svg='wxUSE_SVG=yes'
10200                           else
10201                             wx_cv_use_svg='wxUSE_SVG=no'
10202                           fi
10203
10204 else
10205
10206                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10207                           if test "x$LINE" != x ; then
10208                             eval "DEFAULT_$LINE"
10209                           else
10210                             no_cache=1
10211                           fi
10212
10213                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10214
10215 fi
10216
10217
10218           eval "$wx_cv_use_svg"
10219           if test "$no_cache" != 1; then
10220             echo $wx_cv_use_svg >> ${wx_arg_cache_file}.tmp
10221           fi
10222
10223           if test x"$enablestring" = xdisable; then
10224             if test $wxUSE_SVG = yes; then
10225               result=no
10226             else
10227               result=yes
10228             fi
10229           else
10230             result=$wxUSE_SVG
10231           fi
10232
10233           { echo "$as_me:$LINENO: result: $result" >&5
10234 echo "${ECHO_T}$result" >&6; }
10235
10236
10237
10238
10239           enablestring=
10240           defaultval=$wxUSE_ALL_FEATURES
10241           if test -z "$defaultval"; then
10242               if test x"$enablestring" = xdisable; then
10243                   defaultval=yes
10244               else
10245                   defaultval=no
10246               fi
10247           fi
10248
10249           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10250 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10251           no_cache=0
10252           # Check whether --enable-clipboard was given.
10253 if test "${enable_clipboard+set}" = set; then
10254   enableval=$enable_clipboard;
10255                           if test "$enableval" = yes; then
10256                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10257                           else
10258                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10259                           fi
10260
10261 else
10262
10263                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10264                           if test "x$LINE" != x ; then
10265                             eval "DEFAULT_$LINE"
10266                           else
10267                             no_cache=1
10268                           fi
10269
10270                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10271
10272 fi
10273
10274
10275           eval "$wx_cv_use_clipboard"
10276           if test "$no_cache" != 1; then
10277             echo $wx_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
10278           fi
10279
10280           if test x"$enablestring" = xdisable; then
10281             if test $wxUSE_CLIPBOARD = yes; then
10282               result=no
10283             else
10284               result=yes
10285             fi
10286           else
10287             result=$wxUSE_CLIPBOARD
10288           fi
10289
10290           { echo "$as_me:$LINENO: result: $result" >&5
10291 echo "${ECHO_T}$result" >&6; }
10292
10293
10294           enablestring=
10295           defaultval=$wxUSE_ALL_FEATURES
10296           if test -z "$defaultval"; then
10297               if test x"$enablestring" = xdisable; then
10298                   defaultval=yes
10299               else
10300                   defaultval=no
10301               fi
10302           fi
10303
10304           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10305 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10306           no_cache=0
10307           # Check whether --enable-dnd was given.
10308 if test "${enable_dnd+set}" = set; then
10309   enableval=$enable_dnd;
10310                           if test "$enableval" = yes; then
10311                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10312                           else
10313                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10314                           fi
10315
10316 else
10317
10318                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10319                           if test "x$LINE" != x ; then
10320                             eval "DEFAULT_$LINE"
10321                           else
10322                             no_cache=1
10323                           fi
10324
10325                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10326
10327 fi
10328
10329
10330           eval "$wx_cv_use_dnd"
10331           if test "$no_cache" != 1; then
10332             echo $wx_cv_use_dnd >> ${wx_arg_cache_file}.tmp
10333           fi
10334
10335           if test x"$enablestring" = xdisable; then
10336             if test $wxUSE_DRAG_AND_DROP = yes; then
10337               result=no
10338             else
10339               result=yes
10340             fi
10341           else
10342             result=$wxUSE_DRAG_AND_DROP
10343           fi
10344
10345           { echo "$as_me:$LINENO: result: $result" >&5
10346 echo "${ECHO_T}$result" >&6; }
10347
10348
10349           enablestring=
10350           defaultval=$wxUSE_ALL_FEATURES
10351           if test -z "$defaultval"; then
10352               if test x"$enablestring" = xdisable; then
10353                   defaultval=yes
10354               else
10355                   defaultval=no
10356               fi
10357           fi
10358
10359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10360 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10361           no_cache=0
10362           # Check whether --enable-metafile was given.
10363 if test "${enable_metafile+set}" = set; then
10364   enableval=$enable_metafile;
10365                           if test "$enableval" = yes; then
10366                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10367                           else
10368                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10369                           fi
10370
10371 else
10372
10373                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10374                           if test "x$LINE" != x ; then
10375                             eval "DEFAULT_$LINE"
10376                           else
10377                             no_cache=1
10378                           fi
10379
10380                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10381
10382 fi
10383
10384
10385           eval "$wx_cv_use_metafile"
10386           if test "$no_cache" != 1; then
10387             echo $wx_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10388           fi
10389
10390           if test x"$enablestring" = xdisable; then
10391             if test $wxUSE_METAFILE = yes; then
10392               result=no
10393             else
10394               result=yes
10395             fi
10396           else
10397             result=$wxUSE_METAFILE
10398           fi
10399
10400           { echo "$as_me:$LINENO: result: $result" >&5
10401 echo "${ECHO_T}$result" >&6; }
10402
10403
10404
10405 DEFAULT_wxUSE_CONTROLS=none
10406
10407           enablestring=disable
10408           defaultval=
10409           if test -z "$defaultval"; then
10410               if test x"$enablestring" = xdisable; then
10411                   defaultval=yes
10412               else
10413                   defaultval=no
10414               fi
10415           fi
10416
10417           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10418 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10419           no_cache=0
10420           # Check whether --enable-controls was given.
10421 if test "${enable_controls+set}" = set; then
10422   enableval=$enable_controls;
10423                           if test "$enableval" = yes; then
10424                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10425                           else
10426                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10427                           fi
10428
10429 else
10430
10431                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10432                           if test "x$LINE" != x ; then
10433                             eval "DEFAULT_$LINE"
10434                           else
10435                             no_cache=1
10436                           fi
10437
10438                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10439
10440 fi
10441
10442
10443           eval "$wx_cv_use_controls"
10444           if test "$no_cache" != 1; then
10445             echo $wx_cv_use_controls >> ${wx_arg_cache_file}.tmp
10446           fi
10447
10448           if test x"$enablestring" = xdisable; then
10449             if test $wxUSE_CONTROLS = yes; then
10450               result=no
10451             else
10452               result=yes
10453             fi
10454           else
10455             result=$wxUSE_CONTROLS
10456           fi
10457
10458           { echo "$as_me:$LINENO: result: $result" >&5
10459 echo "${ECHO_T}$result" >&6; }
10460
10461
10462 if test "$wxUSE_CONTROLS" = "yes"; then
10463   DEFAULT_wxUSE_ACCEL=yes
10464   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10465   DEFAULT_wxUSE_BMPBUTTON=yes
10466   DEFAULT_wxUSE_BUTTON=yes
10467   DEFAULT_wxUSE_CALCTRL=yes
10468   DEFAULT_wxUSE_CARET=yes
10469   DEFAULT_wxUSE_COMBOBOX=yes
10470   DEFAULT_wxUSE_CHECKBOX=yes
10471   DEFAULT_wxUSE_CHECKLISTBOX=yes
10472   DEFAULT_wxUSE_CHOICE=yes
10473   DEFAULT_wxUSE_CHOICEBOOK=yes
10474   DEFAULT_wxUSE_COLLPANE=yes
10475   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10476   DEFAULT_wxUSE_COMBOBOX=yes
10477   DEFAULT_wxUSE_DATEPICKCTRL=yes
10478   DEFAULT_wxUSE_DISPLAY=yes
10479   DEFAULT_wxUSE_DETECT_SM=yes
10480   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10481   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10482   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10483   DEFAULT_wxUSE_GAUGE=yes
10484   DEFAULT_wxUSE_GRID=yes
10485   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10486   DEFAULT_wxUSE_DATAVIEWCTRL=no
10487   DEFAULT_wxUSE_IMAGLIST=yes
10488   DEFAULT_wxUSE_LISTBOOK=yes
10489   DEFAULT_wxUSE_LISTBOX=yes
10490   DEFAULT_wxUSE_LISTCTRL=yes
10491   DEFAULT_wxUSE_NOTEBOOK=yes
10492   DEFAULT_wxUSE_RADIOBOX=yes
10493   DEFAULT_wxUSE_RADIOBTN=yes
10494   DEFAULT_wxUSE_SASH=yes
10495   DEFAULT_wxUSE_SCROLLBAR=yes
10496   DEFAULT_wxUSE_SEARCHCTRL=yes
10497   DEFAULT_wxUSE_SLIDER=yes
10498   DEFAULT_wxUSE_SPINBTN=yes
10499   DEFAULT_wxUSE_SPINCTRL=yes
10500   DEFAULT_wxUSE_SPLITTER=yes
10501   DEFAULT_wxUSE_STATBMP=yes
10502   DEFAULT_wxUSE_STATBOX=yes
10503   DEFAULT_wxUSE_STATLINE=yes
10504   DEFAULT_wxUSE_STATUSBAR=yes
10505   DEFAULT_wxUSE_TAB_DIALOG=yes
10506   DEFAULT_wxUSE_TOGGLEBTN=yes
10507   DEFAULT_wxUSE_TOOLBAR=yes
10508   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10509   DEFAULT_wxUSE_TOOLTIPS=yes
10510   DEFAULT_wxUSE_TREEBOOK=yes
10511   DEFAULT_wxUSE_TOOLBOOK=yes
10512   DEFAULT_wxUSE_TREECTRL=yes
10513   DEFAULT_wxUSE_POPUPWIN=yes
10514   DEFAULT_wxUSE_TIPWINDOW=yes
10515 elif test "$wxUSE_CONTROLS" = "no"; then
10516   DEFAULT_wxUSE_ACCEL=no
10517   DEFAULT_wxUSE_ANIMATIONCTRL=no
10518   DEFAULT_wxUSE_BMPBUTTON=no
10519   DEFAULT_wxUSE_BUTTON=no
10520   DEFAULT_wxUSE_CALCTRL=no
10521   DEFAULT_wxUSE_CARET=no
10522   DEFAULT_wxUSE_COLLPANE=no
10523   DEFAULT_wxUSE_COMBOBOX=no
10524   DEFAULT_wxUSE_CHECKBOX=no
10525   DEFAULT_wxUSE_CHECKLISTBOX=no
10526   DEFAULT_wxUSE_CHOICE=no
10527   DEFAULT_wxUSE_CHOICEBOOK=no
10528   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10529   DEFAULT_wxUSE_COMBOBOX=no
10530   DEFAULT_wxUSE_DATEPICKCTRL=no
10531   DEFAULT_wxUSE_DISPLAY=no
10532   DEFAULT_wxUSE_DETECT_SM=no
10533   DEFAULT_wxUSE_DIRPICKERCTRL=no
10534   DEFAULT_wxUSE_FILEPICKERCTRL=no
10535   DEFAULT_wxUSE_FONTPICKERCTRL=no
10536   DEFAULT_wxUSE_GAUGE=no
10537   DEFAULT_wxUSE_GRID=no
10538   DEFAULT_wxUSE_HYPERLINKCTRL=no
10539   DEFAULT_wxUSE_DATAVIEWCTRL=no
10540   DEFAULT_wxUSE_IMAGLIST=no
10541   DEFAULT_wxUSE_LISTBOOK=no
10542   DEFAULT_wxUSE_LISTBOX=no
10543   DEFAULT_wxUSE_LISTCTRL=no
10544   DEFAULT_wxUSE_NOTEBOOK=no
10545   DEFAULT_wxUSE_RADIOBOX=no
10546   DEFAULT_wxUSE_RADIOBTN=no
10547   DEFAULT_wxUSE_SASH=no
10548   DEFAULT_wxUSE_SCROLLBAR=no
10549   DEFAULT_wxUSE_SEARCHCTRL=no
10550   DEFAULT_wxUSE_SLIDER=no
10551   DEFAULT_wxUSE_SPINBTN=no
10552   DEFAULT_wxUSE_SPINCTRL=no
10553   DEFAULT_wxUSE_SPLITTER=no
10554   DEFAULT_wxUSE_STATBMP=no
10555   DEFAULT_wxUSE_STATBOX=no
10556   DEFAULT_wxUSE_STATLINE=no
10557   DEFAULT_wxUSE_STATUSBAR=no
10558   DEFAULT_wxUSE_TAB_DIALOG=no
10559   DEFAULT_wxUSE_TOGGLEBTN=no
10560   DEFAULT_wxUSE_TOOLBAR=no
10561   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10562   DEFAULT_wxUSE_TOOLTIPS=no
10563   DEFAULT_wxUSE_TREEBOOK=no
10564   DEFAULT_wxUSE_TOOLBOOK=no
10565   DEFAULT_wxUSE_TREECTRL=no
10566   DEFAULT_wxUSE_POPUPWIN=no
10567   DEFAULT_wxUSE_TIPWINDOW=no
10568 fi
10569
10570
10571           enablestring=
10572           defaultval=$wxUSE_ALL_FEATURES
10573           if test -z "$defaultval"; then
10574               if test x"$enablestring" = xdisable; then
10575                   defaultval=yes
10576               else
10577                   defaultval=no
10578               fi
10579           fi
10580
10581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10582 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10583           no_cache=0
10584           # Check whether --enable-accel was given.
10585 if test "${enable_accel+set}" = set; then
10586   enableval=$enable_accel;
10587                           if test "$enableval" = yes; then
10588                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10589                           else
10590                             wx_cv_use_accel='wxUSE_ACCEL=no'
10591                           fi
10592
10593 else
10594
10595                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10596                           if test "x$LINE" != x ; then
10597                             eval "DEFAULT_$LINE"
10598                           else
10599                             no_cache=1
10600                           fi
10601
10602                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10603
10604 fi
10605
10606
10607           eval "$wx_cv_use_accel"
10608           if test "$no_cache" != 1; then
10609             echo $wx_cv_use_accel >> ${wx_arg_cache_file}.tmp
10610           fi
10611
10612           if test x"$enablestring" = xdisable; then
10613             if test $wxUSE_ACCEL = yes; then
10614               result=no
10615             else
10616               result=yes
10617             fi
10618           else
10619             result=$wxUSE_ACCEL
10620           fi
10621
10622           { echo "$as_me:$LINENO: result: $result" >&5
10623 echo "${ECHO_T}$result" >&6; }
10624
10625
10626           enablestring=
10627           defaultval=$wxUSE_ALL_FEATURES
10628           if test -z "$defaultval"; then
10629               if test x"$enablestring" = xdisable; then
10630                   defaultval=yes
10631               else
10632                   defaultval=no
10633               fi
10634           fi
10635
10636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10637 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10638           no_cache=0
10639           # Check whether --enable-animatectrl was given.
10640 if test "${enable_animatectrl+set}" = set; then
10641   enableval=$enable_animatectrl;
10642                           if test "$enableval" = yes; then
10643                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10644                           else
10645                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10646                           fi
10647
10648 else
10649
10650                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
10651                           if test "x$LINE" != x ; then
10652                             eval "DEFAULT_$LINE"
10653                           else
10654                             no_cache=1
10655                           fi
10656
10657                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10658
10659 fi
10660
10661
10662           eval "$wx_cv_use_animatectrl"
10663           if test "$no_cache" != 1; then
10664             echo $wx_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
10665           fi
10666
10667           if test x"$enablestring" = xdisable; then
10668             if test $wxUSE_ANIMATIONCTRL = yes; then
10669               result=no
10670             else
10671               result=yes
10672             fi
10673           else
10674             result=$wxUSE_ANIMATIONCTRL
10675           fi
10676
10677           { echo "$as_me:$LINENO: result: $result" >&5
10678 echo "${ECHO_T}$result" >&6; }
10679
10680
10681           enablestring=
10682           defaultval=$wxUSE_ALL_FEATURES
10683           if test -z "$defaultval"; then
10684               if test x"$enablestring" = xdisable; then
10685                   defaultval=yes
10686               else
10687                   defaultval=no
10688               fi
10689           fi
10690
10691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10692 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10693           no_cache=0
10694           # Check whether --enable-button was given.
10695 if test "${enable_button+set}" = set; then
10696   enableval=$enable_button;
10697                           if test "$enableval" = yes; then
10698                             wx_cv_use_button='wxUSE_BUTTON=yes'
10699                           else
10700                             wx_cv_use_button='wxUSE_BUTTON=no'
10701                           fi
10702
10703 else
10704
10705                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
10706                           if test "x$LINE" != x ; then
10707                             eval "DEFAULT_$LINE"
10708                           else
10709                             no_cache=1
10710                           fi
10711
10712                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10713
10714 fi
10715
10716
10717           eval "$wx_cv_use_button"
10718           if test "$no_cache" != 1; then
10719             echo $wx_cv_use_button >> ${wx_arg_cache_file}.tmp
10720           fi
10721
10722           if test x"$enablestring" = xdisable; then
10723             if test $wxUSE_BUTTON = yes; then
10724               result=no
10725             else
10726               result=yes
10727             fi
10728           else
10729             result=$wxUSE_BUTTON
10730           fi
10731
10732           { echo "$as_me:$LINENO: result: $result" >&5
10733 echo "${ECHO_T}$result" >&6; }
10734
10735
10736           enablestring=
10737           defaultval=$wxUSE_ALL_FEATURES
10738           if test -z "$defaultval"; then
10739               if test x"$enablestring" = xdisable; then
10740                   defaultval=yes
10741               else
10742                   defaultval=no
10743               fi
10744           fi
10745
10746           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10747 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10748           no_cache=0
10749           # Check whether --enable-bmpbutton was given.
10750 if test "${enable_bmpbutton+set}" = set; then
10751   enableval=$enable_bmpbutton;
10752                           if test "$enableval" = yes; then
10753                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10754                           else
10755                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10756                           fi
10757
10758 else
10759
10760                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
10761                           if test "x$LINE" != x ; then
10762                             eval "DEFAULT_$LINE"
10763                           else
10764                             no_cache=1
10765                           fi
10766
10767                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10768
10769 fi
10770
10771
10772           eval "$wx_cv_use_bmpbutton"
10773           if test "$no_cache" != 1; then
10774             echo $wx_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
10775           fi
10776
10777           if test x"$enablestring" = xdisable; then
10778             if test $wxUSE_BMPBUTTON = yes; then
10779               result=no
10780             else
10781               result=yes
10782             fi
10783           else
10784             result=$wxUSE_BMPBUTTON
10785           fi
10786
10787           { echo "$as_me:$LINENO: result: $result" >&5
10788 echo "${ECHO_T}$result" >&6; }
10789
10790
10791           enablestring=
10792           defaultval=$wxUSE_ALL_FEATURES
10793           if test -z "$defaultval"; then
10794               if test x"$enablestring" = xdisable; then
10795                   defaultval=yes
10796               else
10797                   defaultval=no
10798               fi
10799           fi
10800
10801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10802 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10803           no_cache=0
10804           # Check whether --enable-bmpcombobox was given.
10805 if test "${enable_bmpcombobox+set}" = set; then
10806   enableval=$enable_bmpcombobox;
10807                           if test "$enableval" = yes; then
10808                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10809                           else
10810                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10811                           fi
10812
10813 else
10814
10815                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
10816                           if test "x$LINE" != x ; then
10817                             eval "DEFAULT_$LINE"
10818                           else
10819                             no_cache=1
10820                           fi
10821
10822                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10823
10824 fi
10825
10826
10827           eval "$wx_cv_use_bmpcombobox"
10828           if test "$no_cache" != 1; then
10829             echo $wx_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
10830           fi
10831
10832           if test x"$enablestring" = xdisable; then
10833             if test $wxUSE_BITMAPCOMBOBOX = yes; then
10834               result=no
10835             else
10836               result=yes
10837             fi
10838           else
10839             result=$wxUSE_BITMAPCOMBOBOX
10840           fi
10841
10842           { echo "$as_me:$LINENO: result: $result" >&5
10843 echo "${ECHO_T}$result" >&6; }
10844
10845
10846           enablestring=
10847           defaultval=$wxUSE_ALL_FEATURES
10848           if test -z "$defaultval"; then
10849               if test x"$enablestring" = xdisable; then
10850                   defaultval=yes
10851               else
10852                   defaultval=no
10853               fi
10854           fi
10855
10856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10857 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10858           no_cache=0
10859           # Check whether --enable-calendar was given.
10860 if test "${enable_calendar+set}" = set; then
10861   enableval=$enable_calendar;
10862                           if test "$enableval" = yes; then
10863                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10864                           else
10865                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10866                           fi
10867
10868 else
10869
10870                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
10871                           if test "x$LINE" != x ; then
10872                             eval "DEFAULT_$LINE"
10873                           else
10874                             no_cache=1
10875                           fi
10876
10877                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10878
10879 fi
10880
10881
10882           eval "$wx_cv_use_calendar"
10883           if test "$no_cache" != 1; then
10884             echo $wx_cv_use_calendar >> ${wx_arg_cache_file}.tmp
10885           fi
10886
10887           if test x"$enablestring" = xdisable; then
10888             if test $wxUSE_CALCTRL = yes; then
10889               result=no
10890             else
10891               result=yes
10892             fi
10893           else
10894             result=$wxUSE_CALCTRL
10895           fi
10896
10897           { echo "$as_me:$LINENO: result: $result" >&5
10898 echo "${ECHO_T}$result" >&6; }
10899
10900
10901           enablestring=
10902           defaultval=$wxUSE_ALL_FEATURES
10903           if test -z "$defaultval"; then
10904               if test x"$enablestring" = xdisable; then
10905                   defaultval=yes
10906               else
10907                   defaultval=no
10908               fi
10909           fi
10910
10911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10912 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10913           no_cache=0
10914           # Check whether --enable-caret was given.
10915 if test "${enable_caret+set}" = set; then
10916   enableval=$enable_caret;
10917                           if test "$enableval" = yes; then
10918                             wx_cv_use_caret='wxUSE_CARET=yes'
10919                           else
10920                             wx_cv_use_caret='wxUSE_CARET=no'
10921                           fi
10922
10923 else
10924
10925                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
10926                           if test "x$LINE" != x ; then
10927                             eval "DEFAULT_$LINE"
10928                           else
10929                             no_cache=1
10930                           fi
10931
10932                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10933
10934 fi
10935
10936
10937           eval "$wx_cv_use_caret"
10938           if test "$no_cache" != 1; then
10939             echo $wx_cv_use_caret >> ${wx_arg_cache_file}.tmp
10940           fi
10941
10942           if test x"$enablestring" = xdisable; then
10943             if test $wxUSE_CARET = yes; then
10944               result=no
10945             else
10946               result=yes
10947             fi
10948           else
10949             result=$wxUSE_CARET
10950           fi
10951
10952           { echo "$as_me:$LINENO: result: $result" >&5
10953 echo "${ECHO_T}$result" >&6; }
10954
10955
10956           enablestring=
10957           defaultval=$wxUSE_ALL_FEATURES
10958           if test -z "$defaultval"; then
10959               if test x"$enablestring" = xdisable; then
10960                   defaultval=yes
10961               else
10962                   defaultval=no
10963               fi
10964           fi
10965
10966           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10967 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10968           no_cache=0
10969           # Check whether --enable-checkbox was given.
10970 if test "${enable_checkbox+set}" = set; then
10971   enableval=$enable_checkbox;
10972                           if test "$enableval" = yes; then
10973                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10974                           else
10975                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10976                           fi
10977
10978 else
10979
10980                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
10981                           if test "x$LINE" != x ; then
10982                             eval "DEFAULT_$LINE"
10983                           else
10984                             no_cache=1
10985                           fi
10986
10987                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10988
10989 fi
10990
10991
10992           eval "$wx_cv_use_checkbox"
10993           if test "$no_cache" != 1; then
10994             echo $wx_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
10995           fi
10996
10997           if test x"$enablestring" = xdisable; then
10998             if test $wxUSE_CHECKBOX = yes; then
10999               result=no
11000             else
11001               result=yes
11002             fi
11003           else
11004             result=$wxUSE_CHECKBOX
11005           fi
11006
11007           { echo "$as_me:$LINENO: result: $result" >&5
11008 echo "${ECHO_T}$result" >&6; }
11009
11010
11011           enablestring=
11012           defaultval=$wxUSE_ALL_FEATURES
11013           if test -z "$defaultval"; then
11014               if test x"$enablestring" = xdisable; then
11015                   defaultval=yes
11016               else
11017                   defaultval=no
11018               fi
11019           fi
11020
11021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
11022 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
11023           no_cache=0
11024           # Check whether --enable-checklst was given.
11025 if test "${enable_checklst+set}" = set; then
11026   enableval=$enable_checklst;
11027                           if test "$enableval" = yes; then
11028                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11029                           else
11030                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11031                           fi
11032
11033 else
11034
11035                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11036                           if test "x$LINE" != x ; then
11037                             eval "DEFAULT_$LINE"
11038                           else
11039                             no_cache=1
11040                           fi
11041
11042                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11043
11044 fi
11045
11046
11047           eval "$wx_cv_use_checklst"
11048           if test "$no_cache" != 1; then
11049             echo $wx_cv_use_checklst >> ${wx_arg_cache_file}.tmp
11050           fi
11051
11052           if test x"$enablestring" = xdisable; then
11053             if test $wxUSE_CHECKLST = yes; then
11054               result=no
11055             else
11056               result=yes
11057             fi
11058           else
11059             result=$wxUSE_CHECKLST
11060           fi
11061
11062           { echo "$as_me:$LINENO: result: $result" >&5
11063 echo "${ECHO_T}$result" >&6; }
11064
11065
11066           enablestring=
11067           defaultval=$wxUSE_ALL_FEATURES
11068           if test -z "$defaultval"; then
11069               if test x"$enablestring" = xdisable; then
11070                   defaultval=yes
11071               else
11072                   defaultval=no
11073               fi
11074           fi
11075
11076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11077 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11078           no_cache=0
11079           # Check whether --enable-choice was given.
11080 if test "${enable_choice+set}" = set; then
11081   enableval=$enable_choice;
11082                           if test "$enableval" = yes; then
11083                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11084                           else
11085                             wx_cv_use_choice='wxUSE_CHOICE=no'
11086                           fi
11087
11088 else
11089
11090                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11091                           if test "x$LINE" != x ; then
11092                             eval "DEFAULT_$LINE"
11093                           else
11094                             no_cache=1
11095                           fi
11096
11097                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11098
11099 fi
11100
11101
11102           eval "$wx_cv_use_choice"
11103           if test "$no_cache" != 1; then
11104             echo $wx_cv_use_choice >> ${wx_arg_cache_file}.tmp
11105           fi
11106
11107           if test x"$enablestring" = xdisable; then
11108             if test $wxUSE_CHOICE = yes; then
11109               result=no
11110             else
11111               result=yes
11112             fi
11113           else
11114             result=$wxUSE_CHOICE
11115           fi
11116
11117           { echo "$as_me:$LINENO: result: $result" >&5
11118 echo "${ECHO_T}$result" >&6; }
11119
11120
11121           enablestring=
11122           defaultval=$wxUSE_ALL_FEATURES
11123           if test -z "$defaultval"; then
11124               if test x"$enablestring" = xdisable; then
11125                   defaultval=yes
11126               else
11127                   defaultval=no
11128               fi
11129           fi
11130
11131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11132 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11133           no_cache=0
11134           # Check whether --enable-choicebook was given.
11135 if test "${enable_choicebook+set}" = set; then
11136   enableval=$enable_choicebook;
11137                           if test "$enableval" = yes; then
11138                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11139                           else
11140                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11141                           fi
11142
11143 else
11144
11145                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11146                           if test "x$LINE" != x ; then
11147                             eval "DEFAULT_$LINE"
11148                           else
11149                             no_cache=1
11150                           fi
11151
11152                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11153
11154 fi
11155
11156
11157           eval "$wx_cv_use_choicebook"
11158           if test "$no_cache" != 1; then
11159             echo $wx_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
11160           fi
11161
11162           if test x"$enablestring" = xdisable; then
11163             if test $wxUSE_CHOICEBOOK = yes; then
11164               result=no
11165             else
11166               result=yes
11167             fi
11168           else
11169             result=$wxUSE_CHOICEBOOK
11170           fi
11171
11172           { echo "$as_me:$LINENO: result: $result" >&5
11173 echo "${ECHO_T}$result" >&6; }
11174
11175
11176           enablestring=
11177           defaultval=$wxUSE_ALL_FEATURES
11178           if test -z "$defaultval"; then
11179               if test x"$enablestring" = xdisable; then
11180                   defaultval=yes
11181               else
11182                   defaultval=no
11183               fi
11184           fi
11185
11186           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11187 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11188           no_cache=0
11189           # Check whether --enable-collpane was given.
11190 if test "${enable_collpane+set}" = set; then
11191   enableval=$enable_collpane;
11192                           if test "$enableval" = yes; then
11193                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11194                           else
11195                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11196                           fi
11197
11198 else
11199
11200                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11201                           if test "x$LINE" != x ; then
11202                             eval "DEFAULT_$LINE"
11203                           else
11204                             no_cache=1
11205                           fi
11206
11207                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11208
11209 fi
11210
11211
11212           eval "$wx_cv_use_collpane"
11213           if test "$no_cache" != 1; then
11214             echo $wx_cv_use_collpane >> ${wx_arg_cache_file}.tmp
11215           fi
11216
11217           if test x"$enablestring" = xdisable; then
11218             if test $wxUSE_COLLPANE = yes; then
11219               result=no
11220             else
11221               result=yes
11222             fi
11223           else
11224             result=$wxUSE_COLLPANE
11225           fi
11226
11227           { echo "$as_me:$LINENO: result: $result" >&5
11228 echo "${ECHO_T}$result" >&6; }
11229
11230
11231           enablestring=
11232           defaultval=$wxUSE_ALL_FEATURES
11233           if test -z "$defaultval"; then
11234               if test x"$enablestring" = xdisable; then
11235                   defaultval=yes
11236               else
11237                   defaultval=no
11238               fi
11239           fi
11240
11241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11242 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11243           no_cache=0
11244           # Check whether --enable-colourpicker was given.
11245 if test "${enable_colourpicker+set}" = set; then
11246   enableval=$enable_colourpicker;
11247                           if test "$enableval" = yes; then
11248                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11249                           else
11250                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11251                           fi
11252
11253 else
11254
11255                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11256                           if test "x$LINE" != x ; then
11257                             eval "DEFAULT_$LINE"
11258                           else
11259                             no_cache=1
11260                           fi
11261
11262                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11263
11264 fi
11265
11266
11267           eval "$wx_cv_use_colourpicker"
11268           if test "$no_cache" != 1; then
11269             echo $wx_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
11270           fi
11271
11272           if test x"$enablestring" = xdisable; then
11273             if test $wxUSE_COLOURPICKERCTRL = yes; then
11274               result=no
11275             else
11276               result=yes
11277             fi
11278           else
11279             result=$wxUSE_COLOURPICKERCTRL
11280           fi
11281
11282           { echo "$as_me:$LINENO: result: $result" >&5
11283 echo "${ECHO_T}$result" >&6; }
11284
11285
11286           enablestring=
11287           defaultval=$wxUSE_ALL_FEATURES
11288           if test -z "$defaultval"; then
11289               if test x"$enablestring" = xdisable; then
11290                   defaultval=yes
11291               else
11292                   defaultval=no
11293               fi
11294           fi
11295
11296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11297 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11298           no_cache=0
11299           # Check whether --enable-combobox was given.
11300 if test "${enable_combobox+set}" = set; then
11301   enableval=$enable_combobox;
11302                           if test "$enableval" = yes; then
11303                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11304                           else
11305                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11306                           fi
11307
11308 else
11309
11310                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11311                           if test "x$LINE" != x ; then
11312                             eval "DEFAULT_$LINE"
11313                           else
11314                             no_cache=1
11315                           fi
11316
11317                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11318
11319 fi
11320
11321
11322           eval "$wx_cv_use_combobox"
11323           if test "$no_cache" != 1; then
11324             echo $wx_cv_use_combobox >> ${wx_arg_cache_file}.tmp
11325           fi
11326
11327           if test x"$enablestring" = xdisable; then
11328             if test $wxUSE_COMBOBOX = yes; then
11329               result=no
11330             else
11331               result=yes
11332             fi
11333           else
11334             result=$wxUSE_COMBOBOX
11335           fi
11336
11337           { echo "$as_me:$LINENO: result: $result" >&5
11338 echo "${ECHO_T}$result" >&6; }
11339
11340
11341           enablestring=
11342           defaultval=$wxUSE_ALL_FEATURES
11343           if test -z "$defaultval"; then
11344               if test x"$enablestring" = xdisable; then
11345                   defaultval=yes
11346               else
11347                   defaultval=no
11348               fi
11349           fi
11350
11351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11352 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11353           no_cache=0
11354           # Check whether --enable-comboctrl was given.
11355 if test "${enable_comboctrl+set}" = set; then
11356   enableval=$enable_comboctrl;
11357                           if test "$enableval" = yes; then
11358                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11359                           else
11360                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11361                           fi
11362
11363 else
11364
11365                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11366                           if test "x$LINE" != x ; then
11367                             eval "DEFAULT_$LINE"
11368                           else
11369                             no_cache=1
11370                           fi
11371
11372                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11373
11374 fi
11375
11376
11377           eval "$wx_cv_use_comboctrl"
11378           if test "$no_cache" != 1; then
11379             echo $wx_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
11380           fi
11381
11382           if test x"$enablestring" = xdisable; then
11383             if test $wxUSE_COMBOCTRL = yes; then
11384               result=no
11385             else
11386               result=yes
11387             fi
11388           else
11389             result=$wxUSE_COMBOCTRL
11390           fi
11391
11392           { echo "$as_me:$LINENO: result: $result" >&5
11393 echo "${ECHO_T}$result" >&6; }
11394
11395
11396           enablestring=
11397           defaultval=$wxUSE_ALL_FEATURES
11398           if test -z "$defaultval"; then
11399               if test x"$enablestring" = xdisable; then
11400                   defaultval=yes
11401               else
11402                   defaultval=no
11403               fi
11404           fi
11405
11406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11407 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11408           no_cache=0
11409           # Check whether --enable-datepick was given.
11410 if test "${enable_datepick+set}" = set; then
11411   enableval=$enable_datepick;
11412                           if test "$enableval" = yes; then
11413                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11414                           else
11415                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11416                           fi
11417
11418 else
11419
11420                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11421                           if test "x$LINE" != x ; then
11422                             eval "DEFAULT_$LINE"
11423                           else
11424                             no_cache=1
11425                           fi
11426
11427                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11428
11429 fi
11430
11431
11432           eval "$wx_cv_use_datepick"
11433           if test "$no_cache" != 1; then
11434             echo $wx_cv_use_datepick >> ${wx_arg_cache_file}.tmp
11435           fi
11436
11437           if test x"$enablestring" = xdisable; then
11438             if test $wxUSE_DATEPICKCTRL = yes; then
11439               result=no
11440             else
11441               result=yes
11442             fi
11443           else
11444             result=$wxUSE_DATEPICKCTRL
11445           fi
11446
11447           { echo "$as_me:$LINENO: result: $result" >&5
11448 echo "${ECHO_T}$result" >&6; }
11449
11450
11451           enablestring=
11452           defaultval=$wxUSE_ALL_FEATURES
11453           if test -z "$defaultval"; then
11454               if test x"$enablestring" = xdisable; then
11455                   defaultval=yes
11456               else
11457                   defaultval=no
11458               fi
11459           fi
11460
11461           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11462 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11463           no_cache=0
11464           # Check whether --enable-dirpicker was given.
11465 if test "${enable_dirpicker+set}" = set; then
11466   enableval=$enable_dirpicker;
11467                           if test "$enableval" = yes; then
11468                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11469                           else
11470                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11471                           fi
11472
11473 else
11474
11475                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11476                           if test "x$LINE" != x ; then
11477                             eval "DEFAULT_$LINE"
11478                           else
11479                             no_cache=1
11480                           fi
11481
11482                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11483
11484 fi
11485
11486
11487           eval "$wx_cv_use_dirpicker"
11488           if test "$no_cache" != 1; then
11489             echo $wx_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
11490           fi
11491
11492           if test x"$enablestring" = xdisable; then
11493             if test $wxUSE_DIRPICKERCTRL = yes; then
11494               result=no
11495             else
11496               result=yes
11497             fi
11498           else
11499             result=$wxUSE_DIRPICKERCTRL
11500           fi
11501
11502           { echo "$as_me:$LINENO: result: $result" >&5
11503 echo "${ECHO_T}$result" >&6; }
11504
11505
11506           enablestring=
11507           defaultval=$wxUSE_ALL_FEATURES
11508           if test -z "$defaultval"; then
11509               if test x"$enablestring" = xdisable; then
11510                   defaultval=yes
11511               else
11512                   defaultval=no
11513               fi
11514           fi
11515
11516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11517 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11518           no_cache=0
11519           # Check whether --enable-display was given.
11520 if test "${enable_display+set}" = set; then
11521   enableval=$enable_display;
11522                           if test "$enableval" = yes; then
11523                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11524                           else
11525                             wx_cv_use_display='wxUSE_DISPLAY=no'
11526                           fi
11527
11528 else
11529
11530                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11531                           if test "x$LINE" != x ; then
11532                             eval "DEFAULT_$LINE"
11533                           else
11534                             no_cache=1
11535                           fi
11536
11537                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11538
11539 fi
11540
11541
11542           eval "$wx_cv_use_display"
11543           if test "$no_cache" != 1; then
11544             echo $wx_cv_use_display >> ${wx_arg_cache_file}.tmp
11545           fi
11546
11547           if test x"$enablestring" = xdisable; then
11548             if test $wxUSE_DISPLAY = yes; then
11549               result=no
11550             else
11551               result=yes
11552             fi
11553           else
11554             result=$wxUSE_DISPLAY
11555           fi
11556
11557           { echo "$as_me:$LINENO: result: $result" >&5
11558 echo "${ECHO_T}$result" >&6; }
11559
11560
11561           enablestring=
11562           defaultval=$wxUSE_ALL_FEATURES
11563           if test -z "$defaultval"; then
11564               if test x"$enablestring" = xdisable; then
11565                   defaultval=yes
11566               else
11567                   defaultval=no
11568               fi
11569           fi
11570
11571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11572 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11573           no_cache=0
11574           # Check whether --enable-detect_sm was given.
11575 if test "${enable_detect_sm+set}" = set; then
11576   enableval=$enable_detect_sm;
11577                           if test "$enableval" = yes; then
11578                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11579                           else
11580                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11581                           fi
11582
11583 else
11584
11585                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11586                           if test "x$LINE" != x ; then
11587                             eval "DEFAULT_$LINE"
11588                           else
11589                             no_cache=1
11590                           fi
11591
11592                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11593
11594 fi
11595
11596
11597           eval "$wx_cv_use_detect_sm"
11598           if test "$no_cache" != 1; then
11599             echo $wx_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
11600           fi
11601
11602           if test x"$enablestring" = xdisable; then
11603             if test $wxUSE_DETECT_SM = yes; then
11604               result=no
11605             else
11606               result=yes
11607             fi
11608           else
11609             result=$wxUSE_DETECT_SM
11610           fi
11611
11612           { echo "$as_me:$LINENO: result: $result" >&5
11613 echo "${ECHO_T}$result" >&6; }
11614
11615
11616           enablestring=
11617           defaultval=$wxUSE_ALL_FEATURES
11618           if test -z "$defaultval"; then
11619               if test x"$enablestring" = xdisable; then
11620                   defaultval=yes
11621               else
11622                   defaultval=no
11623               fi
11624           fi
11625
11626           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11627 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11628           no_cache=0
11629           # Check whether --enable-editablebox was given.
11630 if test "${enable_editablebox+set}" = set; then
11631   enableval=$enable_editablebox;
11632                           if test "$enableval" = yes; then
11633                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11634                           else
11635                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11636                           fi
11637
11638 else
11639
11640                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
11641                           if test "x$LINE" != x ; then
11642                             eval "DEFAULT_$LINE"
11643                           else
11644                             no_cache=1
11645                           fi
11646
11647                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11648
11649 fi
11650
11651
11652           eval "$wx_cv_use_editablebox"
11653           if test "$no_cache" != 1; then
11654             echo $wx_cv_use_editablebox >> ${wx_arg_cache_file}.tmp
11655           fi
11656
11657           if test x"$enablestring" = xdisable; then
11658             if test $wxUSE_EDITABLELISTBOX = yes; then
11659               result=no
11660             else
11661               result=yes
11662             fi
11663           else
11664             result=$wxUSE_EDITABLELISTBOX
11665           fi
11666
11667           { echo "$as_me:$LINENO: result: $result" >&5
11668 echo "${ECHO_T}$result" >&6; }
11669
11670
11671           enablestring=
11672           defaultval=$wxUSE_ALL_FEATURES
11673           if test -z "$defaultval"; then
11674               if test x"$enablestring" = xdisable; then
11675                   defaultval=yes
11676               else
11677                   defaultval=no
11678               fi
11679           fi
11680
11681           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11682 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11683           no_cache=0
11684           # Check whether --enable-filepicker was given.
11685 if test "${enable_filepicker+set}" = set; then
11686   enableval=$enable_filepicker;
11687                           if test "$enableval" = yes; then
11688                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11689                           else
11690                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11691                           fi
11692
11693 else
11694
11695                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
11696                           if test "x$LINE" != x ; then
11697                             eval "DEFAULT_$LINE"
11698                           else
11699                             no_cache=1
11700                           fi
11701
11702                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11703
11704 fi
11705
11706
11707           eval "$wx_cv_use_filepicker"
11708           if test "$no_cache" != 1; then
11709             echo $wx_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
11710           fi
11711
11712           if test x"$enablestring" = xdisable; then
11713             if test $wxUSE_FILEPICKERCTRL = yes; then
11714               result=no
11715             else
11716               result=yes
11717             fi
11718           else
11719             result=$wxUSE_FILEPICKERCTRL
11720           fi
11721
11722           { echo "$as_me:$LINENO: result: $result" >&5
11723 echo "${ECHO_T}$result" >&6; }
11724
11725
11726           enablestring=
11727           defaultval=$wxUSE_ALL_FEATURES
11728           if test -z "$defaultval"; then
11729               if test x"$enablestring" = xdisable; then
11730                   defaultval=yes
11731               else
11732                   defaultval=no
11733               fi
11734           fi
11735
11736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11737 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11738           no_cache=0
11739           # Check whether --enable-fontpicker was given.
11740 if test "${enable_fontpicker+set}" = set; then
11741   enableval=$enable_fontpicker;
11742                           if test "$enableval" = yes; then
11743                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11744                           else
11745                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11746                           fi
11747
11748 else
11749
11750                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
11751                           if test "x$LINE" != x ; then
11752                             eval "DEFAULT_$LINE"
11753                           else
11754                             no_cache=1
11755                           fi
11756
11757                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11758
11759 fi
11760
11761
11762           eval "$wx_cv_use_fontpicker"
11763           if test "$no_cache" != 1; then
11764             echo $wx_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
11765           fi
11766
11767           if test x"$enablestring" = xdisable; then
11768             if test $wxUSE_FONTPICKERCTRL = yes; then
11769               result=no
11770             else
11771               result=yes
11772             fi
11773           else
11774             result=$wxUSE_FONTPICKERCTRL
11775           fi
11776
11777           { echo "$as_me:$LINENO: result: $result" >&5
11778 echo "${ECHO_T}$result" >&6; }
11779
11780
11781           enablestring=
11782           defaultval=$wxUSE_ALL_FEATURES
11783           if test -z "$defaultval"; then
11784               if test x"$enablestring" = xdisable; then
11785                   defaultval=yes
11786               else
11787                   defaultval=no
11788               fi
11789           fi
11790
11791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11792 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11793           no_cache=0
11794           # Check whether --enable-gauge was given.
11795 if test "${enable_gauge+set}" = set; then
11796   enableval=$enable_gauge;
11797                           if test "$enableval" = yes; then
11798                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11799                           else
11800                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11801                           fi
11802
11803 else
11804
11805                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
11806                           if test "x$LINE" != x ; then
11807                             eval "DEFAULT_$LINE"
11808                           else
11809                             no_cache=1
11810                           fi
11811
11812                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11813
11814 fi
11815
11816
11817           eval "$wx_cv_use_gauge"
11818           if test "$no_cache" != 1; then
11819             echo $wx_cv_use_gauge >> ${wx_arg_cache_file}.tmp
11820           fi
11821
11822           if test x"$enablestring" = xdisable; then
11823             if test $wxUSE_GAUGE = yes; then
11824               result=no
11825             else
11826               result=yes
11827             fi
11828           else
11829             result=$wxUSE_GAUGE
11830           fi
11831
11832           { echo "$as_me:$LINENO: result: $result" >&5
11833 echo "${ECHO_T}$result" >&6; }
11834
11835
11836           enablestring=
11837           defaultval=$wxUSE_ALL_FEATURES
11838           if test -z "$defaultval"; then
11839               if test x"$enablestring" = xdisable; then
11840                   defaultval=yes
11841               else
11842                   defaultval=no
11843               fi
11844           fi
11845
11846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11847 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11848           no_cache=0
11849           # Check whether --enable-grid was given.
11850 if test "${enable_grid+set}" = set; then
11851   enableval=$enable_grid;
11852                           if test "$enableval" = yes; then
11853                             wx_cv_use_grid='wxUSE_GRID=yes'
11854                           else
11855                             wx_cv_use_grid='wxUSE_GRID=no'
11856                           fi
11857
11858 else
11859
11860                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
11861                           if test "x$LINE" != x ; then
11862                             eval "DEFAULT_$LINE"
11863                           else
11864                             no_cache=1
11865                           fi
11866
11867                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11868
11869 fi
11870
11871
11872           eval "$wx_cv_use_grid"
11873           if test "$no_cache" != 1; then
11874             echo $wx_cv_use_grid >> ${wx_arg_cache_file}.tmp
11875           fi
11876
11877           if test x"$enablestring" = xdisable; then
11878             if test $wxUSE_GRID = yes; then
11879               result=no
11880             else
11881               result=yes
11882             fi
11883           else
11884             result=$wxUSE_GRID
11885           fi
11886
11887           { echo "$as_me:$LINENO: result: $result" >&5
11888 echo "${ECHO_T}$result" >&6; }
11889
11890
11891           enablestring=
11892           defaultval=$wxUSE_ALL_FEATURES
11893           if test -z "$defaultval"; then
11894               if test x"$enablestring" = xdisable; then
11895                   defaultval=yes
11896               else
11897                   defaultval=no
11898               fi
11899           fi
11900
11901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
11902 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
11903           no_cache=0
11904           # Check whether --enable-dataviewctrl was given.
11905 if test "${enable_dataviewctrl+set}" = set; then
11906   enableval=$enable_dataviewctrl;
11907                           if test "$enableval" = yes; then
11908                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
11909                           else
11910                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
11911                           fi
11912
11913 else
11914
11915                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
11916                           if test "x$LINE" != x ; then
11917                             eval "DEFAULT_$LINE"
11918                           else
11919                             no_cache=1
11920                           fi
11921
11922                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
11923
11924 fi
11925
11926
11927           eval "$wx_cv_use_dataviewctrl"
11928           if test "$no_cache" != 1; then
11929             echo $wx_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
11930           fi
11931
11932           if test x"$enablestring" = xdisable; then
11933             if test $wxUSE_DATAVIEWCTRL = yes; then
11934               result=no
11935             else
11936               result=yes
11937             fi
11938           else
11939             result=$wxUSE_DATAVIEWCTRL
11940           fi
11941
11942           { echo "$as_me:$LINENO: result: $result" >&5
11943 echo "${ECHO_T}$result" >&6; }
11944
11945
11946           enablestring=
11947           defaultval=$wxUSE_ALL_FEATURES
11948           if test -z "$defaultval"; then
11949               if test x"$enablestring" = xdisable; then
11950                   defaultval=yes
11951               else
11952                   defaultval=no
11953               fi
11954           fi
11955
11956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11957 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11958           no_cache=0
11959           # Check whether --enable-hyperlink was given.
11960 if test "${enable_hyperlink+set}" = set; then
11961   enableval=$enable_hyperlink;
11962                           if test "$enableval" = yes; then
11963                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11964                           else
11965                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11966                           fi
11967
11968 else
11969
11970                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
11971                           if test "x$LINE" != x ; then
11972                             eval "DEFAULT_$LINE"
11973                           else
11974                             no_cache=1
11975                           fi
11976
11977                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11978
11979 fi
11980
11981
11982           eval "$wx_cv_use_hyperlink"
11983           if test "$no_cache" != 1; then
11984             echo $wx_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
11985           fi
11986
11987           if test x"$enablestring" = xdisable; then
11988             if test $wxUSE_HYPERLINKCTRL = yes; then
11989               result=no
11990             else
11991               result=yes
11992             fi
11993           else
11994             result=$wxUSE_HYPERLINKCTRL
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}-imaglist" >&5
12012 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
12013           no_cache=0
12014           # Check whether --enable-imaglist was given.
12015 if test "${enable_imaglist+set}" = set; then
12016   enableval=$enable_imaglist;
12017                           if test "$enableval" = yes; then
12018                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
12019                           else
12020                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
12021                           fi
12022
12023 else
12024
12025                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
12026                           if test "x$LINE" != x ; then
12027                             eval "DEFAULT_$LINE"
12028                           else
12029                             no_cache=1
12030                           fi
12031
12032                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
12033
12034 fi
12035
12036
12037           eval "$wx_cv_use_imaglist"
12038           if test "$no_cache" != 1; then
12039             echo $wx_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
12040           fi
12041
12042           if test x"$enablestring" = xdisable; then
12043             if test $wxUSE_IMAGLIST = yes; then
12044               result=no
12045             else
12046               result=yes
12047             fi
12048           else
12049             result=$wxUSE_IMAGLIST
12050           fi
12051
12052           { echo "$as_me:$LINENO: result: $result" >&5
12053 echo "${ECHO_T}$result" >&6; }
12054
12055
12056           enablestring=
12057           defaultval=$wxUSE_ALL_FEATURES
12058           if test -z "$defaultval"; then
12059               if test x"$enablestring" = xdisable; then
12060                   defaultval=yes
12061               else
12062                   defaultval=no
12063               fi
12064           fi
12065
12066           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12067 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12068           no_cache=0
12069           # Check whether --enable-listbook was given.
12070 if test "${enable_listbook+set}" = set; then
12071   enableval=$enable_listbook;
12072                           if test "$enableval" = yes; then
12073                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12074                           else
12075                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12076                           fi
12077
12078 else
12079
12080                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12081                           if test "x$LINE" != x ; then
12082                             eval "DEFAULT_$LINE"
12083                           else
12084                             no_cache=1
12085                           fi
12086
12087                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12088
12089 fi
12090
12091
12092           eval "$wx_cv_use_listbook"
12093           if test "$no_cache" != 1; then
12094             echo $wx_cv_use_listbook >> ${wx_arg_cache_file}.tmp
12095           fi
12096
12097           if test x"$enablestring" = xdisable; then
12098             if test $wxUSE_LISTBOOK = yes; then
12099               result=no
12100             else
12101               result=yes
12102             fi
12103           else
12104             result=$wxUSE_LISTBOOK
12105           fi
12106
12107           { echo "$as_me:$LINENO: result: $result" >&5
12108 echo "${ECHO_T}$result" >&6; }
12109
12110
12111           enablestring=
12112           defaultval=$wxUSE_ALL_FEATURES
12113           if test -z "$defaultval"; then
12114               if test x"$enablestring" = xdisable; then
12115                   defaultval=yes
12116               else
12117                   defaultval=no
12118               fi
12119           fi
12120
12121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12122 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12123           no_cache=0
12124           # Check whether --enable-listbox was given.
12125 if test "${enable_listbox+set}" = set; then
12126   enableval=$enable_listbox;
12127                           if test "$enableval" = yes; then
12128                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12129                           else
12130                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12131                           fi
12132
12133 else
12134
12135                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12136                           if test "x$LINE" != x ; then
12137                             eval "DEFAULT_$LINE"
12138                           else
12139                             no_cache=1
12140                           fi
12141
12142                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12143
12144 fi
12145
12146
12147           eval "$wx_cv_use_listbox"
12148           if test "$no_cache" != 1; then
12149             echo $wx_cv_use_listbox >> ${wx_arg_cache_file}.tmp
12150           fi
12151
12152           if test x"$enablestring" = xdisable; then
12153             if test $wxUSE_LISTBOX = yes; then
12154               result=no
12155             else
12156               result=yes
12157             fi
12158           else
12159             result=$wxUSE_LISTBOX
12160           fi
12161
12162           { echo "$as_me:$LINENO: result: $result" >&5
12163 echo "${ECHO_T}$result" >&6; }
12164
12165
12166           enablestring=
12167           defaultval=$wxUSE_ALL_FEATURES
12168           if test -z "$defaultval"; then
12169               if test x"$enablestring" = xdisable; then
12170                   defaultval=yes
12171               else
12172                   defaultval=no
12173               fi
12174           fi
12175
12176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12177 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12178           no_cache=0
12179           # Check whether --enable-listctrl was given.
12180 if test "${enable_listctrl+set}" = set; then
12181   enableval=$enable_listctrl;
12182                           if test "$enableval" = yes; then
12183                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12184                           else
12185                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12186                           fi
12187
12188 else
12189
12190                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12191                           if test "x$LINE" != x ; then
12192                             eval "DEFAULT_$LINE"
12193                           else
12194                             no_cache=1
12195                           fi
12196
12197                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12198
12199 fi
12200
12201
12202           eval "$wx_cv_use_listctrl"
12203           if test "$no_cache" != 1; then
12204             echo $wx_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
12205           fi
12206
12207           if test x"$enablestring" = xdisable; then
12208             if test $wxUSE_LISTCTRL = yes; then
12209               result=no
12210             else
12211               result=yes
12212             fi
12213           else
12214             result=$wxUSE_LISTCTRL
12215           fi
12216
12217           { echo "$as_me:$LINENO: result: $result" >&5
12218 echo "${ECHO_T}$result" >&6; }
12219
12220
12221           enablestring=
12222           defaultval=$wxUSE_ALL_FEATURES
12223           if test -z "$defaultval"; then
12224               if test x"$enablestring" = xdisable; then
12225                   defaultval=yes
12226               else
12227                   defaultval=no
12228               fi
12229           fi
12230
12231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12232 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12233           no_cache=0
12234           # Check whether --enable-notebook was given.
12235 if test "${enable_notebook+set}" = set; then
12236   enableval=$enable_notebook;
12237                           if test "$enableval" = yes; then
12238                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12239                           else
12240                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12241                           fi
12242
12243 else
12244
12245                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12246                           if test "x$LINE" != x ; then
12247                             eval "DEFAULT_$LINE"
12248                           else
12249                             no_cache=1
12250                           fi
12251
12252                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12253
12254 fi
12255
12256
12257           eval "$wx_cv_use_notebook"
12258           if test "$no_cache" != 1; then
12259             echo $wx_cv_use_notebook >> ${wx_arg_cache_file}.tmp
12260           fi
12261
12262           if test x"$enablestring" = xdisable; then
12263             if test $wxUSE_NOTEBOOK = yes; then
12264               result=no
12265             else
12266               result=yes
12267             fi
12268           else
12269             result=$wxUSE_NOTEBOOK
12270           fi
12271
12272           { echo "$as_me:$LINENO: result: $result" >&5
12273 echo "${ECHO_T}$result" >&6; }
12274
12275
12276           enablestring=
12277           defaultval=$wxUSE_ALL_FEATURES
12278           if test -z "$defaultval"; then
12279               if test x"$enablestring" = xdisable; then
12280                   defaultval=yes
12281               else
12282                   defaultval=no
12283               fi
12284           fi
12285
12286           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12287 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12288           no_cache=0
12289           # Check whether --enable-odcombobox was given.
12290 if test "${enable_odcombobox+set}" = set; then
12291   enableval=$enable_odcombobox;
12292                           if test "$enableval" = yes; then
12293                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12294                           else
12295                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12296                           fi
12297
12298 else
12299
12300                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12301                           if test "x$LINE" != x ; then
12302                             eval "DEFAULT_$LINE"
12303                           else
12304                             no_cache=1
12305                           fi
12306
12307                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12308
12309 fi
12310
12311
12312           eval "$wx_cv_use_odcombobox"
12313           if test "$no_cache" != 1; then
12314             echo $wx_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
12315           fi
12316
12317           if test x"$enablestring" = xdisable; then
12318             if test $wxUSE_ODCOMBOBOX = yes; then
12319               result=no
12320             else
12321               result=yes
12322             fi
12323           else
12324             result=$wxUSE_ODCOMBOBOX
12325           fi
12326
12327           { echo "$as_me:$LINENO: result: $result" >&5
12328 echo "${ECHO_T}$result" >&6; }
12329
12330
12331           enablestring=
12332           defaultval=$wxUSE_ALL_FEATURES
12333           if test -z "$defaultval"; then
12334               if test x"$enablestring" = xdisable; then
12335                   defaultval=yes
12336               else
12337                   defaultval=no
12338               fi
12339           fi
12340
12341           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12342 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12343           no_cache=0
12344           # Check whether --enable-radiobox was given.
12345 if test "${enable_radiobox+set}" = set; then
12346   enableval=$enable_radiobox;
12347                           if test "$enableval" = yes; then
12348                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12349                           else
12350                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12351                           fi
12352
12353 else
12354
12355                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12356                           if test "x$LINE" != x ; then
12357                             eval "DEFAULT_$LINE"
12358                           else
12359                             no_cache=1
12360                           fi
12361
12362                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12363
12364 fi
12365
12366
12367           eval "$wx_cv_use_radiobox"
12368           if test "$no_cache" != 1; then
12369             echo $wx_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
12370           fi
12371
12372           if test x"$enablestring" = xdisable; then
12373             if test $wxUSE_RADIOBOX = yes; then
12374               result=no
12375             else
12376               result=yes
12377             fi
12378           else
12379             result=$wxUSE_RADIOBOX
12380           fi
12381
12382           { echo "$as_me:$LINENO: result: $result" >&5
12383 echo "${ECHO_T}$result" >&6; }
12384
12385
12386           enablestring=
12387           defaultval=$wxUSE_ALL_FEATURES
12388           if test -z "$defaultval"; then
12389               if test x"$enablestring" = xdisable; then
12390                   defaultval=yes
12391               else
12392                   defaultval=no
12393               fi
12394           fi
12395
12396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12397 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12398           no_cache=0
12399           # Check whether --enable-radiobtn was given.
12400 if test "${enable_radiobtn+set}" = set; then
12401   enableval=$enable_radiobtn;
12402                           if test "$enableval" = yes; then
12403                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12404                           else
12405                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12406                           fi
12407
12408 else
12409
12410                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12411                           if test "x$LINE" != x ; then
12412                             eval "DEFAULT_$LINE"
12413                           else
12414                             no_cache=1
12415                           fi
12416
12417                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12418
12419 fi
12420
12421
12422           eval "$wx_cv_use_radiobtn"
12423           if test "$no_cache" != 1; then
12424             echo $wx_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
12425           fi
12426
12427           if test x"$enablestring" = xdisable; then
12428             if test $wxUSE_RADIOBTN = yes; then
12429               result=no
12430             else
12431               result=yes
12432             fi
12433           else
12434             result=$wxUSE_RADIOBTN
12435           fi
12436
12437           { echo "$as_me:$LINENO: result: $result" >&5
12438 echo "${ECHO_T}$result" >&6; }
12439
12440
12441           enablestring=
12442           defaultval=$wxUSE_ALL_FEATURES
12443           if test -z "$defaultval"; then
12444               if test x"$enablestring" = xdisable; then
12445                   defaultval=yes
12446               else
12447                   defaultval=no
12448               fi
12449           fi
12450
12451           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12452 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12453           no_cache=0
12454           # Check whether --enable-sash was given.
12455 if test "${enable_sash+set}" = set; then
12456   enableval=$enable_sash;
12457                           if test "$enableval" = yes; then
12458                             wx_cv_use_sash='wxUSE_SASH=yes'
12459                           else
12460                             wx_cv_use_sash='wxUSE_SASH=no'
12461                           fi
12462
12463 else
12464
12465                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12466                           if test "x$LINE" != x ; then
12467                             eval "DEFAULT_$LINE"
12468                           else
12469                             no_cache=1
12470                           fi
12471
12472                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12473
12474 fi
12475
12476
12477           eval "$wx_cv_use_sash"
12478           if test "$no_cache" != 1; then
12479             echo $wx_cv_use_sash >> ${wx_arg_cache_file}.tmp
12480           fi
12481
12482           if test x"$enablestring" = xdisable; then
12483             if test $wxUSE_SASH = yes; then
12484               result=no
12485             else
12486               result=yes
12487             fi
12488           else
12489             result=$wxUSE_SASH
12490           fi
12491
12492           { echo "$as_me:$LINENO: result: $result" >&5
12493 echo "${ECHO_T}$result" >&6; }
12494
12495
12496           enablestring=
12497           defaultval=$wxUSE_ALL_FEATURES
12498           if test -z "$defaultval"; then
12499               if test x"$enablestring" = xdisable; then
12500                   defaultval=yes
12501               else
12502                   defaultval=no
12503               fi
12504           fi
12505
12506           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12507 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12508           no_cache=0
12509           # Check whether --enable-scrollbar was given.
12510 if test "${enable_scrollbar+set}" = set; then
12511   enableval=$enable_scrollbar;
12512                           if test "$enableval" = yes; then
12513                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12514                           else
12515                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12516                           fi
12517
12518 else
12519
12520                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12521                           if test "x$LINE" != x ; then
12522                             eval "DEFAULT_$LINE"
12523                           else
12524                             no_cache=1
12525                           fi
12526
12527                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12528
12529 fi
12530
12531
12532           eval "$wx_cv_use_scrollbar"
12533           if test "$no_cache" != 1; then
12534             echo $wx_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
12535           fi
12536
12537           if test x"$enablestring" = xdisable; then
12538             if test $wxUSE_SCROLLBAR = yes; then
12539               result=no
12540             else
12541               result=yes
12542             fi
12543           else
12544             result=$wxUSE_SCROLLBAR
12545           fi
12546
12547           { echo "$as_me:$LINENO: result: $result" >&5
12548 echo "${ECHO_T}$result" >&6; }
12549
12550
12551           enablestring=
12552           defaultval=$wxUSE_ALL_FEATURES
12553           if test -z "$defaultval"; then
12554               if test x"$enablestring" = xdisable; then
12555                   defaultval=yes
12556               else
12557                   defaultval=no
12558               fi
12559           fi
12560
12561           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12562 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12563           no_cache=0
12564           # Check whether --enable-searchctrl was given.
12565 if test "${enable_searchctrl+set}" = set; then
12566   enableval=$enable_searchctrl;
12567                           if test "$enableval" = yes; then
12568                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12569                           else
12570                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12571                           fi
12572
12573 else
12574
12575                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
12576                           if test "x$LINE" != x ; then
12577                             eval "DEFAULT_$LINE"
12578                           else
12579                             no_cache=1
12580                           fi
12581
12582                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12583
12584 fi
12585
12586
12587           eval "$wx_cv_use_searchctrl"
12588           if test "$no_cache" != 1; then
12589             echo $wx_cv_use_searchctrl >> ${wx_arg_cache_file}.tmp
12590           fi
12591
12592           if test x"$enablestring" = xdisable; then
12593             if test $wxUSE_SEARCHCTRL = yes; then
12594               result=no
12595             else
12596               result=yes
12597             fi
12598           else
12599             result=$wxUSE_SEARCHCTRL
12600           fi
12601
12602           { echo "$as_me:$LINENO: result: $result" >&5
12603 echo "${ECHO_T}$result" >&6; }
12604
12605
12606           enablestring=
12607           defaultval=$wxUSE_ALL_FEATURES
12608           if test -z "$defaultval"; then
12609               if test x"$enablestring" = xdisable; then
12610                   defaultval=yes
12611               else
12612                   defaultval=no
12613               fi
12614           fi
12615
12616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12617 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12618           no_cache=0
12619           # Check whether --enable-slider was given.
12620 if test "${enable_slider+set}" = set; then
12621   enableval=$enable_slider;
12622                           if test "$enableval" = yes; then
12623                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12624                           else
12625                             wx_cv_use_slider='wxUSE_SLIDER=no'
12626                           fi
12627
12628 else
12629
12630                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
12631                           if test "x$LINE" != x ; then
12632                             eval "DEFAULT_$LINE"
12633                           else
12634                             no_cache=1
12635                           fi
12636
12637                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12638
12639 fi
12640
12641
12642           eval "$wx_cv_use_slider"
12643           if test "$no_cache" != 1; then
12644             echo $wx_cv_use_slider >> ${wx_arg_cache_file}.tmp
12645           fi
12646
12647           if test x"$enablestring" = xdisable; then
12648             if test $wxUSE_SLIDER = yes; then
12649               result=no
12650             else
12651               result=yes
12652             fi
12653           else
12654             result=$wxUSE_SLIDER
12655           fi
12656
12657           { echo "$as_me:$LINENO: result: $result" >&5
12658 echo "${ECHO_T}$result" >&6; }
12659
12660
12661           enablestring=
12662           defaultval=$wxUSE_ALL_FEATURES
12663           if test -z "$defaultval"; then
12664               if test x"$enablestring" = xdisable; then
12665                   defaultval=yes
12666               else
12667                   defaultval=no
12668               fi
12669           fi
12670
12671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12672 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12673           no_cache=0
12674           # Check whether --enable-spinbtn was given.
12675 if test "${enable_spinbtn+set}" = set; then
12676   enableval=$enable_spinbtn;
12677                           if test "$enableval" = yes; then
12678                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12679                           else
12680                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12681                           fi
12682
12683 else
12684
12685                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
12686                           if test "x$LINE" != x ; then
12687                             eval "DEFAULT_$LINE"
12688                           else
12689                             no_cache=1
12690                           fi
12691
12692                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12693
12694 fi
12695
12696
12697           eval "$wx_cv_use_spinbtn"
12698           if test "$no_cache" != 1; then
12699             echo $wx_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
12700           fi
12701
12702           if test x"$enablestring" = xdisable; then
12703             if test $wxUSE_SPINBTN = yes; then
12704               result=no
12705             else
12706               result=yes
12707             fi
12708           else
12709             result=$wxUSE_SPINBTN
12710           fi
12711
12712           { echo "$as_me:$LINENO: result: $result" >&5
12713 echo "${ECHO_T}$result" >&6; }
12714
12715
12716           enablestring=
12717           defaultval=$wxUSE_ALL_FEATURES
12718           if test -z "$defaultval"; then
12719               if test x"$enablestring" = xdisable; then
12720                   defaultval=yes
12721               else
12722                   defaultval=no
12723               fi
12724           fi
12725
12726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12727 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12728           no_cache=0
12729           # Check whether --enable-spinctrl was given.
12730 if test "${enable_spinctrl+set}" = set; then
12731   enableval=$enable_spinctrl;
12732                           if test "$enableval" = yes; then
12733                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12734                           else
12735                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12736                           fi
12737
12738 else
12739
12740                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
12741                           if test "x$LINE" != x ; then
12742                             eval "DEFAULT_$LINE"
12743                           else
12744                             no_cache=1
12745                           fi
12746
12747                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12748
12749 fi
12750
12751
12752           eval "$wx_cv_use_spinctrl"
12753           if test "$no_cache" != 1; then
12754             echo $wx_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
12755           fi
12756
12757           if test x"$enablestring" = xdisable; then
12758             if test $wxUSE_SPINCTRL = yes; then
12759               result=no
12760             else
12761               result=yes
12762             fi
12763           else
12764             result=$wxUSE_SPINCTRL
12765           fi
12766
12767           { echo "$as_me:$LINENO: result: $result" >&5
12768 echo "${ECHO_T}$result" >&6; }
12769
12770
12771           enablestring=
12772           defaultval=$wxUSE_ALL_FEATURES
12773           if test -z "$defaultval"; then
12774               if test x"$enablestring" = xdisable; then
12775                   defaultval=yes
12776               else
12777                   defaultval=no
12778               fi
12779           fi
12780
12781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12782 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12783           no_cache=0
12784           # Check whether --enable-splitter was given.
12785 if test "${enable_splitter+set}" = set; then
12786   enableval=$enable_splitter;
12787                           if test "$enableval" = yes; then
12788                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12789                           else
12790                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12791                           fi
12792
12793 else
12794
12795                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
12796                           if test "x$LINE" != x ; then
12797                             eval "DEFAULT_$LINE"
12798                           else
12799                             no_cache=1
12800                           fi
12801
12802                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12803
12804 fi
12805
12806
12807           eval "$wx_cv_use_splitter"
12808           if test "$no_cache" != 1; then
12809             echo $wx_cv_use_splitter >> ${wx_arg_cache_file}.tmp
12810           fi
12811
12812           if test x"$enablestring" = xdisable; then
12813             if test $wxUSE_SPLITTER = yes; then
12814               result=no
12815             else
12816               result=yes
12817             fi
12818           else
12819             result=$wxUSE_SPLITTER
12820           fi
12821
12822           { echo "$as_me:$LINENO: result: $result" >&5
12823 echo "${ECHO_T}$result" >&6; }
12824
12825
12826           enablestring=
12827           defaultval=$wxUSE_ALL_FEATURES
12828           if test -z "$defaultval"; then
12829               if test x"$enablestring" = xdisable; then
12830                   defaultval=yes
12831               else
12832                   defaultval=no
12833               fi
12834           fi
12835
12836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12837 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12838           no_cache=0
12839           # Check whether --enable-statbmp was given.
12840 if test "${enable_statbmp+set}" = set; then
12841   enableval=$enable_statbmp;
12842                           if test "$enableval" = yes; then
12843                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12844                           else
12845                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12846                           fi
12847
12848 else
12849
12850                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
12851                           if test "x$LINE" != x ; then
12852                             eval "DEFAULT_$LINE"
12853                           else
12854                             no_cache=1
12855                           fi
12856
12857                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12858
12859 fi
12860
12861
12862           eval "$wx_cv_use_statbmp"
12863           if test "$no_cache" != 1; then
12864             echo $wx_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
12865           fi
12866
12867           if test x"$enablestring" = xdisable; then
12868             if test $wxUSE_STATBMP = yes; then
12869               result=no
12870             else
12871               result=yes
12872             fi
12873           else
12874             result=$wxUSE_STATBMP
12875           fi
12876
12877           { echo "$as_me:$LINENO: result: $result" >&5
12878 echo "${ECHO_T}$result" >&6; }
12879
12880
12881           enablestring=
12882           defaultval=$wxUSE_ALL_FEATURES
12883           if test -z "$defaultval"; then
12884               if test x"$enablestring" = xdisable; then
12885                   defaultval=yes
12886               else
12887                   defaultval=no
12888               fi
12889           fi
12890
12891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12892 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12893           no_cache=0
12894           # Check whether --enable-statbox was given.
12895 if test "${enable_statbox+set}" = set; then
12896   enableval=$enable_statbox;
12897                           if test "$enableval" = yes; then
12898                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12899                           else
12900                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12901                           fi
12902
12903 else
12904
12905                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
12906                           if test "x$LINE" != x ; then
12907                             eval "DEFAULT_$LINE"
12908                           else
12909                             no_cache=1
12910                           fi
12911
12912                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12913
12914 fi
12915
12916
12917           eval "$wx_cv_use_statbox"
12918           if test "$no_cache" != 1; then
12919             echo $wx_cv_use_statbox >> ${wx_arg_cache_file}.tmp
12920           fi
12921
12922           if test x"$enablestring" = xdisable; then
12923             if test $wxUSE_STATBOX = yes; then
12924               result=no
12925             else
12926               result=yes
12927             fi
12928           else
12929             result=$wxUSE_STATBOX
12930           fi
12931
12932           { echo "$as_me:$LINENO: result: $result" >&5
12933 echo "${ECHO_T}$result" >&6; }
12934
12935
12936           enablestring=
12937           defaultval=$wxUSE_ALL_FEATURES
12938           if test -z "$defaultval"; then
12939               if test x"$enablestring" = xdisable; then
12940                   defaultval=yes
12941               else
12942                   defaultval=no
12943               fi
12944           fi
12945
12946           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12947 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12948           no_cache=0
12949           # Check whether --enable-statline was given.
12950 if test "${enable_statline+set}" = set; then
12951   enableval=$enable_statline;
12952                           if test "$enableval" = yes; then
12953                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12954                           else
12955                             wx_cv_use_statline='wxUSE_STATLINE=no'
12956                           fi
12957
12958 else
12959
12960                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
12961                           if test "x$LINE" != x ; then
12962                             eval "DEFAULT_$LINE"
12963                           else
12964                             no_cache=1
12965                           fi
12966
12967                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12968
12969 fi
12970
12971
12972           eval "$wx_cv_use_statline"
12973           if test "$no_cache" != 1; then
12974             echo $wx_cv_use_statline >> ${wx_arg_cache_file}.tmp
12975           fi
12976
12977           if test x"$enablestring" = xdisable; then
12978             if test $wxUSE_STATLINE = yes; then
12979               result=no
12980             else
12981               result=yes
12982             fi
12983           else
12984             result=$wxUSE_STATLINE
12985           fi
12986
12987           { echo "$as_me:$LINENO: result: $result" >&5
12988 echo "${ECHO_T}$result" >&6; }
12989
12990
12991           enablestring=
12992           defaultval=$wxUSE_ALL_FEATURES
12993           if test -z "$defaultval"; then
12994               if test x"$enablestring" = xdisable; then
12995                   defaultval=yes
12996               else
12997                   defaultval=no
12998               fi
12999           fi
13000
13001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
13002 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
13003           no_cache=0
13004           # Check whether --enable-stattext was given.
13005 if test "${enable_stattext+set}" = set; then
13006   enableval=$enable_stattext;
13007                           if test "$enableval" = yes; then
13008                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
13009                           else
13010                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
13011                           fi
13012
13013 else
13014
13015                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
13016                           if test "x$LINE" != x ; then
13017                             eval "DEFAULT_$LINE"
13018                           else
13019                             no_cache=1
13020                           fi
13021
13022                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
13023
13024 fi
13025
13026
13027           eval "$wx_cv_use_stattext"
13028           if test "$no_cache" != 1; then
13029             echo $wx_cv_use_stattext >> ${wx_arg_cache_file}.tmp
13030           fi
13031
13032           if test x"$enablestring" = xdisable; then
13033             if test $wxUSE_STATTEXT = yes; then
13034               result=no
13035             else
13036               result=yes
13037             fi
13038           else
13039             result=$wxUSE_STATTEXT
13040           fi
13041
13042           { echo "$as_me:$LINENO: result: $result" >&5
13043 echo "${ECHO_T}$result" >&6; }
13044
13045
13046           enablestring=
13047           defaultval=$wxUSE_ALL_FEATURES
13048           if test -z "$defaultval"; then
13049               if test x"$enablestring" = xdisable; then
13050                   defaultval=yes
13051               else
13052                   defaultval=no
13053               fi
13054           fi
13055
13056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
13057 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
13058           no_cache=0
13059           # Check whether --enable-statusbar was given.
13060 if test "${enable_statusbar+set}" = set; then
13061   enableval=$enable_statusbar;
13062                           if test "$enableval" = yes; then
13063                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13064                           else
13065                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13066                           fi
13067
13068 else
13069
13070                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13071                           if test "x$LINE" != x ; then
13072                             eval "DEFAULT_$LINE"
13073                           else
13074                             no_cache=1
13075                           fi
13076
13077                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13078
13079 fi
13080
13081
13082           eval "$wx_cv_use_statusbar"
13083           if test "$no_cache" != 1; then
13084             echo $wx_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
13085           fi
13086
13087           if test x"$enablestring" = xdisable; then
13088             if test $wxUSE_STATUSBAR = yes; then
13089               result=no
13090             else
13091               result=yes
13092             fi
13093           else
13094             result=$wxUSE_STATUSBAR
13095           fi
13096
13097           { echo "$as_me:$LINENO: result: $result" >&5
13098 echo "${ECHO_T}$result" >&6; }
13099
13100
13101           enablestring=
13102           defaultval=$wxUSE_ALL_FEATURES
13103           if test -z "$defaultval"; then
13104               if test x"$enablestring" = xdisable; then
13105                   defaultval=yes
13106               else
13107                   defaultval=no
13108               fi
13109           fi
13110
13111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13112 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13113           no_cache=0
13114           # Check whether --enable-tabdialog was given.
13115 if test "${enable_tabdialog+set}" = set; then
13116   enableval=$enable_tabdialog;
13117                           if test "$enableval" = yes; then
13118                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13119                           else
13120                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13121                           fi
13122
13123 else
13124
13125                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13126                           if test "x$LINE" != x ; then
13127                             eval "DEFAULT_$LINE"
13128                           else
13129                             no_cache=1
13130                           fi
13131
13132                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13133
13134 fi
13135
13136
13137           eval "$wx_cv_use_tabdialog"
13138           if test "$no_cache" != 1; then
13139             echo $wx_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
13140           fi
13141
13142           if test x"$enablestring" = xdisable; then
13143             if test $wxUSE_TAB_DIALOG = yes; then
13144               result=no
13145             else
13146               result=yes
13147             fi
13148           else
13149             result=$wxUSE_TAB_DIALOG
13150           fi
13151
13152           { echo "$as_me:$LINENO: result: $result" >&5
13153 echo "${ECHO_T}$result" >&6; }
13154
13155
13156           enablestring=
13157           defaultval=$wxUSE_ALL_FEATURES
13158           if test -z "$defaultval"; then
13159               if test x"$enablestring" = xdisable; then
13160                   defaultval=yes
13161               else
13162                   defaultval=no
13163               fi
13164           fi
13165
13166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13167 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13168           no_cache=0
13169           # Check whether --enable-taskbaricon was given.
13170 if test "${enable_taskbaricon+set}" = set; then
13171   enableval=$enable_taskbaricon;
13172                           if test "$enableval" = yes; then
13173                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13174                           else
13175                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13176                           fi
13177
13178 else
13179
13180                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13181                           if test "x$LINE" != x ; then
13182                             eval "DEFAULT_$LINE"
13183                           else
13184                             no_cache=1
13185                           fi
13186
13187                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13188
13189 fi
13190
13191
13192           eval "$wx_cv_use_taskbaricon"
13193           if test "$no_cache" != 1; then
13194             echo $wx_cv_use_taskbaricon >> ${wx_arg_cache_file}.tmp
13195           fi
13196
13197           if test x"$enablestring" = xdisable; then
13198             if test $wxUSE_TASKBARICON = yes; then
13199               result=no
13200             else
13201               result=yes
13202             fi
13203           else
13204             result=$wxUSE_TASKBARICON
13205           fi
13206
13207           { echo "$as_me:$LINENO: result: $result" >&5
13208 echo "${ECHO_T}$result" >&6; }
13209
13210
13211           enablestring=
13212           defaultval=$wxUSE_ALL_FEATURES
13213           if test -z "$defaultval"; then
13214               if test x"$enablestring" = xdisable; then
13215                   defaultval=yes
13216               else
13217                   defaultval=no
13218               fi
13219           fi
13220
13221           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13222 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13223           no_cache=0
13224           # Check whether --enable-textctrl was given.
13225 if test "${enable_textctrl+set}" = set; then
13226   enableval=$enable_textctrl;
13227                           if test "$enableval" = yes; then
13228                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13229                           else
13230                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13231                           fi
13232
13233 else
13234
13235                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13236                           if test "x$LINE" != x ; then
13237                             eval "DEFAULT_$LINE"
13238                           else
13239                             no_cache=1
13240                           fi
13241
13242                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13243
13244 fi
13245
13246
13247           eval "$wx_cv_use_textctrl"
13248           if test "$no_cache" != 1; then
13249             echo $wx_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
13250           fi
13251
13252           if test x"$enablestring" = xdisable; then
13253             if test $wxUSE_TEXTCTRL = yes; then
13254               result=no
13255             else
13256               result=yes
13257             fi
13258           else
13259             result=$wxUSE_TEXTCTRL
13260           fi
13261
13262           { echo "$as_me:$LINENO: result: $result" >&5
13263 echo "${ECHO_T}$result" >&6; }
13264
13265
13266           enablestring=
13267           defaultval=$wxUSE_ALL_FEATURES
13268           if test -z "$defaultval"; then
13269               if test x"$enablestring" = xdisable; then
13270                   defaultval=yes
13271               else
13272                   defaultval=no
13273               fi
13274           fi
13275
13276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13277 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13278           no_cache=0
13279           # Check whether --enable-togglebtn was given.
13280 if test "${enable_togglebtn+set}" = set; then
13281   enableval=$enable_togglebtn;
13282                           if test "$enableval" = yes; then
13283                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13284                           else
13285                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13286                           fi
13287
13288 else
13289
13290                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13291                           if test "x$LINE" != x ; then
13292                             eval "DEFAULT_$LINE"
13293                           else
13294                             no_cache=1
13295                           fi
13296
13297                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13298
13299 fi
13300
13301
13302           eval "$wx_cv_use_togglebtn"
13303           if test "$no_cache" != 1; then
13304             echo $wx_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
13305           fi
13306
13307           if test x"$enablestring" = xdisable; then
13308             if test $wxUSE_TOGGLEBTN = yes; then
13309               result=no
13310             else
13311               result=yes
13312             fi
13313           else
13314             result=$wxUSE_TOGGLEBTN
13315           fi
13316
13317           { echo "$as_me:$LINENO: result: $result" >&5
13318 echo "${ECHO_T}$result" >&6; }
13319
13320
13321           enablestring=
13322           defaultval=$wxUSE_ALL_FEATURES
13323           if test -z "$defaultval"; then
13324               if test x"$enablestring" = xdisable; then
13325                   defaultval=yes
13326               else
13327                   defaultval=no
13328               fi
13329           fi
13330
13331           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13332 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13333           no_cache=0
13334           # Check whether --enable-toolbar was given.
13335 if test "${enable_toolbar+set}" = set; then
13336   enableval=$enable_toolbar;
13337                           if test "$enableval" = yes; then
13338                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13339                           else
13340                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13341                           fi
13342
13343 else
13344
13345                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13346                           if test "x$LINE" != x ; then
13347                             eval "DEFAULT_$LINE"
13348                           else
13349                             no_cache=1
13350                           fi
13351
13352                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13353
13354 fi
13355
13356
13357           eval "$wx_cv_use_toolbar"
13358           if test "$no_cache" != 1; then
13359             echo $wx_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
13360           fi
13361
13362           if test x"$enablestring" = xdisable; then
13363             if test $wxUSE_TOOLBAR = yes; then
13364               result=no
13365             else
13366               result=yes
13367             fi
13368           else
13369             result=$wxUSE_TOOLBAR
13370           fi
13371
13372           { echo "$as_me:$LINENO: result: $result" >&5
13373 echo "${ECHO_T}$result" >&6; }
13374
13375
13376           enablestring=
13377           defaultval=$wxUSE_ALL_FEATURES
13378           if test -z "$defaultval"; then
13379               if test x"$enablestring" = xdisable; then
13380                   defaultval=yes
13381               else
13382                   defaultval=no
13383               fi
13384           fi
13385
13386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13387 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13388           no_cache=0
13389           # Check whether --enable-tbarnative was given.
13390 if test "${enable_tbarnative+set}" = set; then
13391   enableval=$enable_tbarnative;
13392                           if test "$enableval" = yes; then
13393                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13394                           else
13395                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13396                           fi
13397
13398 else
13399
13400                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13401                           if test "x$LINE" != x ; then
13402                             eval "DEFAULT_$LINE"
13403                           else
13404                             no_cache=1
13405                           fi
13406
13407                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13408
13409 fi
13410
13411
13412           eval "$wx_cv_use_tbarnative"
13413           if test "$no_cache" != 1; then
13414             echo $wx_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
13415           fi
13416
13417           if test x"$enablestring" = xdisable; then
13418             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13419               result=no
13420             else
13421               result=yes
13422             fi
13423           else
13424             result=$wxUSE_TOOLBAR_NATIVE
13425           fi
13426
13427           { echo "$as_me:$LINENO: result: $result" >&5
13428 echo "${ECHO_T}$result" >&6; }
13429
13430
13431           enablestring=
13432           defaultval=$wxUSE_ALL_FEATURES
13433           if test -z "$defaultval"; then
13434               if test x"$enablestring" = xdisable; then
13435                   defaultval=yes
13436               else
13437                   defaultval=no
13438               fi
13439           fi
13440
13441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13442 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13443           no_cache=0
13444           # Check whether --enable-treebook was given.
13445 if test "${enable_treebook+set}" = set; then
13446   enableval=$enable_treebook;
13447                           if test "$enableval" = yes; then
13448                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13449                           else
13450                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13451                           fi
13452
13453 else
13454
13455                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13456                           if test "x$LINE" != x ; then
13457                             eval "DEFAULT_$LINE"
13458                           else
13459                             no_cache=1
13460                           fi
13461
13462                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13463
13464 fi
13465
13466
13467           eval "$wx_cv_use_treebook"
13468           if test "$no_cache" != 1; then
13469             echo $wx_cv_use_treebook >> ${wx_arg_cache_file}.tmp
13470           fi
13471
13472           if test x"$enablestring" = xdisable; then
13473             if test $wxUSE_TREEBOOK = yes; then
13474               result=no
13475             else
13476               result=yes
13477             fi
13478           else
13479             result=$wxUSE_TREEBOOK
13480           fi
13481
13482           { echo "$as_me:$LINENO: result: $result" >&5
13483 echo "${ECHO_T}$result" >&6; }
13484
13485
13486           enablestring=
13487           defaultval=$wxUSE_ALL_FEATURES
13488           if test -z "$defaultval"; then
13489               if test x"$enablestring" = xdisable; then
13490                   defaultval=yes
13491               else
13492                   defaultval=no
13493               fi
13494           fi
13495
13496           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13497 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13498           no_cache=0
13499           # Check whether --enable-toolbook was given.
13500 if test "${enable_toolbook+set}" = set; then
13501   enableval=$enable_toolbook;
13502                           if test "$enableval" = yes; then
13503                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13504                           else
13505                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13506                           fi
13507
13508 else
13509
13510                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13511                           if test "x$LINE" != x ; then
13512                             eval "DEFAULT_$LINE"
13513                           else
13514                             no_cache=1
13515                           fi
13516
13517                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13518
13519 fi
13520
13521
13522           eval "$wx_cv_use_toolbook"
13523           if test "$no_cache" != 1; then
13524             echo $wx_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
13525           fi
13526
13527           if test x"$enablestring" = xdisable; then
13528             if test $wxUSE_TOOLBOOK = yes; then
13529               result=no
13530             else
13531               result=yes
13532             fi
13533           else
13534             result=$wxUSE_TOOLBOOK
13535           fi
13536
13537           { echo "$as_me:$LINENO: result: $result" >&5
13538 echo "${ECHO_T}$result" >&6; }
13539
13540
13541           enablestring=
13542           defaultval=$wxUSE_ALL_FEATURES
13543           if test -z "$defaultval"; then
13544               if test x"$enablestring" = xdisable; then
13545                   defaultval=yes
13546               else
13547                   defaultval=no
13548               fi
13549           fi
13550
13551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
13552 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
13553           no_cache=0
13554           # Check whether --enable-treectrl was given.
13555 if test "${enable_treectrl+set}" = set; then
13556   enableval=$enable_treectrl;
13557                           if test "$enableval" = yes; then
13558                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
13559                           else
13560                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
13561                           fi
13562
13563 else
13564
13565                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
13566                           if test "x$LINE" != x ; then
13567                             eval "DEFAULT_$LINE"
13568                           else
13569                             no_cache=1
13570                           fi
13571
13572                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
13573
13574 fi
13575
13576
13577           eval "$wx_cv_use_treectrl"
13578           if test "$no_cache" != 1; then
13579             echo $wx_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
13580           fi
13581
13582           if test x"$enablestring" = xdisable; then
13583             if test $wxUSE_TREECTRL = yes; then
13584               result=no
13585             else
13586               result=yes
13587             fi
13588           else
13589             result=$wxUSE_TREECTRL
13590           fi
13591
13592           { echo "$as_me:$LINENO: result: $result" >&5
13593 echo "${ECHO_T}$result" >&6; }
13594
13595
13596           enablestring=
13597           defaultval=$wxUSE_ALL_FEATURES
13598           if test -z "$defaultval"; then
13599               if test x"$enablestring" = xdisable; then
13600                   defaultval=yes
13601               else
13602                   defaultval=no
13603               fi
13604           fi
13605
13606           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
13607 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
13608           no_cache=0
13609           # Check whether --enable-tipwindow was given.
13610 if test "${enable_tipwindow+set}" = set; then
13611   enableval=$enable_tipwindow;
13612                           if test "$enableval" = yes; then
13613                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
13614                           else
13615                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
13616                           fi
13617
13618 else
13619
13620                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
13621                           if test "x$LINE" != x ; then
13622                             eval "DEFAULT_$LINE"
13623                           else
13624                             no_cache=1
13625                           fi
13626
13627                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
13628
13629 fi
13630
13631
13632           eval "$wx_cv_use_tipwindow"
13633           if test "$no_cache" != 1; then
13634             echo $wx_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
13635           fi
13636
13637           if test x"$enablestring" = xdisable; then
13638             if test $wxUSE_TIPWINDOW = yes; then
13639               result=no
13640             else
13641               result=yes
13642             fi
13643           else
13644             result=$wxUSE_TIPWINDOW
13645           fi
13646
13647           { echo "$as_me:$LINENO: result: $result" >&5
13648 echo "${ECHO_T}$result" >&6; }
13649
13650
13651           enablestring=
13652           defaultval=$wxUSE_ALL_FEATURES
13653           if test -z "$defaultval"; then
13654               if test x"$enablestring" = xdisable; then
13655                   defaultval=yes
13656               else
13657                   defaultval=no
13658               fi
13659           fi
13660
13661           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
13662 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
13663           no_cache=0
13664           # Check whether --enable-popupwin was given.
13665 if test "${enable_popupwin+set}" = set; then
13666   enableval=$enable_popupwin;
13667                           if test "$enableval" = yes; then
13668                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
13669                           else
13670                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
13671                           fi
13672
13673 else
13674
13675                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
13676                           if test "x$LINE" != x ; then
13677                             eval "DEFAULT_$LINE"
13678                           else
13679                             no_cache=1
13680                           fi
13681
13682                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
13683
13684 fi
13685
13686
13687           eval "$wx_cv_use_popupwin"
13688           if test "$no_cache" != 1; then
13689             echo $wx_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
13690           fi
13691
13692           if test x"$enablestring" = xdisable; then
13693             if test $wxUSE_POPUPWIN = yes; then
13694               result=no
13695             else
13696               result=yes
13697             fi
13698           else
13699             result=$wxUSE_POPUPWIN
13700           fi
13701
13702           { echo "$as_me:$LINENO: result: $result" >&5
13703 echo "${ECHO_T}$result" >&6; }
13704
13705
13706
13707
13708           enablestring=
13709           defaultval=$wxUSE_ALL_FEATURES
13710           if test -z "$defaultval"; then
13711               if test x"$enablestring" = xdisable; then
13712                   defaultval=yes
13713               else
13714                   defaultval=no
13715               fi
13716           fi
13717
13718           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13719 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13720           no_cache=0
13721           # Check whether --enable-commondlg was given.
13722 if test "${enable_commondlg+set}" = set; then
13723   enableval=$enable_commondlg;
13724                           if test "$enableval" = yes; then
13725                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13726                           else
13727                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13728                           fi
13729
13730 else
13731
13732                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
13733                           if test "x$LINE" != x ; then
13734                             eval "DEFAULT_$LINE"
13735                           else
13736                             no_cache=1
13737                           fi
13738
13739                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13740
13741 fi
13742
13743
13744           eval "$wx_cv_use_commondlg"
13745           if test "$no_cache" != 1; then
13746             echo $wx_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
13747           fi
13748
13749           if test x"$enablestring" = xdisable; then
13750             if test $wxUSE_COMMONDLGS = yes; then
13751               result=no
13752             else
13753               result=yes
13754             fi
13755           else
13756             result=$wxUSE_COMMONDLGS
13757           fi
13758
13759           { echo "$as_me:$LINENO: result: $result" >&5
13760 echo "${ECHO_T}$result" >&6; }
13761
13762
13763           enablestring=
13764           defaultval=$wxUSE_ALL_FEATURES
13765           if test -z "$defaultval"; then
13766               if test x"$enablestring" = xdisable; then
13767                   defaultval=yes
13768               else
13769                   defaultval=no
13770               fi
13771           fi
13772
13773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13774 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13775           no_cache=0
13776           # Check whether --enable-aboutdlg was given.
13777 if test "${enable_aboutdlg+set}" = set; then
13778   enableval=$enable_aboutdlg;
13779                           if test "$enableval" = yes; then
13780                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13781                           else
13782                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13783                           fi
13784
13785 else
13786
13787                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
13788                           if test "x$LINE" != x ; then
13789                             eval "DEFAULT_$LINE"
13790                           else
13791                             no_cache=1
13792                           fi
13793
13794                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13795
13796 fi
13797
13798
13799           eval "$wx_cv_use_aboutdlg"
13800           if test "$no_cache" != 1; then
13801             echo $wx_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
13802           fi
13803
13804           if test x"$enablestring" = xdisable; then
13805             if test $wxUSE_ABOUTDLG = yes; then
13806               result=no
13807             else
13808               result=yes
13809             fi
13810           else
13811             result=$wxUSE_ABOUTDLG
13812           fi
13813
13814           { echo "$as_me:$LINENO: result: $result" >&5
13815 echo "${ECHO_T}$result" >&6; }
13816
13817
13818           enablestring=
13819           defaultval=$wxUSE_ALL_FEATURES
13820           if test -z "$defaultval"; then
13821               if test x"$enablestring" = xdisable; then
13822                   defaultval=yes
13823               else
13824                   defaultval=no
13825               fi
13826           fi
13827
13828           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13829 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13830           no_cache=0
13831           # Check whether --enable-choicedlg was given.
13832 if test "${enable_choicedlg+set}" = set; then
13833   enableval=$enable_choicedlg;
13834                           if test "$enableval" = yes; then
13835                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13836                           else
13837                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13838                           fi
13839
13840 else
13841
13842                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
13843                           if test "x$LINE" != x ; then
13844                             eval "DEFAULT_$LINE"
13845                           else
13846                             no_cache=1
13847                           fi
13848
13849                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13850
13851 fi
13852
13853
13854           eval "$wx_cv_use_choicedlg"
13855           if test "$no_cache" != 1; then
13856             echo $wx_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
13857           fi
13858
13859           if test x"$enablestring" = xdisable; then
13860             if test $wxUSE_CHOICEDLG = yes; then
13861               result=no
13862             else
13863               result=yes
13864             fi
13865           else
13866             result=$wxUSE_CHOICEDLG
13867           fi
13868
13869           { echo "$as_me:$LINENO: result: $result" >&5
13870 echo "${ECHO_T}$result" >&6; }
13871
13872
13873           enablestring=
13874           defaultval=$wxUSE_ALL_FEATURES
13875           if test -z "$defaultval"; then
13876               if test x"$enablestring" = xdisable; then
13877                   defaultval=yes
13878               else
13879                   defaultval=no
13880               fi
13881           fi
13882
13883           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13884 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13885           no_cache=0
13886           # Check whether --enable-coldlg was given.
13887 if test "${enable_coldlg+set}" = set; then
13888   enableval=$enable_coldlg;
13889                           if test "$enableval" = yes; then
13890                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13891                           else
13892                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13893                           fi
13894
13895 else
13896
13897                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
13898                           if test "x$LINE" != x ; then
13899                             eval "DEFAULT_$LINE"
13900                           else
13901                             no_cache=1
13902                           fi
13903
13904                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13905
13906 fi
13907
13908
13909           eval "$wx_cv_use_coldlg"
13910           if test "$no_cache" != 1; then
13911             echo $wx_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
13912           fi
13913
13914           if test x"$enablestring" = xdisable; then
13915             if test $wxUSE_COLOURDLG = yes; then
13916               result=no
13917             else
13918               result=yes
13919             fi
13920           else
13921             result=$wxUSE_COLOURDLG
13922           fi
13923
13924           { echo "$as_me:$LINENO: result: $result" >&5
13925 echo "${ECHO_T}$result" >&6; }
13926
13927
13928           enablestring=
13929           defaultval=$wxUSE_ALL_FEATURES
13930           if test -z "$defaultval"; then
13931               if test x"$enablestring" = xdisable; then
13932                   defaultval=yes
13933               else
13934                   defaultval=no
13935               fi
13936           fi
13937
13938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13939 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13940           no_cache=0
13941           # Check whether --enable-filedlg was given.
13942 if test "${enable_filedlg+set}" = set; then
13943   enableval=$enable_filedlg;
13944                           if test "$enableval" = yes; then
13945                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13946                           else
13947                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13948                           fi
13949
13950 else
13951
13952                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
13953                           if test "x$LINE" != x ; then
13954                             eval "DEFAULT_$LINE"
13955                           else
13956                             no_cache=1
13957                           fi
13958
13959                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13960
13961 fi
13962
13963
13964           eval "$wx_cv_use_filedlg"
13965           if test "$no_cache" != 1; then
13966             echo $wx_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
13967           fi
13968
13969           if test x"$enablestring" = xdisable; then
13970             if test $wxUSE_FILEDLG = yes; then
13971               result=no
13972             else
13973               result=yes
13974             fi
13975           else
13976             result=$wxUSE_FILEDLG
13977           fi
13978
13979           { echo "$as_me:$LINENO: result: $result" >&5
13980 echo "${ECHO_T}$result" >&6; }
13981
13982
13983           enablestring=
13984           defaultval=$wxUSE_ALL_FEATURES
13985           if test -z "$defaultval"; then
13986               if test x"$enablestring" = xdisable; then
13987                   defaultval=yes
13988               else
13989                   defaultval=no
13990               fi
13991           fi
13992
13993           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13994 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13995           no_cache=0
13996           # Check whether --enable-finddlg was given.
13997 if test "${enable_finddlg+set}" = set; then
13998   enableval=$enable_finddlg;
13999                           if test "$enableval" = yes; then
14000                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
14001                           else
14002                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
14003                           fi
14004
14005 else
14006
14007                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
14008                           if test "x$LINE" != x ; then
14009                             eval "DEFAULT_$LINE"
14010                           else
14011                             no_cache=1
14012                           fi
14013
14014                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
14015
14016 fi
14017
14018
14019           eval "$wx_cv_use_finddlg"
14020           if test "$no_cache" != 1; then
14021             echo $wx_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
14022           fi
14023
14024           if test x"$enablestring" = xdisable; then
14025             if test $wxUSE_FINDREPLDLG = yes; then
14026               result=no
14027             else
14028               result=yes
14029             fi
14030           else
14031             result=$wxUSE_FINDREPLDLG
14032           fi
14033
14034           { echo "$as_me:$LINENO: result: $result" >&5
14035 echo "${ECHO_T}$result" >&6; }
14036
14037
14038           enablestring=
14039           defaultval=$wxUSE_ALL_FEATURES
14040           if test -z "$defaultval"; then
14041               if test x"$enablestring" = xdisable; then
14042                   defaultval=yes
14043               else
14044                   defaultval=no
14045               fi
14046           fi
14047
14048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
14049 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
14050           no_cache=0
14051           # Check whether --enable-fontdlg was given.
14052 if test "${enable_fontdlg+set}" = set; then
14053   enableval=$enable_fontdlg;
14054                           if test "$enableval" = yes; then
14055                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
14056                           else
14057                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
14058                           fi
14059
14060 else
14061
14062                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
14063                           if test "x$LINE" != x ; then
14064                             eval "DEFAULT_$LINE"
14065                           else
14066                             no_cache=1
14067                           fi
14068
14069                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
14070
14071 fi
14072
14073
14074           eval "$wx_cv_use_fontdlg"
14075           if test "$no_cache" != 1; then
14076             echo $wx_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
14077           fi
14078
14079           if test x"$enablestring" = xdisable; then
14080             if test $wxUSE_FONTDLG = yes; then
14081               result=no
14082             else
14083               result=yes
14084             fi
14085           else
14086             result=$wxUSE_FONTDLG
14087           fi
14088
14089           { echo "$as_me:$LINENO: result: $result" >&5
14090 echo "${ECHO_T}$result" >&6; }
14091
14092
14093           enablestring=
14094           defaultval=$wxUSE_ALL_FEATURES
14095           if test -z "$defaultval"; then
14096               if test x"$enablestring" = xdisable; then
14097                   defaultval=yes
14098               else
14099                   defaultval=no
14100               fi
14101           fi
14102
14103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14104 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14105           no_cache=0
14106           # Check whether --enable-dirdlg was given.
14107 if test "${enable_dirdlg+set}" = set; then
14108   enableval=$enable_dirdlg;
14109                           if test "$enableval" = yes; then
14110                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14111                           else
14112                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14113                           fi
14114
14115 else
14116
14117                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14118                           if test "x$LINE" != x ; then
14119                             eval "DEFAULT_$LINE"
14120                           else
14121                             no_cache=1
14122                           fi
14123
14124                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14125
14126 fi
14127
14128
14129           eval "$wx_cv_use_dirdlg"
14130           if test "$no_cache" != 1; then
14131             echo $wx_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
14132           fi
14133
14134           if test x"$enablestring" = xdisable; then
14135             if test $wxUSE_DIRDLG = yes; then
14136               result=no
14137             else
14138               result=yes
14139             fi
14140           else
14141             result=$wxUSE_DIRDLG
14142           fi
14143
14144           { echo "$as_me:$LINENO: result: $result" >&5
14145 echo "${ECHO_T}$result" >&6; }
14146
14147
14148           enablestring=
14149           defaultval=$wxUSE_ALL_FEATURES
14150           if test -z "$defaultval"; then
14151               if test x"$enablestring" = xdisable; then
14152                   defaultval=yes
14153               else
14154                   defaultval=no
14155               fi
14156           fi
14157
14158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14159 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14160           no_cache=0
14161           # Check whether --enable-msgdlg was given.
14162 if test "${enable_msgdlg+set}" = set; then
14163   enableval=$enable_msgdlg;
14164                           if test "$enableval" = yes; then
14165                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14166                           else
14167                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14168                           fi
14169
14170 else
14171
14172                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14173                           if test "x$LINE" != x ; then
14174                             eval "DEFAULT_$LINE"
14175                           else
14176                             no_cache=1
14177                           fi
14178
14179                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14180
14181 fi
14182
14183
14184           eval "$wx_cv_use_msgdlg"
14185           if test "$no_cache" != 1; then
14186             echo $wx_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
14187           fi
14188
14189           if test x"$enablestring" = xdisable; then
14190             if test $wxUSE_MSGDLG = yes; then
14191               result=no
14192             else
14193               result=yes
14194             fi
14195           else
14196             result=$wxUSE_MSGDLG
14197           fi
14198
14199           { echo "$as_me:$LINENO: result: $result" >&5
14200 echo "${ECHO_T}$result" >&6; }
14201
14202
14203           enablestring=
14204           defaultval=$wxUSE_ALL_FEATURES
14205           if test -z "$defaultval"; then
14206               if test x"$enablestring" = xdisable; then
14207                   defaultval=yes
14208               else
14209                   defaultval=no
14210               fi
14211           fi
14212
14213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14214 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14215           no_cache=0
14216           # Check whether --enable-numberdlg was given.
14217 if test "${enable_numberdlg+set}" = set; then
14218   enableval=$enable_numberdlg;
14219                           if test "$enableval" = yes; then
14220                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14221                           else
14222                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14223                           fi
14224
14225 else
14226
14227                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14228                           if test "x$LINE" != x ; then
14229                             eval "DEFAULT_$LINE"
14230                           else
14231                             no_cache=1
14232                           fi
14233
14234                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14235
14236 fi
14237
14238
14239           eval "$wx_cv_use_numberdlg"
14240           if test "$no_cache" != 1; then
14241             echo $wx_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
14242           fi
14243
14244           if test x"$enablestring" = xdisable; then
14245             if test $wxUSE_NUMBERDLG = yes; then
14246               result=no
14247             else
14248               result=yes
14249             fi
14250           else
14251             result=$wxUSE_NUMBERDLG
14252           fi
14253
14254           { echo "$as_me:$LINENO: result: $result" >&5
14255 echo "${ECHO_T}$result" >&6; }
14256
14257
14258           enablestring=
14259           defaultval=$wxUSE_ALL_FEATURES
14260           if test -z "$defaultval"; then
14261               if test x"$enablestring" = xdisable; then
14262                   defaultval=yes
14263               else
14264                   defaultval=no
14265               fi
14266           fi
14267
14268           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14269 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14270           no_cache=0
14271           # Check whether --enable-splash was given.
14272 if test "${enable_splash+set}" = set; then
14273   enableval=$enable_splash;
14274                           if test "$enableval" = yes; then
14275                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14276                           else
14277                             wx_cv_use_splash='wxUSE_SPLASH=no'
14278                           fi
14279
14280 else
14281
14282                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14283                           if test "x$LINE" != x ; then
14284                             eval "DEFAULT_$LINE"
14285                           else
14286                             no_cache=1
14287                           fi
14288
14289                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14290
14291 fi
14292
14293
14294           eval "$wx_cv_use_splash"
14295           if test "$no_cache" != 1; then
14296             echo $wx_cv_use_splash >> ${wx_arg_cache_file}.tmp
14297           fi
14298
14299           if test x"$enablestring" = xdisable; then
14300             if test $wxUSE_SPLASH = yes; then
14301               result=no
14302             else
14303               result=yes
14304             fi
14305           else
14306             result=$wxUSE_SPLASH
14307           fi
14308
14309           { echo "$as_me:$LINENO: result: $result" >&5
14310 echo "${ECHO_T}$result" >&6; }
14311
14312
14313           enablestring=
14314           defaultval=$wxUSE_ALL_FEATURES
14315           if test -z "$defaultval"; then
14316               if test x"$enablestring" = xdisable; then
14317                   defaultval=yes
14318               else
14319                   defaultval=no
14320               fi
14321           fi
14322
14323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14324 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14325           no_cache=0
14326           # Check whether --enable-textdlg was given.
14327 if test "${enable_textdlg+set}" = set; then
14328   enableval=$enable_textdlg;
14329                           if test "$enableval" = yes; then
14330                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14331                           else
14332                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14333                           fi
14334
14335 else
14336
14337                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14338                           if test "x$LINE" != x ; then
14339                             eval "DEFAULT_$LINE"
14340                           else
14341                             no_cache=1
14342                           fi
14343
14344                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14345
14346 fi
14347
14348
14349           eval "$wx_cv_use_textdlg"
14350           if test "$no_cache" != 1; then
14351             echo $wx_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
14352           fi
14353
14354           if test x"$enablestring" = xdisable; then
14355             if test $wxUSE_TEXTDLG = yes; then
14356               result=no
14357             else
14358               result=yes
14359             fi
14360           else
14361             result=$wxUSE_TEXTDLG
14362           fi
14363
14364           { echo "$as_me:$LINENO: result: $result" >&5
14365 echo "${ECHO_T}$result" >&6; }
14366
14367
14368           enablestring=
14369           defaultval=$wxUSE_ALL_FEATURES
14370           if test -z "$defaultval"; then
14371               if test x"$enablestring" = xdisable; then
14372                   defaultval=yes
14373               else
14374                   defaultval=no
14375               fi
14376           fi
14377
14378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14379 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14380           no_cache=0
14381           # Check whether --enable-tipdlg was given.
14382 if test "${enable_tipdlg+set}" = set; then
14383   enableval=$enable_tipdlg;
14384                           if test "$enableval" = yes; then
14385                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14386                           else
14387                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14388                           fi
14389
14390 else
14391
14392                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14393                           if test "x$LINE" != x ; then
14394                             eval "DEFAULT_$LINE"
14395                           else
14396                             no_cache=1
14397                           fi
14398
14399                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14400
14401 fi
14402
14403
14404           eval "$wx_cv_use_tipdlg"
14405           if test "$no_cache" != 1; then
14406             echo $wx_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
14407           fi
14408
14409           if test x"$enablestring" = xdisable; then
14410             if test $wxUSE_STARTUP_TIPS = yes; then
14411               result=no
14412             else
14413               result=yes
14414             fi
14415           else
14416             result=$wxUSE_STARTUP_TIPS
14417           fi
14418
14419           { echo "$as_me:$LINENO: result: $result" >&5
14420 echo "${ECHO_T}$result" >&6; }
14421
14422
14423           enablestring=
14424           defaultval=$wxUSE_ALL_FEATURES
14425           if test -z "$defaultval"; then
14426               if test x"$enablestring" = xdisable; then
14427                   defaultval=yes
14428               else
14429                   defaultval=no
14430               fi
14431           fi
14432
14433           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14434 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14435           no_cache=0
14436           # Check whether --enable-progressdlg was given.
14437 if test "${enable_progressdlg+set}" = set; then
14438   enableval=$enable_progressdlg;
14439                           if test "$enableval" = yes; then
14440                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14441                           else
14442                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14443                           fi
14444
14445 else
14446
14447                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14448                           if test "x$LINE" != x ; then
14449                             eval "DEFAULT_$LINE"
14450                           else
14451                             no_cache=1
14452                           fi
14453
14454                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14455
14456 fi
14457
14458
14459           eval "$wx_cv_use_progressdlg"
14460           if test "$no_cache" != 1; then
14461             echo $wx_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
14462           fi
14463
14464           if test x"$enablestring" = xdisable; then
14465             if test $wxUSE_PROGRESSDLG = yes; then
14466               result=no
14467             else
14468               result=yes
14469             fi
14470           else
14471             result=$wxUSE_PROGRESSDLG
14472           fi
14473
14474           { echo "$as_me:$LINENO: result: $result" >&5
14475 echo "${ECHO_T}$result" >&6; }
14476
14477
14478           enablestring=
14479           defaultval=$wxUSE_ALL_FEATURES
14480           if test -z "$defaultval"; then
14481               if test x"$enablestring" = xdisable; then
14482                   defaultval=yes
14483               else
14484                   defaultval=no
14485               fi
14486           fi
14487
14488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14489 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14490           no_cache=0
14491           # Check whether --enable-wizarddlg was given.
14492 if test "${enable_wizarddlg+set}" = set; then
14493   enableval=$enable_wizarddlg;
14494                           if test "$enableval" = yes; then
14495                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14496                           else
14497                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14498                           fi
14499
14500 else
14501
14502                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14503                           if test "x$LINE" != x ; then
14504                             eval "DEFAULT_$LINE"
14505                           else
14506                             no_cache=1
14507                           fi
14508
14509                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14510
14511 fi
14512
14513
14514           eval "$wx_cv_use_wizarddlg"
14515           if test "$no_cache" != 1; then
14516             echo $wx_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
14517           fi
14518
14519           if test x"$enablestring" = xdisable; then
14520             if test $wxUSE_WIZARDDLG = yes; then
14521               result=no
14522             else
14523               result=yes
14524             fi
14525           else
14526             result=$wxUSE_WIZARDDLG
14527           fi
14528
14529           { echo "$as_me:$LINENO: result: $result" >&5
14530 echo "${ECHO_T}$result" >&6; }
14531
14532
14533
14534
14535           enablestring=
14536           defaultval=$wxUSE_ALL_FEATURES
14537           if test -z "$defaultval"; then
14538               if test x"$enablestring" = xdisable; then
14539                   defaultval=yes
14540               else
14541                   defaultval=no
14542               fi
14543           fi
14544
14545           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
14546 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
14547           no_cache=0
14548           # Check whether --enable-menus was given.
14549 if test "${enable_menus+set}" = set; then
14550   enableval=$enable_menus;
14551                           if test "$enableval" = yes; then
14552                             wx_cv_use_menus='wxUSE_MENUS=yes'
14553                           else
14554                             wx_cv_use_menus='wxUSE_MENUS=no'
14555                           fi
14556
14557 else
14558
14559                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
14560                           if test "x$LINE" != x ; then
14561                             eval "DEFAULT_$LINE"
14562                           else
14563                             no_cache=1
14564                           fi
14565
14566                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
14567
14568 fi
14569
14570
14571           eval "$wx_cv_use_menus"
14572           if test "$no_cache" != 1; then
14573             echo $wx_cv_use_menus >> ${wx_arg_cache_file}.tmp
14574           fi
14575
14576           if test x"$enablestring" = xdisable; then
14577             if test $wxUSE_MENUS = yes; then
14578               result=no
14579             else
14580               result=yes
14581             fi
14582           else
14583             result=$wxUSE_MENUS
14584           fi
14585
14586           { echo "$as_me:$LINENO: result: $result" >&5
14587 echo "${ECHO_T}$result" >&6; }
14588
14589
14590           enablestring=
14591           defaultval=$wxUSE_ALL_FEATURES
14592           if test -z "$defaultval"; then
14593               if test x"$enablestring" = xdisable; then
14594                   defaultval=yes
14595               else
14596                   defaultval=no
14597               fi
14598           fi
14599
14600           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
14601 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
14602           no_cache=0
14603           # Check whether --enable-miniframe was given.
14604 if test "${enable_miniframe+set}" = set; then
14605   enableval=$enable_miniframe;
14606                           if test "$enableval" = yes; then
14607                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
14608                           else
14609                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
14610                           fi
14611
14612 else
14613
14614                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
14615                           if test "x$LINE" != x ; then
14616                             eval "DEFAULT_$LINE"
14617                           else
14618                             no_cache=1
14619                           fi
14620
14621                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
14622
14623 fi
14624
14625
14626           eval "$wx_cv_use_miniframe"
14627           if test "$no_cache" != 1; then
14628             echo $wx_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
14629           fi
14630
14631           if test x"$enablestring" = xdisable; then
14632             if test $wxUSE_MINIFRAME = yes; then
14633               result=no
14634             else
14635               result=yes
14636             fi
14637           else
14638             result=$wxUSE_MINIFRAME
14639           fi
14640
14641           { echo "$as_me:$LINENO: result: $result" >&5
14642 echo "${ECHO_T}$result" >&6; }
14643
14644
14645           enablestring=
14646           defaultval=$wxUSE_ALL_FEATURES
14647           if test -z "$defaultval"; then
14648               if test x"$enablestring" = xdisable; then
14649                   defaultval=yes
14650               else
14651                   defaultval=no
14652               fi
14653           fi
14654
14655           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
14656 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
14657           no_cache=0
14658           # Check whether --enable-tooltips was given.
14659 if test "${enable_tooltips+set}" = set; then
14660   enableval=$enable_tooltips;
14661                           if test "$enableval" = yes; then
14662                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
14663                           else
14664                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
14665                           fi
14666
14667 else
14668
14669                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
14670                           if test "x$LINE" != x ; then
14671                             eval "DEFAULT_$LINE"
14672                           else
14673                             no_cache=1
14674                           fi
14675
14676                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
14677
14678 fi
14679
14680
14681           eval "$wx_cv_use_tooltips"
14682           if test "$no_cache" != 1; then
14683             echo $wx_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
14684           fi
14685
14686           if test x"$enablestring" = xdisable; then
14687             if test $wxUSE_TOOLTIPS = yes; then
14688               result=no
14689             else
14690               result=yes
14691             fi
14692           else
14693             result=$wxUSE_TOOLTIPS
14694           fi
14695
14696           { echo "$as_me:$LINENO: result: $result" >&5
14697 echo "${ECHO_T}$result" >&6; }
14698
14699
14700           enablestring=
14701           defaultval=$wxUSE_ALL_FEATURES
14702           if test -z "$defaultval"; then
14703               if test x"$enablestring" = xdisable; then
14704                   defaultval=yes
14705               else
14706                   defaultval=no
14707               fi
14708           fi
14709
14710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
14711 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
14712           no_cache=0
14713           # Check whether --enable-splines was given.
14714 if test "${enable_splines+set}" = set; then
14715   enableval=$enable_splines;
14716                           if test "$enableval" = yes; then
14717                             wx_cv_use_splines='wxUSE_SPLINES=yes'
14718                           else
14719                             wx_cv_use_splines='wxUSE_SPLINES=no'
14720                           fi
14721
14722 else
14723
14724                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
14725                           if test "x$LINE" != x ; then
14726                             eval "DEFAULT_$LINE"
14727                           else
14728                             no_cache=1
14729                           fi
14730
14731                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
14732
14733 fi
14734
14735
14736           eval "$wx_cv_use_splines"
14737           if test "$no_cache" != 1; then
14738             echo $wx_cv_use_splines >> ${wx_arg_cache_file}.tmp
14739           fi
14740
14741           if test x"$enablestring" = xdisable; then
14742             if test $wxUSE_SPLINES = yes; then
14743               result=no
14744             else
14745               result=yes
14746             fi
14747           else
14748             result=$wxUSE_SPLINES
14749           fi
14750
14751           { echo "$as_me:$LINENO: result: $result" >&5
14752 echo "${ECHO_T}$result" >&6; }
14753
14754
14755           enablestring=
14756           defaultval=$wxUSE_ALL_FEATURES
14757           if test -z "$defaultval"; then
14758               if test x"$enablestring" = xdisable; then
14759                   defaultval=yes
14760               else
14761                   defaultval=no
14762               fi
14763           fi
14764
14765           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
14766 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
14767           no_cache=0
14768           # Check whether --enable-mousewheel was given.
14769 if test "${enable_mousewheel+set}" = set; then
14770   enableval=$enable_mousewheel;
14771                           if test "$enableval" = yes; then
14772                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
14773                           else
14774                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
14775                           fi
14776
14777 else
14778
14779                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
14780                           if test "x$LINE" != x ; then
14781                             eval "DEFAULT_$LINE"
14782                           else
14783                             no_cache=1
14784                           fi
14785
14786                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
14787
14788 fi
14789
14790
14791           eval "$wx_cv_use_mousewheel"
14792           if test "$no_cache" != 1; then
14793             echo $wx_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
14794           fi
14795
14796           if test x"$enablestring" = xdisable; then
14797             if test $wxUSE_MOUSEWHEEL = yes; then
14798               result=no
14799             else
14800               result=yes
14801             fi
14802           else
14803             result=$wxUSE_MOUSEWHEEL
14804           fi
14805
14806           { echo "$as_me:$LINENO: result: $result" >&5
14807 echo "${ECHO_T}$result" >&6; }
14808
14809
14810           enablestring=
14811           defaultval=$wxUSE_ALL_FEATURES
14812           if test -z "$defaultval"; then
14813               if test x"$enablestring" = xdisable; then
14814                   defaultval=yes
14815               else
14816                   defaultval=no
14817               fi
14818           fi
14819
14820           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
14821 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
14822           no_cache=0
14823           # Check whether --enable-validators was given.
14824 if test "${enable_validators+set}" = set; then
14825   enableval=$enable_validators;
14826                           if test "$enableval" = yes; then
14827                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
14828                           else
14829                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
14830                           fi
14831
14832 else
14833
14834                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
14835                           if test "x$LINE" != x ; then
14836                             eval "DEFAULT_$LINE"
14837                           else
14838                             no_cache=1
14839                           fi
14840
14841                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
14842
14843 fi
14844
14845
14846           eval "$wx_cv_use_validators"
14847           if test "$no_cache" != 1; then
14848             echo $wx_cv_use_validators >> ${wx_arg_cache_file}.tmp
14849           fi
14850
14851           if test x"$enablestring" = xdisable; then
14852             if test $wxUSE_VALIDATORS = yes; then
14853               result=no
14854             else
14855               result=yes
14856             fi
14857           else
14858             result=$wxUSE_VALIDATORS
14859           fi
14860
14861           { echo "$as_me:$LINENO: result: $result" >&5
14862 echo "${ECHO_T}$result" >&6; }
14863
14864
14865           enablestring=
14866           defaultval=$wxUSE_ALL_FEATURES
14867           if test -z "$defaultval"; then
14868               if test x"$enablestring" = xdisable; then
14869                   defaultval=yes
14870               else
14871                   defaultval=no
14872               fi
14873           fi
14874
14875           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
14876 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
14877           no_cache=0
14878           # Check whether --enable-busyinfo was given.
14879 if test "${enable_busyinfo+set}" = set; then
14880   enableval=$enable_busyinfo;
14881                           if test "$enableval" = yes; then
14882                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
14883                           else
14884                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
14885                           fi
14886
14887 else
14888
14889                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
14890                           if test "x$LINE" != x ; then
14891                             eval "DEFAULT_$LINE"
14892                           else
14893                             no_cache=1
14894                           fi
14895
14896                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
14897
14898 fi
14899
14900
14901           eval "$wx_cv_use_busyinfo"
14902           if test "$no_cache" != 1; then
14903             echo $wx_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
14904           fi
14905
14906           if test x"$enablestring" = xdisable; then
14907             if test $wxUSE_BUSYINFO = yes; then
14908               result=no
14909             else
14910               result=yes
14911             fi
14912           else
14913             result=$wxUSE_BUSYINFO
14914           fi
14915
14916           { echo "$as_me:$LINENO: result: $result" >&5
14917 echo "${ECHO_T}$result" >&6; }
14918
14919
14920           enablestring=
14921           defaultval=$wxUSE_ALL_FEATURES
14922           if test -z "$defaultval"; then
14923               if test x"$enablestring" = xdisable; then
14924                   defaultval=yes
14925               else
14926                   defaultval=no
14927               fi
14928           fi
14929
14930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14931 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14932           no_cache=0
14933           # Check whether --enable-joystick was given.
14934 if test "${enable_joystick+set}" = set; then
14935   enableval=$enable_joystick;
14936                           if test "$enableval" = yes; then
14937                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14938                           else
14939                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14940                           fi
14941
14942 else
14943
14944                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
14945                           if test "x$LINE" != x ; then
14946                             eval "DEFAULT_$LINE"
14947                           else
14948                             no_cache=1
14949                           fi
14950
14951                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14952
14953 fi
14954
14955
14956           eval "$wx_cv_use_joystick"
14957           if test "$no_cache" != 1; then
14958             echo $wx_cv_use_joystick >> ${wx_arg_cache_file}.tmp
14959           fi
14960
14961           if test x"$enablestring" = xdisable; then
14962             if test $wxUSE_JOYSTICK = yes; then
14963               result=no
14964             else
14965               result=yes
14966             fi
14967           else
14968             result=$wxUSE_JOYSTICK
14969           fi
14970
14971           { echo "$as_me:$LINENO: result: $result" >&5
14972 echo "${ECHO_T}$result" >&6; }
14973
14974
14975           enablestring=
14976           defaultval=$wxUSE_ALL_FEATURES
14977           if test -z "$defaultval"; then
14978               if test x"$enablestring" = xdisable; then
14979                   defaultval=yes
14980               else
14981                   defaultval=no
14982               fi
14983           fi
14984
14985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14986 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14987           no_cache=0
14988           # Check whether --enable-metafile was given.
14989 if test "${enable_metafile+set}" = set; then
14990   enableval=$enable_metafile;
14991                           if test "$enableval" = yes; then
14992                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14993                           else
14994                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14995                           fi
14996
14997 else
14998
14999                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
15000                           if test "x$LINE" != x ; then
15001                             eval "DEFAULT_$LINE"
15002                           else
15003                             no_cache=1
15004                           fi
15005
15006                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
15007
15008 fi
15009
15010
15011           eval "$wx_cv_use_metafile"
15012           if test "$no_cache" != 1; then
15013             echo $wx_cv_use_metafile >> ${wx_arg_cache_file}.tmp
15014           fi
15015
15016           if test x"$enablestring" = xdisable; then
15017             if test $wxUSE_METAFILE = yes; then
15018               result=no
15019             else
15020               result=yes
15021             fi
15022           else
15023             result=$wxUSE_METAFILE
15024           fi
15025
15026           { echo "$as_me:$LINENO: result: $result" >&5
15027 echo "${ECHO_T}$result" >&6; }
15028
15029
15030           enablestring=
15031           defaultval=$wxUSE_ALL_FEATURES
15032           if test -z "$defaultval"; then
15033               if test x"$enablestring" = xdisable; then
15034                   defaultval=yes
15035               else
15036                   defaultval=no
15037               fi
15038           fi
15039
15040           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
15041 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
15042           no_cache=0
15043           # Check whether --enable-dragimage was given.
15044 if test "${enable_dragimage+set}" = set; then
15045   enableval=$enable_dragimage;
15046                           if test "$enableval" = yes; then
15047                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
15048                           else
15049                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
15050                           fi
15051
15052 else
15053
15054                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
15055                           if test "x$LINE" != x ; then
15056                             eval "DEFAULT_$LINE"
15057                           else
15058                             no_cache=1
15059                           fi
15060
15061                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
15062
15063 fi
15064
15065
15066           eval "$wx_cv_use_dragimage"
15067           if test "$no_cache" != 1; then
15068             echo $wx_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
15069           fi
15070
15071           if test x"$enablestring" = xdisable; then
15072             if test $wxUSE_DRAGIMAGE = yes; then
15073               result=no
15074             else
15075               result=yes
15076             fi
15077           else
15078             result=$wxUSE_DRAGIMAGE
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}-accessibility" >&5
15096 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
15097           no_cache=0
15098           # Check whether --enable-accessibility was given.
15099 if test "${enable_accessibility+set}" = set; then
15100   enableval=$enable_accessibility;
15101                           if test "$enableval" = yes; then
15102                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15103                           else
15104                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15105                           fi
15106
15107 else
15108
15109                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15110                           if test "x$LINE" != x ; then
15111                             eval "DEFAULT_$LINE"
15112                           else
15113                             no_cache=1
15114                           fi
15115
15116                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15117
15118 fi
15119
15120
15121           eval "$wx_cv_use_accessibility"
15122           if test "$no_cache" != 1; then
15123             echo $wx_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
15124           fi
15125
15126           if test x"$enablestring" = xdisable; then
15127             if test $wxUSE_ACCESSIBILITY = yes; then
15128               result=no
15129             else
15130               result=yes
15131             fi
15132           else
15133             result=$wxUSE_ACCESSIBILITY
15134           fi
15135
15136           { echo "$as_me:$LINENO: result: $result" >&5
15137 echo "${ECHO_T}$result" >&6; }
15138
15139
15140 if test "$wxUSE_MSW" = "1"; then
15141
15142           enablestring=
15143           defaultval=$wxUSE_ALL_FEATURES
15144           if test -z "$defaultval"; then
15145               if test x"$enablestring" = xdisable; then
15146                   defaultval=yes
15147               else
15148                   defaultval=no
15149               fi
15150           fi
15151
15152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
15153 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
15154           no_cache=0
15155           # Check whether --enable-dccache was given.
15156 if test "${enable_dccache+set}" = set; then
15157   enableval=$enable_dccache;
15158                           if test "$enableval" = yes; then
15159                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
15160                           else
15161                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
15162                           fi
15163
15164 else
15165
15166                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
15167                           if test "x$LINE" != x ; then
15168                             eval "DEFAULT_$LINE"
15169                           else
15170                             no_cache=1
15171                           fi
15172
15173                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
15174
15175 fi
15176
15177
15178           eval "$wx_cv_use_dccache"
15179           if test "$no_cache" != 1; then
15180             echo $wx_cv_use_dccache >> ${wx_arg_cache_file}.tmp
15181           fi
15182
15183           if test x"$enablestring" = xdisable; then
15184             if test $wxUSE_DC_CACHEING = yes; then
15185               result=no
15186             else
15187               result=yes
15188             fi
15189           else
15190             result=$wxUSE_DC_CACHEING
15191           fi
15192
15193           { echo "$as_me:$LINENO: result: $result" >&5
15194 echo "${ECHO_T}$result" >&6; }
15195
15196 fi
15197
15198
15199
15200           enablestring=
15201           defaultval=$wxUSE_ALL_FEATURES
15202           if test -z "$defaultval"; then
15203               if test x"$enablestring" = xdisable; then
15204                   defaultval=yes
15205               else
15206                   defaultval=no
15207               fi
15208           fi
15209
15210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15211 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15212           no_cache=0
15213           # Check whether --enable-palette was given.
15214 if test "${enable_palette+set}" = set; then
15215   enableval=$enable_palette;
15216                           if test "$enableval" = yes; then
15217                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15218                           else
15219                             wx_cv_use_palette='wxUSE_PALETTE=no'
15220                           fi
15221
15222 else
15223
15224                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15225                           if test "x$LINE" != x ; then
15226                             eval "DEFAULT_$LINE"
15227                           else
15228                             no_cache=1
15229                           fi
15230
15231                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15232
15233 fi
15234
15235
15236           eval "$wx_cv_use_palette"
15237           if test "$no_cache" != 1; then
15238             echo $wx_cv_use_palette >> ${wx_arg_cache_file}.tmp
15239           fi
15240
15241           if test x"$enablestring" = xdisable; then
15242             if test $wxUSE_PALETTE = yes; then
15243               result=no
15244             else
15245               result=yes
15246             fi
15247           else
15248             result=$wxUSE_PALETTE
15249           fi
15250
15251           { echo "$as_me:$LINENO: result: $result" >&5
15252 echo "${ECHO_T}$result" >&6; }
15253
15254
15255           enablestring=
15256           defaultval=$wxUSE_ALL_FEATURES
15257           if test -z "$defaultval"; then
15258               if test x"$enablestring" = xdisable; then
15259                   defaultval=yes
15260               else
15261                   defaultval=no
15262               fi
15263           fi
15264
15265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15266 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15267           no_cache=0
15268           # Check whether --enable-image was given.
15269 if test "${enable_image+set}" = set; then
15270   enableval=$enable_image;
15271                           if test "$enableval" = yes; then
15272                             wx_cv_use_image='wxUSE_IMAGE=yes'
15273                           else
15274                             wx_cv_use_image='wxUSE_IMAGE=no'
15275                           fi
15276
15277 else
15278
15279                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15280                           if test "x$LINE" != x ; then
15281                             eval "DEFAULT_$LINE"
15282                           else
15283                             no_cache=1
15284                           fi
15285
15286                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15287
15288 fi
15289
15290
15291           eval "$wx_cv_use_image"
15292           if test "$no_cache" != 1; then
15293             echo $wx_cv_use_image >> ${wx_arg_cache_file}.tmp
15294           fi
15295
15296           if test x"$enablestring" = xdisable; then
15297             if test $wxUSE_IMAGE = yes; then
15298               result=no
15299             else
15300               result=yes
15301             fi
15302           else
15303             result=$wxUSE_IMAGE
15304           fi
15305
15306           { echo "$as_me:$LINENO: result: $result" >&5
15307 echo "${ECHO_T}$result" >&6; }
15308
15309
15310           enablestring=
15311           defaultval=$wxUSE_ALL_FEATURES
15312           if test -z "$defaultval"; then
15313               if test x"$enablestring" = xdisable; then
15314                   defaultval=yes
15315               else
15316                   defaultval=no
15317               fi
15318           fi
15319
15320           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15321 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15322           no_cache=0
15323           # Check whether --enable-gif was given.
15324 if test "${enable_gif+set}" = set; then
15325   enableval=$enable_gif;
15326                           if test "$enableval" = yes; then
15327                             wx_cv_use_gif='wxUSE_GIF=yes'
15328                           else
15329                             wx_cv_use_gif='wxUSE_GIF=no'
15330                           fi
15331
15332 else
15333
15334                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15335                           if test "x$LINE" != x ; then
15336                             eval "DEFAULT_$LINE"
15337                           else
15338                             no_cache=1
15339                           fi
15340
15341                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15342
15343 fi
15344
15345
15346           eval "$wx_cv_use_gif"
15347           if test "$no_cache" != 1; then
15348             echo $wx_cv_use_gif >> ${wx_arg_cache_file}.tmp
15349           fi
15350
15351           if test x"$enablestring" = xdisable; then
15352             if test $wxUSE_GIF = yes; then
15353               result=no
15354             else
15355               result=yes
15356             fi
15357           else
15358             result=$wxUSE_GIF
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}-pcx" >&5
15376 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15377           no_cache=0
15378           # Check whether --enable-pcx was given.
15379 if test "${enable_pcx+set}" = set; then
15380   enableval=$enable_pcx;
15381                           if test "$enableval" = yes; then
15382                             wx_cv_use_pcx='wxUSE_PCX=yes'
15383                           else
15384                             wx_cv_use_pcx='wxUSE_PCX=no'
15385                           fi
15386
15387 else
15388
15389                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15390                           if test "x$LINE" != x ; then
15391                             eval "DEFAULT_$LINE"
15392                           else
15393                             no_cache=1
15394                           fi
15395
15396                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15397
15398 fi
15399
15400
15401           eval "$wx_cv_use_pcx"
15402           if test "$no_cache" != 1; then
15403             echo $wx_cv_use_pcx >> ${wx_arg_cache_file}.tmp
15404           fi
15405
15406           if test x"$enablestring" = xdisable; then
15407             if test $wxUSE_PCX = yes; then
15408               result=no
15409             else
15410               result=yes
15411             fi
15412           else
15413             result=$wxUSE_PCX
15414           fi
15415
15416           { echo "$as_me:$LINENO: result: $result" >&5
15417 echo "${ECHO_T}$result" >&6; }
15418
15419
15420           enablestring=
15421           defaultval=$wxUSE_ALL_FEATURES
15422           if test -z "$defaultval"; then
15423               if test x"$enablestring" = xdisable; then
15424                   defaultval=yes
15425               else
15426                   defaultval=no
15427               fi
15428           fi
15429
15430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15431 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15432           no_cache=0
15433           # Check whether --enable-tga was given.
15434 if test "${enable_tga+set}" = set; then
15435   enableval=$enable_tga;
15436                           if test "$enableval" = yes; then
15437                             wx_cv_use_tga='wxUSE_TGA=yes'
15438                           else
15439                             wx_cv_use_tga='wxUSE_TGA=no'
15440                           fi
15441
15442 else
15443
15444                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15445                           if test "x$LINE" != x ; then
15446                             eval "DEFAULT_$LINE"
15447                           else
15448                             no_cache=1
15449                           fi
15450
15451                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15452
15453 fi
15454
15455
15456           eval "$wx_cv_use_tga"
15457           if test "$no_cache" != 1; then
15458             echo $wx_cv_use_tga >> ${wx_arg_cache_file}.tmp
15459           fi
15460
15461           if test x"$enablestring" = xdisable; then
15462             if test $wxUSE_TGA = yes; then
15463               result=no
15464             else
15465               result=yes
15466             fi
15467           else
15468             result=$wxUSE_TGA
15469           fi
15470
15471           { echo "$as_me:$LINENO: result: $result" >&5
15472 echo "${ECHO_T}$result" >&6; }
15473
15474
15475           enablestring=
15476           defaultval=$wxUSE_ALL_FEATURES
15477           if test -z "$defaultval"; then
15478               if test x"$enablestring" = xdisable; then
15479                   defaultval=yes
15480               else
15481                   defaultval=no
15482               fi
15483           fi
15484
15485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15486 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15487           no_cache=0
15488           # Check whether --enable-iff was given.
15489 if test "${enable_iff+set}" = set; then
15490   enableval=$enable_iff;
15491                           if test "$enableval" = yes; then
15492                             wx_cv_use_iff='wxUSE_IFF=yes'
15493                           else
15494                             wx_cv_use_iff='wxUSE_IFF=no'
15495                           fi
15496
15497 else
15498
15499                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15500                           if test "x$LINE" != x ; then
15501                             eval "DEFAULT_$LINE"
15502                           else
15503                             no_cache=1
15504                           fi
15505
15506                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15507
15508 fi
15509
15510
15511           eval "$wx_cv_use_iff"
15512           if test "$no_cache" != 1; then
15513             echo $wx_cv_use_iff >> ${wx_arg_cache_file}.tmp
15514           fi
15515
15516           if test x"$enablestring" = xdisable; then
15517             if test $wxUSE_IFF = yes; then
15518               result=no
15519             else
15520               result=yes
15521             fi
15522           else
15523             result=$wxUSE_IFF
15524           fi
15525
15526           { echo "$as_me:$LINENO: result: $result" >&5
15527 echo "${ECHO_T}$result" >&6; }
15528
15529
15530           enablestring=
15531           defaultval=$wxUSE_ALL_FEATURES
15532           if test -z "$defaultval"; then
15533               if test x"$enablestring" = xdisable; then
15534                   defaultval=yes
15535               else
15536                   defaultval=no
15537               fi
15538           fi
15539
15540           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15541 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15542           no_cache=0
15543           # Check whether --enable-pnm was given.
15544 if test "${enable_pnm+set}" = set; then
15545   enableval=$enable_pnm;
15546                           if test "$enableval" = yes; then
15547                             wx_cv_use_pnm='wxUSE_PNM=yes'
15548                           else
15549                             wx_cv_use_pnm='wxUSE_PNM=no'
15550                           fi
15551
15552 else
15553
15554                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
15555                           if test "x$LINE" != x ; then
15556                             eval "DEFAULT_$LINE"
15557                           else
15558                             no_cache=1
15559                           fi
15560
15561                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
15562
15563 fi
15564
15565
15566           eval "$wx_cv_use_pnm"
15567           if test "$no_cache" != 1; then
15568             echo $wx_cv_use_pnm >> ${wx_arg_cache_file}.tmp
15569           fi
15570
15571           if test x"$enablestring" = xdisable; then
15572             if test $wxUSE_PNM = yes; then
15573               result=no
15574             else
15575               result=yes
15576             fi
15577           else
15578             result=$wxUSE_PNM
15579           fi
15580
15581           { echo "$as_me:$LINENO: result: $result" >&5
15582 echo "${ECHO_T}$result" >&6; }
15583
15584
15585           enablestring=
15586           defaultval=$wxUSE_ALL_FEATURES
15587           if test -z "$defaultval"; then
15588               if test x"$enablestring" = xdisable; then
15589                   defaultval=yes
15590               else
15591                   defaultval=no
15592               fi
15593           fi
15594
15595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
15596 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
15597           no_cache=0
15598           # Check whether --enable-xpm was given.
15599 if test "${enable_xpm+set}" = set; then
15600   enableval=$enable_xpm;
15601                           if test "$enableval" = yes; then
15602                             wx_cv_use_xpm='wxUSE_XPM=yes'
15603                           else
15604                             wx_cv_use_xpm='wxUSE_XPM=no'
15605                           fi
15606
15607 else
15608
15609                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
15610                           if test "x$LINE" != x ; then
15611                             eval "DEFAULT_$LINE"
15612                           else
15613                             no_cache=1
15614                           fi
15615
15616                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
15617
15618 fi
15619
15620
15621           eval "$wx_cv_use_xpm"
15622           if test "$no_cache" != 1; then
15623             echo $wx_cv_use_xpm >> ${wx_arg_cache_file}.tmp
15624           fi
15625
15626           if test x"$enablestring" = xdisable; then
15627             if test $wxUSE_XPM = yes; then
15628               result=no
15629             else
15630               result=yes
15631             fi
15632           else
15633             result=$wxUSE_XPM
15634           fi
15635
15636           { echo "$as_me:$LINENO: result: $result" >&5
15637 echo "${ECHO_T}$result" >&6; }
15638
15639
15640           enablestring=
15641           defaultval=$wxUSE_ALL_FEATURES
15642           if test -z "$defaultval"; then
15643               if test x"$enablestring" = xdisable; then
15644                   defaultval=yes
15645               else
15646                   defaultval=no
15647               fi
15648           fi
15649
15650           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
15651 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
15652           no_cache=0
15653           # Check whether --enable-ico_cur was given.
15654 if test "${enable_ico_cur+set}" = set; then
15655   enableval=$enable_ico_cur;
15656                           if test "$enableval" = yes; then
15657                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
15658                           else
15659                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
15660                           fi
15661
15662 else
15663
15664                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
15665                           if test "x$LINE" != x ; then
15666                             eval "DEFAULT_$LINE"
15667                           else
15668                             no_cache=1
15669                           fi
15670
15671                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
15672
15673 fi
15674
15675
15676           eval "$wx_cv_use_ico_cur"
15677           if test "$no_cache" != 1; then
15678             echo $wx_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
15679           fi
15680
15681           if test x"$enablestring" = xdisable; then
15682             if test $wxUSE_ICO_CUR = yes; then
15683               result=no
15684             else
15685               result=yes
15686             fi
15687           else
15688             result=$wxUSE_ICO_CUR
15689           fi
15690
15691           { echo "$as_me:$LINENO: result: $result" >&5
15692 echo "${ECHO_T}$result" >&6; }
15693
15694
15695 fi
15696
15697
15698           echo "saving argument cache $wx_arg_cache_file"
15699           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
15700
15701
15702
15703 { echo "$as_me:$LINENO: checking for toolkit" >&5
15704 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
15705
15706 # In Wine, we need to default to MSW, not GTK or MOTIF
15707 if test "$wxUSE_WINE" = "yes"; then
15708     DEFAULT_DEFAULT_wxUSE_GTK=0
15709     DEFAULT_DEFAULT_wxUSE_MOTIF=0
15710     DEFAULT_DEFAULT_wxUSE_MSW=1
15711     wxUSE_SHARED=no
15712     CC=${CC:-winegcc}
15713     CXX=${CXX:-wineg++}
15714 fi
15715
15716
15717 if test "$wxUSE_GUI" = "yes"; then
15718
15719     if test "$USE_BEOS" = 1; then
15720         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
15721 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
15722    { (exit 1); exit 1; }; }
15723     fi
15724
15725     if test "$TOOLKIT_GIVEN" = 1; then
15726             for toolkit in `echo $ALL_TOOLKITS`; do
15727         var=wxUSE_$toolkit
15728         eval "value=\$${var}"
15729         if test "x$value" = "xno"; then
15730           eval "$var=0"
15731         elif test "x$value" != "x"; then
15732           eval "$var=1"
15733         fi
15734
15735         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
15736           eval "wx${toolkit}_VERSION=$value"
15737         fi
15738       done
15739     else
15740             for toolkit in `echo $ALL_TOOLKITS`; do
15741         if test "$has_toolkit_in_cache" != 1; then
15742           var=DEFAULT_DEFAULT_wxUSE_$toolkit
15743         else
15744           var=DEFAULT_wxUSE_$toolkit
15745
15746           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
15747           if test "x$version" != "x"; then
15748             eval "wx${toolkit}_VERSION=$version"
15749           fi
15750         fi
15751         eval "wxUSE_$toolkit=\$${var}"
15752       done
15753     fi
15754
15755             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
15756                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
15757                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
15758
15759         case "${host}" in
15760       *-pc-os2_emx | *-pc-os2-emx )
15761         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
15762     esac
15763
15764     case "$NUM_TOOLKITS" in
15765       1)
15766       ;;
15767       0)
15768         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
15769 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
15770    { (exit 1); exit 1; }; }
15771       ;;
15772       *)
15773         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
15774 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
15775    { (exit 1); exit 1; }; }
15776     esac
15777
15778     # to be removed when --disable-gtk2 isn't needed
15779     if test "x$wxUSE_GTK2" = "xyes"; then
15780         wxGTK_VERSION=2
15781     elif test "x$wxUSE_GTK2" = "xno"; then
15782         wxGTK_VERSION=1
15783     fi
15784
15785         for toolkit in `echo $ALL_TOOLKITS`; do
15786       var=wxUSE_$toolkit
15787       eval "value=\$${var}"
15788       if test "x$value" != x; then
15789         cache_var=CACHE_$toolkit
15790         eval "cache=\$${cache_var}"
15791         if test "$cache" = 1; then
15792           echo "$var=$value" >> ${wx_arg_cache_file}
15793           eval "version=\$wx${toolkit}_VERSION"
15794           if test "x$version" != "x"; then
15795             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
15796           fi
15797         fi
15798         if test "$value" = 1; then
15799           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
15800           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
15801 echo "${ECHO_T}$toolkit_echo" >&6; }
15802         fi
15803       fi
15804     done
15805 else
15806     if test "x$host_alias" != "x"; then
15807         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
15808 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
15809     else
15810         { echo "$as_me:$LINENO: result: base only" >&5
15811 echo "${ECHO_T}base only" >&6; }
15812     fi
15813 fi
15814
15815
15816 cat >confcache <<\_ACEOF
15817 # This file is a shell script that caches the results of configure
15818 # tests run on this system so they can be shared between configure
15819 # scripts and configure runs, see configure's option --config-cache.
15820 # It is not useful on other systems.  If it contains results you don't
15821 # want to keep, you may remove or edit it.
15822 #
15823 # config.status only pays attention to the cache file if you give it
15824 # the --recheck option to rerun configure.
15825 #
15826 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15827 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15828 # following values.
15829
15830 _ACEOF
15831
15832 # The following way of writing the cache mishandles newlines in values,
15833 # but we know of no workaround that is simple, portable, and efficient.
15834 # So, we kill variables containing newlines.
15835 # Ultrix sh set writes to stderr and can't be redirected directly,
15836 # and sets the high bit in the cache file unless we assign to the vars.
15837 (
15838   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15839     eval ac_val=\$$ac_var
15840     case $ac_val in #(
15841     *${as_nl}*)
15842       case $ac_var in #(
15843       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15844 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15845       esac
15846       case $ac_var in #(
15847       _ | IFS | as_nl) ;; #(
15848       *) $as_unset $ac_var ;;
15849       esac ;;
15850     esac
15851   done
15852
15853   (set) 2>&1 |
15854     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15855     *${as_nl}ac_space=\ *)
15856       # `set' does not quote correctly, so add quotes (double-quote
15857       # substitution turns \\\\ into \\, and sed turns \\ into \).
15858       sed -n \
15859         "s/'/'\\\\''/g;
15860           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15861       ;; #(
15862     *)
15863       # `set' quotes correctly as required by POSIX, so do not add quotes.
15864       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15865       ;;
15866     esac |
15867     sort
15868 ) |
15869   sed '
15870      /^ac_cv_env_/b end
15871      t clear
15872      :clear
15873      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15874      t end
15875      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15876      :end' >>confcache
15877 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15878   if test -w "$cache_file"; then
15879     test "x$cache_file" != "x/dev/null" &&
15880       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15881 echo "$as_me: updating cache $cache_file" >&6;}
15882     cat confcache >$cache_file
15883   else
15884     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15885 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15886   fi
15887 fi
15888 rm -f confcache
15889
15890 CFLAGS=${CFLAGS:=}
15891
15892
15893
15894     ac_ext=c
15895 ac_cpp='$CPP $CPPFLAGS'
15896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15899 if test -n "$ac_tool_prefix"; then
15900   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15904 if test "${ac_cv_prog_CC+set}" = set; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907   if test -n "$CC"; then
15908   ac_cv_prog_CC="$CC" # Let the user override the test.
15909 else
15910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911 for as_dir in $PATH
15912 do
15913   IFS=$as_save_IFS
15914   test -z "$as_dir" && as_dir=.
15915   for ac_exec_ext in '' $ac_executable_extensions; do
15916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15917     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15919     break 2
15920   fi
15921 done
15922 done
15923 IFS=$as_save_IFS
15924
15925 fi
15926 fi
15927 CC=$ac_cv_prog_CC
15928 if test -n "$CC"; then
15929   { echo "$as_me:$LINENO: result: $CC" >&5
15930 echo "${ECHO_T}$CC" >&6; }
15931 else
15932   { echo "$as_me:$LINENO: result: no" >&5
15933 echo "${ECHO_T}no" >&6; }
15934 fi
15935
15936
15937 fi
15938 if test -z "$ac_cv_prog_CC"; then
15939   ac_ct_CC=$CC
15940   # Extract the first word of "gcc", so it can be a program name with args.
15941 set dummy gcc; ac_word=$2
15942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15945   echo $ECHO_N "(cached) $ECHO_C" >&6
15946 else
15947   if test -n "$ac_ct_CC"; then
15948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15949 else
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15952 do
15953   IFS=$as_save_IFS
15954   test -z "$as_dir" && as_dir=.
15955   for ac_exec_ext in '' $ac_executable_extensions; do
15956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15957     ac_cv_prog_ac_ct_CC="gcc"
15958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15959     break 2
15960   fi
15961 done
15962 done
15963 IFS=$as_save_IFS
15964
15965 fi
15966 fi
15967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15968 if test -n "$ac_ct_CC"; then
15969   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15970 echo "${ECHO_T}$ac_ct_CC" >&6; }
15971 else
15972   { echo "$as_me:$LINENO: result: no" >&5
15973 echo "${ECHO_T}no" >&6; }
15974 fi
15975
15976   if test "x$ac_ct_CC" = x; then
15977     CC=""
15978   else
15979     case $cross_compiling:$ac_tool_warned in
15980 yes:)
15981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15982 whose name does not start with the host triplet.  If you think this
15983 configuration is useful to you, please write to autoconf@gnu.org." >&5
15984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15985 whose name does not start with the host triplet.  If you think this
15986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15987 ac_tool_warned=yes ;;
15988 esac
15989     CC=$ac_ct_CC
15990   fi
15991 else
15992   CC="$ac_cv_prog_CC"
15993 fi
15994
15995 if test -z "$CC"; then
15996           if test -n "$ac_tool_prefix"; then
15997     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15998 set dummy ${ac_tool_prefix}cc; ac_word=$2
15999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16001 if test "${ac_cv_prog_CC+set}" = set; then
16002   echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004   if test -n "$CC"; then
16005   ac_cv_prog_CC="$CC" # Let the user override the test.
16006 else
16007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16008 for as_dir in $PATH
16009 do
16010   IFS=$as_save_IFS
16011   test -z "$as_dir" && as_dir=.
16012   for ac_exec_ext in '' $ac_executable_extensions; do
16013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16014     ac_cv_prog_CC="${ac_tool_prefix}cc"
16015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16016     break 2
16017   fi
16018 done
16019 done
16020 IFS=$as_save_IFS
16021
16022 fi
16023 fi
16024 CC=$ac_cv_prog_CC
16025 if test -n "$CC"; then
16026   { echo "$as_me:$LINENO: result: $CC" >&5
16027 echo "${ECHO_T}$CC" >&6; }
16028 else
16029   { echo "$as_me:$LINENO: result: no" >&5
16030 echo "${ECHO_T}no" >&6; }
16031 fi
16032
16033
16034   fi
16035 fi
16036 if test -z "$CC"; then
16037   # Extract the first word of "cc", so it can be a program name with args.
16038 set dummy cc; ac_word=$2
16039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16041 if test "${ac_cv_prog_CC+set}" = set; then
16042   echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044   if test -n "$CC"; then
16045   ac_cv_prog_CC="$CC" # Let the user override the test.
16046 else
16047   ac_prog_rejected=no
16048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16049 for as_dir in $PATH
16050 do
16051   IFS=$as_save_IFS
16052   test -z "$as_dir" && as_dir=.
16053   for ac_exec_ext in '' $ac_executable_extensions; do
16054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16055     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16056        ac_prog_rejected=yes
16057        continue
16058      fi
16059     ac_cv_prog_CC="cc"
16060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16061     break 2
16062   fi
16063 done
16064 done
16065 IFS=$as_save_IFS
16066
16067 if test $ac_prog_rejected = yes; then
16068   # We found a bogon in the path, so make sure we never use it.
16069   set dummy $ac_cv_prog_CC
16070   shift
16071   if test $# != 0; then
16072     # We chose a different compiler from the bogus one.
16073     # However, it has the same basename, so the bogon will be chosen
16074     # first if we set CC to just the basename; use the full file name.
16075     shift
16076     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16077   fi
16078 fi
16079 fi
16080 fi
16081 CC=$ac_cv_prog_CC
16082 if test -n "$CC"; then
16083   { echo "$as_me:$LINENO: result: $CC" >&5
16084 echo "${ECHO_T}$CC" >&6; }
16085 else
16086   { echo "$as_me:$LINENO: result: no" >&5
16087 echo "${ECHO_T}no" >&6; }
16088 fi
16089
16090
16091 fi
16092 if test -z "$CC"; then
16093   if test -n "$ac_tool_prefix"; then
16094   for ac_prog in cl.exe
16095   do
16096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16100 if test "${ac_cv_prog_CC+set}" = set; then
16101   echo $ECHO_N "(cached) $ECHO_C" >&6
16102 else
16103   if test -n "$CC"; then
16104   ac_cv_prog_CC="$CC" # Let the user override the test.
16105 else
16106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16107 for as_dir in $PATH
16108 do
16109   IFS=$as_save_IFS
16110   test -z "$as_dir" && as_dir=.
16111   for ac_exec_ext in '' $ac_executable_extensions; do
16112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16113     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16115     break 2
16116   fi
16117 done
16118 done
16119 IFS=$as_save_IFS
16120
16121 fi
16122 fi
16123 CC=$ac_cv_prog_CC
16124 if test -n "$CC"; then
16125   { echo "$as_me:$LINENO: result: $CC" >&5
16126 echo "${ECHO_T}$CC" >&6; }
16127 else
16128   { echo "$as_me:$LINENO: result: no" >&5
16129 echo "${ECHO_T}no" >&6; }
16130 fi
16131
16132
16133     test -n "$CC" && break
16134   done
16135 fi
16136 if test -z "$CC"; then
16137   ac_ct_CC=$CC
16138   for ac_prog in cl.exe
16139 do
16140   # Extract the first word of "$ac_prog", so it can be a program name with args.
16141 set dummy $ac_prog; ac_word=$2
16142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   if test -n "$ac_ct_CC"; then
16148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16149 else
16150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16151 for as_dir in $PATH
16152 do
16153   IFS=$as_save_IFS
16154   test -z "$as_dir" && as_dir=.
16155   for ac_exec_ext in '' $ac_executable_extensions; do
16156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16157     ac_cv_prog_ac_ct_CC="$ac_prog"
16158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16159     break 2
16160   fi
16161 done
16162 done
16163 IFS=$as_save_IFS
16164
16165 fi
16166 fi
16167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16168 if test -n "$ac_ct_CC"; then
16169   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16170 echo "${ECHO_T}$ac_ct_CC" >&6; }
16171 else
16172   { echo "$as_me:$LINENO: result: no" >&5
16173 echo "${ECHO_T}no" >&6; }
16174 fi
16175
16176
16177   test -n "$ac_ct_CC" && break
16178 done
16179
16180   if test "x$ac_ct_CC" = x; then
16181     CC=""
16182   else
16183     case $cross_compiling:$ac_tool_warned in
16184 yes:)
16185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16186 whose name does not start with the host triplet.  If you think this
16187 configuration is useful to you, please write to autoconf@gnu.org." >&5
16188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16189 whose name does not start with the host triplet.  If you think this
16190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16191 ac_tool_warned=yes ;;
16192 esac
16193     CC=$ac_ct_CC
16194   fi
16195 fi
16196
16197 fi
16198
16199
16200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
16201 See \`config.log' for more details." >&5
16202 echo "$as_me: error: no acceptable C compiler found in \$PATH
16203 See \`config.log' for more details." >&2;}
16204    { (exit 1); exit 1; }; }
16205
16206 # Provide some information about the compiler.
16207 echo "$as_me:$LINENO: checking for C compiler version" >&5
16208 ac_compiler=`set X $ac_compile; echo $2`
16209 { (ac_try="$ac_compiler --version >&5"
16210 case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215   (eval "$ac_compiler --version >&5") 2>&5
16216   ac_status=$?
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); }
16219 { (ac_try="$ac_compiler -v >&5"
16220 case "(($ac_try" in
16221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222   *) ac_try_echo=$ac_try;;
16223 esac
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225   (eval "$ac_compiler -v >&5") 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }
16229 { (ac_try="$ac_compiler -V >&5"
16230 case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235   (eval "$ac_compiler -V >&5") 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }
16239
16240 cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h.  */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h.  */
16246
16247 int
16248 main ()
16249 {
16250
16251   ;
16252   return 0;
16253 }
16254 _ACEOF
16255 ac_clean_files_save=$ac_clean_files
16256 ac_clean_files="$ac_clean_files a.out a.exe b.out"
16257 # Try to create an executable without -o first, disregard a.out.
16258 # It will help us diagnose broken compilers, and finding out an intuition
16259 # of exeext.
16260 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
16261 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
16262 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
16263 #
16264 # List of possible output files, starting from the most likely.
16265 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
16266 # only as a last resort.  b.out is created by i960 compilers.
16267 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
16268 #
16269 # The IRIX 6 linker writes into existing files which may not be
16270 # executable, retaining their permissions.  Remove them first so a
16271 # subsequent execution test works.
16272 ac_rmfiles=
16273 for ac_file in $ac_files
16274 do
16275   case $ac_file in
16276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16277     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
16278   esac
16279 done
16280 rm -f $ac_rmfiles
16281
16282 if { (ac_try="$ac_link_default"
16283 case "(($ac_try" in
16284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16285   *) ac_try_echo=$ac_try;;
16286 esac
16287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16288   (eval "$ac_link_default") 2>&5
16289   ac_status=$?
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); }; then
16292   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
16293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
16294 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
16295 # so that the user can short-circuit this test for compilers unknown to
16296 # Autoconf.
16297 for ac_file in $ac_files ''
16298 do
16299   test -f "$ac_file" || continue
16300   case $ac_file in
16301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
16302         ;;
16303     [ab].out )
16304         # We found the default executable, but exeext='' is most
16305         # certainly right.
16306         break;;
16307     *.* )
16308         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
16309         then :; else
16310            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16311         fi
16312         # We set ac_cv_exeext here because the later test for it is not
16313         # safe: cross compilers may not add the suffix if given an `-o'
16314         # argument, so we may need to know it at that point already.
16315         # Even if this section looks crufty: it has the advantage of
16316         # actually working.
16317         break;;
16318     * )
16319         break;;
16320   esac
16321 done
16322 test "$ac_cv_exeext" = no && ac_cv_exeext=
16323
16324 else
16325   ac_file=''
16326 fi
16327
16328 { echo "$as_me:$LINENO: result: $ac_file" >&5
16329 echo "${ECHO_T}$ac_file" >&6; }
16330 if test -z "$ac_file"; then
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
16335 See \`config.log' for more details." >&5
16336 echo "$as_me: error: C compiler cannot create executables
16337 See \`config.log' for more details." >&2;}
16338    { (exit 77); exit 77; }; }
16339 fi
16340
16341 ac_exeext=$ac_cv_exeext
16342
16343 # Check that the compiler produces executables we can run.  If not, either
16344 # the compiler is broken, or we cross compile.
16345 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
16346 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
16347 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
16348 # If not cross compiling, check that we can run a simple program.
16349 if test "$cross_compiling" != yes; then
16350   if { ac_try='./$ac_file'
16351   { (case "(($ac_try" in
16352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353   *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356   (eval "$ac_try") 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }; then
16360     cross_compiling=no
16361   else
16362     if test "$cross_compiling" = maybe; then
16363         cross_compiling=yes
16364     else
16365         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
16366 If you meant to cross compile, use \`--host'.
16367 See \`config.log' for more details." >&5
16368 echo "$as_me: error: cannot run C compiled programs.
16369 If you meant to cross compile, use \`--host'.
16370 See \`config.log' for more details." >&2;}
16371    { (exit 1); exit 1; }; }
16372     fi
16373   fi
16374 fi
16375 { echo "$as_me:$LINENO: result: yes" >&5
16376 echo "${ECHO_T}yes" >&6; }
16377
16378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
16379 ac_clean_files=$ac_clean_files_save
16380 # Check that the compiler produces executables we can run.  If not, either
16381 # the compiler is broken, or we cross compile.
16382 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
16383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
16384 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
16385 echo "${ECHO_T}$cross_compiling" >&6; }
16386
16387 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
16388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392   *) ac_try_echo=$ac_try;;
16393 esac
16394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395   (eval "$ac_link") 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; then
16399   # If both `conftest.exe' and `conftest' are `present' (well, observable)
16400 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
16401 # work properly (i.e., refer to `conftest.exe'), while it won't with
16402 # `rm'.
16403 for ac_file in conftest.exe conftest conftest.*; do
16404   test -f "$ac_file" || continue
16405   case $ac_file in
16406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16407     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16408           break;;
16409     * ) break;;
16410   esac
16411 done
16412 else
16413   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
16414 See \`config.log' for more details." >&5
16415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
16416 See \`config.log' for more details." >&2;}
16417    { (exit 1); exit 1; }; }
16418 fi
16419
16420 rm -f conftest$ac_cv_exeext
16421 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
16422 echo "${ECHO_T}$ac_cv_exeext" >&6; }
16423
16424 rm -f conftest.$ac_ext
16425 EXEEXT=$ac_cv_exeext
16426 ac_exeext=$EXEEXT
16427 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
16428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
16429 if test "${ac_cv_objext+set}" = set; then
16430   echo $ECHO_N "(cached) $ECHO_C" >&6
16431 else
16432   cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438
16439 int
16440 main ()
16441 {
16442
16443   ;
16444   return 0;
16445 }
16446 _ACEOF
16447 rm -f conftest.o conftest.obj
16448 if { (ac_try="$ac_compile"
16449 case "(($ac_try" in
16450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451   *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454   (eval "$ac_compile") 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; then
16458   for ac_file in conftest.o conftest.obj conftest.*; do
16459   test -f "$ac_file" || continue;
16460   case $ac_file in
16461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
16462     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
16463        break;;
16464   esac
16465 done
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16469
16470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
16471 See \`config.log' for more details." >&5
16472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
16473 See \`config.log' for more details." >&2;}
16474    { (exit 1); exit 1; }; }
16475 fi
16476
16477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
16478 fi
16479 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
16480 echo "${ECHO_T}$ac_cv_objext" >&6; }
16481 OBJEXT=$ac_cv_objext
16482 ac_objext=$OBJEXT
16483 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
16484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
16485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
16486   echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488   cat >conftest.$ac_ext <<_ACEOF
16489 /* confdefs.h.  */
16490 _ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h.  */
16494
16495 int
16496 main ()
16497 {
16498 #ifndef __GNUC__
16499        choke me
16500 #endif
16501
16502   ;
16503   return 0;
16504 }
16505 _ACEOF
16506 rm -f conftest.$ac_objext
16507 if { (ac_try="$ac_compile"
16508 case "(($ac_try" in
16509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510   *) ac_try_echo=$ac_try;;
16511 esac
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513   (eval "$ac_compile") 2>conftest.er1
16514   ac_status=$?
16515   grep -v '^ *+' conftest.er1 >conftest.err
16516   rm -f conftest.er1
16517   cat conftest.err >&5
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); } && {
16520          test -z "$ac_c_werror_flag" ||
16521          test ! -s conftest.err
16522        } && test -s conftest.$ac_objext; then
16523   ac_compiler_gnu=yes
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528         ac_compiler_gnu=no
16529 fi
16530
16531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16533
16534 fi
16535 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
16536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
16537 GCC=`test $ac_compiler_gnu = yes && echo yes`
16538 ac_test_CFLAGS=${CFLAGS+set}
16539 ac_save_CFLAGS=$CFLAGS
16540 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16541 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16542 if test "${ac_cv_prog_cc_g+set}" = set; then
16543   echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545   ac_save_c_werror_flag=$ac_c_werror_flag
16546    ac_c_werror_flag=yes
16547    ac_cv_prog_cc_g=no
16548    CFLAGS="-g"
16549    cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h.  */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h.  */
16555
16556 int
16557 main ()
16558 {
16559
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 rm -f conftest.$ac_objext
16565 if { (ac_try="$ac_compile"
16566 case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_compile") 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } && {
16578          test -z "$ac_c_werror_flag" ||
16579          test ! -s conftest.err
16580        } && test -s conftest.$ac_objext; then
16581   ac_cv_prog_cc_g=yes
16582 else
16583   echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586         CFLAGS=""
16587       cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593
16594 int
16595 main ()
16596 {
16597
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 rm -f conftest.$ac_objext
16603 if { (ac_try="$ac_compile"
16604 case "(($ac_try" in
16605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606   *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609   (eval "$ac_compile") 2>conftest.er1
16610   ac_status=$?
16611   grep -v '^ *+' conftest.er1 >conftest.err
16612   rm -f conftest.er1
16613   cat conftest.err >&5
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); } && {
16616          test -z "$ac_c_werror_flag" ||
16617          test ! -s conftest.err
16618        } && test -s conftest.$ac_objext; then
16619   :
16620 else
16621   echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624         ac_c_werror_flag=$ac_save_c_werror_flag
16625          CFLAGS="-g"
16626          cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h.  */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h.  */
16632
16633 int
16634 main ()
16635 {
16636
16637   ;
16638   return 0;
16639 }
16640 _ACEOF
16641 rm -f conftest.$ac_objext
16642 if { (ac_try="$ac_compile"
16643 case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_compile") 2>conftest.er1
16649   ac_status=$?
16650   grep -v '^ *+' conftest.er1 >conftest.err
16651   rm -f conftest.er1
16652   cat conftest.err >&5
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); } && {
16655          test -z "$ac_c_werror_flag" ||
16656          test ! -s conftest.err
16657        } && test -s conftest.$ac_objext; then
16658   ac_cv_prog_cc_g=yes
16659 else
16660   echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16662
16663
16664 fi
16665
16666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16667 fi
16668
16669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670 fi
16671
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16673    ac_c_werror_flag=$ac_save_c_werror_flag
16674 fi
16675 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16677 if test "$ac_test_CFLAGS" = set; then
16678   CFLAGS=$ac_save_CFLAGS
16679 elif test $ac_cv_prog_cc_g = yes; then
16680   if test "$GCC" = yes; then
16681     CFLAGS="-g -O2"
16682   else
16683     CFLAGS="-g"
16684   fi
16685 else
16686   if test "$GCC" = yes; then
16687     CFLAGS="-O2"
16688   else
16689     CFLAGS=
16690   fi
16691 fi
16692 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
16693 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
16694 if test "${ac_cv_prog_cc_c89+set}" = set; then
16695   echo $ECHO_N "(cached) $ECHO_C" >&6
16696 else
16697   ac_cv_prog_cc_c89=no
16698 ac_save_CC=$CC
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h.  */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h.  */
16705 #include <stdarg.h>
16706 #include <stdio.h>
16707 #include <sys/types.h>
16708 #include <sys/stat.h>
16709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16710 struct buf { int x; };
16711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16712 static char *e (p, i)
16713      char **p;
16714      int i;
16715 {
16716   return p[i];
16717 }
16718 static char *f (char * (*g) (char **, int), char **p, ...)
16719 {
16720   char *s;
16721   va_list v;
16722   va_start (v,p);
16723   s = g (p, va_arg (v,int));
16724   va_end (v);
16725   return s;
16726 }
16727
16728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16729    function prototypes and stuff, but not '\xHH' hex character constants.
16730    These don't provoke an error unfortunately, instead are silently treated
16731    as 'x'.  The following induces an error, until -std is added to get
16732    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16733    array size at least.  It's necessary to write '\x00'==0 to get something
16734    that's true only with -std.  */
16735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16736
16737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16738    inside strings and character constants.  */
16739 #define FOO(x) 'x'
16740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16741
16742 int test (int i, double x);
16743 struct s1 {int (*f) (int a);};
16744 struct s2 {int (*f) (double a);};
16745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16746 int argc;
16747 char **argv;
16748 int
16749 main ()
16750 {
16751 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16752   ;
16753   return 0;
16754 }
16755 _ACEOF
16756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16757         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16758 do
16759   CC="$ac_save_CC $ac_arg"
16760   rm -f conftest.$ac_objext
16761 if { (ac_try="$ac_compile"
16762 case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_compile") 2>conftest.er1
16768   ac_status=$?
16769   grep -v '^ *+' conftest.er1 >conftest.err
16770   rm -f conftest.er1
16771   cat conftest.err >&5
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); } && {
16774          test -z "$ac_c_werror_flag" ||
16775          test ! -s conftest.err
16776        } && test -s conftest.$ac_objext; then
16777   ac_cv_prog_cc_c89=$ac_arg
16778 else
16779   echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16781
16782
16783 fi
16784
16785 rm -f core conftest.err conftest.$ac_objext
16786   test "x$ac_cv_prog_cc_c89" != "xno" && break
16787 done
16788 rm -f conftest.$ac_ext
16789 CC=$ac_save_CC
16790
16791 fi
16792 # AC_CACHE_VAL
16793 case "x$ac_cv_prog_cc_c89" in
16794   x)
16795     { echo "$as_me:$LINENO: result: none needed" >&5
16796 echo "${ECHO_T}none needed" >&6; } ;;
16797   xno)
16798     { echo "$as_me:$LINENO: result: unsupported" >&5
16799 echo "${ECHO_T}unsupported" >&6; } ;;
16800   *)
16801     CC="$CC $ac_cv_prog_cc_c89"
16802     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16803 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16804 esac
16805
16806
16807 ac_ext=c
16808 ac_cpp='$CPP $CPPFLAGS'
16809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16812
16813
16814
16815
16816     ac_ext=c
16817 ac_cpp='$CPP $CPPFLAGS'
16818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16821
16822     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16823 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16824 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833
16834 int
16835 main ()
16836 {
16837
16838              #ifndef __INTEL_COMPILER
16839                 choke me
16840              #endif
16841
16842   ;
16843   return 0;
16844 }
16845 _ACEOF
16846 rm -f conftest.$ac_objext
16847 if { (ac_try="$ac_compile"
16848 case "(($ac_try" in
16849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850   *) ac_try_echo=$ac_try;;
16851 esac
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853   (eval "$ac_compile") 2>conftest.er1
16854   ac_status=$?
16855   grep -v '^ *+' conftest.er1 >conftest.err
16856   rm -f conftest.er1
16857   cat conftest.err >&5
16858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859   (exit $ac_status); } && {
16860          test -z "$ac_c_werror_flag" ||
16861          test ! -s conftest.err
16862        } && test -s conftest.$ac_objext; then
16863   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16864 else
16865   echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16867
16868         bakefile_cv_c_compiler___INTEL_COMPILER=no
16869
16870 fi
16871
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873
16874
16875 fi
16876 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16877 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16878     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16879         :; INTELCC=yes
16880     else
16881         :;
16882     fi
16883     ac_ext=c
16884 ac_cpp='$CPP $CPPFLAGS'
16885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16888
16889
16890
16891
16892         if test "x$GCC" != "xyes"; then
16893         if test "xCC" = "xC"; then
16894             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16895 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16896 if test "${bakefile_cv_c_exto+set}" = set; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899   cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905
16906 int
16907 main ()
16908 {
16909
16910   ;
16911   return 0;
16912 }
16913 _ACEOF
16914 rm -f conftest.$ac_objext conftest.$ac_ext.o
16915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16916   (eval $ac_compile) 2>&5
16917   ac_status=$?
16918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919   (exit $ac_status); }; then
16920   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16921     case $ac_file in
16922         conftest.$ac_ext.o)
16923             bakefile_cv_c_exto="-ext o"
16924             ;;
16925         *)
16926             ;;
16927     esac
16928 done
16929 else
16930   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16931 See \`config.log' for more details." >&5
16932 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16933 See \`config.log' for more details." >&2;}
16934    { (exit 1); exit 1; }; }
16935
16936 fi
16937
16938 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16939
16940 fi
16941 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16942 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16943 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16944     if test "c" = "c"; then
16945         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16946     fi
16947     if test "c" = "cxx"; then
16948         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16949     fi
16950 fi
16951
16952             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16953                 unset ac_cv_prog_cc_g
16954                 ac_test_CFLAGS=${CFLAGS+set}
16955 ac_save_CFLAGS=$CFLAGS
16956 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16957 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16958 if test "${ac_cv_prog_cc_g+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   ac_save_c_werror_flag=$ac_c_werror_flag
16962    ac_c_werror_flag=yes
16963    ac_cv_prog_cc_g=no
16964    CFLAGS="-g"
16965    cat >conftest.$ac_ext <<_ACEOF
16966 /* confdefs.h.  */
16967 _ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h.  */
16971
16972 int
16973 main ()
16974 {
16975
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984   *) ac_try_echo=$ac_try;;
16985 esac
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987   (eval "$ac_compile") 2>conftest.er1
16988   ac_status=$?
16989   grep -v '^ *+' conftest.er1 >conftest.err
16990   rm -f conftest.er1
16991   cat conftest.err >&5
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); } && {
16994          test -z "$ac_c_werror_flag" ||
16995          test ! -s conftest.err
16996        } && test -s conftest.$ac_objext; then
16997   ac_cv_prog_cc_g=yes
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002         CFLAGS=""
17003       cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h.  */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h.  */
17009
17010 int
17011 main ()
17012 {
17013
17014   ;
17015   return 0;
17016 }
17017 _ACEOF
17018 rm -f conftest.$ac_objext
17019 if { (ac_try="$ac_compile"
17020 case "(($ac_try" in
17021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022   *) ac_try_echo=$ac_try;;
17023 esac
17024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17025   (eval "$ac_compile") 2>conftest.er1
17026   ac_status=$?
17027   grep -v '^ *+' conftest.er1 >conftest.err
17028   rm -f conftest.er1
17029   cat conftest.err >&5
17030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031   (exit $ac_status); } && {
17032          test -z "$ac_c_werror_flag" ||
17033          test ! -s conftest.err
17034        } && test -s conftest.$ac_objext; then
17035   :
17036 else
17037   echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040         ac_c_werror_flag=$ac_save_c_werror_flag
17041          CFLAGS="-g"
17042          cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h.  */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h.  */
17048
17049 int
17050 main ()
17051 {
17052
17053   ;
17054   return 0;
17055 }
17056 _ACEOF
17057 rm -f conftest.$ac_objext
17058 if { (ac_try="$ac_compile"
17059 case "(($ac_try" in
17060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061   *) ac_try_echo=$ac_try;;
17062 esac
17063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064   (eval "$ac_compile") 2>conftest.er1
17065   ac_status=$?
17066   grep -v '^ *+' conftest.er1 >conftest.err
17067   rm -f conftest.er1
17068   cat conftest.err >&5
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); } && {
17071          test -z "$ac_c_werror_flag" ||
17072          test ! -s conftest.err
17073        } && test -s conftest.$ac_objext; then
17074   ac_cv_prog_cc_g=yes
17075 else
17076   echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079
17080 fi
17081
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 fi
17084
17085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086 fi
17087
17088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17089    ac_c_werror_flag=$ac_save_c_werror_flag
17090 fi
17091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17092 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17093 if test "$ac_test_CFLAGS" = set; then
17094   CFLAGS=$ac_save_CFLAGS
17095 elif test $ac_cv_prog_cc_g = yes; then
17096   if test "$GCC" = yes; then
17097     CFLAGS="-g -O2"
17098   else
17099     CFLAGS="-g"
17100   fi
17101 else
17102   if test "$GCC" = yes; then
17103     CFLAGS="-O2"
17104   else
17105     CFLAGS=
17106   fi
17107 fi
17108             fi
17109         fi
17110
17111                         case `uname -s` in
17112             AIX*)
17113
17114
17115     ac_ext=c
17116 ac_cpp='$CPP $CPPFLAGS'
17117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17120
17121     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17122 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17123 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17124   echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126   cat >conftest.$ac_ext <<_ACEOF
17127 /* confdefs.h.  */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h.  */
17132
17133 int
17134 main ()
17135 {
17136
17137              #ifndef __xlC__
17138                 choke me
17139              #endif
17140
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 rm -f conftest.$ac_objext
17146 if { (ac_try="$ac_compile"
17147 case "(($ac_try" in
17148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149   *) ac_try_echo=$ac_try;;
17150 esac
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152   (eval "$ac_compile") 2>conftest.er1
17153   ac_status=$?
17154   grep -v '^ *+' conftest.er1 >conftest.err
17155   rm -f conftest.er1
17156   cat conftest.err >&5
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); } && {
17159          test -z "$ac_c_werror_flag" ||
17160          test ! -s conftest.err
17161        } && test -s conftest.$ac_objext; then
17162   bakefile_cv_c_compiler___xlC__=yes
17163 else
17164   echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17166
17167         bakefile_cv_c_compiler___xlC__=no
17168
17169 fi
17170
17171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17172
17173
17174 fi
17175 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17176 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17177     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17178         :; XLCC=yes
17179     else
17180         :;
17181     fi
17182     ac_ext=c
17183 ac_cpp='$CPP $CPPFLAGS'
17184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17187
17188
17189
17190                 ;;
17191
17192             Darwin)
17193
17194
17195     ac_ext=c
17196 ac_cpp='$CPP $CPPFLAGS'
17197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17200
17201     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
17202 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
17203 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
17204   echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206   cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h.  */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h.  */
17212
17213 int
17214 main ()
17215 {
17216
17217              #ifndef __MWERKS__
17218                 choke me
17219              #endif
17220
17221   ;
17222   return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext
17226 if { (ac_try="$ac_compile"
17227 case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232   (eval "$ac_compile") 2>conftest.er1
17233   ac_status=$?
17234   grep -v '^ *+' conftest.er1 >conftest.err
17235   rm -f conftest.er1
17236   cat conftest.err >&5
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } && {
17239          test -z "$ac_c_werror_flag" ||
17240          test ! -s conftest.err
17241        } && test -s conftest.$ac_objext; then
17242   bakefile_cv_c_compiler___MWERKS__=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247         bakefile_cv_c_compiler___MWERKS__=no
17248
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252
17253
17254 fi
17255 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
17256 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
17257     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
17258         :; MWCC=yes
17259     else
17260         :;
17261     fi
17262     ac_ext=c
17263 ac_cpp='$CPP $CPPFLAGS'
17264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17267
17268
17269
17270
17271
17272     ac_ext=c
17273 ac_cpp='$CPP $CPPFLAGS'
17274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17277
17278     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17279 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17280 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17281   echo $ECHO_N "(cached) $ECHO_C" >&6
17282 else
17283   cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h.  */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h.  */
17289
17290 int
17291 main ()
17292 {
17293
17294              #ifndef __xlC__
17295                 choke me
17296              #endif
17297
17298   ;
17299   return 0;
17300 }
17301 _ACEOF
17302 rm -f conftest.$ac_objext
17303 if { (ac_try="$ac_compile"
17304 case "(($ac_try" in
17305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17306   *) ac_try_echo=$ac_try;;
17307 esac
17308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17309   (eval "$ac_compile") 2>conftest.er1
17310   ac_status=$?
17311   grep -v '^ *+' conftest.er1 >conftest.err
17312   rm -f conftest.er1
17313   cat conftest.err >&5
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); } && {
17316          test -z "$ac_c_werror_flag" ||
17317          test ! -s conftest.err
17318        } && test -s conftest.$ac_objext; then
17319   bakefile_cv_c_compiler___xlC__=yes
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324         bakefile_cv_c_compiler___xlC__=no
17325
17326 fi
17327
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329
17330
17331 fi
17332 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17333 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17334     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17335         :; XLCC=yes
17336     else
17337         :;
17338     fi
17339     ac_ext=c
17340 ac_cpp='$CPP $CPPFLAGS'
17341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17344
17345
17346
17347                 ;;
17348
17349             IRIX*)
17350
17351
17352     ac_ext=c
17353 ac_cpp='$CPP $CPPFLAGS'
17354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17357
17358     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
17359 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
17360 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
17361   echo $ECHO_N "(cached) $ECHO_C" >&6
17362 else
17363   cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369
17370 int
17371 main ()
17372 {
17373
17374              #ifndef _SGI_COMPILER_VERSION
17375                 choke me
17376              #endif
17377
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 rm -f conftest.$ac_objext
17383 if { (ac_try="$ac_compile"
17384 case "(($ac_try" in
17385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386   *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389   (eval "$ac_compile") 2>conftest.er1
17390   ac_status=$?
17391   grep -v '^ *+' conftest.er1 >conftest.err
17392   rm -f conftest.er1
17393   cat conftest.err >&5
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } && {
17396          test -z "$ac_c_werror_flag" ||
17397          test ! -s conftest.err
17398        } && test -s conftest.$ac_objext; then
17399   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
17400 else
17401   echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
17405
17406 fi
17407
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409
17410
17411 fi
17412 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
17413 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
17414     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17415         :; SGICC=yes
17416     else
17417         :;
17418     fi
17419     ac_ext=c
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17424
17425
17426
17427                 ;;
17428
17429             Linux*)
17430
17431
17432     ac_ext=c
17433 ac_cpp='$CPP $CPPFLAGS'
17434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17437
17438     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17439 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17440 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h.  */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h.  */
17449
17450 int
17451 main ()
17452 {
17453
17454              #ifndef __SUNPRO_C
17455                 choke me
17456              #endif
17457
17458   ;
17459   return 0;
17460 }
17461 _ACEOF
17462 rm -f conftest.$ac_objext
17463 if { (ac_try="$ac_compile"
17464 case "(($ac_try" in
17465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466   *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469   (eval "$ac_compile") 2>conftest.er1
17470   ac_status=$?
17471   grep -v '^ *+' conftest.er1 >conftest.err
17472   rm -f conftest.er1
17473   cat conftest.err >&5
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); } && {
17476          test -z "$ac_c_werror_flag" ||
17477          test ! -s conftest.err
17478        } && test -s conftest.$ac_objext; then
17479   bakefile_cv_c_compiler___SUNPRO_C=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484         bakefile_cv_c_compiler___SUNPRO_C=no
17485
17486 fi
17487
17488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17489
17490
17491 fi
17492 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17493 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17494     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17495         :; SUNCC=yes
17496     else
17497         :;
17498     fi
17499     ac_ext=c
17500 ac_cpp='$CPP $CPPFLAGS'
17501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17504
17505
17506
17507                 ;;
17508
17509             HP-UX*)
17510
17511
17512     ac_ext=c
17513 ac_cpp='$CPP $CPPFLAGS'
17514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17517
17518     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
17519 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
17520 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
17521   echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523   cat >conftest.$ac_ext <<_ACEOF
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529
17530 int
17531 main ()
17532 {
17533
17534              #ifndef __HP_cc
17535                 choke me
17536              #endif
17537
17538   ;
17539   return 0;
17540 }
17541 _ACEOF
17542 rm -f conftest.$ac_objext
17543 if { (ac_try="$ac_compile"
17544 case "(($ac_try" in
17545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546   *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549   (eval "$ac_compile") 2>conftest.er1
17550   ac_status=$?
17551   grep -v '^ *+' conftest.er1 >conftest.err
17552   rm -f conftest.er1
17553   cat conftest.err >&5
17554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); } && {
17556          test -z "$ac_c_werror_flag" ||
17557          test ! -s conftest.err
17558        } && test -s conftest.$ac_objext; then
17559   bakefile_cv_c_compiler___HP_cc=yes
17560 else
17561   echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564         bakefile_cv_c_compiler___HP_cc=no
17565
17566 fi
17567
17568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17569
17570
17571 fi
17572 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17573 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17574     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17575         :; HPCC=yes
17576     else
17577         :;
17578     fi
17579     ac_ext=c
17580 ac_cpp='$CPP $CPPFLAGS'
17581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17584
17585
17586
17587                 ;;
17588
17589             OSF1)
17590
17591
17592     ac_ext=c
17593 ac_cpp='$CPP $CPPFLAGS'
17594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17597
17598     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17599 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17600 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609
17610 int
17611 main ()
17612 {
17613
17614              #ifndef __DECC
17615                 choke me
17616              #endif
17617
17618   ;
17619   return 0;
17620 }
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (ac_try="$ac_compile"
17624 case "(($ac_try" in
17625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626   *) ac_try_echo=$ac_try;;
17627 esac
17628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17629   (eval "$ac_compile") 2>conftest.er1
17630   ac_status=$?
17631   grep -v '^ *+' conftest.er1 >conftest.err
17632   rm -f conftest.er1
17633   cat conftest.err >&5
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); } && {
17636          test -z "$ac_c_werror_flag" ||
17637          test ! -s conftest.err
17638        } && test -s conftest.$ac_objext; then
17639   bakefile_cv_c_compiler___DECC=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644         bakefile_cv_c_compiler___DECC=no
17645
17646 fi
17647
17648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649
17650
17651 fi
17652 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17653 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17654     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17655         :; COMPAQCC=yes
17656     else
17657         :;
17658     fi
17659     ac_ext=c
17660 ac_cpp='$CPP $CPPFLAGS'
17661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17664
17665
17666
17667                 ;;
17668
17669             SunOS)
17670
17671
17672     ac_ext=c
17673 ac_cpp='$CPP $CPPFLAGS'
17674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17677
17678     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17679 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17680 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17681   echo $ECHO_N "(cached) $ECHO_C" >&6
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689
17690 int
17691 main ()
17692 {
17693
17694              #ifndef __SUNPRO_C
17695                 choke me
17696              #endif
17697
17698   ;
17699   return 0;
17700 }
17701 _ACEOF
17702 rm -f conftest.$ac_objext
17703 if { (ac_try="$ac_compile"
17704 case "(($ac_try" in
17705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706   *) ac_try_echo=$ac_try;;
17707 esac
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709   (eval "$ac_compile") 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } && {
17716          test -z "$ac_c_werror_flag" ||
17717          test ! -s conftest.err
17718        } && test -s conftest.$ac_objext; then
17719   bakefile_cv_c_compiler___SUNPRO_C=yes
17720 else
17721   echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724         bakefile_cv_c_compiler___SUNPRO_C=no
17725
17726 fi
17727
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729
17730
17731 fi
17732 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17733 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17734     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17735         :; SUNCC=yes
17736     else
17737         :;
17738     fi
17739     ac_ext=c
17740 ac_cpp='$CPP $CPPFLAGS'
17741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17744
17745
17746
17747                 ;;
17748         esac
17749     fi
17750
17751
17752
17753 ac_ext=c
17754 ac_cpp='$CPP $CPPFLAGS'
17755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17758 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17759 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17760 # On Suns, sometimes $CPP names a directory.
17761 if test -n "$CPP" && test -d "$CPP"; then
17762   CPP=
17763 fi
17764 if test -z "$CPP"; then
17765   if test "${ac_cv_prog_CPP+set}" = set; then
17766   echo $ECHO_N "(cached) $ECHO_C" >&6
17767 else
17768       # Double quotes because CPP needs to be expanded
17769     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17770     do
17771       ac_preproc_ok=false
17772 for ac_c_preproc_warn_flag in '' yes
17773 do
17774   # Use a header file that comes with gcc, so configuring glibc
17775   # with a fresh cross-compiler works.
17776   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777   # <limits.h> exists even on freestanding compilers.
17778   # On the NeXT, cc -E runs the code through the compiler's parser,
17779   # not just through cpp. "Syntax error" is here to catch this case.
17780   cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h.  */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h.  */
17786 #ifdef __STDC__
17787 # include <limits.h>
17788 #else
17789 # include <assert.h>
17790 #endif
17791                      Syntax error
17792 _ACEOF
17793 if { (ac_try="$ac_cpp conftest.$ac_ext"
17794 case "(($ac_try" in
17795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796   *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17800   ac_status=$?
17801   grep -v '^ *+' conftest.er1 >conftest.err
17802   rm -f conftest.er1
17803   cat conftest.err >&5
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); } >/dev/null && {
17806          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17807          test ! -s conftest.err
17808        }; then
17809   :
17810 else
17811   echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17813
17814   # Broken: fails on valid input.
17815 continue
17816 fi
17817
17818 rm -f conftest.err conftest.$ac_ext
17819
17820   # OK, works on sane cases.  Now check whether nonexistent headers
17821   # can be detected and how.
17822   cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h.  */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h.  */
17828 #include <ac_nonexistent.h>
17829 _ACEOF
17830 if { (ac_try="$ac_cpp conftest.$ac_ext"
17831 case "(($ac_try" in
17832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833   *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17837   ac_status=$?
17838   grep -v '^ *+' conftest.er1 >conftest.err
17839   rm -f conftest.er1
17840   cat conftest.err >&5
17841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842   (exit $ac_status); } >/dev/null && {
17843          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17844          test ! -s conftest.err
17845        }; then
17846   # Broken: success on invalid input.
17847 continue
17848 else
17849   echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852   # Passes both tests.
17853 ac_preproc_ok=:
17854 break
17855 fi
17856
17857 rm -f conftest.err conftest.$ac_ext
17858
17859 done
17860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17861 rm -f conftest.err conftest.$ac_ext
17862 if $ac_preproc_ok; then
17863   break
17864 fi
17865
17866     done
17867     ac_cv_prog_CPP=$CPP
17868
17869 fi
17870   CPP=$ac_cv_prog_CPP
17871 else
17872   ac_cv_prog_CPP=$CPP
17873 fi
17874 { echo "$as_me:$LINENO: result: $CPP" >&5
17875 echo "${ECHO_T}$CPP" >&6; }
17876 ac_preproc_ok=false
17877 for ac_c_preproc_warn_flag in '' yes
17878 do
17879   # Use a header file that comes with gcc, so configuring glibc
17880   # with a fresh cross-compiler works.
17881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17882   # <limits.h> exists even on freestanding compilers.
17883   # On the NeXT, cc -E runs the code through the compiler's parser,
17884   # not just through cpp. "Syntax error" is here to catch this case.
17885   cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h.  */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h.  */
17891 #ifdef __STDC__
17892 # include <limits.h>
17893 #else
17894 # include <assert.h>
17895 #endif
17896                      Syntax error
17897 _ACEOF
17898 if { (ac_try="$ac_cpp conftest.$ac_ext"
17899 case "(($ac_try" in
17900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901   *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17905   ac_status=$?
17906   grep -v '^ *+' conftest.er1 >conftest.err
17907   rm -f conftest.er1
17908   cat conftest.err >&5
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); } >/dev/null && {
17911          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17912          test ! -s conftest.err
17913        }; then
17914   :
17915 else
17916   echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919   # Broken: fails on valid input.
17920 continue
17921 fi
17922
17923 rm -f conftest.err conftest.$ac_ext
17924
17925   # OK, works on sane cases.  Now check whether nonexistent headers
17926   # can be detected and how.
17927   cat >conftest.$ac_ext <<_ACEOF
17928 /* confdefs.h.  */
17929 _ACEOF
17930 cat confdefs.h >>conftest.$ac_ext
17931 cat >>conftest.$ac_ext <<_ACEOF
17932 /* end confdefs.h.  */
17933 #include <ac_nonexistent.h>
17934 _ACEOF
17935 if { (ac_try="$ac_cpp conftest.$ac_ext"
17936 case "(($ac_try" in
17937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938   *) ac_try_echo=$ac_try;;
17939 esac
17940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17942   ac_status=$?
17943   grep -v '^ *+' conftest.er1 >conftest.err
17944   rm -f conftest.er1
17945   cat conftest.err >&5
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); } >/dev/null && {
17948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17949          test ! -s conftest.err
17950        }; then
17951   # Broken: success on invalid input.
17952 continue
17953 else
17954   echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17956
17957   # Passes both tests.
17958 ac_preproc_ok=:
17959 break
17960 fi
17961
17962 rm -f conftest.err conftest.$ac_ext
17963
17964 done
17965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17966 rm -f conftest.err conftest.$ac_ext
17967 if $ac_preproc_ok; then
17968   :
17969 else
17970   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17971 See \`config.log' for more details." >&5
17972 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17973 See \`config.log' for more details." >&2;}
17974    { (exit 1); exit 1; }; }
17975 fi
17976
17977 ac_ext=c
17978 ac_cpp='$CPP $CPPFLAGS'
17979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17982
17983
17984 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17985 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17986 if test "${ac_cv_path_GREP+set}" = set; then
17987   echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989   # Extract the first word of "grep ggrep" to use in msg output
17990 if test -z "$GREP"; then
17991 set dummy grep ggrep; ac_prog_name=$2
17992 if test "${ac_cv_path_GREP+set}" = set; then
17993   echo $ECHO_N "(cached) $ECHO_C" >&6
17994 else
17995   ac_path_GREP_found=false
17996 # Loop through the user's path and test for each of PROGNAME-LIST
17997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17999 do
18000   IFS=$as_save_IFS
18001   test -z "$as_dir" && as_dir=.
18002   for ac_prog in grep ggrep; do
18003   for ac_exec_ext in '' $ac_executable_extensions; do
18004     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18005     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18006     # Check for GNU ac_path_GREP and select it if it is found.
18007   # Check for GNU $ac_path_GREP
18008 case `"$ac_path_GREP" --version 2>&1` in
18009 *GNU*)
18010   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18011 *)
18012   ac_count=0
18013   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18014   while :
18015   do
18016     cat "conftest.in" "conftest.in" >"conftest.tmp"
18017     mv "conftest.tmp" "conftest.in"
18018     cp "conftest.in" "conftest.nl"
18019     echo 'GREP' >> "conftest.nl"
18020     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18022     ac_count=`expr $ac_count + 1`
18023     if test $ac_count -gt ${ac_path_GREP_max-0}; then
18024       # Best one so far, save it but keep looking for a better one
18025       ac_cv_path_GREP="$ac_path_GREP"
18026       ac_path_GREP_max=$ac_count
18027     fi
18028     # 10*(2^10) chars as input seems more than enough
18029     test $ac_count -gt 10 && break
18030   done
18031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18032 esac
18033
18034
18035     $ac_path_GREP_found && break 3
18036   done
18037 done
18038
18039 done
18040 IFS=$as_save_IFS
18041
18042
18043 fi
18044
18045 GREP="$ac_cv_path_GREP"
18046 if test -z "$GREP"; then
18047   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18049    { (exit 1); exit 1; }; }
18050 fi
18051
18052 else
18053   ac_cv_path_GREP=$GREP
18054 fi
18055
18056
18057 fi
18058 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18059 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18060  GREP="$ac_cv_path_GREP"
18061
18062
18063 { echo "$as_me:$LINENO: checking for egrep" >&5
18064 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18065 if test "${ac_cv_path_EGREP+set}" = set; then
18066   echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18069    then ac_cv_path_EGREP="$GREP -E"
18070    else
18071      # Extract the first word of "egrep" to use in msg output
18072 if test -z "$EGREP"; then
18073 set dummy egrep; ac_prog_name=$2
18074 if test "${ac_cv_path_EGREP+set}" = set; then
18075   echo $ECHO_N "(cached) $ECHO_C" >&6
18076 else
18077   ac_path_EGREP_found=false
18078 # Loop through the user's path and test for each of PROGNAME-LIST
18079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18081 do
18082   IFS=$as_save_IFS
18083   test -z "$as_dir" && as_dir=.
18084   for ac_prog in egrep; do
18085   for ac_exec_ext in '' $ac_executable_extensions; do
18086     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18087     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18088     # Check for GNU ac_path_EGREP and select it if it is found.
18089   # Check for GNU $ac_path_EGREP
18090 case `"$ac_path_EGREP" --version 2>&1` in
18091 *GNU*)
18092   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18093 *)
18094   ac_count=0
18095   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18096   while :
18097   do
18098     cat "conftest.in" "conftest.in" >"conftest.tmp"
18099     mv "conftest.tmp" "conftest.in"
18100     cp "conftest.in" "conftest.nl"
18101     echo 'EGREP' >> "conftest.nl"
18102     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18103     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18104     ac_count=`expr $ac_count + 1`
18105     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18106       # Best one so far, save it but keep looking for a better one
18107       ac_cv_path_EGREP="$ac_path_EGREP"
18108       ac_path_EGREP_max=$ac_count
18109     fi
18110     # 10*(2^10) chars as input seems more than enough
18111     test $ac_count -gt 10 && break
18112   done
18113   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18114 esac
18115
18116
18117     $ac_path_EGREP_found && break 3
18118   done
18119 done
18120
18121 done
18122 IFS=$as_save_IFS
18123
18124
18125 fi
18126
18127 EGREP="$ac_cv_path_EGREP"
18128 if test -z "$EGREP"; then
18129   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18130 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18131    { (exit 1); exit 1; }; }
18132 fi
18133
18134 else
18135   ac_cv_path_EGREP=$EGREP
18136 fi
18137
18138
18139    fi
18140 fi
18141 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18142 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18143  EGREP="$ac_cv_path_EGREP"
18144
18145
18146 if test $ac_cv_c_compiler_gnu = yes; then
18147     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18148 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18149 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18150   echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152     ac_pattern="Autoconf.*'x'"
18153   cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h.  */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h.  */
18159 #include <sgtty.h>
18160 Autoconf TIOCGETP
18161 _ACEOF
18162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18163   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18164   ac_cv_prog_gcc_traditional=yes
18165 else
18166   ac_cv_prog_gcc_traditional=no
18167 fi
18168 rm -f conftest*
18169
18170
18171   if test $ac_cv_prog_gcc_traditional = no; then
18172     cat >conftest.$ac_ext <<_ACEOF
18173 /* confdefs.h.  */
18174 _ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h.  */
18178 #include <termio.h>
18179 Autoconf TCGETA
18180 _ACEOF
18181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18182   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18183   ac_cv_prog_gcc_traditional=yes
18184 fi
18185 rm -f conftest*
18186
18187   fi
18188 fi
18189 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18190 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18191   if test $ac_cv_prog_gcc_traditional = yes; then
18192     CC="$CC -traditional"
18193   fi
18194 fi
18195
18196
18197 CXXFLAGS=${CXXFLAGS:=}
18198
18199
18200
18201     ac_ext=cpp
18202 ac_cpp='$CXXCPP $CPPFLAGS'
18203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18206 if test -z "$CXX"; then
18207   if test -n "$CCC"; then
18208     CXX=$CCC
18209   else
18210     if test -n "$ac_tool_prefix"; then
18211   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18212   do
18213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18217 if test "${ac_cv_prog_CXX+set}" = set; then
18218   echo $ECHO_N "(cached) $ECHO_C" >&6
18219 else
18220   if test -n "$CXX"; then
18221   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18222 else
18223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18224 for as_dir in $PATH
18225 do
18226   IFS=$as_save_IFS
18227   test -z "$as_dir" && as_dir=.
18228   for ac_exec_ext in '' $ac_executable_extensions; do
18229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18230     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18232     break 2
18233   fi
18234 done
18235 done
18236 IFS=$as_save_IFS
18237
18238 fi
18239 fi
18240 CXX=$ac_cv_prog_CXX
18241 if test -n "$CXX"; then
18242   { echo "$as_me:$LINENO: result: $CXX" >&5
18243 echo "${ECHO_T}$CXX" >&6; }
18244 else
18245   { echo "$as_me:$LINENO: result: no" >&5
18246 echo "${ECHO_T}no" >&6; }
18247 fi
18248
18249
18250     test -n "$CXX" && break
18251   done
18252 fi
18253 if test -z "$CXX"; then
18254   ac_ct_CXX=$CXX
18255   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18256 do
18257   # Extract the first word of "$ac_prog", so it can be a program name with args.
18258 set dummy $ac_prog; ac_word=$2
18259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18261 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18262   echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264   if test -n "$ac_ct_CXX"; then
18265   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18266 else
18267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18268 for as_dir in $PATH
18269 do
18270   IFS=$as_save_IFS
18271   test -z "$as_dir" && as_dir=.
18272   for ac_exec_ext in '' $ac_executable_extensions; do
18273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18274     ac_cv_prog_ac_ct_CXX="$ac_prog"
18275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18276     break 2
18277   fi
18278 done
18279 done
18280 IFS=$as_save_IFS
18281
18282 fi
18283 fi
18284 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18285 if test -n "$ac_ct_CXX"; then
18286   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
18287 echo "${ECHO_T}$ac_ct_CXX" >&6; }
18288 else
18289   { echo "$as_me:$LINENO: result: no" >&5
18290 echo "${ECHO_T}no" >&6; }
18291 fi
18292
18293
18294   test -n "$ac_ct_CXX" && break
18295 done
18296
18297   if test "x$ac_ct_CXX" = x; then
18298     CXX="g++"
18299   else
18300     case $cross_compiling:$ac_tool_warned in
18301 yes:)
18302 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18303 whose name does not start with the host triplet.  If you think this
18304 configuration is useful to you, please write to autoconf@gnu.org." >&5
18305 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18306 whose name does not start with the host triplet.  If you think this
18307 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18308 ac_tool_warned=yes ;;
18309 esac
18310     CXX=$ac_ct_CXX
18311   fi
18312 fi
18313
18314   fi
18315 fi
18316 # Provide some information about the compiler.
18317 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
18318 ac_compiler=`set X $ac_compile; echo $2`
18319 { (ac_try="$ac_compiler --version >&5"
18320 case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18325   (eval "$ac_compiler --version >&5") 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }
18329 { (ac_try="$ac_compiler -v >&5"
18330 case "(($ac_try" in
18331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332   *) ac_try_echo=$ac_try;;
18333 esac
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335   (eval "$ac_compiler -v >&5") 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }
18339 { (ac_try="$ac_compiler -V >&5"
18340 case "(($ac_try" in
18341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342   *) ac_try_echo=$ac_try;;
18343 esac
18344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18345   (eval "$ac_compiler -V >&5") 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }
18349
18350 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
18351 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
18352 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
18353   echo $ECHO_N "(cached) $ECHO_C" >&6
18354 else
18355   cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h.  */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h.  */
18361
18362 int
18363 main ()
18364 {
18365 #ifndef __GNUC__
18366        choke me
18367 #endif
18368
18369   ;
18370   return 0;
18371 }
18372 _ACEOF
18373 rm -f conftest.$ac_objext
18374 if { (ac_try="$ac_compile"
18375 case "(($ac_try" in
18376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377   *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380   (eval "$ac_compile") 2>conftest.er1
18381   ac_status=$?
18382   grep -v '^ *+' conftest.er1 >conftest.err
18383   rm -f conftest.er1
18384   cat conftest.err >&5
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); } && {
18387          test -z "$ac_cxx_werror_flag" ||
18388          test ! -s conftest.err
18389        } && test -s conftest.$ac_objext; then
18390   ac_compiler_gnu=yes
18391 else
18392   echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18394
18395         ac_compiler_gnu=no
18396 fi
18397
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18400
18401 fi
18402 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
18403 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
18404 GXX=`test $ac_compiler_gnu = yes && echo yes`
18405 ac_test_CXXFLAGS=${CXXFLAGS+set}
18406 ac_save_CXXFLAGS=$CXXFLAGS
18407 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
18408 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
18409 if test "${ac_cv_prog_cxx_g+set}" = set; then
18410   echo $ECHO_N "(cached) $ECHO_C" >&6
18411 else
18412   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18413    ac_cxx_werror_flag=yes
18414    ac_cv_prog_cxx_g=no
18415    CXXFLAGS="-g"
18416    cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422
18423 int
18424 main ()
18425 {
18426
18427   ;
18428   return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext
18432 if { (ac_try="$ac_compile"
18433 case "(($ac_try" in
18434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435   *) ac_try_echo=$ac_try;;
18436 esac
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438   (eval "$ac_compile") 2>conftest.er1
18439   ac_status=$?
18440   grep -v '^ *+' conftest.er1 >conftest.err
18441   rm -f conftest.er1
18442   cat conftest.err >&5
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); } && {
18445          test -z "$ac_cxx_werror_flag" ||
18446          test ! -s conftest.err
18447        } && test -s conftest.$ac_objext; then
18448   ac_cv_prog_cxx_g=yes
18449 else
18450   echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453         CXXFLAGS=""
18454       cat >conftest.$ac_ext <<_ACEOF
18455 /* confdefs.h.  */
18456 _ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h.  */
18460
18461 int
18462 main ()
18463 {
18464
18465   ;
18466   return 0;
18467 }
18468 _ACEOF
18469 rm -f conftest.$ac_objext
18470 if { (ac_try="$ac_compile"
18471 case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476   (eval "$ac_compile") 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } && {
18483          test -z "$ac_cxx_werror_flag" ||
18484          test ! -s conftest.err
18485        } && test -s conftest.$ac_objext; then
18486   :
18487 else
18488   echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18492          CXXFLAGS="-g"
18493          cat >conftest.$ac_ext <<_ACEOF
18494 /* confdefs.h.  */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h.  */
18499
18500 int
18501 main ()
18502 {
18503
18504   ;
18505   return 0;
18506 }
18507 _ACEOF
18508 rm -f conftest.$ac_objext
18509 if { (ac_try="$ac_compile"
18510 case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_compile") 2>conftest.er1
18516   ac_status=$?
18517   grep -v '^ *+' conftest.er1 >conftest.err
18518   rm -f conftest.er1
18519   cat conftest.err >&5
18520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521   (exit $ac_status); } && {
18522          test -z "$ac_cxx_werror_flag" ||
18523          test ! -s conftest.err
18524        } && test -s conftest.$ac_objext; then
18525   ac_cv_prog_cxx_g=yes
18526 else
18527   echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530
18531 fi
18532
18533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534 fi
18535
18536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537 fi
18538
18539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18540    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18541 fi
18542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
18543 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
18544 if test "$ac_test_CXXFLAGS" = set; then
18545   CXXFLAGS=$ac_save_CXXFLAGS
18546 elif test $ac_cv_prog_cxx_g = yes; then
18547   if test "$GXX" = yes; then
18548     CXXFLAGS="-g -O2"
18549   else
18550     CXXFLAGS="-g"
18551   fi
18552 else
18553   if test "$GXX" = yes; then
18554     CXXFLAGS="-O2"
18555   else
18556     CXXFLAGS=
18557   fi
18558 fi
18559 ac_ext=c
18560 ac_cpp='$CPP $CPPFLAGS'
18561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18564
18565
18566
18567
18568     ac_ext=cpp
18569 ac_cpp='$CXXCPP $CPPFLAGS'
18570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18573
18574     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18575 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18576 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18577   echo $ECHO_N "(cached) $ECHO_C" >&6
18578 else
18579   cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585
18586 int
18587 main ()
18588 {
18589
18590              #ifndef __INTEL_COMPILER
18591                 choke me
18592              #endif
18593
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext
18599 if { (ac_try="$ac_compile"
18600 case "(($ac_try" in
18601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602   *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605   (eval "$ac_compile") 2>conftest.er1
18606   ac_status=$?
18607   grep -v '^ *+' conftest.er1 >conftest.err
18608   rm -f conftest.er1
18609   cat conftest.err >&5
18610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611   (exit $ac_status); } && {
18612          test -z "$ac_cxx_werror_flag" ||
18613          test ! -s conftest.err
18614        } && test -s conftest.$ac_objext; then
18615   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18616 else
18617   echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18619
18620         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18621
18622 fi
18623
18624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18625
18626
18627 fi
18628 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18629 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18630     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18631         :; INTELCXX=yes
18632     else
18633         :;
18634     fi
18635     ac_ext=c
18636 ac_cpp='$CPP $CPPFLAGS'
18637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18640
18641
18642
18643
18644         if test "x$GCXX" != "xyes"; then
18645         if test "xCXX" = "xC"; then
18646             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18647 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18648 if test "${bakefile_cv_c_exto+set}" = set; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h.  */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h.  */
18657
18658 int
18659 main ()
18660 {
18661
18662   ;
18663   return 0;
18664 }
18665 _ACEOF
18666 rm -f conftest.$ac_objext conftest.$ac_ext.o
18667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18668   (eval $ac_compile) 2>&5
18669   ac_status=$?
18670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671   (exit $ac_status); }; then
18672   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18673     case $ac_file in
18674         conftest.$ac_ext.o)
18675             bakefile_cv_c_exto="-ext o"
18676             ;;
18677         *)
18678             ;;
18679     esac
18680 done
18681 else
18682   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18683 See \`config.log' for more details." >&5
18684 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18685 See \`config.log' for more details." >&2;}
18686    { (exit 1); exit 1; }; }
18687
18688 fi
18689
18690 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18691
18692 fi
18693 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18694 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18695 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18696     if test "c" = "c"; then
18697         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18698     fi
18699     if test "c" = "cxx"; then
18700         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18701     fi
18702 fi
18703
18704             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18705                 unset ac_cv_prog_cc_g
18706                 ac_test_CFLAGS=${CFLAGS+set}
18707 ac_save_CFLAGS=$CFLAGS
18708 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18709 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18710 if test "${ac_cv_prog_cc_g+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   ac_save_c_werror_flag=$ac_c_werror_flag
18714    ac_c_werror_flag=yes
18715    ac_cv_prog_cc_g=no
18716    CFLAGS="-g"
18717    cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h.  */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h.  */
18723
18724 int
18725 main ()
18726 {
18727
18728   ;
18729   return 0;
18730 }
18731 _ACEOF
18732 rm -f conftest.$ac_objext
18733 if { (ac_try="$ac_compile"
18734 case "(($ac_try" in
18735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18736   *) ac_try_echo=$ac_try;;
18737 esac
18738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18739   (eval "$ac_compile") 2>conftest.er1
18740   ac_status=$?
18741   grep -v '^ *+' conftest.er1 >conftest.err
18742   rm -f conftest.er1
18743   cat conftest.err >&5
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); } && {
18746          test -z "$ac_c_werror_flag" ||
18747          test ! -s conftest.err
18748        } && test -s conftest.$ac_objext; then
18749   ac_cv_prog_cc_g=yes
18750 else
18751   echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754         CFLAGS=""
18755       cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h.  */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h.  */
18761
18762 int
18763 main ()
18764 {
18765
18766   ;
18767   return 0;
18768 }
18769 _ACEOF
18770 rm -f conftest.$ac_objext
18771 if { (ac_try="$ac_compile"
18772 case "(($ac_try" in
18773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774   *) ac_try_echo=$ac_try;;
18775 esac
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777   (eval "$ac_compile") 2>conftest.er1
18778   ac_status=$?
18779   grep -v '^ *+' conftest.er1 >conftest.err
18780   rm -f conftest.er1
18781   cat conftest.err >&5
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); } && {
18784          test -z "$ac_c_werror_flag" ||
18785          test ! -s conftest.err
18786        } && test -s conftest.$ac_objext; then
18787   :
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         ac_c_werror_flag=$ac_save_c_werror_flag
18793          CFLAGS="-g"
18794          cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800
18801 int
18802 main ()
18803 {
18804
18805   ;
18806   return 0;
18807 }
18808 _ACEOF
18809 rm -f conftest.$ac_objext
18810 if { (ac_try="$ac_compile"
18811 case "(($ac_try" in
18812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813   *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816   (eval "$ac_compile") 2>conftest.er1
18817   ac_status=$?
18818   grep -v '^ *+' conftest.er1 >conftest.err
18819   rm -f conftest.er1
18820   cat conftest.err >&5
18821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822   (exit $ac_status); } && {
18823          test -z "$ac_c_werror_flag" ||
18824          test ! -s conftest.err
18825        } && test -s conftest.$ac_objext; then
18826   ac_cv_prog_cc_g=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831
18832 fi
18833
18834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18835 fi
18836
18837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18838 fi
18839
18840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18841    ac_c_werror_flag=$ac_save_c_werror_flag
18842 fi
18843 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18844 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18845 if test "$ac_test_CFLAGS" = set; then
18846   CFLAGS=$ac_save_CFLAGS
18847 elif test $ac_cv_prog_cc_g = yes; then
18848   if test "$GCC" = yes; then
18849     CFLAGS="-g -O2"
18850   else
18851     CFLAGS="-g"
18852   fi
18853 else
18854   if test "$GCC" = yes; then
18855     CFLAGS="-O2"
18856   else
18857     CFLAGS=
18858   fi
18859 fi
18860             fi
18861         fi
18862
18863                         case `uname -s` in
18864             AIX*)
18865
18866
18867     ac_ext=cpp
18868 ac_cpp='$CXXCPP $CPPFLAGS'
18869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18872
18873     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18874 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18875 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h.  */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h.  */
18884
18885 int
18886 main ()
18887 {
18888
18889              #ifndef __xlC__
18890                 choke me
18891              #endif
18892
18893   ;
18894   return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext
18898 if { (ac_try="$ac_compile"
18899 case "(($ac_try" in
18900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901   *) ac_try_echo=$ac_try;;
18902 esac
18903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904   (eval "$ac_compile") 2>conftest.er1
18905   ac_status=$?
18906   grep -v '^ *+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } && {
18911          test -z "$ac_cxx_werror_flag" ||
18912          test ! -s conftest.err
18913        } && test -s conftest.$ac_objext; then
18914   bakefile_cv_cxx_compiler___xlC__=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919         bakefile_cv_cxx_compiler___xlC__=no
18920
18921 fi
18922
18923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924
18925
18926 fi
18927 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18928 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18929     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18930         :; XLCXX=yes
18931     else
18932         :;
18933     fi
18934     ac_ext=c
18935 ac_cpp='$CPP $CPPFLAGS'
18936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18939
18940
18941
18942                 ;;
18943
18944             Darwin)
18945
18946
18947     ac_ext=cpp
18948 ac_cpp='$CXXCPP $CPPFLAGS'
18949 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18950 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18951 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18952
18953     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18954 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18955 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18956   echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958   cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964
18965 int
18966 main ()
18967 {
18968
18969              #ifndef __MWERKS__
18970                 choke me
18971              #endif
18972
18973   ;
18974   return 0;
18975 }
18976 _ACEOF
18977 rm -f conftest.$ac_objext
18978 if { (ac_try="$ac_compile"
18979 case "(($ac_try" in
18980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981   *) ac_try_echo=$ac_try;;
18982 esac
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984   (eval "$ac_compile") 2>conftest.er1
18985   ac_status=$?
18986   grep -v '^ *+' conftest.er1 >conftest.err
18987   rm -f conftest.er1
18988   cat conftest.err >&5
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); } && {
18991          test -z "$ac_cxx_werror_flag" ||
18992          test ! -s conftest.err
18993        } && test -s conftest.$ac_objext; then
18994   bakefile_cv_cxx_compiler___MWERKS__=yes
18995 else
18996   echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18998
18999         bakefile_cv_cxx_compiler___MWERKS__=no
19000
19001 fi
19002
19003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19004
19005
19006 fi
19007 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19008 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
19009     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19010         :; MWCXX=yes
19011     else
19012         :;
19013     fi
19014     ac_ext=c
19015 ac_cpp='$CPP $CPPFLAGS'
19016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19019
19020
19021
19022
19023
19024     ac_ext=cpp
19025 ac_cpp='$CXXCPP $CPPFLAGS'
19026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19029
19030     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19031 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19032 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041
19042 int
19043 main ()
19044 {
19045
19046              #ifndef __xlC__
19047                 choke me
19048              #endif
19049
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (ac_try="$ac_compile"
19056 case "(($ac_try" in
19057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058   *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061   (eval "$ac_compile") 2>conftest.er1
19062   ac_status=$?
19063   grep -v '^ *+' conftest.er1 >conftest.err
19064   rm -f conftest.er1
19065   cat conftest.err >&5
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); } && {
19068          test -z "$ac_cxx_werror_flag" ||
19069          test ! -s conftest.err
19070        } && test -s conftest.$ac_objext; then
19071   bakefile_cv_cxx_compiler___xlC__=yes
19072 else
19073   echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076         bakefile_cv_cxx_compiler___xlC__=no
19077
19078 fi
19079
19080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081
19082
19083 fi
19084 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19085 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19086     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19087         :; XLCXX=yes
19088     else
19089         :;
19090     fi
19091     ac_ext=c
19092 ac_cpp='$CPP $CPPFLAGS'
19093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19096
19097
19098
19099                 ;;
19100
19101             IRIX*)
19102
19103
19104     ac_ext=cpp
19105 ac_cpp='$CXXCPP $CPPFLAGS'
19106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19109
19110     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19111 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19112 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19113   echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115   cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h.  */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h.  */
19121
19122 int
19123 main ()
19124 {
19125
19126              #ifndef _SGI_COMPILER_VERSION
19127                 choke me
19128              #endif
19129
19130   ;
19131   return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138   *) ac_try_echo=$ac_try;;
19139 esac
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141   (eval "$ac_compile") 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } && {
19148          test -z "$ac_cxx_werror_flag" ||
19149          test ! -s conftest.err
19150        } && test -s conftest.$ac_objext; then
19151   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19152 else
19153   echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19155
19156         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19157
19158 fi
19159
19160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161
19162
19163 fi
19164 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19165 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19166     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19167         :; SGICXX=yes
19168     else
19169         :;
19170     fi
19171     ac_ext=c
19172 ac_cpp='$CPP $CPPFLAGS'
19173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19176
19177
19178
19179                 ;;
19180
19181             Linux*)
19182
19183
19184     ac_ext=cpp
19185 ac_cpp='$CXXCPP $CPPFLAGS'
19186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19189
19190     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19191 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19192 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19193   echo $ECHO_N "(cached) $ECHO_C" >&6
19194 else
19195   cat >conftest.$ac_ext <<_ACEOF
19196 /* confdefs.h.  */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h.  */
19201
19202 int
19203 main ()
19204 {
19205
19206              #ifndef __SUNPRO_CC
19207                 choke me
19208              #endif
19209
19210   ;
19211   return 0;
19212 }
19213 _ACEOF
19214 rm -f conftest.$ac_objext
19215 if { (ac_try="$ac_compile"
19216 case "(($ac_try" in
19217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218   *) ac_try_echo=$ac_try;;
19219 esac
19220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19221   (eval "$ac_compile") 2>conftest.er1
19222   ac_status=$?
19223   grep -v '^ *+' conftest.er1 >conftest.err
19224   rm -f conftest.er1
19225   cat conftest.err >&5
19226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227   (exit $ac_status); } && {
19228          test -z "$ac_cxx_werror_flag" ||
19229          test ! -s conftest.err
19230        } && test -s conftest.$ac_objext; then
19231   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19232 else
19233   echo "$as_me: failed program was:" >&5
19234 sed 's/^/| /' conftest.$ac_ext >&5
19235
19236         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19237
19238 fi
19239
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19241
19242
19243 fi
19244 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19245 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19246     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19247         :; SUNCXX=yes
19248     else
19249         :;
19250     fi
19251     ac_ext=c
19252 ac_cpp='$CPP $CPPFLAGS'
19253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19256
19257
19258
19259                 ;;
19260
19261             HP-UX*)
19262
19263
19264     ac_ext=cpp
19265 ac_cpp='$CXXCPP $CPPFLAGS'
19266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19269
19270     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
19271 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
19272 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275   cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h.  */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h.  */
19281
19282 int
19283 main ()
19284 {
19285
19286              #ifndef __HP_aCC
19287                 choke me
19288              #endif
19289
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext
19295 if { (ac_try="$ac_compile"
19296 case "(($ac_try" in
19297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298   *) ac_try_echo=$ac_try;;
19299 esac
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301   (eval "$ac_compile") 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } && {
19308          test -z "$ac_cxx_werror_flag" ||
19309          test ! -s conftest.err
19310        } && test -s conftest.$ac_objext; then
19311   bakefile_cv_cxx_compiler___HP_aCC=yes
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 sed 's/^/| /' conftest.$ac_ext >&5
19315
19316         bakefile_cv_cxx_compiler___HP_aCC=no
19317
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321
19322
19323 fi
19324 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
19325 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
19326     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
19327         :; HPCXX=yes
19328     else
19329         :;
19330     fi
19331     ac_ext=c
19332 ac_cpp='$CPP $CPPFLAGS'
19333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19336
19337
19338
19339                 ;;
19340
19341             OSF1)
19342
19343
19344     ac_ext=cpp
19345 ac_cpp='$CXXCPP $CPPFLAGS'
19346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19349
19350     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
19351 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
19352 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
19353   echo $ECHO_N "(cached) $ECHO_C" >&6
19354 else
19355   cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h.  */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h.  */
19361
19362 int
19363 main ()
19364 {
19365
19366              #ifndef __DECCXX
19367                 choke me
19368              #endif
19369
19370   ;
19371   return 0;
19372 }
19373 _ACEOF
19374 rm -f conftest.$ac_objext
19375 if { (ac_try="$ac_compile"
19376 case "(($ac_try" in
19377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378   *) ac_try_echo=$ac_try;;
19379 esac
19380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381   (eval "$ac_compile") 2>conftest.er1
19382   ac_status=$?
19383   grep -v '^ *+' conftest.er1 >conftest.err
19384   rm -f conftest.er1
19385   cat conftest.err >&5
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); } && {
19388          test -z "$ac_cxx_werror_flag" ||
19389          test ! -s conftest.err
19390        } && test -s conftest.$ac_objext; then
19391   bakefile_cv_cxx_compiler___DECCXX=yes
19392 else
19393   echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19395
19396         bakefile_cv_cxx_compiler___DECCXX=no
19397
19398 fi
19399
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401
19402
19403 fi
19404 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19405 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19406     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19407         :; COMPAQCXX=yes
19408     else
19409         :;
19410     fi
19411     ac_ext=c
19412 ac_cpp='$CPP $CPPFLAGS'
19413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19416
19417
19418
19419                 ;;
19420
19421             SunOS)
19422
19423
19424     ac_ext=cpp
19425 ac_cpp='$CXXCPP $CPPFLAGS'
19426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19429
19430     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19431 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19432 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19433   echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435   cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441
19442 int
19443 main ()
19444 {
19445
19446              #ifndef __SUNPRO_CC
19447                 choke me
19448              #endif
19449
19450   ;
19451   return 0;
19452 }
19453 _ACEOF
19454 rm -f conftest.$ac_objext
19455 if { (ac_try="$ac_compile"
19456 case "(($ac_try" in
19457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458   *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461   (eval "$ac_compile") 2>conftest.er1
19462   ac_status=$?
19463   grep -v '^ *+' conftest.er1 >conftest.err
19464   rm -f conftest.er1
19465   cat conftest.err >&5
19466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467   (exit $ac_status); } && {
19468          test -z "$ac_cxx_werror_flag" ||
19469          test ! -s conftest.err
19470        } && test -s conftest.$ac_objext; then
19471   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19477
19478 fi
19479
19480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19481
19482
19483 fi
19484 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19485 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19486     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19487         :; SUNCXX=yes
19488     else
19489         :;
19490     fi
19491     ac_ext=c
19492 ac_cpp='$CPP $CPPFLAGS'
19493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19496
19497
19498
19499                 ;;
19500         esac
19501     fi
19502
19503
19504
19505 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19506     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19507 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19508    { (exit 1); exit 1; }; }
19509 fi
19510
19511 if test -n "$ac_tool_prefix"; then
19512   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19516 if test "${ac_cv_prog_RANLIB+set}" = set; then
19517   echo $ECHO_N "(cached) $ECHO_C" >&6
19518 else
19519   if test -n "$RANLIB"; then
19520   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19521 else
19522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19523 for as_dir in $PATH
19524 do
19525   IFS=$as_save_IFS
19526   test -z "$as_dir" && as_dir=.
19527   for ac_exec_ext in '' $ac_executable_extensions; do
19528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19529     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19531     break 2
19532   fi
19533 done
19534 done
19535 IFS=$as_save_IFS
19536
19537 fi
19538 fi
19539 RANLIB=$ac_cv_prog_RANLIB
19540 if test -n "$RANLIB"; then
19541   { echo "$as_me:$LINENO: result: $RANLIB" >&5
19542 echo "${ECHO_T}$RANLIB" >&6; }
19543 else
19544   { echo "$as_me:$LINENO: result: no" >&5
19545 echo "${ECHO_T}no" >&6; }
19546 fi
19547
19548
19549 fi
19550 if test -z "$ac_cv_prog_RANLIB"; then
19551   ac_ct_RANLIB=$RANLIB
19552   # Extract the first word of "ranlib", so it can be a program name with args.
19553 set dummy ranlib; ac_word=$2
19554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19556 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19557   echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559   if test -n "$ac_ct_RANLIB"; then
19560   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19561 else
19562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19563 for as_dir in $PATH
19564 do
19565   IFS=$as_save_IFS
19566   test -z "$as_dir" && as_dir=.
19567   for ac_exec_ext in '' $ac_executable_extensions; do
19568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19569     ac_cv_prog_ac_ct_RANLIB="ranlib"
19570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19571     break 2
19572   fi
19573 done
19574 done
19575 IFS=$as_save_IFS
19576
19577 fi
19578 fi
19579 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19580 if test -n "$ac_ct_RANLIB"; then
19581   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19582 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19583 else
19584   { echo "$as_me:$LINENO: result: no" >&5
19585 echo "${ECHO_T}no" >&6; }
19586 fi
19587
19588   if test "x$ac_ct_RANLIB" = x; then
19589     RANLIB=":"
19590   else
19591     case $cross_compiling:$ac_tool_warned in
19592 yes:)
19593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19594 whose name does not start with the host triplet.  If you think this
19595 configuration is useful to you, please write to autoconf@gnu.org." >&5
19596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19597 whose name does not start with the host triplet.  If you think this
19598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19599 ac_tool_warned=yes ;;
19600 esac
19601     RANLIB=$ac_ct_RANLIB
19602   fi
19603 else
19604   RANLIB="$ac_cv_prog_RANLIB"
19605 fi
19606
19607
19608 if test "x$SUNCXX" != xyes; then
19609     if test -n "$ac_tool_prefix"; then
19610   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19611 set dummy ${ac_tool_prefix}ar; ac_word=$2
19612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19614 if test "${ac_cv_prog_AR+set}" = set; then
19615   echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617   if test -n "$AR"; then
19618   ac_cv_prog_AR="$AR" # Let the user override the test.
19619 else
19620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19621 for as_dir in $PATH
19622 do
19623   IFS=$as_save_IFS
19624   test -z "$as_dir" && as_dir=.
19625   for ac_exec_ext in '' $ac_executable_extensions; do
19626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19627     ac_cv_prog_AR="${ac_tool_prefix}ar"
19628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19629     break 2
19630   fi
19631 done
19632 done
19633 IFS=$as_save_IFS
19634
19635 fi
19636 fi
19637 AR=$ac_cv_prog_AR
19638 if test -n "$AR"; then
19639   { echo "$as_me:$LINENO: result: $AR" >&5
19640 echo "${ECHO_T}$AR" >&6; }
19641 else
19642   { echo "$as_me:$LINENO: result: no" >&5
19643 echo "${ECHO_T}no" >&6; }
19644 fi
19645
19646
19647 fi
19648 if test -z "$ac_cv_prog_AR"; then
19649   ac_ct_AR=$AR
19650   # Extract the first word of "ar", so it can be a program name with args.
19651 set dummy ar; ac_word=$2
19652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19654 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   if test -n "$ac_ct_AR"; then
19658   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19659 else
19660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19661 for as_dir in $PATH
19662 do
19663   IFS=$as_save_IFS
19664   test -z "$as_dir" && as_dir=.
19665   for ac_exec_ext in '' $ac_executable_extensions; do
19666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19667     ac_cv_prog_ac_ct_AR="ar"
19668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19669     break 2
19670   fi
19671 done
19672 done
19673 IFS=$as_save_IFS
19674
19675 fi
19676 fi
19677 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19678 if test -n "$ac_ct_AR"; then
19679   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19680 echo "${ECHO_T}$ac_ct_AR" >&6; }
19681 else
19682   { echo "$as_me:$LINENO: result: no" >&5
19683 echo "${ECHO_T}no" >&6; }
19684 fi
19685
19686   if test "x$ac_ct_AR" = x; then
19687     AR=""
19688   else
19689     case $cross_compiling:$ac_tool_warned in
19690 yes:)
19691 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19692 whose name does not start with the host triplet.  If you think this
19693 configuration is useful to you, please write to autoconf@gnu.org." >&5
19694 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19695 whose name does not start with the host triplet.  If you think this
19696 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19697 ac_tool_warned=yes ;;
19698 esac
19699     AR=$ac_ct_AR
19700   fi
19701 else
19702   AR="$ac_cv_prog_AR"
19703 fi
19704
19705     if test "x$AR" = "x" ; then
19706         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19707 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19708    { (exit 1); exit 1; }; }
19709     fi
19710 fi
19711
19712 # Find a good install program.  We prefer a C program (faster),
19713 # so one script is as good as another.  But avoid the broken or
19714 # incompatible versions:
19715 # SysV /etc/install, /usr/sbin/install
19716 # SunOS /usr/etc/install
19717 # IRIX /sbin/install
19718 # AIX /bin/install
19719 # AmigaOS /C/install, which installs bootblocks on floppy discs
19720 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19721 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19722 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19723 # OS/2's system install, which has a completely different semantic
19724 # ./install, which can be erroneously created by make from ./install.sh.
19725 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19726 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19727 if test -z "$INSTALL"; then
19728 if test "${ac_cv_path_install+set}" = set; then
19729   echo $ECHO_N "(cached) $ECHO_C" >&6
19730 else
19731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19732 for as_dir in $PATH
19733 do
19734   IFS=$as_save_IFS
19735   test -z "$as_dir" && as_dir=.
19736   # Account for people who put trailing slashes in PATH elements.
19737 case $as_dir/ in
19738   ./ | .// | /cC/* | \
19739   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19740   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19741   /usr/ucb/* ) ;;
19742   *)
19743     # OSF1 and SCO ODT 3.0 have their own names for install.
19744     # Don't use installbsd from OSF since it installs stuff as root
19745     # by default.
19746     for ac_prog in ginstall scoinst install; do
19747       for ac_exec_ext in '' $ac_executable_extensions; do
19748         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19749           if test $ac_prog = install &&
19750             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19751             # AIX install.  It has an incompatible calling convention.
19752             :
19753           elif test $ac_prog = install &&
19754             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19755             # program-specific install script used by HP pwplus--don't use.
19756             :
19757           else
19758             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19759             break 3
19760           fi
19761         fi
19762       done
19763     done
19764     ;;
19765 esac
19766 done
19767 IFS=$as_save_IFS
19768
19769
19770 fi
19771   if test "${ac_cv_path_install+set}" = set; then
19772     INSTALL=$ac_cv_path_install
19773   else
19774     # As a last resort, use the slow shell script.  Don't cache a
19775     # value for INSTALL within a source directory, because that will
19776     # break other packages using the cache if that directory is
19777     # removed, or if the value is a relative name.
19778     INSTALL=$ac_install_sh
19779   fi
19780 fi
19781 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19782 echo "${ECHO_T}$INSTALL" >&6; }
19783
19784 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19785 # It thinks the first close brace ends the variable substitution.
19786 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19787
19788 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19789
19790 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19791
19792
19793 case ${INSTALL} in
19794   /* ) # Absolute
19795      ;;
19796   ?:* ) # Drive letter, considered as absolute.
19797      ;;
19798   *)
19799      INSTALL=`pwd`/${INSTALL} ;;
19800 esac
19801
19802
19803 case "${host}" in
19804
19805                 *-*-darwin* )
19806         INSTALL_PROGRAM="cp -fp"
19807         INSTALL_DATA="cp -fp"
19808         ;;
19809     *)
19810         ;;
19811 esac
19812
19813 if test -n "$ac_tool_prefix"; then
19814   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19815 set dummy ${ac_tool_prefix}strip; ac_word=$2
19816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19818 if test "${ac_cv_prog_STRIP+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   if test -n "$STRIP"; then
19822   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19823 else
19824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19825 for as_dir in $PATH
19826 do
19827   IFS=$as_save_IFS
19828   test -z "$as_dir" && as_dir=.
19829   for ac_exec_ext in '' $ac_executable_extensions; do
19830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19831     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19833     break 2
19834   fi
19835 done
19836 done
19837 IFS=$as_save_IFS
19838
19839 fi
19840 fi
19841 STRIP=$ac_cv_prog_STRIP
19842 if test -n "$STRIP"; then
19843   { echo "$as_me:$LINENO: result: $STRIP" >&5
19844 echo "${ECHO_T}$STRIP" >&6; }
19845 else
19846   { echo "$as_me:$LINENO: result: no" >&5
19847 echo "${ECHO_T}no" >&6; }
19848 fi
19849
19850
19851 fi
19852 if test -z "$ac_cv_prog_STRIP"; then
19853   ac_ct_STRIP=$STRIP
19854   # Extract the first word of "strip", so it can be a program name with args.
19855 set dummy strip; ac_word=$2
19856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19858 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19859   echo $ECHO_N "(cached) $ECHO_C" >&6
19860 else
19861   if test -n "$ac_ct_STRIP"; then
19862   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19863 else
19864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19865 for as_dir in $PATH
19866 do
19867   IFS=$as_save_IFS
19868   test -z "$as_dir" && as_dir=.
19869   for ac_exec_ext in '' $ac_executable_extensions; do
19870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19871     ac_cv_prog_ac_ct_STRIP="strip"
19872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19873     break 2
19874   fi
19875 done
19876 done
19877 IFS=$as_save_IFS
19878
19879 fi
19880 fi
19881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19882 if test -n "$ac_ct_STRIP"; then
19883   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19884 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19885 else
19886   { echo "$as_me:$LINENO: result: no" >&5
19887 echo "${ECHO_T}no" >&6; }
19888 fi
19889
19890   if test "x$ac_ct_STRIP" = x; then
19891     STRIP="true"
19892   else
19893     case $cross_compiling:$ac_tool_warned in
19894 yes:)
19895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19896 whose name does not start with the host triplet.  If you think this
19897 configuration is useful to you, please write to autoconf@gnu.org." >&5
19898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19899 whose name does not start with the host triplet.  If you think this
19900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19901 ac_tool_warned=yes ;;
19902 esac
19903     STRIP=$ac_ct_STRIP
19904   fi
19905 else
19906   STRIP="$ac_cv_prog_STRIP"
19907 fi
19908
19909
19910 if test "$wxUSE_WINE" = "yes"; then
19911     if test -n "$ac_tool_prefix"; then
19912   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
19913 set dummy ${ac_tool_prefix}wrc; ac_word=$2
19914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19916 if test "${ac_cv_prog_WINDRES+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   if test -n "$WINDRES"; then
19920   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19921 else
19922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19923 for as_dir in $PATH
19924 do
19925   IFS=$as_save_IFS
19926   test -z "$as_dir" && as_dir=.
19927   for ac_exec_ext in '' $ac_executable_extensions; do
19928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19929     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
19930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19931     break 2
19932   fi
19933 done
19934 done
19935 IFS=$as_save_IFS
19936
19937 fi
19938 fi
19939 WINDRES=$ac_cv_prog_WINDRES
19940 if test -n "$WINDRES"; then
19941   { echo "$as_me:$LINENO: result: $WINDRES" >&5
19942 echo "${ECHO_T}$WINDRES" >&6; }
19943 else
19944   { echo "$as_me:$LINENO: result: no" >&5
19945 echo "${ECHO_T}no" >&6; }
19946 fi
19947
19948
19949 fi
19950 if test -z "$ac_cv_prog_WINDRES"; then
19951   ac_ct_WINDRES=$WINDRES
19952   # Extract the first word of "wrc", so it can be a program name with args.
19953 set dummy wrc; ac_word=$2
19954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19956 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
19957   echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959   if test -n "$ac_ct_WINDRES"; then
19960   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19961 else
19962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19963 for as_dir in $PATH
19964 do
19965   IFS=$as_save_IFS
19966   test -z "$as_dir" && as_dir=.
19967   for ac_exec_ext in '' $ac_executable_extensions; do
19968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19969     ac_cv_prog_ac_ct_WINDRES="wrc"
19970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19971     break 2
19972   fi
19973 done
19974 done
19975 IFS=$as_save_IFS
19976
19977 fi
19978 fi
19979 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19980 if test -n "$ac_ct_WINDRES"; then
19981   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
19982 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
19983 else
19984   { echo "$as_me:$LINENO: result: no" >&5
19985 echo "${ECHO_T}no" >&6; }
19986 fi
19987
19988   if test "x$ac_ct_WINDRES" = x; then
19989     WINDRES=""
19990   else
19991     case $cross_compiling:$ac_tool_warned in
19992 yes:)
19993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19994 whose name does not start with the host triplet.  If you think this
19995 configuration is useful to you, please write to autoconf@gnu.org." >&5
19996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19997 whose name does not start with the host triplet.  If you think this
19998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19999 ac_tool_warned=yes ;;
20000 esac
20001     WINDRES=$ac_ct_WINDRES
20002   fi
20003 else
20004   WINDRES="$ac_cv_prog_WINDRES"
20005 fi
20006
20007     RESCOMP="$WINDRES"
20008 else
20009     case "${host}" in
20010     *-*-cygwin* | *-*-mingw32* )
20011                                 if test -n "$ac_tool_prefix"; then
20012   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20013 set dummy ${ac_tool_prefix}windres; ac_word=$2
20014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20016 if test "${ac_cv_prog_WINDRES+set}" = set; then
20017   echo $ECHO_N "(cached) $ECHO_C" >&6
20018 else
20019   if test -n "$WINDRES"; then
20020   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20021 else
20022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20023 for as_dir in $PATH
20024 do
20025   IFS=$as_save_IFS
20026   test -z "$as_dir" && as_dir=.
20027   for ac_exec_ext in '' $ac_executable_extensions; do
20028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20029     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20031     break 2
20032   fi
20033 done
20034 done
20035 IFS=$as_save_IFS
20036
20037 fi
20038 fi
20039 WINDRES=$ac_cv_prog_WINDRES
20040 if test -n "$WINDRES"; then
20041   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20042 echo "${ECHO_T}$WINDRES" >&6; }
20043 else
20044   { echo "$as_me:$LINENO: result: no" >&5
20045 echo "${ECHO_T}no" >&6; }
20046 fi
20047
20048
20049 fi
20050 if test -z "$ac_cv_prog_WINDRES"; then
20051   ac_ct_WINDRES=$WINDRES
20052   # Extract the first word of "windres", so it can be a program name with args.
20053 set dummy windres; ac_word=$2
20054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20056 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059   if test -n "$ac_ct_WINDRES"; then
20060   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20061 else
20062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20063 for as_dir in $PATH
20064 do
20065   IFS=$as_save_IFS
20066   test -z "$as_dir" && as_dir=.
20067   for ac_exec_ext in '' $ac_executable_extensions; do
20068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20069     ac_cv_prog_ac_ct_WINDRES="windres"
20070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20071     break 2
20072   fi
20073 done
20074 done
20075 IFS=$as_save_IFS
20076
20077 fi
20078 fi
20079 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20080 if test -n "$ac_ct_WINDRES"; then
20081   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20082 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20083 else
20084   { echo "$as_me:$LINENO: result: no" >&5
20085 echo "${ECHO_T}no" >&6; }
20086 fi
20087
20088   if test "x$ac_ct_WINDRES" = x; then
20089     WINDRES=""
20090   else
20091     case $cross_compiling:$ac_tool_warned in
20092 yes:)
20093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20094 whose name does not start with the host triplet.  If you think this
20095 configuration is useful to you, please write to autoconf@gnu.org." >&5
20096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20097 whose name does not start with the host triplet.  If you think this
20098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20099 ac_tool_warned=yes ;;
20100 esac
20101     WINDRES=$ac_ct_WINDRES
20102   fi
20103 else
20104   WINDRES="$ac_cv_prog_WINDRES"
20105 fi
20106
20107         RESCOMP="$WINDRES"
20108         if test -n "$ac_tool_prefix"; then
20109   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
20110 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
20111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20113 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
20114   echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116   if test -n "$DLLTOOL"; then
20117   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
20118 else
20119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20120 for as_dir in $PATH
20121 do
20122   IFS=$as_save_IFS
20123   test -z "$as_dir" && as_dir=.
20124   for ac_exec_ext in '' $ac_executable_extensions; do
20125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20126     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
20127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20128     break 2
20129   fi
20130 done
20131 done
20132 IFS=$as_save_IFS
20133
20134 fi
20135 fi
20136 DLLTOOL=$ac_cv_prog_DLLTOOL
20137 if test -n "$DLLTOOL"; then
20138   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
20139 echo "${ECHO_T}$DLLTOOL" >&6; }
20140 else
20141   { echo "$as_me:$LINENO: result: no" >&5
20142 echo "${ECHO_T}no" >&6; }
20143 fi
20144
20145
20146 fi
20147 if test -z "$ac_cv_prog_DLLTOOL"; then
20148   ac_ct_DLLTOOL=$DLLTOOL
20149   # Extract the first word of "dlltool", so it can be a program name with args.
20150 set dummy dlltool; ac_word=$2
20151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20153 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
20154   echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156   if test -n "$ac_ct_DLLTOOL"; then
20157   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
20158 else
20159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160 for as_dir in $PATH
20161 do
20162   IFS=$as_save_IFS
20163   test -z "$as_dir" && as_dir=.
20164   for ac_exec_ext in '' $ac_executable_extensions; do
20165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20166     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
20167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20168     break 2
20169   fi
20170 done
20171 done
20172 IFS=$as_save_IFS
20173
20174 fi
20175 fi
20176 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
20177 if test -n "$ac_ct_DLLTOOL"; then
20178   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
20179 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
20180 else
20181   { echo "$as_me:$LINENO: result: no" >&5
20182 echo "${ECHO_T}no" >&6; }
20183 fi
20184
20185   if test "x$ac_ct_DLLTOOL" = x; then
20186     DLLTOOL=""
20187   else
20188     case $cross_compiling:$ac_tool_warned in
20189 yes:)
20190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20191 whose name does not start with the host triplet.  If you think this
20192 configuration is useful to you, please write to autoconf@gnu.org." >&5
20193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20194 whose name does not start with the host triplet.  If you think this
20195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20196 ac_tool_warned=yes ;;
20197 esac
20198     DLLTOOL=$ac_ct_DLLTOOL
20199   fi
20200 else
20201   DLLTOOL="$ac_cv_prog_DLLTOOL"
20202 fi
20203
20204         ;;
20205     esac
20206 fi
20207
20208 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
20209 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
20210 if test "${wx_cv_prog_makeisgnu+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213
20214     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
20215             $EGREP -s GNU > /dev/null); then
20216         wx_cv_prog_makeisgnu="yes"
20217     else
20218         wx_cv_prog_makeisgnu="no"
20219     fi
20220
20221 fi
20222 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
20223 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
20224
20225 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
20226     IF_GNU_MAKE=""
20227 else
20228     IF_GNU_MAKE="#"
20229 fi
20230
20231
20232
20233 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
20234 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
20235 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
20236 if test "${wx_cv_prog_makevpath+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239
20240 cat - << EOF > confMake
20241 check : file
20242         cp \$? \$@
20243         cp \$? final_file
20244 EOF
20245
20246 if test ! -d sub ; then
20247   mkdir sub
20248 fi
20249 echo dummy > sub/file
20250 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
20251 RESULT=$?
20252 rm -f sub/file check final_file confMake
20253 rmdir sub
20254 if test "$RESULT" = 0; then
20255   wx_cv_prog_makevpath="yes"
20256 else
20257   wx_cv_prog_makevpath="no"
20258 fi
20259
20260 fi
20261 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
20262 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
20263
20264 if test "x$wx_cv_prog_makevpath" != "xyes"; then
20265 { { echo "$as_me:$LINENO: error:
20266 You need a make-utility that is able to use the variable
20267 VPATH correctly.
20268 If your version of make does not support VPATH correctly,
20269 please install GNU-make (possibly as gmake), and start
20270 configure with the following command:
20271 export MAKE=gmake; ./configure  for sh-type shells
20272 setenv MAKE gmake; ./configure  for csh-type shells
20273 Also please do remember to use gmake in this case every time
20274 you are trying to compile.
20275 " >&5
20276 echo "$as_me: error:
20277 You need a make-utility that is able to use the variable
20278 VPATH correctly.
20279 If your version of make does not support VPATH correctly,
20280 please install GNU-make (possibly as gmake), and start
20281 configure with the following command:
20282 export MAKE=gmake; ./configure  for sh-type shells
20283 setenv MAKE gmake; ./configure  for csh-type shells
20284 Also please do remember to use gmake in this case every time
20285 you are trying to compile.
20286 " >&2;}
20287    { (exit 1); exit 1; }; }
20288 fi fi
20289 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
20290 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
20291 LN_S=$as_ln_s
20292 if test "$LN_S" = "ln -s"; then
20293   { echo "$as_me:$LINENO: result: yes" >&5
20294 echo "${ECHO_T}yes" >&6; }
20295 else
20296   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20297 echo "${ECHO_T}no, using $LN_S" >&6; }
20298 fi
20299
20300
20301
20302
20303 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20304     CXXFLAGS="-qunique $CXXFLAGS"
20305 fi
20306
20307 case "${host}" in
20308   powerpc-*-darwin* )
20309     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20310 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
20311     cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h.  */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h.  */
20317
20318 int
20319 main ()
20320 {
20321 #ifndef __POWERPC__
20322         choke me for lack of PowerPC
20323 #endif
20324
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_compile") 2>conftest.er1
20337   ac_status=$?
20338   grep -v '^ *+' conftest.er1 >conftest.err
20339   rm -f conftest.er1
20340   cat conftest.err >&5
20341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342   (exit $ac_status); } && {
20343          test -z "$ac_c_werror_flag" ||
20344          test ! -s conftest.err
20345        } && test -s conftest.$ac_objext; then
20346   { echo "$as_me:$LINENO: result: yes" >&5
20347 echo "${ECHO_T}yes" >&6; }
20348 else
20349   echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352         { echo "$as_me:$LINENO: result: no" >&5
20353 echo "${ECHO_T}no" >&6; }
20354         cat >>confdefs.h <<\_ACEOF
20355 #define __POWERPC__ 1
20356 _ACEOF
20357
20358
20359 fi
20360
20361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362   ;;
20363 esac
20364
20365 case "${host}" in
20366   *-*-darwin* )
20367     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20368 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20369     cat >conftest.$ac_ext <<_ACEOF
20370 /* confdefs.h.  */
20371 _ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h.  */
20375 #include <CoreFoundation/CFBase.h>
20376
20377 int
20378 main ()
20379 {
20380
20381   ;
20382   return 0;
20383 }
20384 _ACEOF
20385 rm -f conftest.$ac_objext
20386 if { (ac_try="$ac_compile"
20387 case "(($ac_try" in
20388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389   *) ac_try_echo=$ac_try;;
20390 esac
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392   (eval "$ac_compile") 2>conftest.er1
20393   ac_status=$?
20394   grep -v '^ *+' conftest.er1 >conftest.err
20395   rm -f conftest.er1
20396   cat conftest.err >&5
20397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398   (exit $ac_status); } && {
20399          test -z "$ac_c_werror_flag" ||
20400          test ! -s conftest.err
20401        } && test -s conftest.$ac_objext; then
20402   { echo "$as_me:$LINENO: result: yes" >&5
20403 echo "${ECHO_T}yes" >&6; }
20404 else
20405   echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408         { echo "$as_me:$LINENO: result: no" >&5
20409 echo "${ECHO_T}no" >&6; }
20410         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20411 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20412         cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h.  */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h.  */
20418 #define __CF_USE_FRAMEWORK_INCLUDES__
20419 #include <CoreFoundation/CFBase.h>
20420
20421 int
20422 main ()
20423 {
20424
20425   ;
20426   return 0;
20427 }
20428 _ACEOF
20429 rm -f conftest.$ac_objext
20430 if { (ac_try="$ac_compile"
20431 case "(($ac_try" in
20432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433   *) ac_try_echo=$ac_try;;
20434 esac
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436   (eval "$ac_compile") 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } && {
20443          test -z "$ac_c_werror_flag" ||
20444          test ! -s conftest.err
20445        } && test -s conftest.$ac_objext; then
20446   { echo "$as_me:$LINENO: result: yes" >&5
20447 echo "${ECHO_T}yes" >&6; }
20448                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20449 else
20450   echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20452
20453         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20454 See \`config.log' for more details." >&5
20455 echo "$as_me: error: no.  CoreFoundation not available.
20456 See \`config.log' for more details." >&2;}
20457    { (exit 1); exit 1; }; }
20458
20459 fi
20460
20461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20462
20463
20464 fi
20465
20466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20467   ;;
20468 esac
20469
20470 wants_win32=0
20471 doesnt_want_win32=0
20472 case "${host}" in
20473   *-*-cygwin*)
20474       if test "$wxUSE_MSW" = 1 ; then
20475         wants_win32=1
20476       else
20477                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20478 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20479 if test "${wx_cv_nocygwin+set}" = set; then
20480   echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482
20483                 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h.  */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h.  */
20489
20490 int
20491 main ()
20492 {
20493
20494                         #ifdef __MINGW32__
20495                             choke me
20496                         #endif
20497
20498   ;
20499   return 0;
20500 }
20501 _ACEOF
20502 rm -f conftest.$ac_objext
20503 if { (ac_try="$ac_compile"
20504 case "(($ac_try" in
20505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506   *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509   (eval "$ac_compile") 2>conftest.er1
20510   ac_status=$?
20511   grep -v '^ *+' conftest.er1 >conftest.err
20512   rm -f conftest.er1
20513   cat conftest.err >&5
20514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515   (exit $ac_status); } && {
20516          test -z "$ac_c_werror_flag" ||
20517          test ! -s conftest.err
20518        } && test -s conftest.$ac_objext; then
20519   wx_cv_nocygwin=no
20520 else
20521   echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20523
20524         wx_cv_nocygwin=yes
20525
20526 fi
20527
20528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20529
20530
20531 fi
20532 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20533 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20534
20535         if test "$wx_cv_nocygwin" = "yes"; then
20536             wants_win32=1
20537         else
20538             doesnt_want_win32=1
20539         fi
20540       fi
20541       if test "$wants_win32" = 1 ; then
20542         BAKEFILE_FORCE_PLATFORM=win32
20543       fi
20544   ;;
20545   *-*-mingw*)
20546       wants_win32=1
20547   ;;
20548 esac
20549
20550 if test "$wxUSE_WINE" = "yes"; then
20551     wants_win32=1
20552     LDFLAGS_GUI="-mwindows"
20553 fi
20554
20555 if test "$wants_win32" = 1 ; then
20556     USE_UNIX=0
20557     USE_WIN32=1
20558     cat >>confdefs.h <<\_ACEOF
20559 #define __WIN32__ 1
20560 _ACEOF
20561
20562     cat >>confdefs.h <<\_ACEOF
20563 #define __WIN95__ 1
20564 _ACEOF
20565
20566     cat >>confdefs.h <<\_ACEOF
20567 #define __WINDOWS__ 1
20568 _ACEOF
20569
20570     cat >>confdefs.h <<\_ACEOF
20571 #define __GNUWIN32__ 1
20572 _ACEOF
20573
20574     cat >>confdefs.h <<\_ACEOF
20575 #define STRICT 1
20576 _ACEOF
20577
20578 fi
20579 if test "$doesnt_want_win32" = 1 ; then
20580     USE_UNIX=1
20581     USE_WIN32=0
20582 fi
20583
20584 if test "$USE_UNIX" = 1 ; then
20585     wxUSE_UNIX=yes
20586     cat >>confdefs.h <<\_ACEOF
20587 #define __UNIX__ 1
20588 _ACEOF
20589
20590 fi
20591
20592 case "${host}" in
20593   *-pc-os2_emx | *-pc-os2-emx )
20594                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
20595                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
20596 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
20597 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
20598   echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600   ac_check_lib_save_LIBS=$LIBS
20601 LIBS="-lcExt  $LIBS"
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h.  */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h.  */
20608
20609 /* Override any GCC internal prototype to avoid an error.
20610    Use char because int might match the return type of a GCC
20611    builtin and then its argument prototype would still apply.  */
20612 #ifdef __cplusplus
20613 extern "C"
20614 #endif
20615 char drand48 ();
20616 int
20617 main ()
20618 {
20619 return drand48 ();
20620   ;
20621   return 0;
20622 }
20623 _ACEOF
20624 rm -f conftest.$ac_objext conftest$ac_exeext
20625 if { (ac_try="$ac_link"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_link") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && {
20638          test -z "$ac_c_werror_flag" ||
20639          test ! -s conftest.err
20640        } && test -s conftest$ac_exeext &&
20641        $as_test_x conftest$ac_exeext; then
20642   ac_cv_lib_cExt_drand48=yes
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         ac_cv_lib_cExt_drand48=no
20648 fi
20649
20650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20651       conftest$ac_exeext conftest.$ac_ext
20652 LIBS=$ac_check_lib_save_LIBS
20653 fi
20654 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
20655 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
20656 if test $ac_cv_lib_cExt_drand48 = yes; then
20657   LIBS="$LIBS -lcExt"
20658 fi
20659
20660       else
20661                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
20662       fi
20663                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
20664 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
20665 if test "${wx_cv_gccversion+set}" = set; then
20666   echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668
20669           if test "$cross_compiling" = yes; then
20670                 wx_cv_gccversion="EMX2"
20671
20672 else
20673   cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679
20680                   #include <stdio.h>
20681
20682                   int main()
20683                   {
20684                       FILE *f=fopen("conftestval", "w");
20685                       if (!f) exit(1);
20686                       fprintf(f,
20687                   #if (__GNUC__ < 3)
20688                               "EMX2"
20689                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
20690                               "EMX3"
20691                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
20692                               "Innotek5"
20693                   #else
20694                               "Innotek6"
20695                   #endif
20696                       );
20697                       exit(0);
20698                   }
20699
20700 _ACEOF
20701 rm -f conftest$ac_exeext
20702 if { (ac_try="$ac_link"
20703 case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_link") 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20712   { (case "(($ac_try" in
20713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714   *) ac_try_echo=$ac_try;;
20715 esac
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717   (eval "$ac_try") 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); }; }; then
20721   wx_cv_gccversion=`cat conftestval`
20722 else
20723   echo "$as_me: program exited with status $ac_status" >&5
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 ( exit $ac_status )
20728 wx_cv_gccversion="EMX2"
20729 fi
20730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20731 fi
20732
20733
20734
20735 fi
20736 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
20737 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
20738       if test "$wx_cv_gccversion" = "EMX2"; then
20739           LIBS="$LIBS -lstdcpp"
20740           LDFLAGS="$LDFLAGS -Zsysv-signals"
20741       else
20742           if test "$wx_cv_gccversion" = "EMX3"; then
20743               LIBS="$LIBS -lstdcxx -lgcc"
20744               LDFLAGS="$LDFLAGS -Zsysv-signals"
20745           else
20746               LIBS="$LIBS -lstdc++"
20747           fi
20748       fi
20749       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
20750         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
20751 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
20752         wxUSE_OMF=yes
20753         enable_omf=yes
20754       fi
20755         ;;
20756   *)
20757
20758       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20759 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20760 if test "${ac_cv_string_strcasecmp+set}" = set; then
20761   echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763
20764           cat >conftest.$ac_ext <<_ACEOF
20765 /* confdefs.h.  */
20766 _ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h.  */
20770
20771               #include <string.h>
20772
20773 int
20774 main ()
20775 {
20776
20777                   strcasecmp("foo", "bar");
20778
20779   ;
20780   return 0;
20781 }
20782 _ACEOF
20783 rm -f conftest.$ac_objext conftest$ac_exeext
20784 if { (ac_try="$ac_link"
20785 case "(($ac_try" in
20786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787   *) ac_try_echo=$ac_try;;
20788 esac
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790   (eval "$ac_link") 2>conftest.er1
20791   ac_status=$?
20792   grep -v '^ *+' conftest.er1 >conftest.err
20793   rm -f conftest.er1
20794   cat conftest.err >&5
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); } && {
20797          test -z "$ac_c_werror_flag" ||
20798          test ! -s conftest.err
20799        } && test -s conftest$ac_exeext &&
20800        $as_test_x conftest$ac_exeext; then
20801   ac_cv_string_strcasecmp=yes
20802 else
20803   echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20805
20806         ac_cv_string_strcasecmp=no
20807
20808 fi
20809
20810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20811       conftest$ac_exeext conftest.$ac_ext
20812
20813 fi
20814 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20815 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20816
20817       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20818           cat >>confdefs.h <<\_ACEOF
20819 #define HAVE_STRCASECMP_IN_STRING_H 1
20820 _ACEOF
20821
20822       else
20823           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20824 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20825 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20826   echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20828
20829               cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h.  */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h.  */
20835
20836                   #include <strings.h>
20837
20838 int
20839 main ()
20840 {
20841
20842                       strcasecmp("foo", "bar");
20843
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext conftest$ac_exeext
20849 if { (ac_try="$ac_link"
20850 case "(($ac_try" in
20851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852   *) ac_try_echo=$ac_try;;
20853 esac
20854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20855   (eval "$ac_link") 2>conftest.er1
20856   ac_status=$?
20857   grep -v '^ *+' conftest.er1 >conftest.err
20858   rm -f conftest.er1
20859   cat conftest.err >&5
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } && {
20862          test -z "$ac_c_werror_flag" ||
20863          test ! -s conftest.err
20864        } && test -s conftest$ac_exeext &&
20865        $as_test_x conftest$ac_exeext; then
20866   ac_cv_strings_strcasecmp=yes
20867 else
20868   echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871         ac_cv_strings_strcasecmp=no
20872
20873 fi
20874
20875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20876       conftest$ac_exeext conftest.$ac_ext
20877
20878 fi
20879 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20880 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20881
20882           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20883               cat >>confdefs.h <<\_ACEOF
20884 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20885 _ACEOF
20886
20887           else
20888               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20889 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20890    { (exit 1); exit 1; }; }
20891           fi
20892       fi
20893
20894         ;;
20895 esac
20896
20897
20898 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20899 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20900 if test "${ac_cv_header_stdc+set}" = set; then
20901   echo $ECHO_N "(cached) $ECHO_C" >&6
20902 else
20903   cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909 #include <stdlib.h>
20910 #include <stdarg.h>
20911 #include <string.h>
20912 #include <float.h>
20913
20914 int
20915 main ()
20916 {
20917
20918   ;
20919   return 0;
20920 }
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926   *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929   (eval "$ac_compile") 2>conftest.er1
20930   ac_status=$?
20931   grep -v '^ *+' conftest.er1 >conftest.err
20932   rm -f conftest.er1
20933   cat conftest.err >&5
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); } && {
20936          test -z "$ac_c_werror_flag" ||
20937          test ! -s conftest.err
20938        } && test -s conftest.$ac_objext; then
20939   ac_cv_header_stdc=yes
20940 else
20941   echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944         ac_cv_header_stdc=no
20945 fi
20946
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948
20949 if test $ac_cv_header_stdc = yes; then
20950   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20951   cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 #include <string.h>
20958
20959 _ACEOF
20960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20961   $EGREP "memchr" >/dev/null 2>&1; then
20962   :
20963 else
20964   ac_cv_header_stdc=no
20965 fi
20966 rm -f conftest*
20967
20968 fi
20969
20970 if test $ac_cv_header_stdc = yes; then
20971   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20972   cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h.  */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h.  */
20978 #include <stdlib.h>
20979
20980 _ACEOF
20981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20982   $EGREP "free" >/dev/null 2>&1; then
20983   :
20984 else
20985   ac_cv_header_stdc=no
20986 fi
20987 rm -f conftest*
20988
20989 fi
20990
20991 if test $ac_cv_header_stdc = yes; then
20992   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20993   if test "$cross_compiling" = yes; then
20994   :
20995 else
20996   cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002 #include <ctype.h>
21003 #include <stdlib.h>
21004 #if ((' ' & 0x0FF) == 0x020)
21005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21007 #else
21008 # define ISLOWER(c) \
21009                    (('a' <= (c) && (c) <= 'i') \
21010                      || ('j' <= (c) && (c) <= 'r') \
21011                      || ('s' <= (c) && (c) <= 'z'))
21012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21013 #endif
21014
21015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21016 int
21017 main ()
21018 {
21019   int i;
21020   for (i = 0; i < 256; i++)
21021     if (XOR (islower (i), ISLOWER (i))
21022         || toupper (i) != TOUPPER (i))
21023       return 2;
21024   return 0;
21025 }
21026 _ACEOF
21027 rm -f conftest$ac_exeext
21028 if { (ac_try="$ac_link"
21029 case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034   (eval "$ac_link") 2>&5
21035   ac_status=$?
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21038   { (case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_try") 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; }; then
21047   :
21048 else
21049   echo "$as_me: program exited with status $ac_status" >&5
21050 echo "$as_me: failed program was:" >&5
21051 sed 's/^/| /' conftest.$ac_ext >&5
21052
21053 ( exit $ac_status )
21054 ac_cv_header_stdc=no
21055 fi
21056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21057 fi
21058
21059
21060 fi
21061 fi
21062 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21063 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21064 if test $ac_cv_header_stdc = yes; then
21065
21066 cat >>confdefs.h <<\_ACEOF
21067 #define STDC_HEADERS 1
21068 _ACEOF
21069
21070 fi
21071
21072 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21083                   inttypes.h stdint.h unistd.h
21084 do
21085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21089   echo $ECHO_N "(cached) $ECHO_C" >&6
21090 else
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 $ac_includes_default
21098
21099 #include <$ac_header>
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_compile") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && {
21115          test -z "$ac_c_werror_flag" ||
21116          test ! -s conftest.err
21117        } && test -s conftest.$ac_objext; then
21118   eval "$as_ac_Header=yes"
21119 else
21120   echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123         eval "$as_ac_Header=no"
21124 fi
21125
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 fi
21128 ac_res=`eval echo '${'$as_ac_Header'}'`
21129                { echo "$as_me:$LINENO: result: $ac_res" >&5
21130 echo "${ECHO_T}$ac_res" >&6; }
21131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21132   cat >>confdefs.h <<_ACEOF
21133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21134 _ACEOF
21135
21136 fi
21137
21138 done
21139
21140
21141
21142
21143
21144
21145
21146
21147 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
21148 do
21149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21153   echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155   cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161 $ac_includes_default
21162
21163 #include <$ac_header>
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169   *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172   (eval "$ac_compile") 2>conftest.er1
21173   ac_status=$?
21174   grep -v '^ *+' conftest.er1 >conftest.err
21175   rm -f conftest.er1
21176   cat conftest.err >&5
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } && {
21179          test -z "$ac_c_werror_flag" ||
21180          test ! -s conftest.err
21181        } && test -s conftest.$ac_objext; then
21182   eval "$as_ac_Header=yes"
21183 else
21184   echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187         eval "$as_ac_Header=no"
21188 fi
21189
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191 fi
21192 ac_res=`eval echo '${'$as_ac_Header'}'`
21193                { echo "$as_me:$LINENO: result: $ac_res" >&5
21194 echo "${ECHO_T}$ac_res" >&6; }
21195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21196   cat >>confdefs.h <<_ACEOF
21197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21198 _ACEOF
21199
21200 fi
21201
21202 done
21203
21204
21205 if test "$ac_cv_header_wchar_h" != "yes"; then
21206     { echo "$as_me:$LINENO: checking for wcstr.h" >&5
21207 echo $ECHO_N "checking for wcstr.h... $ECHO_C" >&6; }
21208 if test "${ac_cv_header_wcstr_h+set}" = set; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211   cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217 $ac_includes_default
21218
21219 #include <wcstr.h>
21220 _ACEOF
21221 rm -f conftest.$ac_objext
21222 if { (ac_try="$ac_compile"
21223 case "(($ac_try" in
21224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225   *) ac_try_echo=$ac_try;;
21226 esac
21227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21228   (eval "$ac_compile") 2>conftest.er1
21229   ac_status=$?
21230   grep -v '^ *+' conftest.er1 >conftest.err
21231   rm -f conftest.er1
21232   cat conftest.err >&5
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } && {
21235          test -z "$ac_c_werror_flag" ||
21236          test ! -s conftest.err
21237        } && test -s conftest.$ac_objext; then
21238   ac_cv_header_wcstr_h=yes
21239 else
21240   echo "$as_me: failed program was:" >&5
21241 sed 's/^/| /' conftest.$ac_ext >&5
21242
21243         ac_cv_header_wcstr_h=no
21244 fi
21245
21246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21247 fi
21248 { echo "$as_me:$LINENO: result: $ac_cv_header_wcstr_h" >&5
21249 echo "${ECHO_T}$ac_cv_header_wcstr_h" >&6; }
21250
21251
21252 fi
21253
21254 case "${host}" in
21255   *-pc-os2_emx | *-pc-os2-emx )
21256                   if test $ac_cv_header_langinfo_h = "yes" \
21257                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21258                      -o "$wx_cv_gccversion" = "EMX3" \
21259                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21260           LIBS="$LIBS -lintl"
21261       fi
21262   ;;
21263 esac
21264
21265 if test "$USE_UNIX" = 1 ; then
21266     { echo "$as_me:$LINENO: checking for sys/select.h" >&5
21267 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
21268 if test "${ac_cv_header_sys_select_h+set}" = set; then
21269   echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271   cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277 $ac_includes_default
21278
21279 #include <sys/select.h>
21280 _ACEOF
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285   *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288   (eval "$ac_compile") 2>conftest.er1
21289   ac_status=$?
21290   grep -v '^ *+' conftest.er1 >conftest.err
21291   rm -f conftest.er1
21292   cat conftest.err >&5
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); } && {
21295          test -z "$ac_c_werror_flag" ||
21296          test ! -s conftest.err
21297        } && test -s conftest.$ac_objext; then
21298   ac_cv_header_sys_select_h=yes
21299 else
21300   echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303         ac_cv_header_sys_select_h=no
21304 fi
21305
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 fi
21308 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
21309 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
21310
21311
21312 fi
21313
21314
21315 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21316 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21317 if test "${ac_cv_c_const+set}" = set; then
21318   echo $ECHO_N "(cached) $ECHO_C" >&6
21319 else
21320   cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326
21327 int
21328 main ()
21329 {
21330 /* FIXME: Include the comments suggested by Paul. */
21331 #ifndef __cplusplus
21332   /* Ultrix mips cc rejects this.  */
21333   typedef int charset[2];
21334   const charset cs;
21335   /* SunOS 4.1.1 cc rejects this.  */
21336   char const *const *pcpcc;
21337   char **ppc;
21338   /* NEC SVR4.0.2 mips cc rejects this.  */
21339   struct point {int x, y;};
21340   static struct point const zero = {0,0};
21341   /* AIX XL C 1.02.0.0 rejects this.
21342      It does not let you subtract one const X* pointer from another in
21343      an arm of an if-expression whose if-part is not a constant
21344      expression */
21345   const char *g = "string";
21346   pcpcc = &g + (g ? g-g : 0);
21347   /* HPUX 7.0 cc rejects these. */
21348   ++pcpcc;
21349   ppc = (char**) pcpcc;
21350   pcpcc = (char const *const *) ppc;
21351   { /* SCO 3.2v4 cc rejects this.  */
21352     char *t;
21353     char const *s = 0 ? (char *) 0 : (char const *) 0;
21354
21355     *t++ = 0;
21356     if (s) return 0;
21357   }
21358   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21359     int x[] = {25, 17};
21360     const int *foo = &x[0];
21361     ++foo;
21362   }
21363   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21364     typedef const int *iptr;
21365     iptr p = 0;
21366     ++p;
21367   }
21368   { /* AIX XL C 1.02.0.0 rejects this saying
21369        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21370     struct s { int j; const int *ap[3]; };
21371     struct s *b; b->j = 5;
21372   }
21373   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21374     const int foo = 10;
21375     if (!foo) return 0;
21376   }
21377   return !cs[0] && !zero.x;
21378 #endif
21379
21380   ;
21381   return 0;
21382 }
21383 _ACEOF
21384 rm -f conftest.$ac_objext
21385 if { (ac_try="$ac_compile"
21386 case "(($ac_try" in
21387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388   *) ac_try_echo=$ac_try;;
21389 esac
21390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21391   (eval "$ac_compile") 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } && {
21398          test -z "$ac_c_werror_flag" ||
21399          test ! -s conftest.err
21400        } && test -s conftest.$ac_objext; then
21401   ac_cv_c_const=yes
21402 else
21403   echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406         ac_cv_c_const=no
21407 fi
21408
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 fi
21411 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21412 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21413 if test $ac_cv_c_const = no; then
21414
21415 cat >>confdefs.h <<\_ACEOF
21416 #define const
21417 _ACEOF
21418
21419 fi
21420
21421 { echo "$as_me:$LINENO: checking for inline" >&5
21422 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21423 if test "${ac_cv_c_inline+set}" = set; then
21424   echo $ECHO_N "(cached) $ECHO_C" >&6
21425 else
21426   ac_cv_c_inline=no
21427 for ac_kw in inline __inline__ __inline; do
21428   cat >conftest.$ac_ext <<_ACEOF
21429 /* confdefs.h.  */
21430 _ACEOF
21431 cat confdefs.h >>conftest.$ac_ext
21432 cat >>conftest.$ac_ext <<_ACEOF
21433 /* end confdefs.h.  */
21434 #ifndef __cplusplus
21435 typedef int foo_t;
21436 static $ac_kw foo_t static_foo () {return 0; }
21437 $ac_kw foo_t foo () {return 0; }
21438 #endif
21439
21440 _ACEOF
21441 rm -f conftest.$ac_objext
21442 if { (ac_try="$ac_compile"
21443 case "(($ac_try" in
21444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445   *) ac_try_echo=$ac_try;;
21446 esac
21447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21448   (eval "$ac_compile") 2>conftest.er1
21449   ac_status=$?
21450   grep -v '^ *+' conftest.er1 >conftest.err
21451   rm -f conftest.er1
21452   cat conftest.err >&5
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); } && {
21455          test -z "$ac_c_werror_flag" ||
21456          test ! -s conftest.err
21457        } && test -s conftest.$ac_objext; then
21458   ac_cv_c_inline=$ac_kw
21459 else
21460   echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.$ac_ext >&5
21462
21463
21464 fi
21465
21466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467   test "$ac_cv_c_inline" != no && break
21468 done
21469
21470 fi
21471 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21472 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21473
21474
21475 case $ac_cv_c_inline in
21476   inline | yes) ;;
21477   *)
21478     case $ac_cv_c_inline in
21479       no) ac_val=;;
21480       *) ac_val=$ac_cv_c_inline;;
21481     esac
21482     cat >>confdefs.h <<_ACEOF
21483 #ifndef __cplusplus
21484 #define inline $ac_val
21485 #endif
21486 _ACEOF
21487     ;;
21488 esac
21489
21490
21491 { echo "$as_me:$LINENO: checking for short" >&5
21492 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21493 if test "${ac_cv_type_short+set}" = set; then
21494   echo $ECHO_N "(cached) $ECHO_C" >&6
21495 else
21496   cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502 $ac_includes_default
21503 typedef short ac__type_new_;
21504 int
21505 main ()
21506 {
21507 if ((ac__type_new_ *) 0)
21508   return 0;
21509 if (sizeof (ac__type_new_))
21510   return 0;
21511   ;
21512   return 0;
21513 }
21514 _ACEOF
21515 rm -f conftest.$ac_objext
21516 if { (ac_try="$ac_compile"
21517 case "(($ac_try" in
21518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519   *) ac_try_echo=$ac_try;;
21520 esac
21521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21522   (eval "$ac_compile") 2>conftest.er1
21523   ac_status=$?
21524   grep -v '^ *+' conftest.er1 >conftest.err
21525   rm -f conftest.er1
21526   cat conftest.err >&5
21527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528   (exit $ac_status); } && {
21529          test -z "$ac_c_werror_flag" ||
21530          test ! -s conftest.err
21531        } && test -s conftest.$ac_objext; then
21532   ac_cv_type_short=yes
21533 else
21534   echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537         ac_cv_type_short=no
21538 fi
21539
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541 fi
21542 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21543 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21544
21545 # The cast to long int works around a bug in the HP C Compiler
21546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21548 # This bug is HP SR number 8606223364.
21549 { echo "$as_me:$LINENO: checking size of short" >&5
21550 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21551 if test "${ac_cv_sizeof_short+set}" = set; then
21552   echo $ECHO_N "(cached) $ECHO_C" >&6
21553 else
21554   if test "$cross_compiling" = yes; then
21555   # Depending upon the size, compute the lo and hi bounds.
21556 cat >conftest.$ac_ext <<_ACEOF
21557 /* confdefs.h.  */
21558 _ACEOF
21559 cat confdefs.h >>conftest.$ac_ext
21560 cat >>conftest.$ac_ext <<_ACEOF
21561 /* end confdefs.h.  */
21562 $ac_includes_default
21563    typedef short ac__type_sizeof_;
21564 int
21565 main ()
21566 {
21567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21568 test_array [0] = 0
21569
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 rm -f conftest.$ac_objext
21575 if { (ac_try="$ac_compile"
21576 case "(($ac_try" in
21577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578   *) ac_try_echo=$ac_try;;
21579 esac
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581   (eval "$ac_compile") 2>conftest.er1
21582   ac_status=$?
21583   grep -v '^ *+' conftest.er1 >conftest.err
21584   rm -f conftest.er1
21585   cat conftest.err >&5
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } && {
21588          test -z "$ac_c_werror_flag" ||
21589          test ! -s conftest.err
21590        } && test -s conftest.$ac_objext; then
21591   ac_lo=0 ac_mid=0
21592   while :; do
21593     cat >conftest.$ac_ext <<_ACEOF
21594 /* confdefs.h.  */
21595 _ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h.  */
21599 $ac_includes_default
21600    typedef short ac__type_sizeof_;
21601 int
21602 main ()
21603 {
21604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21605 test_array [0] = 0
21606
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615   *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618   (eval "$ac_compile") 2>conftest.er1
21619   ac_status=$?
21620   grep -v '^ *+' conftest.er1 >conftest.err
21621   rm -f conftest.er1
21622   cat conftest.err >&5
21623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624   (exit $ac_status); } && {
21625          test -z "$ac_c_werror_flag" ||
21626          test ! -s conftest.err
21627        } && test -s conftest.$ac_objext; then
21628   ac_hi=$ac_mid; break
21629 else
21630   echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633         ac_lo=`expr $ac_mid + 1`
21634                         if test $ac_lo -le $ac_mid; then
21635                           ac_lo= ac_hi=
21636                           break
21637                         fi
21638                         ac_mid=`expr 2 '*' $ac_mid + 1`
21639 fi
21640
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642   done
21643 else
21644   echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21646
21647         cat >conftest.$ac_ext <<_ACEOF
21648 /* confdefs.h.  */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h.  */
21653 $ac_includes_default
21654    typedef short ac__type_sizeof_;
21655 int
21656 main ()
21657 {
21658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21659 test_array [0] = 0
21660
21661   ;
21662   return 0;
21663 }
21664 _ACEOF
21665 rm -f conftest.$ac_objext
21666 if { (ac_try="$ac_compile"
21667 case "(($ac_try" in
21668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21669   *) ac_try_echo=$ac_try;;
21670 esac
21671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21672   (eval "$ac_compile") 2>conftest.er1
21673   ac_status=$?
21674   grep -v '^ *+' conftest.er1 >conftest.err
21675   rm -f conftest.er1
21676   cat conftest.err >&5
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); } && {
21679          test -z "$ac_c_werror_flag" ||
21680          test ! -s conftest.err
21681        } && test -s conftest.$ac_objext; then
21682   ac_hi=-1 ac_mid=-1
21683   while :; do
21684     cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690 $ac_includes_default
21691    typedef short ac__type_sizeof_;
21692 int
21693 main ()
21694 {
21695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21696 test_array [0] = 0
21697
21698   ;
21699   return 0;
21700 }
21701 _ACEOF
21702 rm -f conftest.$ac_objext
21703 if { (ac_try="$ac_compile"
21704 case "(($ac_try" in
21705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706   *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709   (eval "$ac_compile") 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } && {
21716          test -z "$ac_c_werror_flag" ||
21717          test ! -s conftest.err
21718        } && test -s conftest.$ac_objext; then
21719   ac_lo=$ac_mid; break
21720 else
21721   echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724         ac_hi=`expr '(' $ac_mid ')' - 1`
21725                         if test $ac_mid -le $ac_hi; then
21726                           ac_lo= ac_hi=
21727                           break
21728                         fi
21729                         ac_mid=`expr 2 '*' $ac_mid`
21730 fi
21731
21732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733   done
21734 else
21735   echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21737
21738         ac_lo= ac_hi=
21739 fi
21740
21741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742 fi
21743
21744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 # Binary search between lo and hi bounds.
21746 while test "x$ac_lo" != "x$ac_hi"; do
21747   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21748   cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h.  */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h.  */
21754 $ac_includes_default
21755    typedef short ac__type_sizeof_;
21756 int
21757 main ()
21758 {
21759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21760 test_array [0] = 0
21761
21762   ;
21763   return 0;
21764 }
21765 _ACEOF
21766 rm -f conftest.$ac_objext
21767 if { (ac_try="$ac_compile"
21768 case "(($ac_try" in
21769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21770   *) ac_try_echo=$ac_try;;
21771 esac
21772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21773   (eval "$ac_compile") 2>conftest.er1
21774   ac_status=$?
21775   grep -v '^ *+' conftest.er1 >conftest.err
21776   rm -f conftest.er1
21777   cat conftest.err >&5
21778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779   (exit $ac_status); } && {
21780          test -z "$ac_c_werror_flag" ||
21781          test ! -s conftest.err
21782        } && test -s conftest.$ac_objext; then
21783   ac_hi=$ac_mid
21784 else
21785   echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788         ac_lo=`expr '(' $ac_mid ')' + 1`
21789 fi
21790
21791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792 done
21793 case $ac_lo in
21794 ?*) ac_cv_sizeof_short=$ac_lo;;
21795 '') if test "$ac_cv_type_short" = yes; then
21796      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21797 See \`config.log' for more details." >&5
21798 echo "$as_me: error: cannot compute sizeof (short)
21799 See \`config.log' for more details." >&2;}
21800    { (exit 77); exit 77; }; }
21801    else
21802      ac_cv_sizeof_short=0
21803    fi ;;
21804 esac
21805 else
21806   cat >conftest.$ac_ext <<_ACEOF
21807 /* confdefs.h.  */
21808 _ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h.  */
21812 $ac_includes_default
21813    typedef short ac__type_sizeof_;
21814 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21815 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21816 #include <stdio.h>
21817 #include <stdlib.h>
21818 int
21819 main ()
21820 {
21821
21822   FILE *f = fopen ("conftest.val", "w");
21823   if (! f)
21824     return 1;
21825   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21826     {
21827       long int i = longval ();
21828       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21829         return 1;
21830       fprintf (f, "%ld\n", i);
21831     }
21832   else
21833     {
21834       unsigned long int i = ulongval ();
21835       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21836         return 1;
21837       fprintf (f, "%lu\n", i);
21838     }
21839   return ferror (f) || fclose (f) != 0;
21840
21841   ;
21842   return 0;
21843 }
21844 _ACEOF
21845 rm -f conftest$ac_exeext
21846 if { (ac_try="$ac_link"
21847 case "(($ac_try" in
21848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849   *) ac_try_echo=$ac_try;;
21850 esac
21851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21852   (eval "$ac_link") 2>&5
21853   ac_status=$?
21854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21856   { (case "(($ac_try" in
21857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858   *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861   (eval "$ac_try") 2>&5
21862   ac_status=$?
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); }; }; then
21865   ac_cv_sizeof_short=`cat conftest.val`
21866 else
21867   echo "$as_me: program exited with status $ac_status" >&5
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21870
21871 ( exit $ac_status )
21872 if test "$ac_cv_type_short" = yes; then
21873      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21874 See \`config.log' for more details." >&5
21875 echo "$as_me: error: cannot compute sizeof (short)
21876 See \`config.log' for more details." >&2;}
21877    { (exit 77); exit 77; }; }
21878    else
21879      ac_cv_sizeof_short=0
21880    fi
21881 fi
21882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21883 fi
21884 rm -f conftest.val
21885 fi
21886 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21887 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21888
21889
21890
21891 cat >>confdefs.h <<_ACEOF
21892 #define SIZEOF_SHORT $ac_cv_sizeof_short
21893 _ACEOF
21894
21895
21896 { echo "$as_me:$LINENO: checking for void *" >&5
21897 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21898 if test "${ac_cv_type_void_p+set}" = set; then
21899   echo $ECHO_N "(cached) $ECHO_C" >&6
21900 else
21901   cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h.  */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h.  */
21907 $ac_includes_default
21908 typedef void * ac__type_new_;
21909 int
21910 main ()
21911 {
21912 if ((ac__type_new_ *) 0)
21913   return 0;
21914 if (sizeof (ac__type_new_))
21915   return 0;
21916   ;
21917   return 0;
21918 }
21919 _ACEOF
21920 rm -f conftest.$ac_objext
21921 if { (ac_try="$ac_compile"
21922 case "(($ac_try" in
21923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924   *) ac_try_echo=$ac_try;;
21925 esac
21926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927   (eval "$ac_compile") 2>conftest.er1
21928   ac_status=$?
21929   grep -v '^ *+' conftest.er1 >conftest.err
21930   rm -f conftest.er1
21931   cat conftest.err >&5
21932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933   (exit $ac_status); } && {
21934          test -z "$ac_c_werror_flag" ||
21935          test ! -s conftest.err
21936        } && test -s conftest.$ac_objext; then
21937   ac_cv_type_void_p=yes
21938 else
21939   echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942         ac_cv_type_void_p=no
21943 fi
21944
21945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21946 fi
21947 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21948 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21949
21950 # The cast to long int works around a bug in the HP C Compiler
21951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21953 # This bug is HP SR number 8606223364.
21954 { echo "$as_me:$LINENO: checking size of void *" >&5
21955 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21956 if test "${ac_cv_sizeof_void_p+set}" = set; then
21957   echo $ECHO_N "(cached) $ECHO_C" >&6
21958 else
21959   if test "$cross_compiling" = yes; then
21960   # Depending upon the size, compute the lo and hi bounds.
21961 cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 $ac_includes_default
21968    typedef void * ac__type_sizeof_;
21969 int
21970 main ()
21971 {
21972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21973 test_array [0] = 0
21974
21975   ;
21976   return 0;
21977 }
21978 _ACEOF
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983   *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986   (eval "$ac_compile") 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } && {
21993          test -z "$ac_c_werror_flag" ||
21994          test ! -s conftest.err
21995        } && test -s conftest.$ac_objext; then
21996   ac_lo=0 ac_mid=0
21997   while :; do
21998     cat >conftest.$ac_ext <<_ACEOF
21999 /* confdefs.h.  */
22000 _ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h.  */
22004 $ac_includes_default
22005    typedef void * ac__type_sizeof_;
22006 int
22007 main ()
22008 {
22009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22010 test_array [0] = 0
22011
22012   ;
22013   return 0;
22014 }
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   ac_hi=$ac_mid; break
22034 else
22035   echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038         ac_lo=`expr $ac_mid + 1`
22039                         if test $ac_lo -le $ac_mid; then
22040                           ac_lo= ac_hi=
22041                           break
22042                         fi
22043                         ac_mid=`expr 2 '*' $ac_mid + 1`
22044 fi
22045
22046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22047   done
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052         cat >conftest.$ac_ext <<_ACEOF
22053 /* confdefs.h.  */
22054 _ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h.  */
22058 $ac_includes_default
22059    typedef void * ac__type_sizeof_;
22060 int
22061 main ()
22062 {
22063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22064 test_array [0] = 0
22065
22066   ;
22067   return 0;
22068 }
22069 _ACEOF
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074   *) ac_try_echo=$ac_try;;
22075 esac
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077   (eval "$ac_compile") 2>conftest.er1
22078   ac_status=$?
22079   grep -v '^ *+' conftest.er1 >conftest.err
22080   rm -f conftest.er1
22081   cat conftest.err >&5
22082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083   (exit $ac_status); } && {
22084          test -z "$ac_c_werror_flag" ||
22085          test ! -s conftest.err
22086        } && test -s conftest.$ac_objext; then
22087   ac_hi=-1 ac_mid=-1
22088   while :; do
22089     cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h.  */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h.  */
22095 $ac_includes_default
22096    typedef void * ac__type_sizeof_;
22097 int
22098 main ()
22099 {
22100 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22101 test_array [0] = 0
22102
22103   ;
22104   return 0;
22105 }
22106 _ACEOF
22107 rm -f conftest.$ac_objext
22108 if { (ac_try="$ac_compile"
22109 case "(($ac_try" in
22110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111   *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114   (eval "$ac_compile") 2>conftest.er1
22115   ac_status=$?
22116   grep -v '^ *+' conftest.er1 >conftest.err
22117   rm -f conftest.er1
22118   cat conftest.err >&5
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); } && {
22121          test -z "$ac_c_werror_flag" ||
22122          test ! -s conftest.err
22123        } && test -s conftest.$ac_objext; then
22124   ac_lo=$ac_mid; break
22125 else
22126   echo "$as_me: failed program was:" >&5
22127 sed 's/^/| /' conftest.$ac_ext >&5
22128
22129         ac_hi=`expr '(' $ac_mid ')' - 1`
22130                         if test $ac_mid -le $ac_hi; then
22131                           ac_lo= ac_hi=
22132                           break
22133                         fi
22134                         ac_mid=`expr 2 '*' $ac_mid`
22135 fi
22136
22137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22138   done
22139 else
22140   echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143         ac_lo= ac_hi=
22144 fi
22145
22146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22147 fi
22148
22149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150 # Binary search between lo and hi bounds.
22151 while test "x$ac_lo" != "x$ac_hi"; do
22152   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22153   cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h.  */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h.  */
22159 $ac_includes_default
22160    typedef void * ac__type_sizeof_;
22161 int
22162 main ()
22163 {
22164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22165 test_array [0] = 0
22166
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 rm -f conftest.$ac_objext
22172 if { (ac_try="$ac_compile"
22173 case "(($ac_try" in
22174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175   *) ac_try_echo=$ac_try;;
22176 esac
22177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22178   (eval "$ac_compile") 2>conftest.er1
22179   ac_status=$?
22180   grep -v '^ *+' conftest.er1 >conftest.err
22181   rm -f conftest.er1
22182   cat conftest.err >&5
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); } && {
22185          test -z "$ac_c_werror_flag" ||
22186          test ! -s conftest.err
22187        } && test -s conftest.$ac_objext; then
22188   ac_hi=$ac_mid
22189 else
22190   echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22192
22193         ac_lo=`expr '(' $ac_mid ')' + 1`
22194 fi
22195
22196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197 done
22198 case $ac_lo in
22199 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22200 '') if test "$ac_cv_type_void_p" = yes; then
22201      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22202 See \`config.log' for more details." >&5
22203 echo "$as_me: error: cannot compute sizeof (void *)
22204 See \`config.log' for more details." >&2;}
22205    { (exit 77); exit 77; }; }
22206    else
22207      ac_cv_sizeof_void_p=0
22208    fi ;;
22209 esac
22210 else
22211   cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h.  */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h.  */
22217 $ac_includes_default
22218    typedef void * ac__type_sizeof_;
22219 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22220 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22221 #include <stdio.h>
22222 #include <stdlib.h>
22223 int
22224 main ()
22225 {
22226
22227   FILE *f = fopen ("conftest.val", "w");
22228   if (! f)
22229     return 1;
22230   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22231     {
22232       long int i = longval ();
22233       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22234         return 1;
22235       fprintf (f, "%ld\n", i);
22236     }
22237   else
22238     {
22239       unsigned long int i = ulongval ();
22240       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22241         return 1;
22242       fprintf (f, "%lu\n", i);
22243     }
22244   return ferror (f) || fclose (f) != 0;
22245
22246   ;
22247   return 0;
22248 }
22249 _ACEOF
22250 rm -f conftest$ac_exeext
22251 if { (ac_try="$ac_link"
22252 case "(($ac_try" in
22253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254   *) ac_try_echo=$ac_try;;
22255 esac
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257   (eval "$ac_link") 2>&5
22258   ac_status=$?
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22261   { (case "(($ac_try" in
22262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263   *) ac_try_echo=$ac_try;;
22264 esac
22265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22266   (eval "$ac_try") 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; }; then
22270   ac_cv_sizeof_void_p=`cat conftest.val`
22271 else
22272   echo "$as_me: program exited with status $ac_status" >&5
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276 ( exit $ac_status )
22277 if test "$ac_cv_type_void_p" = yes; then
22278      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22279 See \`config.log' for more details." >&5
22280 echo "$as_me: error: cannot compute sizeof (void *)
22281 See \`config.log' for more details." >&2;}
22282    { (exit 77); exit 77; }; }
22283    else
22284      ac_cv_sizeof_void_p=0
22285    fi
22286 fi
22287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22288 fi
22289 rm -f conftest.val
22290 fi
22291 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22292 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22293
22294
22295
22296 cat >>confdefs.h <<_ACEOF
22297 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22298 _ACEOF
22299
22300
22301 { echo "$as_me:$LINENO: checking for int" >&5
22302 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22303 if test "${ac_cv_type_int+set}" = set; then
22304   echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306   cat >conftest.$ac_ext <<_ACEOF
22307 /* confdefs.h.  */
22308 _ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h.  */
22312 $ac_includes_default
22313 typedef int ac__type_new_;
22314 int
22315 main ()
22316 {
22317 if ((ac__type_new_ *) 0)
22318   return 0;
22319 if (sizeof (ac__type_new_))
22320   return 0;
22321   ;
22322   return 0;
22323 }
22324 _ACEOF
22325 rm -f conftest.$ac_objext
22326 if { (ac_try="$ac_compile"
22327 case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332   (eval "$ac_compile") 2>conftest.er1
22333   ac_status=$?
22334   grep -v '^ *+' conftest.er1 >conftest.err
22335   rm -f conftest.er1
22336   cat conftest.err >&5
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } && {
22339          test -z "$ac_c_werror_flag" ||
22340          test ! -s conftest.err
22341        } && test -s conftest.$ac_objext; then
22342   ac_cv_type_int=yes
22343 else
22344   echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22346
22347         ac_cv_type_int=no
22348 fi
22349
22350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22351 fi
22352 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22353 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22354
22355 # The cast to long int works around a bug in the HP C Compiler
22356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22358 # This bug is HP SR number 8606223364.
22359 { echo "$as_me:$LINENO: checking size of int" >&5
22360 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22361 if test "${ac_cv_sizeof_int+set}" = set; then
22362   echo $ECHO_N "(cached) $ECHO_C" >&6
22363 else
22364   if test "$cross_compiling" = yes; then
22365   # Depending upon the size, compute the lo and hi bounds.
22366 cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 $ac_includes_default
22373    typedef int ac__type_sizeof_;
22374 int
22375 main ()
22376 {
22377 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22378 test_array [0] = 0
22379
22380   ;
22381   return 0;
22382 }
22383 _ACEOF
22384 rm -f conftest.$ac_objext
22385 if { (ac_try="$ac_compile"
22386 case "(($ac_try" in
22387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388   *) ac_try_echo=$ac_try;;
22389 esac
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391   (eval "$ac_compile") 2>conftest.er1
22392   ac_status=$?
22393   grep -v '^ *+' conftest.er1 >conftest.err
22394   rm -f conftest.er1
22395   cat conftest.err >&5
22396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397   (exit $ac_status); } && {
22398          test -z "$ac_c_werror_flag" ||
22399          test ! -s conftest.err
22400        } && test -s conftest.$ac_objext; then
22401   ac_lo=0 ac_mid=0
22402   while :; do
22403     cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409 $ac_includes_default
22410    typedef int ac__type_sizeof_;
22411 int
22412 main ()
22413 {
22414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22415 test_array [0] = 0
22416
22417   ;
22418   return 0;
22419 }
22420 _ACEOF
22421 rm -f conftest.$ac_objext
22422 if { (ac_try="$ac_compile"
22423 case "(($ac_try" in
22424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425   *) ac_try_echo=$ac_try;;
22426 esac
22427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428   (eval "$ac_compile") 2>conftest.er1
22429   ac_status=$?
22430   grep -v '^ *+' conftest.er1 >conftest.err
22431   rm -f conftest.er1
22432   cat conftest.err >&5
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); } && {
22435          test -z "$ac_c_werror_flag" ||
22436          test ! -s conftest.err
22437        } && test -s conftest.$ac_objext; then
22438   ac_hi=$ac_mid; break
22439 else
22440   echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22442
22443         ac_lo=`expr $ac_mid + 1`
22444                         if test $ac_lo -le $ac_mid; then
22445                           ac_lo= ac_hi=
22446                           break
22447                         fi
22448                         ac_mid=`expr 2 '*' $ac_mid + 1`
22449 fi
22450
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452   done
22453 else
22454   echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457         cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 $ac_includes_default
22464    typedef int ac__type_sizeof_;
22465 int
22466 main ()
22467 {
22468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22469 test_array [0] = 0
22470
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (ac_try="$ac_compile"
22477 case "(($ac_try" in
22478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479   *) ac_try_echo=$ac_try;;
22480 esac
22481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22482   (eval "$ac_compile") 2>conftest.er1
22483   ac_status=$?
22484   grep -v '^ *+' conftest.er1 >conftest.err
22485   rm -f conftest.er1
22486   cat conftest.err >&5
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); } && {
22489          test -z "$ac_c_werror_flag" ||
22490          test ! -s conftest.err
22491        } && test -s conftest.$ac_objext; then
22492   ac_hi=-1 ac_mid=-1
22493   while :; do
22494     cat >conftest.$ac_ext <<_ACEOF
22495 /* confdefs.h.  */
22496 _ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h.  */
22500 $ac_includes_default
22501    typedef int ac__type_sizeof_;
22502 int
22503 main ()
22504 {
22505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22506 test_array [0] = 0
22507
22508   ;
22509   return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
22514 case "(($ac_try" in
22515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516   *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519   (eval "$ac_compile") 2>conftest.er1
22520   ac_status=$?
22521   grep -v '^ *+' conftest.er1 >conftest.err
22522   rm -f conftest.er1
22523   cat conftest.err >&5
22524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525   (exit $ac_status); } && {
22526          test -z "$ac_c_werror_flag" ||
22527          test ! -s conftest.err
22528        } && test -s conftest.$ac_objext; then
22529   ac_lo=$ac_mid; break
22530 else
22531   echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22533
22534         ac_hi=`expr '(' $ac_mid ')' - 1`
22535                         if test $ac_mid -le $ac_hi; then
22536                           ac_lo= ac_hi=
22537                           break
22538                         fi
22539                         ac_mid=`expr 2 '*' $ac_mid`
22540 fi
22541
22542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22543   done
22544 else
22545   echo "$as_me: failed program was:" >&5
22546 sed 's/^/| /' conftest.$ac_ext >&5
22547
22548         ac_lo= ac_hi=
22549 fi
22550
22551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22552 fi
22553
22554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22555 # Binary search between lo and hi bounds.
22556 while test "x$ac_lo" != "x$ac_hi"; do
22557   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22558   cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h.  */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h.  */
22564 $ac_includes_default
22565    typedef int ac__type_sizeof_;
22566 int
22567 main ()
22568 {
22569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22570 test_array [0] = 0
22571
22572   ;
22573   return 0;
22574 }
22575 _ACEOF
22576 rm -f conftest.$ac_objext
22577 if { (ac_try="$ac_compile"
22578 case "(($ac_try" in
22579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580   *) ac_try_echo=$ac_try;;
22581 esac
22582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22583   (eval "$ac_compile") 2>conftest.er1
22584   ac_status=$?
22585   grep -v '^ *+' conftest.er1 >conftest.err
22586   rm -f conftest.er1
22587   cat conftest.err >&5
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); } && {
22590          test -z "$ac_c_werror_flag" ||
22591          test ! -s conftest.err
22592        } && test -s conftest.$ac_objext; then
22593   ac_hi=$ac_mid
22594 else
22595   echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22597
22598         ac_lo=`expr '(' $ac_mid ')' + 1`
22599 fi
22600
22601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22602 done
22603 case $ac_lo in
22604 ?*) ac_cv_sizeof_int=$ac_lo;;
22605 '') if test "$ac_cv_type_int" = yes; then
22606      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22607 See \`config.log' for more details." >&5
22608 echo "$as_me: error: cannot compute sizeof (int)
22609 See \`config.log' for more details." >&2;}
22610    { (exit 77); exit 77; }; }
22611    else
22612      ac_cv_sizeof_int=0
22613    fi ;;
22614 esac
22615 else
22616   cat >conftest.$ac_ext <<_ACEOF
22617 /* confdefs.h.  */
22618 _ACEOF
22619 cat confdefs.h >>conftest.$ac_ext
22620 cat >>conftest.$ac_ext <<_ACEOF
22621 /* end confdefs.h.  */
22622 $ac_includes_default
22623    typedef int ac__type_sizeof_;
22624 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22625 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22626 #include <stdio.h>
22627 #include <stdlib.h>
22628 int
22629 main ()
22630 {
22631
22632   FILE *f = fopen ("conftest.val", "w");
22633   if (! f)
22634     return 1;
22635   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22636     {
22637       long int i = longval ();
22638       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22639         return 1;
22640       fprintf (f, "%ld\n", i);
22641     }
22642   else
22643     {
22644       unsigned long int i = ulongval ();
22645       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22646         return 1;
22647       fprintf (f, "%lu\n", i);
22648     }
22649   return ferror (f) || fclose (f) != 0;
22650
22651   ;
22652   return 0;
22653 }
22654 _ACEOF
22655 rm -f conftest$ac_exeext
22656 if { (ac_try="$ac_link"
22657 case "(($ac_try" in
22658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659   *) ac_try_echo=$ac_try;;
22660 esac
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662   (eval "$ac_link") 2>&5
22663   ac_status=$?
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22666   { (case "(($ac_try" in
22667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668   *) ac_try_echo=$ac_try;;
22669 esac
22670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22671   (eval "$ac_try") 2>&5
22672   ac_status=$?
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); }; }; then
22675   ac_cv_sizeof_int=`cat conftest.val`
22676 else
22677   echo "$as_me: program exited with status $ac_status" >&5
22678 echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22680
22681 ( exit $ac_status )
22682 if test "$ac_cv_type_int" = yes; then
22683      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22684 See \`config.log' for more details." >&5
22685 echo "$as_me: error: cannot compute sizeof (int)
22686 See \`config.log' for more details." >&2;}
22687    { (exit 77); exit 77; }; }
22688    else
22689      ac_cv_sizeof_int=0
22690    fi
22691 fi
22692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22693 fi
22694 rm -f conftest.val
22695 fi
22696 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22697 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22698
22699
22700
22701 cat >>confdefs.h <<_ACEOF
22702 #define SIZEOF_INT $ac_cv_sizeof_int
22703 _ACEOF
22704
22705
22706 { echo "$as_me:$LINENO: checking for long" >&5
22707 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22708 if test "${ac_cv_type_long+set}" = set; then
22709   echo $ECHO_N "(cached) $ECHO_C" >&6
22710 else
22711   cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h.  */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h.  */
22717 $ac_includes_default
22718 typedef long ac__type_new_;
22719 int
22720 main ()
22721 {
22722 if ((ac__type_new_ *) 0)
22723   return 0;
22724 if (sizeof (ac__type_new_))
22725   return 0;
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734   *) ac_try_echo=$ac_try;;
22735 esac
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737   (eval "$ac_compile") 2>conftest.er1
22738   ac_status=$?
22739   grep -v '^ *+' conftest.er1 >conftest.err
22740   rm -f conftest.er1
22741   cat conftest.err >&5
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); } && {
22744          test -z "$ac_c_werror_flag" ||
22745          test ! -s conftest.err
22746        } && test -s conftest.$ac_objext; then
22747   ac_cv_type_long=yes
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752         ac_cv_type_long=no
22753 fi
22754
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 fi
22757 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22758 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22759
22760 # The cast to long int works around a bug in the HP C Compiler
22761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22763 # This bug is HP SR number 8606223364.
22764 { echo "$as_me:$LINENO: checking size of long" >&5
22765 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22766 if test "${ac_cv_sizeof_long+set}" = set; then
22767   echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769   if test "$cross_compiling" = yes; then
22770   # Depending upon the size, compute the lo and hi bounds.
22771 cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h.  */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h.  */
22777 $ac_includes_default
22778    typedef long ac__type_sizeof_;
22779 int
22780 main ()
22781 {
22782 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22783 test_array [0] = 0
22784
22785   ;
22786   return 0;
22787 }
22788 _ACEOF
22789 rm -f conftest.$ac_objext
22790 if { (ac_try="$ac_compile"
22791 case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796   (eval "$ac_compile") 2>conftest.er1
22797   ac_status=$?
22798   grep -v '^ *+' conftest.er1 >conftest.err
22799   rm -f conftest.er1
22800   cat conftest.err >&5
22801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802   (exit $ac_status); } && {
22803          test -z "$ac_c_werror_flag" ||
22804          test ! -s conftest.err
22805        } && test -s conftest.$ac_objext; then
22806   ac_lo=0 ac_mid=0
22807   while :; do
22808     cat >conftest.$ac_ext <<_ACEOF
22809 /* confdefs.h.  */
22810 _ACEOF
22811 cat confdefs.h >>conftest.$ac_ext
22812 cat >>conftest.$ac_ext <<_ACEOF
22813 /* end confdefs.h.  */
22814 $ac_includes_default
22815    typedef long ac__type_sizeof_;
22816 int
22817 main ()
22818 {
22819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22820 test_array [0] = 0
22821
22822   ;
22823   return 0;
22824 }
22825 _ACEOF
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830   *) ac_try_echo=$ac_try;;
22831 esac
22832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22833   (eval "$ac_compile") 2>conftest.er1
22834   ac_status=$?
22835   grep -v '^ *+' conftest.er1 >conftest.err
22836   rm -f conftest.er1
22837   cat conftest.err >&5
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); } && {
22840          test -z "$ac_c_werror_flag" ||
22841          test ! -s conftest.err
22842        } && test -s conftest.$ac_objext; then
22843   ac_hi=$ac_mid; break
22844 else
22845   echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22847
22848         ac_lo=`expr $ac_mid + 1`
22849                         if test $ac_lo -le $ac_mid; then
22850                           ac_lo= ac_hi=
22851                           break
22852                         fi
22853                         ac_mid=`expr 2 '*' $ac_mid + 1`
22854 fi
22855
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857   done
22858 else
22859   echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22861
22862         cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868 $ac_includes_default
22869    typedef long ac__type_sizeof_;
22870 int
22871 main ()
22872 {
22873 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22874 test_array [0] = 0
22875
22876   ;
22877   return 0;
22878 }
22879 _ACEOF
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884   *) ac_try_echo=$ac_try;;
22885 esac
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887   (eval "$ac_compile") 2>conftest.er1
22888   ac_status=$?
22889   grep -v '^ *+' conftest.er1 >conftest.err
22890   rm -f conftest.er1
22891   cat conftest.err >&5
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } && {
22894          test -z "$ac_c_werror_flag" ||
22895          test ! -s conftest.err
22896        } && test -s conftest.$ac_objext; then
22897   ac_hi=-1 ac_mid=-1
22898   while :; do
22899     cat >conftest.$ac_ext <<_ACEOF
22900 /* confdefs.h.  */
22901 _ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h.  */
22905 $ac_includes_default
22906    typedef long ac__type_sizeof_;
22907 int
22908 main ()
22909 {
22910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22911 test_array [0] = 0
22912
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 rm -f conftest.$ac_objext
22918 if { (ac_try="$ac_compile"
22919 case "(($ac_try" in
22920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921   *) ac_try_echo=$ac_try;;
22922 esac
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924   (eval "$ac_compile") 2>conftest.er1
22925   ac_status=$?
22926   grep -v '^ *+' conftest.er1 >conftest.err
22927   rm -f conftest.er1
22928   cat conftest.err >&5
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } && {
22931          test -z "$ac_c_werror_flag" ||
22932          test ! -s conftest.err
22933        } && test -s conftest.$ac_objext; then
22934   ac_lo=$ac_mid; break
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939         ac_hi=`expr '(' $ac_mid ')' - 1`
22940                         if test $ac_mid -le $ac_hi; then
22941                           ac_lo= ac_hi=
22942                           break
22943                         fi
22944                         ac_mid=`expr 2 '*' $ac_mid`
22945 fi
22946
22947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22948   done
22949 else
22950   echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22952
22953         ac_lo= ac_hi=
22954 fi
22955
22956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22957 fi
22958
22959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22960 # Binary search between lo and hi bounds.
22961 while test "x$ac_lo" != "x$ac_hi"; do
22962   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22963   cat >conftest.$ac_ext <<_ACEOF
22964 /* confdefs.h.  */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h.  */
22969 $ac_includes_default
22970    typedef long ac__type_sizeof_;
22971 int
22972 main ()
22973 {
22974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22975 test_array [0] = 0
22976
22977   ;
22978   return 0;
22979 }
22980 _ACEOF
22981 rm -f conftest.$ac_objext
22982 if { (ac_try="$ac_compile"
22983 case "(($ac_try" in
22984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985   *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988   (eval "$ac_compile") 2>conftest.er1
22989   ac_status=$?
22990   grep -v '^ *+' conftest.er1 >conftest.err
22991   rm -f conftest.er1
22992   cat conftest.err >&5
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); } && {
22995          test -z "$ac_c_werror_flag" ||
22996          test ! -s conftest.err
22997        } && test -s conftest.$ac_objext; then
22998   ac_hi=$ac_mid
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003         ac_lo=`expr '(' $ac_mid ')' + 1`
23004 fi
23005
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007 done
23008 case $ac_lo in
23009 ?*) ac_cv_sizeof_long=$ac_lo;;
23010 '') if test "$ac_cv_type_long" = yes; then
23011      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23012 See \`config.log' for more details." >&5
23013 echo "$as_me: error: cannot compute sizeof (long)
23014 See \`config.log' for more details." >&2;}
23015    { (exit 77); exit 77; }; }
23016    else
23017      ac_cv_sizeof_long=0
23018    fi ;;
23019 esac
23020 else
23021   cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h.  */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h.  */
23027 $ac_includes_default
23028    typedef long ac__type_sizeof_;
23029 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23030 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23031 #include <stdio.h>
23032 #include <stdlib.h>
23033 int
23034 main ()
23035 {
23036
23037   FILE *f = fopen ("conftest.val", "w");
23038   if (! f)
23039     return 1;
23040   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23041     {
23042       long int i = longval ();
23043       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23044         return 1;
23045       fprintf (f, "%ld\n", i);
23046     }
23047   else
23048     {
23049       unsigned long int i = ulongval ();
23050       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23051         return 1;
23052       fprintf (f, "%lu\n", i);
23053     }
23054   return ferror (f) || fclose (f) != 0;
23055
23056   ;
23057   return 0;
23058 }
23059 _ACEOF
23060 rm -f conftest$ac_exeext
23061 if { (ac_try="$ac_link"
23062 case "(($ac_try" in
23063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064   *) ac_try_echo=$ac_try;;
23065 esac
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067   (eval "$ac_link") 2>&5
23068   ac_status=$?
23069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23071   { (case "(($ac_try" in
23072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073   *) ac_try_echo=$ac_try;;
23074 esac
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076   (eval "$ac_try") 2>&5
23077   ac_status=$?
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); }; }; then
23080   ac_cv_sizeof_long=`cat conftest.val`
23081 else
23082   echo "$as_me: program exited with status $ac_status" >&5
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23085
23086 ( exit $ac_status )
23087 if test "$ac_cv_type_long" = yes; then
23088      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23089 See \`config.log' for more details." >&5
23090 echo "$as_me: error: cannot compute sizeof (long)
23091 See \`config.log' for more details." >&2;}
23092    { (exit 77); exit 77; }; }
23093    else
23094      ac_cv_sizeof_long=0
23095    fi
23096 fi
23097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23098 fi
23099 rm -f conftest.val
23100 fi
23101 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23102 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23103
23104
23105
23106 cat >>confdefs.h <<_ACEOF
23107 #define SIZEOF_LONG $ac_cv_sizeof_long
23108 _ACEOF
23109
23110
23111 { echo "$as_me:$LINENO: checking for size_t" >&5
23112 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23113 if test "${ac_cv_type_size_t+set}" = set; then
23114   echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116   cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h.  */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h.  */
23122 $ac_includes_default
23123 typedef size_t ac__type_new_;
23124 int
23125 main ()
23126 {
23127 if ((ac__type_new_ *) 0)
23128   return 0;
23129 if (sizeof (ac__type_new_))
23130   return 0;
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 rm -f conftest.$ac_objext
23136 if { (ac_try="$ac_compile"
23137 case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_compile") 2>conftest.er1
23143   ac_status=$?
23144   grep -v '^ *+' conftest.er1 >conftest.err
23145   rm -f conftest.er1
23146   cat conftest.err >&5
23147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } && {
23149          test -z "$ac_c_werror_flag" ||
23150          test ! -s conftest.err
23151        } && test -s conftest.$ac_objext; then
23152   ac_cv_type_size_t=yes
23153 else
23154   echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23156
23157         ac_cv_type_size_t=no
23158 fi
23159
23160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 fi
23162 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23163 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23164
23165 # The cast to long int works around a bug in the HP C Compiler
23166 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23167 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23168 # This bug is HP SR number 8606223364.
23169 { echo "$as_me:$LINENO: checking size of size_t" >&5
23170 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23171 if test "${ac_cv_sizeof_size_t+set}" = set; then
23172   echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174   if test "$cross_compiling" = yes; then
23175   # Depending upon the size, compute the lo and hi bounds.
23176 cat >conftest.$ac_ext <<_ACEOF
23177 /* confdefs.h.  */
23178 _ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h.  */
23182 $ac_includes_default
23183    typedef size_t ac__type_sizeof_;
23184 int
23185 main ()
23186 {
23187 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23188 test_array [0] = 0
23189
23190   ;
23191   return 0;
23192 }
23193 _ACEOF
23194 rm -f conftest.$ac_objext
23195 if { (ac_try="$ac_compile"
23196 case "(($ac_try" in
23197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198   *) ac_try_echo=$ac_try;;
23199 esac
23200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201   (eval "$ac_compile") 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } && {
23208          test -z "$ac_c_werror_flag" ||
23209          test ! -s conftest.err
23210        } && test -s conftest.$ac_objext; then
23211   ac_lo=0 ac_mid=0
23212   while :; do
23213     cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h.  */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h.  */
23219 $ac_includes_default
23220    typedef size_t ac__type_sizeof_;
23221 int
23222 main ()
23223 {
23224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23225 test_array [0] = 0
23226
23227   ;
23228   return 0;
23229 }
23230 _ACEOF
23231 rm -f conftest.$ac_objext
23232 if { (ac_try="$ac_compile"
23233 case "(($ac_try" in
23234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235   *) ac_try_echo=$ac_try;;
23236 esac
23237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23238   (eval "$ac_compile") 2>conftest.er1
23239   ac_status=$?
23240   grep -v '^ *+' conftest.er1 >conftest.err
23241   rm -f conftest.er1
23242   cat conftest.err >&5
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); } && {
23245          test -z "$ac_c_werror_flag" ||
23246          test ! -s conftest.err
23247        } && test -s conftest.$ac_objext; then
23248   ac_hi=$ac_mid; break
23249 else
23250   echo "$as_me: failed program was:" >&5
23251 sed 's/^/| /' conftest.$ac_ext >&5
23252
23253         ac_lo=`expr $ac_mid + 1`
23254                         if test $ac_lo -le $ac_mid; then
23255                           ac_lo= ac_hi=
23256                           break
23257                         fi
23258                         ac_mid=`expr 2 '*' $ac_mid + 1`
23259 fi
23260
23261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262   done
23263 else
23264   echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23266
23267         cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h.  */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h.  */
23273 $ac_includes_default
23274    typedef size_t ac__type_sizeof_;
23275 int
23276 main ()
23277 {
23278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23279 test_array [0] = 0
23280
23281   ;
23282   return 0;
23283 }
23284 _ACEOF
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289   *) ac_try_echo=$ac_try;;
23290 esac
23291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23292   (eval "$ac_compile") 2>conftest.er1
23293   ac_status=$?
23294   grep -v '^ *+' conftest.er1 >conftest.err
23295   rm -f conftest.er1
23296   cat conftest.err >&5
23297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); } && {
23299          test -z "$ac_c_werror_flag" ||
23300          test ! -s conftest.err
23301        } && test -s conftest.$ac_objext; then
23302   ac_hi=-1 ac_mid=-1
23303   while :; do
23304     cat >conftest.$ac_ext <<_ACEOF
23305 /* confdefs.h.  */
23306 _ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h.  */
23310 $ac_includes_default
23311    typedef size_t ac__type_sizeof_;
23312 int
23313 main ()
23314 {
23315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23316 test_array [0] = 0
23317
23318   ;
23319   return 0;
23320 }
23321 _ACEOF
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326   *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329   (eval "$ac_compile") 2>conftest.er1
23330   ac_status=$?
23331   grep -v '^ *+' conftest.er1 >conftest.err
23332   rm -f conftest.er1
23333   cat conftest.err >&5
23334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335   (exit $ac_status); } && {
23336          test -z "$ac_c_werror_flag" ||
23337          test ! -s conftest.err
23338        } && test -s conftest.$ac_objext; then
23339   ac_lo=$ac_mid; break
23340 else
23341   echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23343
23344         ac_hi=`expr '(' $ac_mid ')' - 1`
23345                         if test $ac_mid -le $ac_hi; then
23346                           ac_lo= ac_hi=
23347                           break
23348                         fi
23349                         ac_mid=`expr 2 '*' $ac_mid`
23350 fi
23351
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353   done
23354 else
23355   echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23357
23358         ac_lo= ac_hi=
23359 fi
23360
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23362 fi
23363
23364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365 # Binary search between lo and hi bounds.
23366 while test "x$ac_lo" != "x$ac_hi"; do
23367   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23368   cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374 $ac_includes_default
23375    typedef size_t ac__type_sizeof_;
23376 int
23377 main ()
23378 {
23379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23380 test_array [0] = 0
23381
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393   (eval "$ac_compile") 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } && {
23400          test -z "$ac_c_werror_flag" ||
23401          test ! -s conftest.err
23402        } && test -s conftest.$ac_objext; then
23403   ac_hi=$ac_mid
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408         ac_lo=`expr '(' $ac_mid ')' + 1`
23409 fi
23410
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23412 done
23413 case $ac_lo in
23414 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23415 '') if test "$ac_cv_type_size_t" = yes; then
23416      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23417 See \`config.log' for more details." >&5
23418 echo "$as_me: error: cannot compute sizeof (size_t)
23419 See \`config.log' for more details." >&2;}
23420    { (exit 77); exit 77; }; }
23421    else
23422      ac_cv_sizeof_size_t=0
23423    fi ;;
23424 esac
23425 else
23426   cat >conftest.$ac_ext <<_ACEOF
23427 /* confdefs.h.  */
23428 _ACEOF
23429 cat confdefs.h >>conftest.$ac_ext
23430 cat >>conftest.$ac_ext <<_ACEOF
23431 /* end confdefs.h.  */
23432 $ac_includes_default
23433    typedef size_t ac__type_sizeof_;
23434 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23435 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23436 #include <stdio.h>
23437 #include <stdlib.h>
23438 int
23439 main ()
23440 {
23441
23442   FILE *f = fopen ("conftest.val", "w");
23443   if (! f)
23444     return 1;
23445   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23446     {
23447       long int i = longval ();
23448       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23449         return 1;
23450       fprintf (f, "%ld\n", i);
23451     }
23452   else
23453     {
23454       unsigned long int i = ulongval ();
23455       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23456         return 1;
23457       fprintf (f, "%lu\n", i);
23458     }
23459   return ferror (f) || fclose (f) != 0;
23460
23461   ;
23462   return 0;
23463 }
23464 _ACEOF
23465 rm -f conftest$ac_exeext
23466 if { (ac_try="$ac_link"
23467 case "(($ac_try" in
23468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23469   *) ac_try_echo=$ac_try;;
23470 esac
23471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23472   (eval "$ac_link") 2>&5
23473   ac_status=$?
23474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23476   { (case "(($ac_try" in
23477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478   *) ac_try_echo=$ac_try;;
23479 esac
23480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481   (eval "$ac_try") 2>&5
23482   ac_status=$?
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); }; }; then
23485   ac_cv_sizeof_size_t=`cat conftest.val`
23486 else
23487   echo "$as_me: program exited with status $ac_status" >&5
23488 echo "$as_me: failed program was:" >&5
23489 sed 's/^/| /' conftest.$ac_ext >&5
23490
23491 ( exit $ac_status )
23492 if test "$ac_cv_type_size_t" = yes; then
23493      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23494 See \`config.log' for more details." >&5
23495 echo "$as_me: error: cannot compute sizeof (size_t)
23496 See \`config.log' for more details." >&2;}
23497    { (exit 77); exit 77; }; }
23498    else
23499      ac_cv_sizeof_size_t=0
23500    fi
23501 fi
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23503 fi
23504 rm -f conftest.val
23505 fi
23506 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23507 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23508
23509
23510
23511 cat >>confdefs.h <<_ACEOF
23512 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23513 _ACEOF
23514
23515
23516
23517 case "${host}" in
23518     arm-*-linux* )
23519         { echo "$as_me:$LINENO: checking for long long" >&5
23520 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23521 if test "${ac_cv_type_long_long+set}" = set; then
23522   echo $ECHO_N "(cached) $ECHO_C" >&6
23523 else
23524   cat >conftest.$ac_ext <<_ACEOF
23525 /* confdefs.h.  */
23526 _ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h.  */
23530 $ac_includes_default
23531 typedef long long ac__type_new_;
23532 int
23533 main ()
23534 {
23535 if ((ac__type_new_ *) 0)
23536   return 0;
23537 if (sizeof (ac__type_new_))
23538   return 0;
23539   ;
23540   return 0;
23541 }
23542 _ACEOF
23543 rm -f conftest.$ac_objext
23544 if { (ac_try="$ac_compile"
23545 case "(($ac_try" in
23546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547   *) ac_try_echo=$ac_try;;
23548 esac
23549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23550   (eval "$ac_compile") 2>conftest.er1
23551   ac_status=$?
23552   grep -v '^ *+' conftest.er1 >conftest.err
23553   rm -f conftest.er1
23554   cat conftest.err >&5
23555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556   (exit $ac_status); } && {
23557          test -z "$ac_c_werror_flag" ||
23558          test ! -s conftest.err
23559        } && test -s conftest.$ac_objext; then
23560   ac_cv_type_long_long=yes
23561 else
23562   echo "$as_me: failed program was:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23564
23565         ac_cv_type_long_long=no
23566 fi
23567
23568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 fi
23570 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23571 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23572
23573 # The cast to long int works around a bug in the HP C Compiler
23574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23576 # This bug is HP SR number 8606223364.
23577 { echo "$as_me:$LINENO: checking size of long long" >&5
23578 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23579 if test "${ac_cv_sizeof_long_long+set}" = set; then
23580   echo $ECHO_N "(cached) $ECHO_C" >&6
23581 else
23582   if test "$cross_compiling" = yes; then
23583   # Depending upon the size, compute the lo and hi bounds.
23584 cat >conftest.$ac_ext <<_ACEOF
23585 /* confdefs.h.  */
23586 _ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h.  */
23590 $ac_includes_default
23591    typedef long long ac__type_sizeof_;
23592 int
23593 main ()
23594 {
23595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23596 test_array [0] = 0
23597
23598   ;
23599   return 0;
23600 }
23601 _ACEOF
23602 rm -f conftest.$ac_objext
23603 if { (ac_try="$ac_compile"
23604 case "(($ac_try" in
23605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606   *) ac_try_echo=$ac_try;;
23607 esac
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609   (eval "$ac_compile") 2>conftest.er1
23610   ac_status=$?
23611   grep -v '^ *+' conftest.er1 >conftest.err
23612   rm -f conftest.er1
23613   cat conftest.err >&5
23614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); } && {
23616          test -z "$ac_c_werror_flag" ||
23617          test ! -s conftest.err
23618        } && test -s conftest.$ac_objext; then
23619   ac_lo=0 ac_mid=0
23620   while :; do
23621     cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h.  */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h.  */
23627 $ac_includes_default
23628    typedef long long ac__type_sizeof_;
23629 int
23630 main ()
23631 {
23632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23633 test_array [0] = 0
23634
23635   ;
23636   return 0;
23637 }
23638 _ACEOF
23639 rm -f conftest.$ac_objext
23640 if { (ac_try="$ac_compile"
23641 case "(($ac_try" in
23642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23643   *) ac_try_echo=$ac_try;;
23644 esac
23645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23646   (eval "$ac_compile") 2>conftest.er1
23647   ac_status=$?
23648   grep -v '^ *+' conftest.er1 >conftest.err
23649   rm -f conftest.er1
23650   cat conftest.err >&5
23651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652   (exit $ac_status); } && {
23653          test -z "$ac_c_werror_flag" ||
23654          test ! -s conftest.err
23655        } && test -s conftest.$ac_objext; then
23656   ac_hi=$ac_mid; break
23657 else
23658   echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23660
23661         ac_lo=`expr $ac_mid + 1`
23662                         if test $ac_lo -le $ac_mid; then
23663                           ac_lo= ac_hi=
23664                           break
23665                         fi
23666                         ac_mid=`expr 2 '*' $ac_mid + 1`
23667 fi
23668
23669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23670   done
23671 else
23672   echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23674
23675         cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h.  */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h.  */
23681 $ac_includes_default
23682    typedef long long ac__type_sizeof_;
23683 int
23684 main ()
23685 {
23686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23687 test_array [0] = 0
23688
23689   ;
23690   return 0;
23691 }
23692 _ACEOF
23693 rm -f conftest.$ac_objext
23694 if { (ac_try="$ac_compile"
23695 case "(($ac_try" in
23696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697   *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700   (eval "$ac_compile") 2>conftest.er1
23701   ac_status=$?
23702   grep -v '^ *+' conftest.er1 >conftest.err
23703   rm -f conftest.er1
23704   cat conftest.err >&5
23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); } && {
23707          test -z "$ac_c_werror_flag" ||
23708          test ! -s conftest.err
23709        } && test -s conftest.$ac_objext; then
23710   ac_hi=-1 ac_mid=-1
23711   while :; do
23712     cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 $ac_includes_default
23719    typedef long long ac__type_sizeof_;
23720 int
23721 main ()
23722 {
23723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23724 test_array [0] = 0
23725
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext
23731 if { (ac_try="$ac_compile"
23732 case "(($ac_try" in
23733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734   *) ac_try_echo=$ac_try;;
23735 esac
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737   (eval "$ac_compile") 2>conftest.er1
23738   ac_status=$?
23739   grep -v '^ *+' conftest.er1 >conftest.err
23740   rm -f conftest.er1
23741   cat conftest.err >&5
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); } && {
23744          test -z "$ac_c_werror_flag" ||
23745          test ! -s conftest.err
23746        } && test -s conftest.$ac_objext; then
23747   ac_lo=$ac_mid; break
23748 else
23749   echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752         ac_hi=`expr '(' $ac_mid ')' - 1`
23753                         if test $ac_mid -le $ac_hi; then
23754                           ac_lo= ac_hi=
23755                           break
23756                         fi
23757                         ac_mid=`expr 2 '*' $ac_mid`
23758 fi
23759
23760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761   done
23762 else
23763   echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23765
23766         ac_lo= ac_hi=
23767 fi
23768
23769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770 fi
23771
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 # Binary search between lo and hi bounds.
23774 while test "x$ac_lo" != "x$ac_hi"; do
23775   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23776   cat >conftest.$ac_ext <<_ACEOF
23777 /* confdefs.h.  */
23778 _ACEOF
23779 cat confdefs.h >>conftest.$ac_ext
23780 cat >>conftest.$ac_ext <<_ACEOF
23781 /* end confdefs.h.  */
23782 $ac_includes_default
23783    typedef long long ac__type_sizeof_;
23784 int
23785 main ()
23786 {
23787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23788 test_array [0] = 0
23789
23790   ;
23791   return 0;
23792 }
23793 _ACEOF
23794 rm -f conftest.$ac_objext
23795 if { (ac_try="$ac_compile"
23796 case "(($ac_try" in
23797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798   *) ac_try_echo=$ac_try;;
23799 esac
23800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801   (eval "$ac_compile") 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } && {
23808          test -z "$ac_c_werror_flag" ||
23809          test ! -s conftest.err
23810        } && test -s conftest.$ac_objext; then
23811   ac_hi=$ac_mid
23812 else
23813   echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23815
23816         ac_lo=`expr '(' $ac_mid ')' + 1`
23817 fi
23818
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820 done
23821 case $ac_lo in
23822 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23823 '') if test "$ac_cv_type_long_long" = yes; then
23824      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23825 See \`config.log' for more details." >&5
23826 echo "$as_me: error: cannot compute sizeof (long long)
23827 See \`config.log' for more details." >&2;}
23828    { (exit 77); exit 77; }; }
23829    else
23830      ac_cv_sizeof_long_long=0
23831    fi ;;
23832 esac
23833 else
23834   cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h.  */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h.  */
23840 $ac_includes_default
23841    typedef long long ac__type_sizeof_;
23842 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23843 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23844 #include <stdio.h>
23845 #include <stdlib.h>
23846 int
23847 main ()
23848 {
23849
23850   FILE *f = fopen ("conftest.val", "w");
23851   if (! f)
23852     return 1;
23853   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23854     {
23855       long int i = longval ();
23856       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23857         return 1;
23858       fprintf (f, "%ld\n", i);
23859     }
23860   else
23861     {
23862       unsigned long int i = ulongval ();
23863       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23864         return 1;
23865       fprintf (f, "%lu\n", i);
23866     }
23867   return ferror (f) || fclose (f) != 0;
23868
23869   ;
23870   return 0;
23871 }
23872 _ACEOF
23873 rm -f conftest$ac_exeext
23874 if { (ac_try="$ac_link"
23875 case "(($ac_try" in
23876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23877   *) ac_try_echo=$ac_try;;
23878 esac
23879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23880   (eval "$ac_link") 2>&5
23881   ac_status=$?
23882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23884   { (case "(($ac_try" in
23885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886   *) ac_try_echo=$ac_try;;
23887 esac
23888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889   (eval "$ac_try") 2>&5
23890   ac_status=$?
23891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892   (exit $ac_status); }; }; then
23893   ac_cv_sizeof_long_long=`cat conftest.val`
23894 else
23895   echo "$as_me: program exited with status $ac_status" >&5
23896 echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23898
23899 ( exit $ac_status )
23900 if test "$ac_cv_type_long_long" = yes; then
23901      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23902 See \`config.log' for more details." >&5
23903 echo "$as_me: error: cannot compute sizeof (long long)
23904 See \`config.log' for more details." >&2;}
23905    { (exit 77); exit 77; }; }
23906    else
23907      ac_cv_sizeof_long_long=0
23908    fi
23909 fi
23910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23911 fi
23912 rm -f conftest.val
23913 fi
23914 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23915 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23916
23917
23918
23919 cat >>confdefs.h <<_ACEOF
23920 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23921 _ACEOF
23922
23923
23924     ;;
23925     *-hp-hpux* )
23926         { echo "$as_me:$LINENO: checking for long long" >&5
23927 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23928 if test "${ac_cv_type_long_long+set}" = set; then
23929   echo $ECHO_N "(cached) $ECHO_C" >&6
23930 else
23931   cat >conftest.$ac_ext <<_ACEOF
23932 /* confdefs.h.  */
23933 _ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h.  */
23937 $ac_includes_default
23938 typedef long long ac__type_new_;
23939 int
23940 main ()
23941 {
23942 if ((ac__type_new_ *) 0)
23943   return 0;
23944 if (sizeof (ac__type_new_))
23945   return 0;
23946   ;
23947   return 0;
23948 }
23949 _ACEOF
23950 rm -f conftest.$ac_objext
23951 if { (ac_try="$ac_compile"
23952 case "(($ac_try" in
23953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954   *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957   (eval "$ac_compile") 2>conftest.er1
23958   ac_status=$?
23959   grep -v '^ *+' conftest.er1 >conftest.err
23960   rm -f conftest.er1
23961   cat conftest.err >&5
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } && {
23964          test -z "$ac_c_werror_flag" ||
23965          test ! -s conftest.err
23966        } && test -s conftest.$ac_objext; then
23967   ac_cv_type_long_long=yes
23968 else
23969   echo "$as_me: failed program was:" >&5
23970 sed 's/^/| /' conftest.$ac_ext >&5
23971
23972         ac_cv_type_long_long=no
23973 fi
23974
23975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23976 fi
23977 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23978 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23979
23980 # The cast to long int works around a bug in the HP C Compiler
23981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23983 # This bug is HP SR number 8606223364.
23984 { echo "$as_me:$LINENO: checking size of long long" >&5
23985 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23986 if test "${ac_cv_sizeof_long_long+set}" = set; then
23987   echo $ECHO_N "(cached) $ECHO_C" >&6
23988 else
23989   if test "$cross_compiling" = yes; then
23990   # Depending upon the size, compute the lo and hi bounds.
23991 cat >conftest.$ac_ext <<_ACEOF
23992 /* confdefs.h.  */
23993 _ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h.  */
23997 $ac_includes_default
23998    typedef long long ac__type_sizeof_;
23999 int
24000 main ()
24001 {
24002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24003 test_array [0] = 0
24004
24005   ;
24006   return 0;
24007 }
24008 _ACEOF
24009 rm -f conftest.$ac_objext
24010 if { (ac_try="$ac_compile"
24011 case "(($ac_try" in
24012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013   *) ac_try_echo=$ac_try;;
24014 esac
24015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24016   (eval "$ac_compile") 2>conftest.er1
24017   ac_status=$?
24018   grep -v '^ *+' conftest.er1 >conftest.err
24019   rm -f conftest.er1
24020   cat conftest.err >&5
24021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022   (exit $ac_status); } && {
24023          test -z "$ac_c_werror_flag" ||
24024          test ! -s conftest.err
24025        } && test -s conftest.$ac_objext; then
24026   ac_lo=0 ac_mid=0
24027   while :; do
24028     cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h.  */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h.  */
24034 $ac_includes_default
24035    typedef long long ac__type_sizeof_;
24036 int
24037 main ()
24038 {
24039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24040 test_array [0] = 0
24041
24042   ;
24043   return 0;
24044 }
24045 _ACEOF
24046 rm -f conftest.$ac_objext
24047 if { (ac_try="$ac_compile"
24048 case "(($ac_try" in
24049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24050   *) ac_try_echo=$ac_try;;
24051 esac
24052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24053   (eval "$ac_compile") 2>conftest.er1
24054   ac_status=$?
24055   grep -v '^ *+' conftest.er1 >conftest.err
24056   rm -f conftest.er1
24057   cat conftest.err >&5
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); } && {
24060          test -z "$ac_c_werror_flag" ||
24061          test ! -s conftest.err
24062        } && test -s conftest.$ac_objext; then
24063   ac_hi=$ac_mid; break
24064 else
24065   echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24067
24068         ac_lo=`expr $ac_mid + 1`
24069                         if test $ac_lo -le $ac_mid; then
24070                           ac_lo= ac_hi=
24071                           break
24072                         fi
24073                         ac_mid=`expr 2 '*' $ac_mid + 1`
24074 fi
24075
24076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24077   done
24078 else
24079   echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24081
24082         cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h.  */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h.  */
24088 $ac_includes_default
24089    typedef long long ac__type_sizeof_;
24090 int
24091 main ()
24092 {
24093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24094 test_array [0] = 0
24095
24096   ;
24097   return 0;
24098 }
24099 _ACEOF
24100 rm -f conftest.$ac_objext
24101 if { (ac_try="$ac_compile"
24102 case "(($ac_try" in
24103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104   *) ac_try_echo=$ac_try;;
24105 esac
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107   (eval "$ac_compile") 2>conftest.er1
24108   ac_status=$?
24109   grep -v '^ *+' conftest.er1 >conftest.err
24110   rm -f conftest.er1
24111   cat conftest.err >&5
24112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113   (exit $ac_status); } && {
24114          test -z "$ac_c_werror_flag" ||
24115          test ! -s conftest.err
24116        } && test -s conftest.$ac_objext; then
24117   ac_hi=-1 ac_mid=-1
24118   while :; do
24119     cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125 $ac_includes_default
24126    typedef long long ac__type_sizeof_;
24127 int
24128 main ()
24129 {
24130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24131 test_array [0] = 0
24132
24133   ;
24134   return 0;
24135 }
24136 _ACEOF
24137 rm -f conftest.$ac_objext
24138 if { (ac_try="$ac_compile"
24139 case "(($ac_try" in
24140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141   *) ac_try_echo=$ac_try;;
24142 esac
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144   (eval "$ac_compile") 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } && {
24151          test -z "$ac_c_werror_flag" ||
24152          test ! -s conftest.err
24153        } && test -s conftest.$ac_objext; then
24154   ac_lo=$ac_mid; break
24155 else
24156   echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24158
24159         ac_hi=`expr '(' $ac_mid ')' - 1`
24160                         if test $ac_mid -le $ac_hi; then
24161                           ac_lo= ac_hi=
24162                           break
24163                         fi
24164                         ac_mid=`expr 2 '*' $ac_mid`
24165 fi
24166
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168   done
24169 else
24170   echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24172
24173         ac_lo= ac_hi=
24174 fi
24175
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177 fi
24178
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 # Binary search between lo and hi bounds.
24181 while test "x$ac_lo" != "x$ac_hi"; do
24182   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24183   cat >conftest.$ac_ext <<_ACEOF
24184 /* confdefs.h.  */
24185 _ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h.  */
24189 $ac_includes_default
24190    typedef long long ac__type_sizeof_;
24191 int
24192 main ()
24193 {
24194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24195 test_array [0] = 0
24196
24197   ;
24198   return 0;
24199 }
24200 _ACEOF
24201 rm -f conftest.$ac_objext
24202 if { (ac_try="$ac_compile"
24203 case "(($ac_try" in
24204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205   *) ac_try_echo=$ac_try;;
24206 esac
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208   (eval "$ac_compile") 2>conftest.er1
24209   ac_status=$?
24210   grep -v '^ *+' conftest.er1 >conftest.err
24211   rm -f conftest.er1
24212   cat conftest.err >&5
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); } && {
24215          test -z "$ac_c_werror_flag" ||
24216          test ! -s conftest.err
24217        } && test -s conftest.$ac_objext; then
24218   ac_hi=$ac_mid
24219 else
24220   echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24222
24223         ac_lo=`expr '(' $ac_mid ')' + 1`
24224 fi
24225
24226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24227 done
24228 case $ac_lo in
24229 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24230 '') if test "$ac_cv_type_long_long" = yes; then
24231      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24232 See \`config.log' for more details." >&5
24233 echo "$as_me: error: cannot compute sizeof (long long)
24234 See \`config.log' for more details." >&2;}
24235    { (exit 77); exit 77; }; }
24236    else
24237      ac_cv_sizeof_long_long=0
24238    fi ;;
24239 esac
24240 else
24241   cat >conftest.$ac_ext <<_ACEOF
24242 /* confdefs.h.  */
24243 _ACEOF
24244 cat confdefs.h >>conftest.$ac_ext
24245 cat >>conftest.$ac_ext <<_ACEOF
24246 /* end confdefs.h.  */
24247 $ac_includes_default
24248    typedef long long ac__type_sizeof_;
24249 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24250 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24251 #include <stdio.h>
24252 #include <stdlib.h>
24253 int
24254 main ()
24255 {
24256
24257   FILE *f = fopen ("conftest.val", "w");
24258   if (! f)
24259     return 1;
24260   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24261     {
24262       long int i = longval ();
24263       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24264         return 1;
24265       fprintf (f, "%ld\n", i);
24266     }
24267   else
24268     {
24269       unsigned long int i = ulongval ();
24270       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24271         return 1;
24272       fprintf (f, "%lu\n", i);
24273     }
24274   return ferror (f) || fclose (f) != 0;
24275
24276   ;
24277   return 0;
24278 }
24279 _ACEOF
24280 rm -f conftest$ac_exeext
24281 if { (ac_try="$ac_link"
24282 case "(($ac_try" in
24283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284   *) ac_try_echo=$ac_try;;
24285 esac
24286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287   (eval "$ac_link") 2>&5
24288   ac_status=$?
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24291   { (case "(($ac_try" in
24292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293   *) ac_try_echo=$ac_try;;
24294 esac
24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296   (eval "$ac_try") 2>&5
24297   ac_status=$?
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); }; }; then
24300   ac_cv_sizeof_long_long=`cat conftest.val`
24301 else
24302   echo "$as_me: program exited with status $ac_status" >&5
24303 echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.$ac_ext >&5
24305
24306 ( exit $ac_status )
24307 if test "$ac_cv_type_long_long" = yes; then
24308      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24309 See \`config.log' for more details." >&5
24310 echo "$as_me: error: cannot compute sizeof (long long)
24311 See \`config.log' for more details." >&2;}
24312    { (exit 77); exit 77; }; }
24313    else
24314      ac_cv_sizeof_long_long=0
24315    fi
24316 fi
24317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24318 fi
24319 rm -f conftest.val
24320 fi
24321 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24322 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24323
24324
24325
24326 cat >>confdefs.h <<_ACEOF
24327 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24328 _ACEOF
24329
24330
24331         if test "$ac_cv_sizeof_long_long" != "0"; then
24332                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24333         fi
24334     ;;
24335     * )
24336         { echo "$as_me:$LINENO: checking for long long" >&5
24337 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24338 if test "${ac_cv_type_long_long+set}" = set; then
24339   echo $ECHO_N "(cached) $ECHO_C" >&6
24340 else
24341   cat >conftest.$ac_ext <<_ACEOF
24342 /* confdefs.h.  */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h.  */
24347 $ac_includes_default
24348 typedef long long ac__type_new_;
24349 int
24350 main ()
24351 {
24352 if ((ac__type_new_ *) 0)
24353   return 0;
24354 if (sizeof (ac__type_new_))
24355   return 0;
24356   ;
24357   return 0;
24358 }
24359 _ACEOF
24360 rm -f conftest.$ac_objext
24361 if { (ac_try="$ac_compile"
24362 case "(($ac_try" in
24363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364   *) ac_try_echo=$ac_try;;
24365 esac
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367   (eval "$ac_compile") 2>conftest.er1
24368   ac_status=$?
24369   grep -v '^ *+' conftest.er1 >conftest.err
24370   rm -f conftest.er1
24371   cat conftest.err >&5
24372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373   (exit $ac_status); } && {
24374          test -z "$ac_c_werror_flag" ||
24375          test ! -s conftest.err
24376        } && test -s conftest.$ac_objext; then
24377   ac_cv_type_long_long=yes
24378 else
24379   echo "$as_me: failed program was:" >&5
24380 sed 's/^/| /' conftest.$ac_ext >&5
24381
24382         ac_cv_type_long_long=no
24383 fi
24384
24385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24386 fi
24387 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24388 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24389
24390 # The cast to long int works around a bug in the HP C Compiler
24391 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24392 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24393 # This bug is HP SR number 8606223364.
24394 { echo "$as_me:$LINENO: checking size of long long" >&5
24395 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24396 if test "${ac_cv_sizeof_long_long+set}" = set; then
24397   echo $ECHO_N "(cached) $ECHO_C" >&6
24398 else
24399   if test "$cross_compiling" = yes; then
24400   # Depending upon the size, compute the lo and hi bounds.
24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h.  */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h.  */
24407 $ac_includes_default
24408    typedef long long ac__type_sizeof_;
24409 int
24410 main ()
24411 {
24412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24413 test_array [0] = 0
24414
24415   ;
24416   return 0;
24417 }
24418 _ACEOF
24419 rm -f conftest.$ac_objext
24420 if { (ac_try="$ac_compile"
24421 case "(($ac_try" in
24422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423   *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426   (eval "$ac_compile") 2>conftest.er1
24427   ac_status=$?
24428   grep -v '^ *+' conftest.er1 >conftest.err
24429   rm -f conftest.er1
24430   cat conftest.err >&5
24431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); } && {
24433          test -z "$ac_c_werror_flag" ||
24434          test ! -s conftest.err
24435        } && test -s conftest.$ac_objext; then
24436   ac_lo=0 ac_mid=0
24437   while :; do
24438     cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444 $ac_includes_default
24445    typedef long long ac__type_sizeof_;
24446 int
24447 main ()
24448 {
24449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24450 test_array [0] = 0
24451
24452   ;
24453   return 0;
24454 }
24455 _ACEOF
24456 rm -f conftest.$ac_objext
24457 if { (ac_try="$ac_compile"
24458 case "(($ac_try" in
24459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460   *) ac_try_echo=$ac_try;;
24461 esac
24462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24463   (eval "$ac_compile") 2>conftest.er1
24464   ac_status=$?
24465   grep -v '^ *+' conftest.er1 >conftest.err
24466   rm -f conftest.er1
24467   cat conftest.err >&5
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } && {
24470          test -z "$ac_c_werror_flag" ||
24471          test ! -s conftest.err
24472        } && test -s conftest.$ac_objext; then
24473   ac_hi=$ac_mid; break
24474 else
24475   echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24477
24478         ac_lo=`expr $ac_mid + 1`
24479                         if test $ac_lo -le $ac_mid; then
24480                           ac_lo= ac_hi=
24481                           break
24482                         fi
24483                         ac_mid=`expr 2 '*' $ac_mid + 1`
24484 fi
24485
24486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24487   done
24488 else
24489   echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24491
24492         cat >conftest.$ac_ext <<_ACEOF
24493 /* confdefs.h.  */
24494 _ACEOF
24495 cat confdefs.h >>conftest.$ac_ext
24496 cat >>conftest.$ac_ext <<_ACEOF
24497 /* end confdefs.h.  */
24498 $ac_includes_default
24499    typedef long long ac__type_sizeof_;
24500 int
24501 main ()
24502 {
24503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24504 test_array [0] = 0
24505
24506   ;
24507   return 0;
24508 }
24509 _ACEOF
24510 rm -f conftest.$ac_objext
24511 if { (ac_try="$ac_compile"
24512 case "(($ac_try" in
24513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514   *) ac_try_echo=$ac_try;;
24515 esac
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517   (eval "$ac_compile") 2>conftest.er1
24518   ac_status=$?
24519   grep -v '^ *+' conftest.er1 >conftest.err
24520   rm -f conftest.er1
24521   cat conftest.err >&5
24522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); } && {
24524          test -z "$ac_c_werror_flag" ||
24525          test ! -s conftest.err
24526        } && test -s conftest.$ac_objext; then
24527   ac_hi=-1 ac_mid=-1
24528   while :; do
24529     cat >conftest.$ac_ext <<_ACEOF
24530 /* confdefs.h.  */
24531 _ACEOF
24532 cat confdefs.h >>conftest.$ac_ext
24533 cat >>conftest.$ac_ext <<_ACEOF
24534 /* end confdefs.h.  */
24535 $ac_includes_default
24536    typedef long long ac__type_sizeof_;
24537 int
24538 main ()
24539 {
24540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24541 test_array [0] = 0
24542
24543   ;
24544   return 0;
24545 }
24546 _ACEOF
24547 rm -f conftest.$ac_objext
24548 if { (ac_try="$ac_compile"
24549 case "(($ac_try" in
24550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551   *) ac_try_echo=$ac_try;;
24552 esac
24553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554   (eval "$ac_compile") 2>conftest.er1
24555   ac_status=$?
24556   grep -v '^ *+' conftest.er1 >conftest.err
24557   rm -f conftest.er1
24558   cat conftest.err >&5
24559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560   (exit $ac_status); } && {
24561          test -z "$ac_c_werror_flag" ||
24562          test ! -s conftest.err
24563        } && test -s conftest.$ac_objext; then
24564   ac_lo=$ac_mid; break
24565 else
24566   echo "$as_me: failed program was:" >&5
24567 sed 's/^/| /' conftest.$ac_ext >&5
24568
24569         ac_hi=`expr '(' $ac_mid ')' - 1`
24570                         if test $ac_mid -le $ac_hi; then
24571                           ac_lo= ac_hi=
24572                           break
24573                         fi
24574                         ac_mid=`expr 2 '*' $ac_mid`
24575 fi
24576
24577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24578   done
24579 else
24580   echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24582
24583         ac_lo= ac_hi=
24584 fi
24585
24586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24587 fi
24588
24589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590 # Binary search between lo and hi bounds.
24591 while test "x$ac_lo" != "x$ac_hi"; do
24592   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24593   cat >conftest.$ac_ext <<_ACEOF
24594 /* confdefs.h.  */
24595 _ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h.  */
24599 $ac_includes_default
24600    typedef long long ac__type_sizeof_;
24601 int
24602 main ()
24603 {
24604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24605 test_array [0] = 0
24606
24607   ;
24608   return 0;
24609 }
24610 _ACEOF
24611 rm -f conftest.$ac_objext
24612 if { (ac_try="$ac_compile"
24613 case "(($ac_try" in
24614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24615   *) ac_try_echo=$ac_try;;
24616 esac
24617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24618   (eval "$ac_compile") 2>conftest.er1
24619   ac_status=$?
24620   grep -v '^ *+' conftest.er1 >conftest.err
24621   rm -f conftest.er1
24622   cat conftest.err >&5
24623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624   (exit $ac_status); } && {
24625          test -z "$ac_c_werror_flag" ||
24626          test ! -s conftest.err
24627        } && test -s conftest.$ac_objext; then
24628   ac_hi=$ac_mid
24629 else
24630   echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633         ac_lo=`expr '(' $ac_mid ')' + 1`
24634 fi
24635
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 done
24638 case $ac_lo in
24639 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24640 '') if test "$ac_cv_type_long_long" = yes; then
24641      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24642 See \`config.log' for more details." >&5
24643 echo "$as_me: error: cannot compute sizeof (long long)
24644 See \`config.log' for more details." >&2;}
24645    { (exit 77); exit 77; }; }
24646    else
24647      ac_cv_sizeof_long_long=0
24648    fi ;;
24649 esac
24650 else
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 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24660 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24661 #include <stdio.h>
24662 #include <stdlib.h>
24663 int
24664 main ()
24665 {
24666
24667   FILE *f = fopen ("conftest.val", "w");
24668   if (! f)
24669     return 1;
24670   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24671     {
24672       long int i = longval ();
24673       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24674         return 1;
24675       fprintf (f, "%ld\n", i);
24676     }
24677   else
24678     {
24679       unsigned long int i = ulongval ();
24680       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24681         return 1;
24682       fprintf (f, "%lu\n", i);
24683     }
24684   return ferror (f) || fclose (f) != 0;
24685
24686   ;
24687   return 0;
24688 }
24689 _ACEOF
24690 rm -f conftest$ac_exeext
24691 if { (ac_try="$ac_link"
24692 case "(($ac_try" in
24693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694   *) ac_try_echo=$ac_try;;
24695 esac
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697   (eval "$ac_link") 2>&5
24698   ac_status=$?
24699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24701   { (case "(($ac_try" in
24702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703   *) ac_try_echo=$ac_try;;
24704 esac
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706   (eval "$ac_try") 2>&5
24707   ac_status=$?
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); }; }; then
24710   ac_cv_sizeof_long_long=`cat conftest.val`
24711 else
24712   echo "$as_me: program exited with status $ac_status" >&5
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24715
24716 ( exit $ac_status )
24717 if test "$ac_cv_type_long_long" = yes; then
24718      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24719 See \`config.log' for more details." >&5
24720 echo "$as_me: error: cannot compute sizeof (long long)
24721 See \`config.log' for more details." >&2;}
24722    { (exit 77); exit 77; }; }
24723    else
24724      ac_cv_sizeof_long_long=0
24725    fi
24726 fi
24727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24728 fi
24729 rm -f conftest.val
24730 fi
24731 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24732 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24733
24734
24735
24736 cat >>confdefs.h <<_ACEOF
24737 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24738 _ACEOF
24739
24740
24741 esac
24742
24743 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24744 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24745 if test "${ac_cv_type_wchar_t+set}" = set; then
24746   echo $ECHO_N "(cached) $ECHO_C" >&6
24747 else
24748   cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754
24755         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24756         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24757         #  error "fake wchar_t"
24758         #endif
24759         #ifdef HAVE_WCHAR_H
24760         #  ifdef __CYGWIN__
24761         #    include <stddef.h>
24762         #  endif
24763         #  include <wchar.h>
24764         #endif
24765         #ifdef HAVE_STDLIB_H
24766         #  include <stdlib.h>
24767         #endif
24768         #include <stdio.h>
24769
24770
24771
24772 typedef wchar_t ac__type_new_;
24773 int
24774 main ()
24775 {
24776 if ((ac__type_new_ *) 0)
24777   return 0;
24778 if (sizeof (ac__type_new_))
24779   return 0;
24780   ;
24781   return 0;
24782 }
24783 _ACEOF
24784 rm -f conftest.$ac_objext
24785 if { (ac_try="$ac_compile"
24786 case "(($ac_try" in
24787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788   *) ac_try_echo=$ac_try;;
24789 esac
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791   (eval "$ac_compile") 2>conftest.er1
24792   ac_status=$?
24793   grep -v '^ *+' conftest.er1 >conftest.err
24794   rm -f conftest.er1
24795   cat conftest.err >&5
24796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797   (exit $ac_status); } && {
24798          test -z "$ac_c_werror_flag" ||
24799          test ! -s conftest.err
24800        } && test -s conftest.$ac_objext; then
24801   ac_cv_type_wchar_t=yes
24802 else
24803   echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806         ac_cv_type_wchar_t=no
24807 fi
24808
24809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24810 fi
24811 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24812 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24813
24814 # The cast to long int works around a bug in the HP C Compiler
24815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24817 # This bug is HP SR number 8606223364.
24818 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24819 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24820 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24821   echo $ECHO_N "(cached) $ECHO_C" >&6
24822 else
24823   if test "$cross_compiling" = yes; then
24824   # Depending upon the size, compute the lo and hi bounds.
24825 cat >conftest.$ac_ext <<_ACEOF
24826 /* confdefs.h.  */
24827 _ACEOF
24828 cat confdefs.h >>conftest.$ac_ext
24829 cat >>conftest.$ac_ext <<_ACEOF
24830 /* end confdefs.h.  */
24831
24832         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24833         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24834         #  error "fake wchar_t"
24835         #endif
24836         #ifdef HAVE_WCHAR_H
24837         #  ifdef __CYGWIN__
24838         #    include <stddef.h>
24839         #  endif
24840         #  include <wchar.h>
24841         #endif
24842         #ifdef HAVE_STDLIB_H
24843         #  include <stdlib.h>
24844         #endif
24845         #include <stdio.h>
24846
24847
24848
24849    typedef wchar_t ac__type_sizeof_;
24850 int
24851 main ()
24852 {
24853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24854 test_array [0] = 0
24855
24856   ;
24857   return 0;
24858 }
24859 _ACEOF
24860 rm -f conftest.$ac_objext
24861 if { (ac_try="$ac_compile"
24862 case "(($ac_try" in
24863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24864   *) ac_try_echo=$ac_try;;
24865 esac
24866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24867   (eval "$ac_compile") 2>conftest.er1
24868   ac_status=$?
24869   grep -v '^ *+' conftest.er1 >conftest.err
24870   rm -f conftest.er1
24871   cat conftest.err >&5
24872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873   (exit $ac_status); } && {
24874          test -z "$ac_c_werror_flag" ||
24875          test ! -s conftest.err
24876        } && test -s conftest.$ac_objext; then
24877   ac_lo=0 ac_mid=0
24878   while :; do
24879     cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h.  */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h.  */
24885
24886         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24887         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24888         #  error "fake wchar_t"
24889         #endif
24890         #ifdef HAVE_WCHAR_H
24891         #  ifdef __CYGWIN__
24892         #    include <stddef.h>
24893         #  endif
24894         #  include <wchar.h>
24895         #endif
24896         #ifdef HAVE_STDLIB_H
24897         #  include <stdlib.h>
24898         #endif
24899         #include <stdio.h>
24900
24901
24902
24903    typedef wchar_t ac__type_sizeof_;
24904 int
24905 main ()
24906 {
24907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24908 test_array [0] = 0
24909
24910   ;
24911   return 0;
24912 }
24913 _ACEOF
24914 rm -f conftest.$ac_objext
24915 if { (ac_try="$ac_compile"
24916 case "(($ac_try" in
24917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918   *) ac_try_echo=$ac_try;;
24919 esac
24920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24921   (eval "$ac_compile") 2>conftest.er1
24922   ac_status=$?
24923   grep -v '^ *+' conftest.er1 >conftest.err
24924   rm -f conftest.er1
24925   cat conftest.err >&5
24926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927   (exit $ac_status); } && {
24928          test -z "$ac_c_werror_flag" ||
24929          test ! -s conftest.err
24930        } && test -s conftest.$ac_objext; then
24931   ac_hi=$ac_mid; break
24932 else
24933   echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24935
24936         ac_lo=`expr $ac_mid + 1`
24937                         if test $ac_lo -le $ac_mid; then
24938                           ac_lo= ac_hi=
24939                           break
24940                         fi
24941                         ac_mid=`expr 2 '*' $ac_mid + 1`
24942 fi
24943
24944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945   done
24946 else
24947   echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950         cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956
24957         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24958         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24959         #  error "fake wchar_t"
24960         #endif
24961         #ifdef HAVE_WCHAR_H
24962         #  ifdef __CYGWIN__
24963         #    include <stddef.h>
24964         #  endif
24965         #  include <wchar.h>
24966         #endif
24967         #ifdef HAVE_STDLIB_H
24968         #  include <stdlib.h>
24969         #endif
24970         #include <stdio.h>
24971
24972
24973
24974    typedef wchar_t ac__type_sizeof_;
24975 int
24976 main ()
24977 {
24978 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
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=-1 ac_mid=-1
25003   while :; do
25004     cat >conftest.$ac_ext <<_ACEOF
25005 /* confdefs.h.  */
25006 _ACEOF
25007 cat confdefs.h >>conftest.$ac_ext
25008 cat >>conftest.$ac_ext <<_ACEOF
25009 /* end confdefs.h.  */
25010
25011         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25012         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25013         #  error "fake wchar_t"
25014         #endif
25015         #ifdef HAVE_WCHAR_H
25016         #  ifdef __CYGWIN__
25017         #    include <stddef.h>
25018         #  endif
25019         #  include <wchar.h>
25020         #endif
25021         #ifdef HAVE_STDLIB_H
25022         #  include <stdlib.h>
25023         #endif
25024         #include <stdio.h>
25025
25026
25027
25028    typedef wchar_t ac__type_sizeof_;
25029 int
25030 main ()
25031 {
25032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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_lo=$ac_mid; break
25057 else
25058   echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25060
25061         ac_hi=`expr '(' $ac_mid ')' - 1`
25062                         if test $ac_mid -le $ac_hi; then
25063                           ac_lo= ac_hi=
25064                           break
25065                         fi
25066                         ac_mid=`expr 2 '*' $ac_mid`
25067 fi
25068
25069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25070   done
25071 else
25072   echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25074
25075         ac_lo= ac_hi=
25076 fi
25077
25078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25079 fi
25080
25081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25082 # Binary search between lo and hi bounds.
25083 while test "x$ac_lo" != "x$ac_hi"; do
25084   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25085   cat >conftest.$ac_ext <<_ACEOF
25086 /* confdefs.h.  */
25087 _ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h.  */
25091
25092         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25093         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25094         #  error "fake wchar_t"
25095         #endif
25096         #ifdef HAVE_WCHAR_H
25097         #  ifdef __CYGWIN__
25098         #    include <stddef.h>
25099         #  endif
25100         #  include <wchar.h>
25101         #endif
25102         #ifdef HAVE_STDLIB_H
25103         #  include <stdlib.h>
25104         #endif
25105         #include <stdio.h>
25106
25107
25108
25109    typedef wchar_t ac__type_sizeof_;
25110 int
25111 main ()
25112 {
25113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25114 test_array [0] = 0
25115
25116   ;
25117   return 0;
25118 }
25119 _ACEOF
25120 rm -f conftest.$ac_objext
25121 if { (ac_try="$ac_compile"
25122 case "(($ac_try" in
25123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25124   *) ac_try_echo=$ac_try;;
25125 esac
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127   (eval "$ac_compile") 2>conftest.er1
25128   ac_status=$?
25129   grep -v '^ *+' conftest.er1 >conftest.err
25130   rm -f conftest.er1
25131   cat conftest.err >&5
25132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); } && {
25134          test -z "$ac_c_werror_flag" ||
25135          test ! -s conftest.err
25136        } && test -s conftest.$ac_objext; then
25137   ac_hi=$ac_mid
25138 else
25139   echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25141
25142         ac_lo=`expr '(' $ac_mid ')' + 1`
25143 fi
25144
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25146 done
25147 case $ac_lo in
25148 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25149 '') if test "$ac_cv_type_wchar_t" = yes; then
25150      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25151 See \`config.log' for more details." >&5
25152 echo "$as_me: error: cannot compute sizeof (wchar_t)
25153 See \`config.log' for more details." >&2;}
25154    { (exit 77); exit 77; }; }
25155    else
25156      ac_cv_sizeof_wchar_t=0
25157    fi ;;
25158 esac
25159 else
25160   cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h.  */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h.  */
25166
25167         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25168         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25169         #  error "fake wchar_t"
25170         #endif
25171         #ifdef HAVE_WCHAR_H
25172         #  ifdef __CYGWIN__
25173         #    include <stddef.h>
25174         #  endif
25175         #  include <wchar.h>
25176         #endif
25177         #ifdef HAVE_STDLIB_H
25178         #  include <stdlib.h>
25179         #endif
25180         #include <stdio.h>
25181
25182
25183
25184    typedef wchar_t ac__type_sizeof_;
25185 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25186 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25187 #include <stdio.h>
25188 #include <stdlib.h>
25189 int
25190 main ()
25191 {
25192
25193   FILE *f = fopen ("conftest.val", "w");
25194   if (! f)
25195     return 1;
25196   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25197     {
25198       long int i = longval ();
25199       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25200         return 1;
25201       fprintf (f, "%ld\n", i);
25202     }
25203   else
25204     {
25205       unsigned long int i = ulongval ();
25206       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25207         return 1;
25208       fprintf (f, "%lu\n", i);
25209     }
25210   return ferror (f) || fclose (f) != 0;
25211
25212   ;
25213   return 0;
25214 }
25215 _ACEOF
25216 rm -f conftest$ac_exeext
25217 if { (ac_try="$ac_link"
25218 case "(($ac_try" in
25219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220   *) ac_try_echo=$ac_try;;
25221 esac
25222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25223   (eval "$ac_link") 2>&5
25224   ac_status=$?
25225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25227   { (case "(($ac_try" in
25228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229   *) ac_try_echo=$ac_try;;
25230 esac
25231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25232   (eval "$ac_try") 2>&5
25233   ac_status=$?
25234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); }; }; then
25236   ac_cv_sizeof_wchar_t=`cat conftest.val`
25237 else
25238   echo "$as_me: program exited with status $ac_status" >&5
25239 echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25241
25242 ( exit $ac_status )
25243 if test "$ac_cv_type_wchar_t" = yes; then
25244      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25245 See \`config.log' for more details." >&5
25246 echo "$as_me: error: cannot compute sizeof (wchar_t)
25247 See \`config.log' for more details." >&2;}
25248    { (exit 77); exit 77; }; }
25249    else
25250      ac_cv_sizeof_wchar_t=0
25251    fi
25252 fi
25253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25254 fi
25255 rm -f conftest.val
25256 fi
25257 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25258 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25259
25260
25261
25262 cat >>confdefs.h <<_ACEOF
25263 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25264 _ACEOF
25265
25266
25267 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25268     wxUSE_WCHAR_T=yes
25269 else
25270     wxUSE_WCHAR_T=no
25271 fi
25272
25273 { echo "$as_me:$LINENO: checking for va_copy" >&5
25274 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25275 if test "${wx_cv_func_va_copy+set}" = set; then
25276   echo $ECHO_N "(cached) $ECHO_C" >&6
25277 else
25278
25279         ac_ext=cpp
25280 ac_cpp='$CXXCPP $CPPFLAGS'
25281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25284
25285         cat >conftest.$ac_ext <<_ACEOF
25286
25287             #include <stdarg.h>
25288             void foo(char *f, ...)
25289             {
25290                 va_list ap1, ap2;
25291                 va_start(ap1, f);
25292                 va_copy(ap2, ap1);
25293                 va_end(ap2);
25294                 va_end(ap1);
25295             }
25296             int main()
25297             {
25298                 foo("hi", 17);
25299                 return 0;
25300             }
25301 _ACEOF
25302 rm -f conftest.$ac_objext conftest$ac_exeext
25303 if { (ac_try="$ac_link"
25304 case "(($ac_try" in
25305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306   *) ac_try_echo=$ac_try;;
25307 esac
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309   (eval "$ac_link") 2>conftest.er1
25310   ac_status=$?
25311   grep -v '^ *+' conftest.er1 >conftest.err
25312   rm -f conftest.er1
25313   cat conftest.err >&5
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); } && {
25316          test -z "$ac_cxx_werror_flag" ||
25317          test ! -s conftest.err
25318        } && test -s conftest$ac_exeext &&
25319        $as_test_x conftest$ac_exeext; then
25320   wx_cv_func_va_copy=yes
25321 else
25322   echo "$as_me: failed program was:" >&5
25323 sed 's/^/| /' conftest.$ac_ext >&5
25324
25325         wx_cv_func_va_copy=no
25326
25327 fi
25328
25329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25330       conftest$ac_exeext conftest.$ac_ext
25331         ac_ext=c
25332 ac_cpp='$CPP $CPPFLAGS'
25333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25336
25337
25338
25339 fi
25340 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25341 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25342
25343 if test $wx_cv_func_va_copy = "yes"; then
25344     cat >>confdefs.h <<\_ACEOF
25345 #define HAVE_VA_COPY 1
25346 _ACEOF
25347
25348 else
25349         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25350 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25351 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25352   echo $ECHO_N "(cached) $ECHO_C" >&6
25353 else
25354
25355             if test "$cross_compiling" = yes; then
25356                   wx_cv_type_va_list_lvalue=yes
25357
25358 else
25359   cat >conftest.$ac_ext <<_ACEOF
25360
25361                 #include <stdarg.h>
25362                 int foo(char *f, ...)
25363                 {
25364                     va_list ap1, ap2;
25365                     va_start(ap1, f);
25366                     ap2 = ap1;
25367                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25368                         return 1;
25369                     va_end(ap2);
25370                     va_end(ap1);
25371                     return 0;
25372                 }
25373                 int main()
25374                 {
25375                     return foo("hi", 17);
25376                 }
25377 _ACEOF
25378 rm -f conftest$ac_exeext
25379 if { (ac_try="$ac_link"
25380 case "(($ac_try" in
25381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382   *) ac_try_echo=$ac_try;;
25383 esac
25384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25385   (eval "$ac_link") 2>&5
25386   ac_status=$?
25387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25389   { (case "(($ac_try" in
25390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391   *) ac_try_echo=$ac_try;;
25392 esac
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394   (eval "$ac_try") 2>&5
25395   ac_status=$?
25396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397   (exit $ac_status); }; }; then
25398   wx_cv_type_va_list_lvalue=yes
25399 else
25400   echo "$as_me: program exited with status $ac_status" >&5
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 ( exit $ac_status )
25405 wx_cv_type_va_list_lvalue=no
25406 fi
25407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25408 fi
25409
25410
25411
25412
25413 fi
25414 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25415 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25416
25417     if test $wx_cv_type_va_list_lvalue != "yes"; then
25418                         cat >>confdefs.h <<\_ACEOF
25419 #define VA_LIST_IS_ARRAY 1
25420 _ACEOF
25421
25422     fi
25423 fi
25424
25425 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25426
25427 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25428 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25429 if test "${wx_cv_have_variadic_macros+set}" = set; then
25430   echo $ECHO_N "(cached) $ECHO_C" >&6
25431 else
25432
25433                         ac_ext=cpp
25434 ac_cpp='$CXXCPP $CPPFLAGS'
25435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25438
25439         cat >conftest.$ac_ext <<_ACEOF
25440 /* confdefs.h.  */
25441 _ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h.  */
25445
25446                     #include <stdio.h>
25447                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25448
25449 int
25450 main ()
25451 {
25452
25453                     test("%s %d %p", "test", 1, 0);
25454
25455
25456   ;
25457   return 0;
25458 }
25459 _ACEOF
25460 rm -f conftest.$ac_objext
25461 if { (ac_try="$ac_compile"
25462 case "(($ac_try" in
25463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25464   *) ac_try_echo=$ac_try;;
25465 esac
25466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25467   (eval "$ac_compile") 2>conftest.er1
25468   ac_status=$?
25469   grep -v '^ *+' conftest.er1 >conftest.err
25470   rm -f conftest.er1
25471   cat conftest.err >&5
25472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473   (exit $ac_status); } && {
25474          test -z "$ac_cxx_werror_flag" ||
25475          test ! -s conftest.err
25476        } && test -s conftest.$ac_objext; then
25477   wx_cv_have_variadic_macros=yes
25478 else
25479   echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25481
25482         wx_cv_have_variadic_macros=no
25483
25484 fi
25485
25486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487         ac_ext=c
25488 ac_cpp='$CPP $CPPFLAGS'
25489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25492
25493
25494
25495 fi
25496 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25497 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25498
25499 if test $wx_cv_have_variadic_macros = "yes"; then
25500     cat >>confdefs.h <<\_ACEOF
25501 #define HAVE_VARIADIC_MACROS 1
25502 _ACEOF
25503
25504 fi
25505
25506 fi
25507 # Check whether --enable-largefile was given.
25508 if test "${enable_largefile+set}" = set; then
25509   enableval=$enable_largefile;
25510 fi
25511
25512 if test "$enable_largefile" != no; then
25513             wx_largefile=no
25514
25515     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25516 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25517 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25518   echo $ECHO_N "(cached) $ECHO_C" >&6
25519 else
25520
25521           cat >conftest.$ac_ext <<_ACEOF
25522 /* confdefs.h.  */
25523 _ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h.  */
25527 #define _FILE_OFFSET_BITS 64
25528                           #include <sys/types.h>
25529 int
25530 main ()
25531 {
25532 typedef struct {
25533     unsigned int field: sizeof(off_t) == 8;
25534 } wxlf;
25535
25536   ;
25537   return 0;
25538 }
25539 _ACEOF
25540 rm -f conftest.$ac_objext
25541 if { (ac_try="$ac_compile"
25542 case "(($ac_try" in
25543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544   *) ac_try_echo=$ac_try;;
25545 esac
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547   (eval "$ac_compile") 2>conftest.er1
25548   ac_status=$?
25549   grep -v '^ *+' conftest.er1 >conftest.err
25550   rm -f conftest.er1
25551   cat conftest.err >&5
25552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553   (exit $ac_status); } && {
25554          test -z "$ac_c_werror_flag" ||
25555          test ! -s conftest.err
25556        } && test -s conftest.$ac_objext; then
25557   ac_cv_sys_file_offset_bits=64
25558 else
25559   echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25561
25562         ac_cv_sys_file_offset_bits=no
25563 fi
25564
25565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25566
25567
25568 fi
25569 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25570 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25571
25572     if test "$ac_cv_sys_file_offset_bits" != no; then
25573         wx_largefile=yes
25574         cat >>confdefs.h <<_ACEOF
25575 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25576 _ACEOF
25577
25578     fi
25579
25580     if test "x$wx_largefile" != "xyes"; then
25581
25582     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25583 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25584 if test "${ac_cv_sys_large_files+set}" = set; then
25585   echo $ECHO_N "(cached) $ECHO_C" >&6
25586 else
25587
25588           cat >conftest.$ac_ext <<_ACEOF
25589 /* confdefs.h.  */
25590 _ACEOF
25591 cat confdefs.h >>conftest.$ac_ext
25592 cat >>conftest.$ac_ext <<_ACEOF
25593 /* end confdefs.h.  */
25594 #define _LARGE_FILES 1
25595                           #include <sys/types.h>
25596 int
25597 main ()
25598 {
25599 typedef struct {
25600     unsigned int field: sizeof(off_t) == 8;
25601 } wxlf;
25602
25603   ;
25604   return 0;
25605 }
25606 _ACEOF
25607 rm -f conftest.$ac_objext
25608 if { (ac_try="$ac_compile"
25609 case "(($ac_try" in
25610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25611   *) ac_try_echo=$ac_try;;
25612 esac
25613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25614   (eval "$ac_compile") 2>conftest.er1
25615   ac_status=$?
25616   grep -v '^ *+' conftest.er1 >conftest.err
25617   rm -f conftest.er1
25618   cat conftest.err >&5
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); } && {
25621          test -z "$ac_c_werror_flag" ||
25622          test ! -s conftest.err
25623        } && test -s conftest.$ac_objext; then
25624   ac_cv_sys_large_files=1
25625 else
25626   echo "$as_me: failed program was:" >&5
25627 sed 's/^/| /' conftest.$ac_ext >&5
25628
25629         ac_cv_sys_large_files=no
25630 fi
25631
25632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25633
25634
25635 fi
25636 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25637 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25638
25639     if test "$ac_cv_sys_large_files" != no; then
25640         wx_largefile=yes
25641         cat >>confdefs.h <<_ACEOF
25642 #define _LARGE_FILES $ac_cv_sys_large_files
25643 _ACEOF
25644
25645     fi
25646
25647     fi
25648
25649     { echo "$as_me:$LINENO: checking if large file support is available" >&5
25650 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
25651     if test "x$wx_largefile" = "xyes"; then
25652         cat >>confdefs.h <<\_ACEOF
25653 #define HAVE_LARGEFILE_SUPPORT 1
25654 _ACEOF
25655
25656     fi
25657     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
25658 echo "${ECHO_T}$wx_largefile" >&6; }
25659 fi
25660
25661
25662 if test "x$wx_largefile" = "xyes"; then
25663     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
25664         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
25665
25666                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
25667             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
25668 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
25669 if test "${wx_cv_STDC_EXT_required+set}" = set; then
25670   echo $ECHO_N "(cached) $ECHO_C" >&6
25671 else
25672
25673                     ac_ext=cpp
25674 ac_cpp='$CXXCPP $CPPFLAGS'
25675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25678
25679                     cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h.  */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h.  */
25685
25686 int
25687 main ()
25688 {
25689
25690                             #ifndef __STDC_EXT__
25691                                 choke me
25692                             #endif
25693
25694   ;
25695   return 0;
25696 }
25697 _ACEOF
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702   *) ac_try_echo=$ac_try;;
25703 esac
25704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25705   (eval "$ac_compile") 2>conftest.er1
25706   ac_status=$?
25707   grep -v '^ *+' conftest.er1 >conftest.err
25708   rm -f conftest.er1
25709   cat conftest.err >&5
25710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711   (exit $ac_status); } && {
25712          test -z "$ac_cxx_werror_flag" ||
25713          test ! -s conftest.err
25714        } && test -s conftest.$ac_objext; then
25715   wx_cv_STDC_EXT_required=no
25716 else
25717   echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25719
25720         wx_cv_STDC_EXT_required=yes
25721
25722 fi
25723
25724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25725                     ac_ext=c
25726 ac_cpp='$CPP $CPPFLAGS'
25727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25730
25731
25732
25733 fi
25734 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25735 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25736             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25737                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25738             fi
25739         fi
25740     else
25741         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
25742     fi
25743         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25744 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25745 if test "${ac_cv_sys_largefile_source+set}" = set; then
25746   echo $ECHO_N "(cached) $ECHO_C" >&6
25747 else
25748   while :; do
25749   cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h.  */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h.  */
25755 #include <sys/types.h> /* for off_t */
25756      #include <stdio.h>
25757 int
25758 main ()
25759 {
25760 int (*fp) (FILE *, off_t, int) = fseeko;
25761      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25762   ;
25763   return 0;
25764 }
25765 _ACEOF
25766 rm -f conftest.$ac_objext conftest$ac_exeext
25767 if { (ac_try="$ac_link"
25768 case "(($ac_try" in
25769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770   *) ac_try_echo=$ac_try;;
25771 esac
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773   (eval "$ac_link") 2>conftest.er1
25774   ac_status=$?
25775   grep -v '^ *+' conftest.er1 >conftest.err
25776   rm -f conftest.er1
25777   cat conftest.err >&5
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); } && {
25780          test -z "$ac_c_werror_flag" ||
25781          test ! -s conftest.err
25782        } && test -s conftest$ac_exeext &&
25783        $as_test_x conftest$ac_exeext; then
25784   ac_cv_sys_largefile_source=no; break
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789
25790 fi
25791
25792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25793       conftest$ac_exeext conftest.$ac_ext
25794   cat >conftest.$ac_ext <<_ACEOF
25795 /* confdefs.h.  */
25796 _ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h.  */
25800 #define _LARGEFILE_SOURCE 1
25801 #include <sys/types.h> /* for off_t */
25802      #include <stdio.h>
25803 int
25804 main ()
25805 {
25806 int (*fp) (FILE *, off_t, int) = fseeko;
25807      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25808   ;
25809   return 0;
25810 }
25811 _ACEOF
25812 rm -f conftest.$ac_objext conftest$ac_exeext
25813 if { (ac_try="$ac_link"
25814 case "(($ac_try" in
25815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25816   *) ac_try_echo=$ac_try;;
25817 esac
25818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25819   (eval "$ac_link") 2>conftest.er1
25820   ac_status=$?
25821   grep -v '^ *+' conftest.er1 >conftest.err
25822   rm -f conftest.er1
25823   cat conftest.err >&5
25824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25825   (exit $ac_status); } && {
25826          test -z "$ac_c_werror_flag" ||
25827          test ! -s conftest.err
25828        } && test -s conftest$ac_exeext &&
25829        $as_test_x conftest$ac_exeext; then
25830   ac_cv_sys_largefile_source=1; break
25831 else
25832   echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25834
25835
25836 fi
25837
25838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25839       conftest$ac_exeext conftest.$ac_ext
25840   ac_cv_sys_largefile_source=unknown
25841   break
25842 done
25843 fi
25844 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25845 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25846 case $ac_cv_sys_largefile_source in #(
25847   no | unknown) ;;
25848   *)
25849 cat >>confdefs.h <<_ACEOF
25850 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25851 _ACEOF
25852 ;;
25853 esac
25854 rm -f conftest*
25855
25856 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25857 # in glibc 2.1.3, but that breaks too many other things.
25858 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25859 if test $ac_cv_sys_largefile_source != unknown; then
25860
25861 cat >>confdefs.h <<\_ACEOF
25862 #define HAVE_FSEEKO 1
25863 _ACEOF
25864
25865 fi
25866
25867     if test "$ac_cv_sys_largefile_source" != no; then
25868         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25869     fi
25870 fi
25871
25872 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25873 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25874 if test "${ac_cv_c_bigendian+set}" = set; then
25875   echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877   ac_cv_c_bigendian=unknown
25878 # See if sys/param.h defines the BYTE_ORDER macro.
25879 cat >conftest.$ac_ext <<_ACEOF
25880 /* confdefs.h.  */
25881 _ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h.  */
25885 #include <sys/types.h>
25886 #include <sys/param.h>
25887 int
25888 main ()
25889 {
25890
25891 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25892  bogus endian macros
25893 #endif
25894   ;
25895   return 0;
25896 }
25897 _ACEOF
25898 rm -f conftest.$ac_objext
25899 if { (ac_try="$ac_compile"
25900 case "(($ac_try" in
25901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25902   *) ac_try_echo=$ac_try;;
25903 esac
25904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25905   (eval "$ac_compile") 2>conftest.er1
25906   ac_status=$?
25907   grep -v '^ *+' conftest.er1 >conftest.err
25908   rm -f conftest.er1
25909   cat conftest.err >&5
25910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911   (exit $ac_status); } && {
25912          test -z "$ac_c_werror_flag" ||
25913          test ! -s conftest.err
25914        } && test -s conftest.$ac_objext; then
25915   # It does; now see whether it defined to BIG_ENDIAN or not.
25916 cat >conftest.$ac_ext <<_ACEOF
25917 /* confdefs.h.  */
25918 _ACEOF
25919 cat confdefs.h >>conftest.$ac_ext
25920 cat >>conftest.$ac_ext <<_ACEOF
25921 /* end confdefs.h.  */
25922 #include <sys/types.h>
25923 #include <sys/param.h>
25924 int
25925 main ()
25926 {
25927
25928 #if BYTE_ORDER != BIG_ENDIAN
25929  not big endian
25930 #endif
25931   ;
25932   return 0;
25933 }
25934 _ACEOF
25935 rm -f conftest.$ac_objext
25936 if { (ac_try="$ac_compile"
25937 case "(($ac_try" in
25938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25939   *) ac_try_echo=$ac_try;;
25940 esac
25941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942   (eval "$ac_compile") 2>conftest.er1
25943   ac_status=$?
25944   grep -v '^ *+' conftest.er1 >conftest.err
25945   rm -f conftest.er1
25946   cat conftest.err >&5
25947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948   (exit $ac_status); } && {
25949          test -z "$ac_c_werror_flag" ||
25950          test ! -s conftest.err
25951        } && test -s conftest.$ac_objext; then
25952   ac_cv_c_bigendian=yes
25953 else
25954   echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25956
25957         ac_cv_c_bigendian=no
25958 fi
25959
25960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25961 else
25962   echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25964
25965
25966 fi
25967
25968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25969 if test $ac_cv_c_bigendian = unknown; then
25970 if test "$cross_compiling" = yes; then
25971   ac_cv_c_bigendian=unknown
25972 else
25973   cat >conftest.$ac_ext <<_ACEOF
25974 /* confdefs.h.  */
25975 _ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h.  */
25979 main () {
25980   /* Are we little or big endian?  From Harbison&Steele.  */
25981   union
25982   {
25983     long l;
25984     char c[sizeof (long)];
25985   } u;
25986   u.l = 1;
25987   exit (u.c[sizeof (long) - 1] == 1);
25988 }
25989 _ACEOF
25990 rm -f conftest$ac_exeext
25991 if { (ac_try="$ac_link"
25992 case "(($ac_try" in
25993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25994   *) ac_try_echo=$ac_try;;
25995 esac
25996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25997   (eval "$ac_link") 2>&5
25998   ac_status=$?
25999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26001   { (case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006   (eval "$ac_try") 2>&5
26007   ac_status=$?
26008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009   (exit $ac_status); }; }; then
26010   ac_cv_c_bigendian=no
26011 else
26012   echo "$as_me: program exited with status $ac_status" >&5
26013 echo "$as_me: failed program was:" >&5
26014 sed 's/^/| /' conftest.$ac_ext >&5
26015
26016 ( exit $ac_status )
26017 ac_cv_c_bigendian=yes
26018 fi
26019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26020 fi
26021
26022
26023 fi
26024 fi
26025 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26026 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26027 if test $ac_cv_c_bigendian = unknown; then
26028   { 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
26029 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;}
26030 fi
26031 if test $ac_cv_c_bigendian = yes; then
26032   cat >>confdefs.h <<\_ACEOF
26033 #define WORDS_BIGENDIAN 1
26034 _ACEOF
26035
26036 fi
26037
26038
26039
26040
26041     ac_ext=cpp
26042 ac_cpp='$CXXCPP $CPPFLAGS'
26043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26046
26047
26048     { echo "$as_me:$LINENO: checking for iostream" >&5
26049 echo $ECHO_N "checking for iostream... $ECHO_C" >&6; }
26050 if test "${ac_cv_header_iostream+set}" = set; then
26051   echo $ECHO_N "(cached) $ECHO_C" >&6
26052 else
26053   cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h.  */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h.  */
26059
26060
26061 #include <iostream>
26062 _ACEOF
26063 rm -f conftest.$ac_objext
26064 if { (ac_try="$ac_compile"
26065 case "(($ac_try" in
26066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067   *) ac_try_echo=$ac_try;;
26068 esac
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070   (eval "$ac_compile") 2>conftest.er1
26071   ac_status=$?
26072   grep -v '^ *+' conftest.er1 >conftest.err
26073   rm -f conftest.er1
26074   cat conftest.err >&5
26075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076   (exit $ac_status); } && {
26077          test -z "$ac_cxx_werror_flag" ||
26078          test ! -s conftest.err
26079        } && test -s conftest.$ac_objext; then
26080   ac_cv_header_iostream=yes
26081 else
26082   echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085         ac_cv_header_iostream=no
26086 fi
26087
26088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26089 fi
26090 { echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
26091 echo "${ECHO_T}$ac_cv_header_iostream" >&6; }
26092
26093
26094
26095     if test "$ac_cv_header_iostream" = "yes" ; then
26096       :
26097     else
26098       cat >>confdefs.h <<\_ACEOF
26099 #define wxUSE_IOSTREAMH 1
26100 _ACEOF
26101
26102     fi
26103
26104     ac_ext=c
26105 ac_cpp='$CPP $CPPFLAGS'
26106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26109
26110
26111
26112
26113   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26114 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26115 if test "${wx_cv_cpp_bool+set}" = set; then
26116   echo $ECHO_N "(cached) $ECHO_C" >&6
26117 else
26118
26119
26120     ac_ext=cpp
26121 ac_cpp='$CXXCPP $CPPFLAGS'
26122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26125
26126
26127     cat >conftest.$ac_ext <<_ACEOF
26128 /* confdefs.h.  */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h.  */
26133
26134
26135 int
26136 main ()
26137 {
26138
26139         bool b = true;
26140
26141         return 0;
26142
26143   ;
26144   return 0;
26145 }
26146 _ACEOF
26147 rm -f conftest.$ac_objext
26148 if { (ac_try="$ac_compile"
26149 case "(($ac_try" in
26150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26151   *) ac_try_echo=$ac_try;;
26152 esac
26153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26154   (eval "$ac_compile") 2>conftest.er1
26155   ac_status=$?
26156   grep -v '^ *+' conftest.er1 >conftest.err
26157   rm -f conftest.er1
26158   cat conftest.err >&5
26159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160   (exit $ac_status); } && {
26161          test -z "$ac_cxx_werror_flag" ||
26162          test ! -s conftest.err
26163        } && test -s conftest.$ac_objext; then
26164
26165         wx_cv_cpp_bool=yes
26166
26167 else
26168   echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171
26172         wx_cv_cpp_bool=no
26173
26174
26175 fi
26176
26177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26178
26179     ac_ext=c
26180 ac_cpp='$CPP $CPPFLAGS'
26181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26184
26185
26186 fi
26187 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26188 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26189
26190   if test "$wx_cv_cpp_bool" = "yes"; then
26191     cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_BOOL 1
26193 _ACEOF
26194
26195   fi
26196
26197
26198
26199   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26200 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26201 if test "${wx_cv_explicit+set}" = set; then
26202   echo $ECHO_N "(cached) $ECHO_C" >&6
26203 else
26204
26205
26206     ac_ext=cpp
26207 ac_cpp='$CXXCPP $CPPFLAGS'
26208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26211
26212
26213             cat >conftest.$ac_ext <<_ACEOF
26214 /* confdefs.h.  */
26215 _ACEOF
26216 cat confdefs.h >>conftest.$ac_ext
26217 cat >>conftest.$ac_ext <<_ACEOF
26218 /* end confdefs.h.  */
26219
26220         class Foo { public: explicit Foo(int) {} };
26221
26222 int
26223 main ()
26224 {
26225
26226         return 0;
26227
26228   ;
26229   return 0;
26230 }
26231 _ACEOF
26232 rm -f conftest.$ac_objext
26233 if { (ac_try="$ac_compile"
26234 case "(($ac_try" in
26235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236   *) ac_try_echo=$ac_try;;
26237 esac
26238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26239   (eval "$ac_compile") 2>conftest.er1
26240   ac_status=$?
26241   grep -v '^ *+' conftest.er1 >conftest.err
26242   rm -f conftest.er1
26243   cat conftest.err >&5
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); } && {
26246          test -z "$ac_cxx_werror_flag" ||
26247          test ! -s conftest.err
26248        } && test -s conftest.$ac_objext; then
26249
26250         cat >conftest.$ac_ext <<_ACEOF
26251 /* confdefs.h.  */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h.  */
26256
26257                 class Foo { public: explicit Foo(int) {} };
26258                 static void TakeFoo(const Foo& foo) { }
26259
26260 int
26261 main ()
26262 {
26263
26264                 TakeFoo(17);
26265                 return 0;
26266
26267   ;
26268   return 0;
26269 }
26270 _ACEOF
26271 rm -f conftest.$ac_objext
26272 if { (ac_try="$ac_compile"
26273 case "(($ac_try" in
26274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275   *) ac_try_echo=$ac_try;;
26276 esac
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278   (eval "$ac_compile") 2>conftest.er1
26279   ac_status=$?
26280   grep -v '^ *+' conftest.er1 >conftest.err
26281   rm -f conftest.er1
26282   cat conftest.err >&5
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); } && {
26285          test -z "$ac_cxx_werror_flag" ||
26286          test ! -s conftest.err
26287        } && test -s conftest.$ac_objext; then
26288   wx_cv_explicit=no
26289 else
26290   echo "$as_me: failed program was:" >&5
26291 sed 's/^/| /' conftest.$ac_ext >&5
26292
26293         wx_cv_explicit=yes
26294
26295 fi
26296
26297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26298
26299 else
26300   echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26302
26303         wx_cv_explicit=no
26304
26305 fi
26306
26307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26308
26309     ac_ext=c
26310 ac_cpp='$CPP $CPPFLAGS'
26311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26314
26315
26316 fi
26317 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26318 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26319
26320   if test "$wx_cv_explicit" = "yes"; then
26321     cat >>confdefs.h <<\_ACEOF
26322 #define HAVE_EXPLICIT 1
26323 _ACEOF
26324
26325   fi
26326
26327
26328 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26329 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26330 if test "${ac_cv_cxx_const_cast+set}" = set; then
26331   echo $ECHO_N "(cached) $ECHO_C" >&6
26332 else
26333
26334  ac_ext=cpp
26335 ac_cpp='$CXXCPP $CPPFLAGS'
26336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26339
26340  cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346
26347 int
26348 main ()
26349 {
26350 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26351   ;
26352   return 0;
26353 }
26354 _ACEOF
26355 rm -f conftest.$ac_objext
26356 if { (ac_try="$ac_compile"
26357 case "(($ac_try" in
26358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26359   *) ac_try_echo=$ac_try;;
26360 esac
26361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26362   (eval "$ac_compile") 2>conftest.er1
26363   ac_status=$?
26364   grep -v '^ *+' conftest.er1 >conftest.err
26365   rm -f conftest.er1
26366   cat conftest.err >&5
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); } && {
26369          test -z "$ac_cxx_werror_flag" ||
26370          test ! -s conftest.err
26371        } && test -s conftest.$ac_objext; then
26372   ac_cv_cxx_const_cast=yes
26373 else
26374   echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26376
26377         ac_cv_cxx_const_cast=no
26378 fi
26379
26380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26381  ac_ext=c
26382 ac_cpp='$CPP $CPPFLAGS'
26383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26386
26387
26388 fi
26389 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26390 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26391 if test "$ac_cv_cxx_const_cast" = yes; then
26392
26393 cat >>confdefs.h <<\_ACEOF
26394 #define HAVE_CONST_CAST
26395 _ACEOF
26396
26397 fi
26398
26399 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26400 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26401 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26402   echo $ECHO_N "(cached) $ECHO_C" >&6
26403 else
26404
26405  ac_ext=cpp
26406 ac_cpp='$CXXCPP $CPPFLAGS'
26407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26410
26411  cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h.  */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h.  */
26417 #include <typeinfo>
26418 class Base { public : Base () {} virtual void f () = 0;};
26419 class Derived : public Base { public : Derived () {} virtual void f () {} };
26420 class Unrelated { public : Unrelated () {} };
26421 int g (Unrelated&) { return 0; }
26422 int
26423 main ()
26424 {
26425
26426 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26427   ;
26428   return 0;
26429 }
26430 _ACEOF
26431 rm -f conftest.$ac_objext
26432 if { (ac_try="$ac_compile"
26433 case "(($ac_try" in
26434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26435   *) ac_try_echo=$ac_try;;
26436 esac
26437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26438   (eval "$ac_compile") 2>conftest.er1
26439   ac_status=$?
26440   grep -v '^ *+' conftest.er1 >conftest.err
26441   rm -f conftest.er1
26442   cat conftest.err >&5
26443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444   (exit $ac_status); } && {
26445          test -z "$ac_cxx_werror_flag" ||
26446          test ! -s conftest.err
26447        } && test -s conftest.$ac_objext; then
26448   ac_cv_cxx_reinterpret_cast=yes
26449 else
26450   echo "$as_me: failed program was:" >&5
26451 sed 's/^/| /' conftest.$ac_ext >&5
26452
26453         ac_cv_cxx_reinterpret_cast=no
26454 fi
26455
26456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457  ac_ext=c
26458 ac_cpp='$CPP $CPPFLAGS'
26459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26462
26463
26464 fi
26465 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26466 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26467 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26468
26469 cat >>confdefs.h <<\_ACEOF
26470 #define HAVE_REINTERPRET_CAST
26471 _ACEOF
26472
26473 fi
26474
26475 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26476 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26477 if test "${ac_cv_cxx_static_cast+set}" = set; then
26478   echo $ECHO_N "(cached) $ECHO_C" >&6
26479 else
26480
26481  ac_ext=cpp
26482 ac_cpp='$CXXCPP $CPPFLAGS'
26483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26486
26487  cat >conftest.$ac_ext <<_ACEOF
26488 /* confdefs.h.  */
26489 _ACEOF
26490 cat confdefs.h >>conftest.$ac_ext
26491 cat >>conftest.$ac_ext <<_ACEOF
26492 /* end confdefs.h.  */
26493 #include <typeinfo>
26494 class Base { public : Base () {} virtual void f () = 0; };
26495 class Derived : public Base { public : Derived () {} virtual void f () {} };
26496 int g (Derived&) { return 0; }
26497 int
26498 main ()
26499 {
26500
26501 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26502   ;
26503   return 0;
26504 }
26505 _ACEOF
26506 rm -f conftest.$ac_objext
26507 if { (ac_try="$ac_compile"
26508 case "(($ac_try" in
26509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26510   *) ac_try_echo=$ac_try;;
26511 esac
26512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26513   (eval "$ac_compile") 2>conftest.er1
26514   ac_status=$?
26515   grep -v '^ *+' conftest.er1 >conftest.err
26516   rm -f conftest.er1
26517   cat conftest.err >&5
26518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519   (exit $ac_status); } && {
26520          test -z "$ac_cxx_werror_flag" ||
26521          test ! -s conftest.err
26522        } && test -s conftest.$ac_objext; then
26523   ac_cv_cxx_static_cast=yes
26524 else
26525   echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26527
26528         ac_cv_cxx_static_cast=no
26529 fi
26530
26531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26532  ac_ext=c
26533 ac_cpp='$CPP $CPPFLAGS'
26534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26537
26538
26539 fi
26540 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26541 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26542 if test "$ac_cv_cxx_static_cast" = yes; then
26543
26544 cat >>confdefs.h <<\_ACEOF
26545 #define HAVE_STATIC_CAST
26546 _ACEOF
26547
26548 fi
26549
26550
26551 if test "x$SUNCXX" = xyes; then
26552     CXXFLAGS="-features=tmplife $CXXFLAGS"
26553 fi
26554
26555 if test "x$SUNCC" = xyes; then
26556     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26557 fi
26558
26559 if test "x$SGICC" = "xyes"; then
26560     CFLAGS="-woff 3970 $CFLAGS"
26561 fi
26562 if test "x$SGICXX" = "xyes"; then
26563     CXXFLAGS="-woff 3970 $CXXFLAGS"
26564 fi
26565
26566 if test "x$HPCC" = "xyes"; then
26567                     CFLAGS="+W 2011,2450 $CFLAGS"
26568 fi
26569 if test "x$HPCXX" = "xyes"; then
26570             CXXFLAGS="+W 2340 $CXXFLAGS"
26571 fi
26572
26573 if test "x$COMPAQCXX" = "xyes"; then
26574                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26575 fi
26576
26577 ac_ext=cpp
26578 ac_cpp='$CXXCPP $CPPFLAGS'
26579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26582
26583
26584 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26585     if test "$wxUSE_UNICODE" = "yes"; then
26586         std_string="std::wstring"
26587         char_type="wchar_t"
26588     else
26589         std_string="std::string"
26590         char_type="char"
26591     fi
26592
26593         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26594 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26595 if test "${wx_cv_class_stdstring+set}" = set; then
26596   echo $ECHO_N "(cached) $ECHO_C" >&6
26597 else
26598
26599             cat >conftest.$ac_ext <<_ACEOF
26600 /* confdefs.h.  */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h.  */
26605 #include <string>
26606 int
26607 main ()
26608 {
26609 $std_string foo;
26610   ;
26611   return 0;
26612 }
26613 _ACEOF
26614 rm -f conftest.$ac_objext
26615 if { (ac_try="$ac_compile"
26616 case "(($ac_try" in
26617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618   *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621   (eval "$ac_compile") 2>conftest.er1
26622   ac_status=$?
26623   grep -v '^ *+' conftest.er1 >conftest.err
26624   rm -f conftest.er1
26625   cat conftest.err >&5
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); } && {
26628          test -z "$ac_cxx_werror_flag" ||
26629          test ! -s conftest.err
26630        } && test -s conftest.$ac_objext; then
26631   wx_cv_class_stdstring=yes
26632 else
26633   echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26635
26636         wx_cv_class_stdstring=no
26637
26638 fi
26639
26640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26641
26642
26643 fi
26644 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
26645 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
26646
26647     if test "$wx_cv_class_stdstring" = yes; then
26648         if test "$wxUSE_UNICODE" = "yes"; then
26649             cat >>confdefs.h <<\_ACEOF
26650 #define HAVE_STD_WSTRING 1
26651 _ACEOF
26652
26653         fi
26654                     else
26655         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
26656 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
26657 if test "${wx_cv_class_stdbasicstring+set}" = set; then
26658   echo $ECHO_N "(cached) $ECHO_C" >&6
26659 else
26660
26661                 cat >conftest.$ac_ext <<_ACEOF
26662 /* confdefs.h.  */
26663 _ACEOF
26664 cat confdefs.h >>conftest.$ac_ext
26665 cat >>conftest.$ac_ext <<_ACEOF
26666 /* end confdefs.h.  */
26667
26668                     #ifdef HAVE_WCHAR_H
26669                     #  ifdef __CYGWIN__
26670                     #    include <stddef.h>
26671                     #  endif
26672                     #  include <wchar.h>
26673                     #endif
26674                     #ifdef HAVE_STDLIB_H
26675                     #  include <stdlib.h>
26676                     #endif
26677                     #include <stdio.h>
26678                     #include <string>
26679
26680 int
26681 main ()
26682 {
26683 std::basic_string<$char_type> foo;
26684                      const $char_type* dummy = foo.c_str();
26685   ;
26686   return 0;
26687 }
26688 _ACEOF
26689 rm -f conftest.$ac_objext
26690 if { (ac_try="$ac_compile"
26691 case "(($ac_try" in
26692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693   *) ac_try_echo=$ac_try;;
26694 esac
26695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26696   (eval "$ac_compile") 2>conftest.er1
26697   ac_status=$?
26698   grep -v '^ *+' conftest.er1 >conftest.err
26699   rm -f conftest.er1
26700   cat conftest.err >&5
26701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702   (exit $ac_status); } && {
26703          test -z "$ac_cxx_werror_flag" ||
26704          test ! -s conftest.err
26705        } && test -s conftest.$ac_objext; then
26706   wx_cv_class_stdbasicstring=yes
26707 else
26708   echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26710
26711         wx_cv_class_stdbasicstring=no
26712
26713 fi
26714
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716
26717
26718 fi
26719 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
26720 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
26721
26722         if test "$wx_cv_class_stdbasicstring" != yes; then
26723             if test "$wxUSE_STL" = "yes"; then
26724                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
26725 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
26726    { (exit 1); exit 1; }; }
26727             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
26728                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
26729 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
26730    { (exit 1); exit 1; }; }
26731             else
26732                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
26733 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
26734                 wxUSE_STD_STRING=no
26735             fi
26736         fi
26737     fi
26738 fi
26739
26740 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26741     { echo "$as_me:$LINENO: checking for std::istream" >&5
26742 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
26743 if test "${ac_cv_type_std__istream+set}" = set; then
26744   echo $ECHO_N "(cached) $ECHO_C" >&6
26745 else
26746   cat >conftest.$ac_ext <<_ACEOF
26747 /* confdefs.h.  */
26748 _ACEOF
26749 cat confdefs.h >>conftest.$ac_ext
26750 cat >>conftest.$ac_ext <<_ACEOF
26751 /* end confdefs.h.  */
26752 #include <iostream>
26753
26754 typedef std::istream ac__type_new_;
26755 int
26756 main ()
26757 {
26758 if ((ac__type_new_ *) 0)
26759   return 0;
26760 if (sizeof (ac__type_new_))
26761   return 0;
26762   ;
26763   return 0;
26764 }
26765 _ACEOF
26766 rm -f conftest.$ac_objext
26767 if { (ac_try="$ac_compile"
26768 case "(($ac_try" in
26769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26770   *) ac_try_echo=$ac_try;;
26771 esac
26772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26773   (eval "$ac_compile") 2>conftest.er1
26774   ac_status=$?
26775   grep -v '^ *+' conftest.er1 >conftest.err
26776   rm -f conftest.er1
26777   cat conftest.err >&5
26778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779   (exit $ac_status); } && {
26780          test -z "$ac_cxx_werror_flag" ||
26781          test ! -s conftest.err
26782        } && test -s conftest.$ac_objext; then
26783   ac_cv_type_std__istream=yes
26784 else
26785   echo "$as_me: failed program was:" >&5
26786 sed 's/^/| /' conftest.$ac_ext >&5
26787
26788         ac_cv_type_std__istream=no
26789 fi
26790
26791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26792 fi
26793 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
26794 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
26795 if test $ac_cv_type_std__istream = yes; then
26796
26797 cat >>confdefs.h <<_ACEOF
26798 #define HAVE_STD__ISTREAM 1
26799 _ACEOF
26800
26801
26802 else
26803   wxUSE_STD_IOSTREAM=no
26804 fi
26805 { echo "$as_me:$LINENO: checking for std::ostream" >&5
26806 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
26807 if test "${ac_cv_type_std__ostream+set}" = set; then
26808   echo $ECHO_N "(cached) $ECHO_C" >&6
26809 else
26810   cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816 #include <iostream>
26817
26818 typedef std::ostream ac__type_new_;
26819 int
26820 main ()
26821 {
26822 if ((ac__type_new_ *) 0)
26823   return 0;
26824 if (sizeof (ac__type_new_))
26825   return 0;
26826   ;
26827   return 0;
26828 }
26829 _ACEOF
26830 rm -f conftest.$ac_objext
26831 if { (ac_try="$ac_compile"
26832 case "(($ac_try" in
26833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834   *) ac_try_echo=$ac_try;;
26835 esac
26836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837   (eval "$ac_compile") 2>conftest.er1
26838   ac_status=$?
26839   grep -v '^ *+' conftest.er1 >conftest.err
26840   rm -f conftest.er1
26841   cat conftest.err >&5
26842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843   (exit $ac_status); } && {
26844          test -z "$ac_cxx_werror_flag" ||
26845          test ! -s conftest.err
26846        } && test -s conftest.$ac_objext; then
26847   ac_cv_type_std__ostream=yes
26848 else
26849   echo "$as_me: failed program was:" >&5
26850 sed 's/^/| /' conftest.$ac_ext >&5
26851
26852         ac_cv_type_std__ostream=no
26853 fi
26854
26855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26856 fi
26857 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26858 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26859 if test $ac_cv_type_std__ostream = yes; then
26860
26861 cat >>confdefs.h <<_ACEOF
26862 #define HAVE_STD__OSTREAM 1
26863 _ACEOF
26864
26865
26866 else
26867   wxUSE_STD_IOSTREAM=no
26868 fi
26869
26870
26871     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26872         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
26873             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26874 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26875    { (exit 1); exit 1; }; }
26876         else
26877             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26878 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26879         fi
26880     fi
26881 fi
26882
26883 if test "$wxUSE_STL" = "yes"; then
26884         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26885 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26886 if test "${wx_cv_lib_stl+set}" = set; then
26887   echo $ECHO_N "(cached) $ECHO_C" >&6
26888 else
26889   cat >conftest.$ac_ext <<_ACEOF
26890 /* confdefs.h.  */
26891 _ACEOF
26892 cat confdefs.h >>conftest.$ac_ext
26893 cat >>conftest.$ac_ext <<_ACEOF
26894 /* end confdefs.h.  */
26895 #include <string>
26896             #include <functional>
26897             #include <algorithm>
26898             #include <vector>
26899             #include <list>
26900 int
26901 main ()
26902 {
26903 std::vector<int> moo;
26904              std::list<int> foo;
26905              std::vector<int>::iterator it =
26906                  std::find_if(moo.begin(), moo.end(),
26907                               std::bind2nd(std::less<int>(), 3));
26908   ;
26909   return 0;
26910 }
26911 _ACEOF
26912 rm -f conftest.$ac_objext
26913 if { (ac_try="$ac_compile"
26914 case "(($ac_try" in
26915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916   *) ac_try_echo=$ac_try;;
26917 esac
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919   (eval "$ac_compile") 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } && {
26926          test -z "$ac_cxx_werror_flag" ||
26927          test ! -s conftest.err
26928        } && test -s conftest.$ac_objext; then
26929   wx_cv_lib_stl=yes
26930 else
26931   echo "$as_me: failed program was:" >&5
26932 sed 's/^/| /' conftest.$ac_ext >&5
26933
26934         wx_cv_lib_stl=no
26935
26936 fi
26937
26938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26939
26940 fi
26941 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26942 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26943
26944     if test "$wx_cv_lib_stl" != yes; then
26945          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26946 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26947    { (exit 1); exit 1; }; }
26948     fi
26949
26950         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26951 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26952 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26953   echo $ECHO_N "(cached) $ECHO_C" >&6
26954 else
26955   cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961 #include <string>
26962 int
26963 main ()
26964 {
26965 std::string foo, bar;
26966             foo.compare(bar);
26967             foo.compare(1, 1, bar);
26968             foo.compare(1, 1, bar, 1, 1);
26969             foo.compare("");
26970             foo.compare(1, 1, "");
26971             foo.compare(1, 1, "", 2);
26972   ;
26973   return 0;
26974 }
26975 _ACEOF
26976 rm -f conftest.$ac_objext
26977 if { (ac_try="$ac_compile"
26978 case "(($ac_try" in
26979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980   *) ac_try_echo=$ac_try;;
26981 esac
26982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983   (eval "$ac_compile") 2>conftest.er1
26984   ac_status=$?
26985   grep -v '^ *+' conftest.er1 >conftest.err
26986   rm -f conftest.er1
26987   cat conftest.err >&5
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); } && {
26990          test -z "$ac_cxx_werror_flag" ||
26991          test ! -s conftest.err
26992        } && test -s conftest.$ac_objext; then
26993   wx_cv_func_stdstring_compare=yes
26994 else
26995   echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26997
26998         wx_cv_func_stdstring_compare=no
26999
27000 fi
27001
27002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27003
27004 fi
27005 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27006 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27007
27008     if test "$wx_cv_func_stdstring_compare" = yes; then
27009         cat >>confdefs.h <<\_ACEOF
27010 #define HAVE_STD_STRING_COMPARE 1
27011 _ACEOF
27012
27013     fi
27014
27015         { echo "$as_me:$LINENO: checking for hash_map" >&5
27016 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27017 if test "${ac_cv_header_hash_map+set}" = set; then
27018   echo $ECHO_N "(cached) $ECHO_C" >&6
27019 else
27020   cat >conftest.$ac_ext <<_ACEOF
27021 /* confdefs.h.  */
27022 _ACEOF
27023 cat confdefs.h >>conftest.$ac_ext
27024 cat >>conftest.$ac_ext <<_ACEOF
27025 /* end confdefs.h.  */
27026
27027
27028
27029 #include <hash_map>
27030 _ACEOF
27031 rm -f conftest.$ac_objext
27032 if { (ac_try="$ac_compile"
27033 case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038   (eval "$ac_compile") 2>conftest.er1
27039   ac_status=$?
27040   grep -v '^ *+' conftest.er1 >conftest.err
27041   rm -f conftest.er1
27042   cat conftest.err >&5
27043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044   (exit $ac_status); } && {
27045          test -z "$ac_cxx_werror_flag" ||
27046          test ! -s conftest.err
27047        } && test -s conftest.$ac_objext; then
27048   ac_cv_header_hash_map=yes
27049 else
27050   echo "$as_me: failed program was:" >&5
27051 sed 's/^/| /' conftest.$ac_ext >&5
27052
27053         ac_cv_header_hash_map=no
27054 fi
27055
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057 fi
27058 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27059 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27060 if test $ac_cv_header_hash_map = yes; then
27061   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27062 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27063 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27064   echo $ECHO_N "(cached) $ECHO_C" >&6
27065 else
27066   cat >conftest.$ac_ext <<_ACEOF
27067 /* confdefs.h.  */
27068 _ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h.  */
27072 #include <hash_map>
27073                 #include <hash_set>
27074 int
27075 main ()
27076 {
27077 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27078                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27079   ;
27080   return 0;
27081 }
27082 _ACEOF
27083 rm -f conftest.$ac_objext
27084 if { (ac_try="$ac_compile"
27085 case "(($ac_try" in
27086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087   *) ac_try_echo=$ac_try;;
27088 esac
27089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27090   (eval "$ac_compile") 2>conftest.er1
27091   ac_status=$?
27092   grep -v '^ *+' conftest.er1 >conftest.err
27093   rm -f conftest.er1
27094   cat conftest.err >&5
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); } && {
27097          test -z "$ac_cxx_werror_flag" ||
27098          test ! -s conftest.err
27099        } && test -s conftest.$ac_objext; then
27100   wx_cv_class_stdhashmapset=yes
27101 else
27102   echo "$as_me: failed program was:" >&5
27103 sed 's/^/| /' conftest.$ac_ext >&5
27104
27105         wx_cv_class_stdhashmapset=no
27106 fi
27107
27108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27109
27110
27111 fi
27112 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27113 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27114 fi
27115
27116
27117
27118     if test "$wx_cv_class_stdhashmapset" = yes; then
27119         cat >>confdefs.h <<\_ACEOF
27120 #define HAVE_HASH_MAP 1
27121 _ACEOF
27122
27123         cat >>confdefs.h <<\_ACEOF
27124 #define HAVE_STD_HASH_MAP 1
27125 _ACEOF
27126
27127     fi
27128
27129     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27130 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27131 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27132   echo $ECHO_N "(cached) $ECHO_C" >&6
27133 else
27134   cat >conftest.$ac_ext <<_ACEOF
27135 /* confdefs.h.  */
27136 _ACEOF
27137 cat confdefs.h >>conftest.$ac_ext
27138 cat >>conftest.$ac_ext <<_ACEOF
27139 /* end confdefs.h.  */
27140
27141
27142
27143 #include <ext/hash_map>
27144 _ACEOF
27145 rm -f conftest.$ac_objext
27146 if { (ac_try="$ac_compile"
27147 case "(($ac_try" in
27148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149   *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152   (eval "$ac_compile") 2>conftest.er1
27153   ac_status=$?
27154   grep -v '^ *+' conftest.er1 >conftest.err
27155   rm -f conftest.er1
27156   cat conftest.err >&5
27157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); } && {
27159          test -z "$ac_cxx_werror_flag" ||
27160          test ! -s conftest.err
27161        } && test -s conftest.$ac_objext; then
27162   ac_cv_header_ext_hash_map=yes
27163 else
27164   echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27166
27167         ac_cv_header_ext_hash_map=no
27168 fi
27169
27170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27171 fi
27172 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27173 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27174 if test $ac_cv_header_ext_hash_map = yes; then
27175   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27176 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27177 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27178   echo $ECHO_N "(cached) $ECHO_C" >&6
27179 else
27180   cat >conftest.$ac_ext <<_ACEOF
27181 /* confdefs.h.  */
27182 _ACEOF
27183 cat confdefs.h >>conftest.$ac_ext
27184 cat >>conftest.$ac_ext <<_ACEOF
27185 /* end confdefs.h.  */
27186 #include <ext/hash_map>
27187                 #include <ext/hash_set>
27188 int
27189 main ()
27190 {
27191 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27192                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27193   ;
27194   return 0;
27195 }
27196 _ACEOF
27197 rm -f conftest.$ac_objext
27198 if { (ac_try="$ac_compile"
27199 case "(($ac_try" in
27200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201   *) ac_try_echo=$ac_try;;
27202 esac
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204   (eval "$ac_compile") 2>conftest.er1
27205   ac_status=$?
27206   grep -v '^ *+' conftest.er1 >conftest.err
27207   rm -f conftest.er1
27208   cat conftest.err >&5
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); } && {
27211          test -z "$ac_cxx_werror_flag" ||
27212          test ! -s conftest.err
27213        } && test -s conftest.$ac_objext; then
27214   wx_cv_class_gnuhashmapset=yes
27215 else
27216   echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27218
27219         wx_cv_class_gnuhashmapset=no
27220 fi
27221
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223
27224
27225 fi
27226 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27227 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27228 fi
27229
27230
27231
27232     if test "$wx_cv_class_gnuhashmapset" = yes; then
27233          cat >>confdefs.h <<\_ACEOF
27234 #define HAVE_EXT_HASH_MAP 1
27235 _ACEOF
27236
27237          cat >>confdefs.h <<\_ACEOF
27238 #define HAVE_GNU_CXX_HASH_MAP 1
27239 _ACEOF
27240
27241     fi
27242 fi
27243
27244 ac_ext=c
27245 ac_cpp='$CPP $CPPFLAGS'
27246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27249
27250
27251
27252 SEARCH_INCLUDE="\
27253     /usr/local/include        \
27254                               \
27255     /usr/Motif-2.1/include    \
27256     /usr/Motif-1.2/include    \
27257     /usr/include/Motif1.2     \
27258                               \
27259     /usr/dt/include           \
27260     /usr/openwin/include      \
27261                               \
27262     /usr/include/Xm           \
27263                               \
27264     /usr/X11R6/include        \
27265     /usr/X11R6.4/include      \
27266     /usr/X11R5/include        \
27267     /usr/X11R4/include        \
27268                               \
27269     /usr/include/X11R6        \
27270     /usr/include/X11R5        \
27271     /usr/include/X11R4        \
27272                               \
27273     /usr/local/X11R6/include  \
27274     /usr/local/X11R5/include  \
27275     /usr/local/X11R4/include  \
27276                               \
27277     /usr/local/include/X11R6  \
27278     /usr/local/include/X11R5  \
27279     /usr/local/include/X11R4  \
27280                               \
27281     /usr/X11/include          \
27282     /usr/include/X11          \
27283     /usr/local/X11/include    \
27284     /usr/local/include/X11    \
27285                               \
27286     /usr/XFree86/include/X11  \
27287     /usr/pkg/include          \
27288                               \
27289     /usr/openwin/share/include"
27290
27291 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27292 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27293
27294 case "${host}" in
27295     *-*-irix6* )
27296         if test "${wx_cv_std_libpath+set}" = set; then
27297   echo $ECHO_N "(cached) $ECHO_C" >&6
27298 else
27299
27300                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27301                     for e in a so sl dylib dll.a; do
27302                         libc="$d/libc.$e"
27303                         if test -f $libc; then
27304                             save_LIBS="$LIBS"
27305                             LIBS="$libc"
27306                             cat >conftest.$ac_ext <<_ACEOF
27307 int main() { return 0; }
27308 _ACEOF
27309 rm -f conftest.$ac_objext conftest$ac_exeext
27310 if { (ac_try="$ac_link"
27311 case "(($ac_try" in
27312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313   *) ac_try_echo=$ac_try;;
27314 esac
27315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316   (eval "$ac_link") 2>conftest.er1
27317   ac_status=$?
27318   grep -v '^ *+' conftest.er1 >conftest.err
27319   rm -f conftest.er1
27320   cat conftest.err >&5
27321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322   (exit $ac_status); } && {
27323          test -z "$ac_c_werror_flag" ||
27324          test ! -s conftest.err
27325        } && test -s conftest$ac_exeext &&
27326        $as_test_x conftest$ac_exeext; then
27327   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27328 else
27329   echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27331
27332
27333 fi
27334
27335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27336       conftest$ac_exeext conftest.$ac_ext
27337                             LIBS="$save_LIBS"
27338                             if test "x$wx_cv_std_libpath" != "x"; then
27339                                 break 2
27340                             fi
27341                         fi
27342                     done
27343                 done
27344                 if test "x$wx_cv_std_libpath" = "x"; then
27345                     wx_cv_std_libpath="lib"
27346                 fi
27347
27348
27349 fi
27350
27351         ;;
27352
27353     *-*-solaris2* )
27354                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27355             wx_cv_std_libpath="lib/64"
27356         else
27357             wx_cv_std_libpath="lib"
27358         fi
27359         ;;
27360
27361     *-*-linux* )
27362                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27363                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27364             wx_cv_std_libpath="lib64"
27365         else
27366             wx_cv_std_libpath="lib"
27367         fi
27368         ;;
27369
27370     *)
27371         wx_cv_std_libpath="lib";
27372         ;;
27373 esac
27374
27375 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27376 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27377
27378 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27379
27380 if test "$build" != "$host" -a "$GCC" = yes; then
27381                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27382         cross_root=`dirname $cross_root`
27383         cross_root=`dirname $cross_root`
27384
27385                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27386         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27387         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27388
27389                 if test -z "$PKG_CONFIG_PATH"; then
27390             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27391             export PKG_CONFIG_PATH
27392         fi
27393
27394                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27395
27396 ac_find_includes=
27397 for ac_dir in $SEARCH_INCLUDE /usr/include;
27398   do
27399     if test -f "$ac_dir/X11/Intrinsic.h"; then
27400       ac_find_includes=$ac_dir
27401       break
27402     fi
27403   done
27404
27405             x_includes=$ac_find_includes
27406         fi
27407         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27408
27409   ac_find_libraries=
27410   for ac_dir in $SEARCH_LIB;
27411   do
27412     for ac_extension in a so sl dylib dll.a; do
27413       if test -f "$ac_dir/libXt.$ac_extension"; then
27414         ac_find_libraries=$ac_dir
27415         break 2
27416       fi
27417     done
27418   done
27419
27420             x_libraries=$ac_find_libraries
27421         fi
27422     fi
27423 fi
27424
27425
27426 cat >confcache <<\_ACEOF
27427 # This file is a shell script that caches the results of configure
27428 # tests run on this system so they can be shared between configure
27429 # scripts and configure runs, see configure's option --config-cache.
27430 # It is not useful on other systems.  If it contains results you don't
27431 # want to keep, you may remove or edit it.
27432 #
27433 # config.status only pays attention to the cache file if you give it
27434 # the --recheck option to rerun configure.
27435 #
27436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27438 # following values.
27439
27440 _ACEOF
27441
27442 # The following way of writing the cache mishandles newlines in values,
27443 # but we know of no workaround that is simple, portable, and efficient.
27444 # So, we kill variables containing newlines.
27445 # Ultrix sh set writes to stderr and can't be redirected directly,
27446 # and sets the high bit in the cache file unless we assign to the vars.
27447 (
27448   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27449     eval ac_val=\$$ac_var
27450     case $ac_val in #(
27451     *${as_nl}*)
27452       case $ac_var in #(
27453       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27454 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27455       esac
27456       case $ac_var in #(
27457       _ | IFS | as_nl) ;; #(
27458       *) $as_unset $ac_var ;;
27459       esac ;;
27460     esac
27461   done
27462
27463   (set) 2>&1 |
27464     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27465     *${as_nl}ac_space=\ *)
27466       # `set' does not quote correctly, so add quotes (double-quote
27467       # substitution turns \\\\ into \\, and sed turns \\ into \).
27468       sed -n \
27469         "s/'/'\\\\''/g;
27470           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27471       ;; #(
27472     *)
27473       # `set' quotes correctly as required by POSIX, so do not add quotes.
27474       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27475       ;;
27476     esac |
27477     sort
27478 ) |
27479   sed '
27480      /^ac_cv_env_/b end
27481      t clear
27482      :clear
27483      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27484      t end
27485      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27486      :end' >>confcache
27487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27488   if test -w "$cache_file"; then
27489     test "x$cache_file" != "x/dev/null" &&
27490       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27491 echo "$as_me: updating cache $cache_file" >&6;}
27492     cat confcache >$cache_file
27493   else
27494     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27495 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27496   fi
27497 fi
27498 rm -f confcache
27499
27500 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27501     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27502 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27503 if test "${wx_cv_lib_glibc21+set}" = set; then
27504   echo $ECHO_N "(cached) $ECHO_C" >&6
27505 else
27506
27507         cat >conftest.$ac_ext <<_ACEOF
27508 /* confdefs.h.  */
27509 _ACEOF
27510 cat confdefs.h >>conftest.$ac_ext
27511 cat >>conftest.$ac_ext <<_ACEOF
27512 /* end confdefs.h.  */
27513 #include <features.h>
27514 int
27515 main ()
27516 {
27517
27518                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27519                 not glibc 2.1
27520                 #endif
27521
27522   ;
27523   return 0;
27524 }
27525 _ACEOF
27526 rm -f conftest.$ac_objext
27527 if { (ac_try="$ac_compile"
27528 case "(($ac_try" in
27529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27530   *) ac_try_echo=$ac_try;;
27531 esac
27532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27533   (eval "$ac_compile") 2>conftest.er1
27534   ac_status=$?
27535   grep -v '^ *+' conftest.er1 >conftest.err
27536   rm -f conftest.er1
27537   cat conftest.err >&5
27538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539   (exit $ac_status); } && {
27540          test -z "$ac_c_werror_flag" ||
27541          test ! -s conftest.err
27542        } && test -s conftest.$ac_objext; then
27543
27544                 wx_cv_lib_glibc21=yes
27545
27546 else
27547   echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27549
27550
27551                 wx_cv_lib_glibc21=no
27552
27553
27554 fi
27555
27556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27557
27558 fi
27559 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27560 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27561     if test "$wx_cv_lib_glibc21" = "yes"; then
27562         cat >>confdefs.h <<\_ACEOF
27563 #define wxHAVE_GLIBC2 1
27564 _ACEOF
27565
27566     fi
27567 fi
27568
27569 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27570     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27571         cat >>confdefs.h <<\_ACEOF
27572 #define _GNU_SOURCE 1
27573 _ACEOF
27574
27575     fi
27576 fi
27577
27578 have_cos=0
27579 have_floor=0
27580
27581 for ac_func in cos
27582 do
27583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27587   echo $ECHO_N "(cached) $ECHO_C" >&6
27588 else
27589   cat >conftest.$ac_ext <<_ACEOF
27590 /* confdefs.h.  */
27591 _ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h.  */
27595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27597 #define $ac_func innocuous_$ac_func
27598
27599 /* System header to define __stub macros and hopefully few prototypes,
27600     which can conflict with char $ac_func (); below.
27601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27602     <limits.h> exists even on freestanding compilers.  */
27603
27604 #ifdef __STDC__
27605 # include <limits.h>
27606 #else
27607 # include <assert.h>
27608 #endif
27609
27610 #undef $ac_func
27611
27612 /* Override any GCC internal prototype to avoid an error.
27613    Use char because int might match the return type of a GCC
27614    builtin and then its argument prototype would still apply.  */
27615 #ifdef __cplusplus
27616 extern "C"
27617 #endif
27618 char $ac_func ();
27619 /* The GNU C library defines this for functions which it implements
27620     to always fail with ENOSYS.  Some functions are actually named
27621     something starting with __ and the normal name is an alias.  */
27622 #if defined __stub_$ac_func || defined __stub___$ac_func
27623 choke me
27624 #endif
27625
27626 int
27627 main ()
27628 {
27629 return $ac_func ();
27630   ;
27631   return 0;
27632 }
27633 _ACEOF
27634 rm -f conftest.$ac_objext conftest$ac_exeext
27635 if { (ac_try="$ac_link"
27636 case "(($ac_try" in
27637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638   *) ac_try_echo=$ac_try;;
27639 esac
27640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641   (eval "$ac_link") 2>conftest.er1
27642   ac_status=$?
27643   grep -v '^ *+' conftest.er1 >conftest.err
27644   rm -f conftest.er1
27645   cat conftest.err >&5
27646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); } && {
27648          test -z "$ac_c_werror_flag" ||
27649          test ! -s conftest.err
27650        } && test -s conftest$ac_exeext &&
27651        $as_test_x conftest$ac_exeext; then
27652   eval "$as_ac_var=yes"
27653 else
27654   echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27656
27657         eval "$as_ac_var=no"
27658 fi
27659
27660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27661       conftest$ac_exeext conftest.$ac_ext
27662 fi
27663 ac_res=`eval echo '${'$as_ac_var'}'`
27664                { echo "$as_me:$LINENO: result: $ac_res" >&5
27665 echo "${ECHO_T}$ac_res" >&6; }
27666 if test `eval echo '${'$as_ac_var'}'` = yes; then
27667   cat >>confdefs.h <<_ACEOF
27668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27669 _ACEOF
27670  have_cos=1
27671 fi
27672 done
27673
27674
27675 for ac_func in floor
27676 do
27677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27681   echo $ECHO_N "(cached) $ECHO_C" >&6
27682 else
27683   cat >conftest.$ac_ext <<_ACEOF
27684 /* confdefs.h.  */
27685 _ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h.  */
27689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27691 #define $ac_func innocuous_$ac_func
27692
27693 /* System header to define __stub macros and hopefully few prototypes,
27694     which can conflict with char $ac_func (); below.
27695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27696     <limits.h> exists even on freestanding compilers.  */
27697
27698 #ifdef __STDC__
27699 # include <limits.h>
27700 #else
27701 # include <assert.h>
27702 #endif
27703
27704 #undef $ac_func
27705
27706 /* Override any GCC internal prototype to avoid an error.
27707    Use char because int might match the return type of a GCC
27708    builtin and then its argument prototype would still apply.  */
27709 #ifdef __cplusplus
27710 extern "C"
27711 #endif
27712 char $ac_func ();
27713 /* The GNU C library defines this for functions which it implements
27714     to always fail with ENOSYS.  Some functions are actually named
27715     something starting with __ and the normal name is an alias.  */
27716 #if defined __stub_$ac_func || defined __stub___$ac_func
27717 choke me
27718 #endif
27719
27720 int
27721 main ()
27722 {
27723 return $ac_func ();
27724   ;
27725   return 0;
27726 }
27727 _ACEOF
27728 rm -f conftest.$ac_objext conftest$ac_exeext
27729 if { (ac_try="$ac_link"
27730 case "(($ac_try" in
27731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732   *) ac_try_echo=$ac_try;;
27733 esac
27734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735   (eval "$ac_link") 2>conftest.er1
27736   ac_status=$?
27737   grep -v '^ *+' conftest.er1 >conftest.err
27738   rm -f conftest.er1
27739   cat conftest.err >&5
27740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); } && {
27742          test -z "$ac_c_werror_flag" ||
27743          test ! -s conftest.err
27744        } && test -s conftest$ac_exeext &&
27745        $as_test_x conftest$ac_exeext; then
27746   eval "$as_ac_var=yes"
27747 else
27748   echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27750
27751         eval "$as_ac_var=no"
27752 fi
27753
27754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27755       conftest$ac_exeext conftest.$ac_ext
27756 fi
27757 ac_res=`eval echo '${'$as_ac_var'}'`
27758                { echo "$as_me:$LINENO: result: $ac_res" >&5
27759 echo "${ECHO_T}$ac_res" >&6; }
27760 if test `eval echo '${'$as_ac_var'}'` = yes; then
27761   cat >>confdefs.h <<_ACEOF
27762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27763 _ACEOF
27764  have_floor=1
27765 fi
27766 done
27767
27768 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27769 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27770 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27771     { echo "$as_me:$LINENO: result: yes" >&5
27772 echo "${ECHO_T}yes" >&6; }
27773 else
27774     { echo "$as_me:$LINENO: result: no" >&5
27775 echo "${ECHO_T}no" >&6; }
27776     LIBS="$LIBS -lm"
27777     # use different functions to avoid configure caching
27778     have_sin=0
27779     have_ceil=0
27780
27781 for ac_func in sin
27782 do
27783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27787   echo $ECHO_N "(cached) $ECHO_C" >&6
27788 else
27789   cat >conftest.$ac_ext <<_ACEOF
27790 /* confdefs.h.  */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h.  */
27795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27797 #define $ac_func innocuous_$ac_func
27798
27799 /* System header to define __stub macros and hopefully few prototypes,
27800     which can conflict with char $ac_func (); below.
27801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27802     <limits.h> exists even on freestanding compilers.  */
27803
27804 #ifdef __STDC__
27805 # include <limits.h>
27806 #else
27807 # include <assert.h>
27808 #endif
27809
27810 #undef $ac_func
27811
27812 /* Override any GCC internal prototype to avoid an error.
27813    Use char because int might match the return type of a GCC
27814    builtin and then its argument prototype would still apply.  */
27815 #ifdef __cplusplus
27816 extern "C"
27817 #endif
27818 char $ac_func ();
27819 /* The GNU C library defines this for functions which it implements
27820     to always fail with ENOSYS.  Some functions are actually named
27821     something starting with __ and the normal name is an alias.  */
27822 #if defined __stub_$ac_func || defined __stub___$ac_func
27823 choke me
27824 #endif
27825
27826 int
27827 main ()
27828 {
27829 return $ac_func ();
27830   ;
27831   return 0;
27832 }
27833 _ACEOF
27834 rm -f conftest.$ac_objext conftest$ac_exeext
27835 if { (ac_try="$ac_link"
27836 case "(($ac_try" in
27837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27838   *) ac_try_echo=$ac_try;;
27839 esac
27840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27841   (eval "$ac_link") 2>conftest.er1
27842   ac_status=$?
27843   grep -v '^ *+' conftest.er1 >conftest.err
27844   rm -f conftest.er1
27845   cat conftest.err >&5
27846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847   (exit $ac_status); } && {
27848          test -z "$ac_c_werror_flag" ||
27849          test ! -s conftest.err
27850        } && test -s conftest$ac_exeext &&
27851        $as_test_x conftest$ac_exeext; then
27852   eval "$as_ac_var=yes"
27853 else
27854   echo "$as_me: failed program was:" >&5
27855 sed 's/^/| /' conftest.$ac_ext >&5
27856
27857         eval "$as_ac_var=no"
27858 fi
27859
27860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27861       conftest$ac_exeext conftest.$ac_ext
27862 fi
27863 ac_res=`eval echo '${'$as_ac_var'}'`
27864                { echo "$as_me:$LINENO: result: $ac_res" >&5
27865 echo "${ECHO_T}$ac_res" >&6; }
27866 if test `eval echo '${'$as_ac_var'}'` = yes; then
27867   cat >>confdefs.h <<_ACEOF
27868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27869 _ACEOF
27870  have_sin=1
27871 fi
27872 done
27873
27874
27875 for ac_func in ceil
27876 do
27877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27881   echo $ECHO_N "(cached) $ECHO_C" >&6
27882 else
27883   cat >conftest.$ac_ext <<_ACEOF
27884 /* confdefs.h.  */
27885 _ACEOF
27886 cat confdefs.h >>conftest.$ac_ext
27887 cat >>conftest.$ac_ext <<_ACEOF
27888 /* end confdefs.h.  */
27889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27891 #define $ac_func innocuous_$ac_func
27892
27893 /* System header to define __stub macros and hopefully few prototypes,
27894     which can conflict with char $ac_func (); below.
27895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27896     <limits.h> exists even on freestanding compilers.  */
27897
27898 #ifdef __STDC__
27899 # include <limits.h>
27900 #else
27901 # include <assert.h>
27902 #endif
27903
27904 #undef $ac_func
27905
27906 /* Override any GCC internal prototype to avoid an error.
27907    Use char because int might match the return type of a GCC
27908    builtin and then its argument prototype would still apply.  */
27909 #ifdef __cplusplus
27910 extern "C"
27911 #endif
27912 char $ac_func ();
27913 /* The GNU C library defines this for functions which it implements
27914     to always fail with ENOSYS.  Some functions are actually named
27915     something starting with __ and the normal name is an alias.  */
27916 #if defined __stub_$ac_func || defined __stub___$ac_func
27917 choke me
27918 #endif
27919
27920 int
27921 main ()
27922 {
27923 return $ac_func ();
27924   ;
27925   return 0;
27926 }
27927 _ACEOF
27928 rm -f conftest.$ac_objext conftest$ac_exeext
27929 if { (ac_try="$ac_link"
27930 case "(($ac_try" in
27931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932   *) ac_try_echo=$ac_try;;
27933 esac
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935   (eval "$ac_link") 2>conftest.er1
27936   ac_status=$?
27937   grep -v '^ *+' conftest.er1 >conftest.err
27938   rm -f conftest.er1
27939   cat conftest.err >&5
27940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941   (exit $ac_status); } && {
27942          test -z "$ac_c_werror_flag" ||
27943          test ! -s conftest.err
27944        } && test -s conftest$ac_exeext &&
27945        $as_test_x conftest$ac_exeext; then
27946   eval "$as_ac_var=yes"
27947 else
27948   echo "$as_me: failed program was:" >&5
27949 sed 's/^/| /' conftest.$ac_ext >&5
27950
27951         eval "$as_ac_var=no"
27952 fi
27953
27954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27955       conftest$ac_exeext conftest.$ac_ext
27956 fi
27957 ac_res=`eval echo '${'$as_ac_var'}'`
27958                { echo "$as_me:$LINENO: result: $ac_res" >&5
27959 echo "${ECHO_T}$ac_res" >&6; }
27960 if test `eval echo '${'$as_ac_var'}'` = yes; then
27961   cat >>confdefs.h <<_ACEOF
27962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27963 _ACEOF
27964  have_ceil=1
27965 fi
27966 done
27967
27968     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27969 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27970     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27971         { echo "$as_me:$LINENO: result: yes" >&5
27972 echo "${ECHO_T}yes" >&6; }
27973     else
27974         { echo "$as_me:$LINENO: result: no" >&5
27975 echo "${ECHO_T}no" >&6; }
27976         # not sure we should warn the user, crash, etc.
27977     fi
27978 fi
27979
27980 ac_ext=cpp
27981 ac_cpp='$CXXCPP $CPPFLAGS'
27982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27985
27986 if test "wxUSE_UNICODE" = "yes"; then
27987
27988   for wx_func in wcstoull
27989   do
27990     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27991 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27992 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27993   echo $ECHO_N "(cached) $ECHO_C" >&6
27994 else
27995
27996         cat >conftest.$ac_ext <<_ACEOF
27997
27998             /* confdefs.h.  */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h.  */
28003
28004
28005                 $ac_includes_default
28006
28007 int
28008 main ()
28009 {
28010
28011                 #ifndef $wx_func
28012                   &$wx_func;
28013                 #endif
28014
28015
28016   ;
28017   return 0;
28018 }
28019
28020 _ACEOF
28021 rm -f conftest.$ac_objext conftest$ac_exeext
28022 if { (ac_try="$ac_link"
28023 case "(($ac_try" in
28024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28025   *) ac_try_echo=$ac_try;;
28026 esac
28027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28028   (eval "$ac_link") 2>conftest.er1
28029   ac_status=$?
28030   grep -v '^ *+' conftest.er1 >conftest.err
28031   rm -f conftest.er1
28032   cat conftest.err >&5
28033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034   (exit $ac_status); } && {
28035          test -z "$ac_cxx_werror_flag" ||
28036          test ! -s conftest.err
28037        } && test -s conftest$ac_exeext &&
28038        $as_test_x conftest$ac_exeext; then
28039   eval wx_cv_func_$wx_func=yes
28040 else
28041   echo "$as_me: failed program was:" >&5
28042 sed 's/^/| /' conftest.$ac_ext >&5
28043
28044         eval wx_cv_func_$wx_func=no
28045 fi
28046
28047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28048       conftest$ac_exeext conftest.$ac_ext
28049
28050 fi
28051 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28052                { echo "$as_me:$LINENO: result: $ac_res" >&5
28053 echo "${ECHO_T}$ac_res" >&6; }
28054
28055     if eval test \$wx_cv_func_$wx_func = yes
28056     then
28057       cat >>confdefs.h <<_ACEOF
28058 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28059 _ACEOF
28060
28061
28062     else
28063       :
28064
28065     fi
28066   done
28067
28068 else
28069
28070   for wx_func in strtoull
28071   do
28072     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28073 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28074 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28075   echo $ECHO_N "(cached) $ECHO_C" >&6
28076 else
28077
28078         cat >conftest.$ac_ext <<_ACEOF
28079
28080             /* confdefs.h.  */
28081 _ACEOF
28082 cat confdefs.h >>conftest.$ac_ext
28083 cat >>conftest.$ac_ext <<_ACEOF
28084 /* end confdefs.h.  */
28085
28086
28087                 $ac_includes_default
28088
28089 int
28090 main ()
28091 {
28092
28093                 #ifndef $wx_func
28094                   &$wx_func;
28095                 #endif
28096
28097
28098   ;
28099   return 0;
28100 }
28101
28102 _ACEOF
28103 rm -f conftest.$ac_objext conftest$ac_exeext
28104 if { (ac_try="$ac_link"
28105 case "(($ac_try" in
28106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28107   *) ac_try_echo=$ac_try;;
28108 esac
28109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28110   (eval "$ac_link") 2>conftest.er1
28111   ac_status=$?
28112   grep -v '^ *+' conftest.er1 >conftest.err
28113   rm -f conftest.er1
28114   cat conftest.err >&5
28115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); } && {
28117          test -z "$ac_cxx_werror_flag" ||
28118          test ! -s conftest.err
28119        } && test -s conftest$ac_exeext &&
28120        $as_test_x conftest$ac_exeext; then
28121   eval wx_cv_func_$wx_func=yes
28122 else
28123   echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28125
28126         eval wx_cv_func_$wx_func=no
28127 fi
28128
28129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28130       conftest$ac_exeext conftest.$ac_ext
28131
28132 fi
28133 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28134                { echo "$as_me:$LINENO: result: $ac_res" >&5
28135 echo "${ECHO_T}$ac_res" >&6; }
28136
28137     if eval test \$wx_cv_func_$wx_func = yes
28138     then
28139       cat >>confdefs.h <<_ACEOF
28140 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28141 _ACEOF
28142
28143
28144     else
28145       :
28146
28147     fi
28148   done
28149
28150 fi
28151 ac_ext=c
28152 ac_cpp='$CPP $CPPFLAGS'
28153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28156
28157
28158
28159
28160 if test "$wxUSE_REGEX" != "no"; then
28161     cat >>confdefs.h <<\_ACEOF
28162 #define wxUSE_REGEX 1
28163 _ACEOF
28164
28165
28166     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28167         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28168 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28169         wxUSE_REGEX=builtin
28170     fi
28171
28172     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28173                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28174 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28175 if test "${ac_cv_header_regex_h+set}" = set; then
28176   echo $ECHO_N "(cached) $ECHO_C" >&6
28177 else
28178   cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184
28185
28186 #include <regex.h>
28187 _ACEOF
28188 rm -f conftest.$ac_objext
28189 if { (ac_try="$ac_compile"
28190 case "(($ac_try" in
28191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192   *) ac_try_echo=$ac_try;;
28193 esac
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195   (eval "$ac_compile") 2>conftest.er1
28196   ac_status=$?
28197   grep -v '^ *+' conftest.er1 >conftest.err
28198   rm -f conftest.er1
28199   cat conftest.err >&5
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); } && {
28202          test -z "$ac_c_werror_flag" ||
28203          test ! -s conftest.err
28204        } && test -s conftest.$ac_objext; then
28205   ac_cv_header_regex_h=yes
28206 else
28207   echo "$as_me: failed program was:" >&5
28208 sed 's/^/| /' conftest.$ac_ext >&5
28209
28210         ac_cv_header_regex_h=no
28211 fi
28212
28213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28214 fi
28215 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28216 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28217 if test $ac_cv_header_regex_h = yes; then
28218
28219
28220 for ac_func in regcomp re_search
28221 do
28222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28225 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28226   echo $ECHO_N "(cached) $ECHO_C" >&6
28227 else
28228   cat >conftest.$ac_ext <<_ACEOF
28229 /* confdefs.h.  */
28230 _ACEOF
28231 cat confdefs.h >>conftest.$ac_ext
28232 cat >>conftest.$ac_ext <<_ACEOF
28233 /* end confdefs.h.  */
28234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28235    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28236 #define $ac_func innocuous_$ac_func
28237
28238 /* System header to define __stub macros and hopefully few prototypes,
28239     which can conflict with char $ac_func (); below.
28240     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28241     <limits.h> exists even on freestanding compilers.  */
28242
28243 #ifdef __STDC__
28244 # include <limits.h>
28245 #else
28246 # include <assert.h>
28247 #endif
28248
28249 #undef $ac_func
28250
28251 /* Override any GCC internal prototype to avoid an error.
28252    Use char because int might match the return type of a GCC
28253    builtin and then its argument prototype would still apply.  */
28254 #ifdef __cplusplus
28255 extern "C"
28256 #endif
28257 char $ac_func ();
28258 /* The GNU C library defines this for functions which it implements
28259     to always fail with ENOSYS.  Some functions are actually named
28260     something starting with __ and the normal name is an alias.  */
28261 #if defined __stub_$ac_func || defined __stub___$ac_func
28262 choke me
28263 #endif
28264
28265 int
28266 main ()
28267 {
28268 return $ac_func ();
28269   ;
28270   return 0;
28271 }
28272 _ACEOF
28273 rm -f conftest.$ac_objext conftest$ac_exeext
28274 if { (ac_try="$ac_link"
28275 case "(($ac_try" in
28276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28277   *) ac_try_echo=$ac_try;;
28278 esac
28279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28280   (eval "$ac_link") 2>conftest.er1
28281   ac_status=$?
28282   grep -v '^ *+' conftest.er1 >conftest.err
28283   rm -f conftest.er1
28284   cat conftest.err >&5
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); } && {
28287          test -z "$ac_c_werror_flag" ||
28288          test ! -s conftest.err
28289        } && test -s conftest$ac_exeext &&
28290        $as_test_x conftest$ac_exeext; then
28291   eval "$as_ac_var=yes"
28292 else
28293   echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28295
28296         eval "$as_ac_var=no"
28297 fi
28298
28299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28300       conftest$ac_exeext conftest.$ac_ext
28301 fi
28302 ac_res=`eval echo '${'$as_ac_var'}'`
28303                { echo "$as_me:$LINENO: result: $ac_res" >&5
28304 echo "${ECHO_T}$ac_res" >&6; }
28305 if test `eval echo '${'$as_ac_var'}'` = yes; then
28306   cat >>confdefs.h <<_ACEOF
28307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28308 _ACEOF
28309
28310 fi
28311 done
28312
28313 fi
28314
28315
28316
28317         if test "x$ac_cv_func_regcomp" != "xyes"; then
28318             if test "$wxUSE_REGEX" = "sys" ; then
28319                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28320 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28321    { (exit 1); exit 1; }; }
28322             else
28323                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28324 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28325                 wxUSE_REGEX=builtin
28326             fi
28327         else
28328                         wxUSE_REGEX=sys
28329                         cat >>confdefs.h <<\_ACEOF
28330 #define WX_NO_REGEX_ADVANCED 1
28331 _ACEOF
28332
28333         fi
28334     fi
28335 fi
28336
28337
28338 ZLIB_LINK=
28339 if test "$wxUSE_ZLIB" != "no" ; then
28340     cat >>confdefs.h <<\_ACEOF
28341 #define wxUSE_ZLIB 1
28342 _ACEOF
28343
28344
28345     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28346                                                 if test "$USE_DARWIN" = 1; then
28347             system_zlib_h_ok="yes"
28348         else
28349                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28350 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28351 if test "${ac_cv_header_zlib_h+set}" = set; then
28352   echo $ECHO_N "(cached) $ECHO_C" >&6
28353 else
28354   if test "$cross_compiling" = yes; then
28355                       unset ac_cv_header_zlib_h
28356
28357 else
28358   cat >conftest.$ac_ext <<_ACEOF
28359 /* confdefs.h.  */
28360 _ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h.  */
28364
28365                         #include <zlib.h>
28366                         #include <stdio.h>
28367
28368                         int main()
28369                         {
28370                             FILE *f=fopen("conftestval", "w");
28371                             if (!f) exit(1);
28372                             fprintf(f, "%s",
28373                                     ZLIB_VERSION[0] == '1' &&
28374                                     (ZLIB_VERSION[2] > '1' ||
28375                                     (ZLIB_VERSION[2] == '1' &&
28376                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28377                             exit(0);
28378                         }
28379
28380 _ACEOF
28381 rm -f conftest$ac_exeext
28382 if { (ac_try="$ac_link"
28383 case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388   (eval "$ac_link") 2>&5
28389   ac_status=$?
28390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28392   { (case "(($ac_try" in
28393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394   *) ac_try_echo=$ac_try;;
28395 esac
28396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28397   (eval "$ac_try") 2>&5
28398   ac_status=$?
28399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400   (exit $ac_status); }; }; then
28401   ac_cv_header_zlib_h=`cat conftestval`
28402 else
28403   echo "$as_me: program exited with status $ac_status" >&5
28404 echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28406
28407 ( exit $ac_status )
28408 ac_cv_header_zlib_h=no
28409 fi
28410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28411 fi
28412
28413
28414
28415 fi
28416 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28417 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28418                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28419 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28420 if test "${ac_cv_header_zlib_h+set}" = set; then
28421   echo $ECHO_N "(cached) $ECHO_C" >&6
28422 else
28423   cat >conftest.$ac_ext <<_ACEOF
28424 /* confdefs.h.  */
28425 _ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h.  */
28429
28430
28431 #include <zlib.h>
28432 _ACEOF
28433 rm -f conftest.$ac_objext
28434 if { (ac_try="$ac_compile"
28435 case "(($ac_try" in
28436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437   *) ac_try_echo=$ac_try;;
28438 esac
28439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440   (eval "$ac_compile") 2>conftest.er1
28441   ac_status=$?
28442   grep -v '^ *+' conftest.er1 >conftest.err
28443   rm -f conftest.er1
28444   cat conftest.err >&5
28445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); } && {
28447          test -z "$ac_c_werror_flag" ||
28448          test ! -s conftest.err
28449        } && test -s conftest.$ac_objext; then
28450   ac_cv_header_zlib_h=yes
28451 else
28452   echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28454
28455         ac_cv_header_zlib_h=no
28456 fi
28457
28458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28459 fi
28460 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28461 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28462
28463
28464
28465             system_zlib_h_ok=$ac_cv_header_zlib_h
28466         fi
28467
28468         if test "$system_zlib_h_ok" = "yes"; then
28469             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28470 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28471 if test "${ac_cv_lib_z_deflate+set}" = set; then
28472   echo $ECHO_N "(cached) $ECHO_C" >&6
28473 else
28474   ac_check_lib_save_LIBS=$LIBS
28475 LIBS="-lz  $LIBS"
28476 cat >conftest.$ac_ext <<_ACEOF
28477 /* confdefs.h.  */
28478 _ACEOF
28479 cat confdefs.h >>conftest.$ac_ext
28480 cat >>conftest.$ac_ext <<_ACEOF
28481 /* end confdefs.h.  */
28482
28483 /* Override any GCC internal prototype to avoid an error.
28484    Use char because int might match the return type of a GCC
28485    builtin and then its argument prototype would still apply.  */
28486 #ifdef __cplusplus
28487 extern "C"
28488 #endif
28489 char deflate ();
28490 int
28491 main ()
28492 {
28493 return deflate ();
28494   ;
28495   return 0;
28496 }
28497 _ACEOF
28498 rm -f conftest.$ac_objext conftest$ac_exeext
28499 if { (ac_try="$ac_link"
28500 case "(($ac_try" in
28501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502   *) ac_try_echo=$ac_try;;
28503 esac
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505   (eval "$ac_link") 2>conftest.er1
28506   ac_status=$?
28507   grep -v '^ *+' conftest.er1 >conftest.err
28508   rm -f conftest.er1
28509   cat conftest.err >&5
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); } && {
28512          test -z "$ac_c_werror_flag" ||
28513          test ! -s conftest.err
28514        } && test -s conftest$ac_exeext &&
28515        $as_test_x conftest$ac_exeext; then
28516   ac_cv_lib_z_deflate=yes
28517 else
28518   echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521         ac_cv_lib_z_deflate=no
28522 fi
28523
28524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28525       conftest$ac_exeext conftest.$ac_ext
28526 LIBS=$ac_check_lib_save_LIBS
28527 fi
28528 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28529 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28530 if test $ac_cv_lib_z_deflate = yes; then
28531   ZLIB_LINK=" -lz"
28532 fi
28533
28534         fi
28535
28536         if test "x$ZLIB_LINK" = "x" ; then
28537             if test "$wxUSE_ZLIB" = "sys" ; then
28538                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28539 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28540    { (exit 1); exit 1; }; }
28541             else
28542                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28543 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28544                 wxUSE_ZLIB=builtin
28545             fi
28546         else
28547                         wxUSE_ZLIB=sys
28548         fi
28549     fi
28550 fi
28551
28552
28553 PNG_LINK=
28554 if test "$wxUSE_LIBPNG" != "no" ; then
28555     cat >>confdefs.h <<\_ACEOF
28556 #define wxUSE_LIBPNG 1
28557 _ACEOF
28558
28559
28560     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28561         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28562 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28563         wxUSE_LIBPNG=sys
28564     fi
28565
28566                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28567         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28568 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28569         wxUSE_LIBPNG=builtin
28570     fi
28571
28572     if test "$wxUSE_MGL" != 1 ; then
28573                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28574                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28575 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28576 if test "${ac_cv_header_png_h+set}" = set; then
28577   echo $ECHO_N "(cached) $ECHO_C" >&6
28578 else
28579   if test "$cross_compiling" = yes; then
28580                       unset ac_cv_header_png_h
28581
28582 else
28583   cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h.  */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h.  */
28589
28590                         #include <png.h>
28591                         #include <stdio.h>
28592
28593                         int main()
28594                         {
28595                             FILE *f=fopen("conftestval", "w");
28596                             if (!f) exit(1);
28597                             fprintf(f, "%s",
28598                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28599                             exit(0);
28600                         }
28601
28602 _ACEOF
28603 rm -f conftest$ac_exeext
28604 if { (ac_try="$ac_link"
28605 case "(($ac_try" in
28606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607   *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610   (eval "$ac_link") 2>&5
28611   ac_status=$?
28612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28614   { (case "(($ac_try" in
28615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28616   *) ac_try_echo=$ac_try;;
28617 esac
28618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28619   (eval "$ac_try") 2>&5
28620   ac_status=$?
28621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622   (exit $ac_status); }; }; then
28623   ac_cv_header_png_h=`cat conftestval`
28624 else
28625   echo "$as_me: program exited with status $ac_status" >&5
28626 echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28628
28629 ( exit $ac_status )
28630 ac_cv_header_png_h=no
28631 fi
28632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28633 fi
28634
28635
28636
28637 fi
28638 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28639 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28640             { echo "$as_me:$LINENO: checking for png.h" >&5
28641 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28642 if test "${ac_cv_header_png_h+set}" = set; then
28643   echo $ECHO_N "(cached) $ECHO_C" >&6
28644 else
28645   cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h.  */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h.  */
28651
28652
28653 #include <png.h>
28654 _ACEOF
28655 rm -f conftest.$ac_objext
28656 if { (ac_try="$ac_compile"
28657 case "(($ac_try" in
28658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28659   *) ac_try_echo=$ac_try;;
28660 esac
28661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28662   (eval "$ac_compile") 2>conftest.er1
28663   ac_status=$?
28664   grep -v '^ *+' conftest.er1 >conftest.err
28665   rm -f conftest.er1
28666   cat conftest.err >&5
28667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668   (exit $ac_status); } && {
28669          test -z "$ac_c_werror_flag" ||
28670          test ! -s conftest.err
28671        } && test -s conftest.$ac_objext; then
28672   ac_cv_header_png_h=yes
28673 else
28674   echo "$as_me: failed program was:" >&5
28675 sed 's/^/| /' conftest.$ac_ext >&5
28676
28677         ac_cv_header_png_h=no
28678 fi
28679
28680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28681 fi
28682 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28683 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28684
28685
28686
28687             if test "$ac_cv_header_png_h" = "yes"; then
28688                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
28689 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
28690 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
28691   echo $ECHO_N "(cached) $ECHO_C" >&6
28692 else
28693   ac_check_lib_save_LIBS=$LIBS
28694 LIBS="-lpng -lz -lm $LIBS"
28695 cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h.  */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h.  */
28701
28702 /* Override any GCC internal prototype to avoid an error.
28703    Use char because int might match the return type of a GCC
28704    builtin and then its argument prototype would still apply.  */
28705 #ifdef __cplusplus
28706 extern "C"
28707 #endif
28708 char png_check_sig ();
28709 int
28710 main ()
28711 {
28712 return png_check_sig ();
28713   ;
28714   return 0;
28715 }
28716 _ACEOF
28717 rm -f conftest.$ac_objext conftest$ac_exeext
28718 if { (ac_try="$ac_link"
28719 case "(($ac_try" in
28720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721   *) ac_try_echo=$ac_try;;
28722 esac
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724   (eval "$ac_link") 2>conftest.er1
28725   ac_status=$?
28726   grep -v '^ *+' conftest.er1 >conftest.err
28727   rm -f conftest.er1
28728   cat conftest.err >&5
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); } && {
28731          test -z "$ac_c_werror_flag" ||
28732          test ! -s conftest.err
28733        } && test -s conftest$ac_exeext &&
28734        $as_test_x conftest$ac_exeext; then
28735   ac_cv_lib_png_png_check_sig=yes
28736 else
28737   echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28739
28740         ac_cv_lib_png_png_check_sig=no
28741 fi
28742
28743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28744       conftest$ac_exeext conftest.$ac_ext
28745 LIBS=$ac_check_lib_save_LIBS
28746 fi
28747 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
28748 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
28749 if test $ac_cv_lib_png_png_check_sig = yes; then
28750   PNG_LINK=" -lpng -lz"
28751 fi
28752
28753             fi
28754
28755             if test "x$PNG_LINK" = "x" ; then
28756                 if test "$wxUSE_LIBPNG" = "sys" ; then
28757                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28758 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28759    { (exit 1); exit 1; }; }
28760                 else
28761                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28762 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28763                     wxUSE_LIBPNG=builtin
28764                 fi
28765             else
28766                                 wxUSE_LIBPNG=sys
28767             fi
28768         fi
28769     fi
28770
28771     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
28772 fi
28773
28774
28775 JPEG_LINK=
28776 if test "$wxUSE_LIBJPEG" != "no" ; then
28777     cat >>confdefs.h <<\_ACEOF
28778 #define wxUSE_LIBJPEG 1
28779 _ACEOF
28780
28781
28782     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28783         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28784 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28785         wxUSE_LIBJPEG=sys
28786     fi
28787
28788     if test "$wxUSE_MGL" != 1 ; then
28789                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28790                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28791 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28792             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28793   echo $ECHO_N "(cached) $ECHO_C" >&6
28794 else
28795   cat >conftest.$ac_ext <<_ACEOF
28796 /* confdefs.h.  */
28797 _ACEOF
28798 cat confdefs.h >>conftest.$ac_ext
28799 cat >>conftest.$ac_ext <<_ACEOF
28800 /* end confdefs.h.  */
28801
28802                         #undef HAVE_STDLIB_H
28803                         #include <stdio.h>
28804                         #include <jpeglib.h>
28805
28806 int
28807 main ()
28808 {
28809
28810
28811   ;
28812   return 0;
28813 }
28814 _ACEOF
28815 rm -f conftest.$ac_objext
28816 if { (ac_try="$ac_compile"
28817 case "(($ac_try" in
28818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819   *) ac_try_echo=$ac_try;;
28820 esac
28821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822   (eval "$ac_compile") 2>conftest.er1
28823   ac_status=$?
28824   grep -v '^ *+' conftest.er1 >conftest.err
28825   rm -f conftest.er1
28826   cat conftest.err >&5
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); } && {
28829          test -z "$ac_c_werror_flag" ||
28830          test ! -s conftest.err
28831        } && test -s conftest.$ac_objext; then
28832   ac_cv_header_jpeglib_h=yes
28833 else
28834   echo "$as_me: failed program was:" >&5
28835 sed 's/^/| /' conftest.$ac_ext >&5
28836
28837         ac_cv_header_jpeglib_h=no
28838
28839 fi
28840
28841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28842
28843 fi
28844
28845             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28846 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28847
28848             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28849                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28850 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28851 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28852   echo $ECHO_N "(cached) $ECHO_C" >&6
28853 else
28854   ac_check_lib_save_LIBS=$LIBS
28855 LIBS="-ljpeg  $LIBS"
28856 cat >conftest.$ac_ext <<_ACEOF
28857 /* confdefs.h.  */
28858 _ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h.  */
28862
28863 /* Override any GCC internal prototype to avoid an error.
28864    Use char because int might match the return type of a GCC
28865    builtin and then its argument prototype would still apply.  */
28866 #ifdef __cplusplus
28867 extern "C"
28868 #endif
28869 char jpeg_read_header ();
28870 int
28871 main ()
28872 {
28873 return jpeg_read_header ();
28874   ;
28875   return 0;
28876 }
28877 _ACEOF
28878 rm -f conftest.$ac_objext conftest$ac_exeext
28879 if { (ac_try="$ac_link"
28880 case "(($ac_try" in
28881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882   *) ac_try_echo=$ac_try;;
28883 esac
28884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885   (eval "$ac_link") 2>conftest.er1
28886   ac_status=$?
28887   grep -v '^ *+' conftest.er1 >conftest.err
28888   rm -f conftest.er1
28889   cat conftest.err >&5
28890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891   (exit $ac_status); } && {
28892          test -z "$ac_c_werror_flag" ||
28893          test ! -s conftest.err
28894        } && test -s conftest$ac_exeext &&
28895        $as_test_x conftest$ac_exeext; then
28896   ac_cv_lib_jpeg_jpeg_read_header=yes
28897 else
28898   echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28900
28901         ac_cv_lib_jpeg_jpeg_read_header=no
28902 fi
28903
28904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28905       conftest$ac_exeext conftest.$ac_ext
28906 LIBS=$ac_check_lib_save_LIBS
28907 fi
28908 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28909 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28910 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28911   JPEG_LINK=" -ljpeg"
28912 fi
28913
28914             fi
28915
28916             if test "x$JPEG_LINK" = "x" ; then
28917                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28918                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28919 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28920    { (exit 1); exit 1; }; }
28921                 else
28922                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28923 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28924                     wxUSE_LIBJPEG=builtin
28925                 fi
28926             else
28927                                 wxUSE_LIBJPEG=sys
28928
28929                 if test "$wxUSE_MSW" = 1; then
28930                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28931 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28932 if test "${ac_cv_type_boolean+set}" = set; then
28933   echo $ECHO_N "(cached) $ECHO_C" >&6
28934 else
28935   cat >conftest.$ac_ext <<_ACEOF
28936 /* confdefs.h.  */
28937 _ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h.  */
28941 #include <windows.h>
28942
28943 typedef boolean ac__type_new_;
28944 int
28945 main ()
28946 {
28947 if ((ac__type_new_ *) 0)
28948   return 0;
28949 if (sizeof (ac__type_new_))
28950   return 0;
28951   ;
28952   return 0;
28953 }
28954 _ACEOF
28955 rm -f conftest.$ac_objext
28956 if { (ac_try="$ac_compile"
28957 case "(($ac_try" in
28958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28959   *) ac_try_echo=$ac_try;;
28960 esac
28961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28962   (eval "$ac_compile") 2>conftest.er1
28963   ac_status=$?
28964   grep -v '^ *+' conftest.er1 >conftest.err
28965   rm -f conftest.er1
28966   cat conftest.err >&5
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); } && {
28969          test -z "$ac_c_werror_flag" ||
28970          test ! -s conftest.err
28971        } && test -s conftest.$ac_objext; then
28972   ac_cv_type_boolean=yes
28973 else
28974   echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28976
28977         ac_cv_type_boolean=no
28978 fi
28979
28980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28981 fi
28982 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28983 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28984 if test $ac_cv_type_boolean = yes; then
28985
28986 cat >>confdefs.h <<_ACEOF
28987 #define HAVE_BOOLEAN 1
28988 _ACEOF
28989
28990
28991                             { echo "$as_me:$LINENO: checking for boolean" >&5
28992 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28993 if test "${ac_cv_type_boolean+set}" = set; then
28994   echo $ECHO_N "(cached) $ECHO_C" >&6
28995 else
28996   cat >conftest.$ac_ext <<_ACEOF
28997 /* confdefs.h.  */
28998 _ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h.  */
29002
29003                                     #undef HAVE_BOOLEAN
29004                                     #include <stdio.h>
29005                                     #include <jpeglib.h>
29006
29007
29008 typedef boolean ac__type_new_;
29009 int
29010 main ()
29011 {
29012 if ((ac__type_new_ *) 0)
29013   return 0;
29014 if (sizeof (ac__type_new_))
29015   return 0;
29016   ;
29017   return 0;
29018 }
29019 _ACEOF
29020 rm -f conftest.$ac_objext
29021 if { (ac_try="$ac_compile"
29022 case "(($ac_try" in
29023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024   *) ac_try_echo=$ac_try;;
29025 esac
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027   (eval "$ac_compile") 2>conftest.er1
29028   ac_status=$?
29029   grep -v '^ *+' conftest.er1 >conftest.err
29030   rm -f conftest.er1
29031   cat conftest.err >&5
29032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033   (exit $ac_status); } && {
29034          test -z "$ac_c_werror_flag" ||
29035          test ! -s conftest.err
29036        } && test -s conftest.$ac_objext; then
29037   ac_cv_type_boolean=yes
29038 else
29039   echo "$as_me: failed program was:" >&5
29040 sed 's/^/| /' conftest.$ac_ext >&5
29041
29042         ac_cv_type_boolean=no
29043 fi
29044
29045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29046 fi
29047 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29048 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29049
29050 # The cast to long int works around a bug in the HP C Compiler
29051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29053 # This bug is HP SR number 8606223364.
29054 { echo "$as_me:$LINENO: checking size of boolean" >&5
29055 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29056 if test "${ac_cv_sizeof_boolean+set}" = set; then
29057   echo $ECHO_N "(cached) $ECHO_C" >&6
29058 else
29059   if test "$cross_compiling" = yes; then
29060   # Depending upon the size, compute the lo and hi bounds.
29061 cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h.  */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h.  */
29067
29068                                     #undef HAVE_BOOLEAN
29069                                     #include <stdio.h>
29070                                     #include <jpeglib.h>
29071
29072
29073    typedef boolean ac__type_sizeof_;
29074 int
29075 main ()
29076 {
29077 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29078 test_array [0] = 0
29079
29080   ;
29081   return 0;
29082 }
29083 _ACEOF
29084 rm -f conftest.$ac_objext
29085 if { (ac_try="$ac_compile"
29086 case "(($ac_try" in
29087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29088   *) ac_try_echo=$ac_try;;
29089 esac
29090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29091   (eval "$ac_compile") 2>conftest.er1
29092   ac_status=$?
29093   grep -v '^ *+' conftest.er1 >conftest.err
29094   rm -f conftest.er1
29095   cat conftest.err >&5
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); } && {
29098          test -z "$ac_c_werror_flag" ||
29099          test ! -s conftest.err
29100        } && test -s conftest.$ac_objext; then
29101   ac_lo=0 ac_mid=0
29102   while :; do
29103     cat >conftest.$ac_ext <<_ACEOF
29104 /* confdefs.h.  */
29105 _ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h.  */
29109
29110                                     #undef HAVE_BOOLEAN
29111                                     #include <stdio.h>
29112                                     #include <jpeglib.h>
29113
29114
29115    typedef boolean ac__type_sizeof_;
29116 int
29117 main ()
29118 {
29119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29120 test_array [0] = 0
29121
29122   ;
29123   return 0;
29124 }
29125 _ACEOF
29126 rm -f conftest.$ac_objext
29127 if { (ac_try="$ac_compile"
29128 case "(($ac_try" in
29129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130   *) ac_try_echo=$ac_try;;
29131 esac
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133   (eval "$ac_compile") 2>conftest.er1
29134   ac_status=$?
29135   grep -v '^ *+' conftest.er1 >conftest.err
29136   rm -f conftest.er1
29137   cat conftest.err >&5
29138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139   (exit $ac_status); } && {
29140          test -z "$ac_c_werror_flag" ||
29141          test ! -s conftest.err
29142        } && test -s conftest.$ac_objext; then
29143   ac_hi=$ac_mid; break
29144 else
29145   echo "$as_me: failed program was:" >&5
29146 sed 's/^/| /' conftest.$ac_ext >&5
29147
29148         ac_lo=`expr $ac_mid + 1`
29149                         if test $ac_lo -le $ac_mid; then
29150                           ac_lo= ac_hi=
29151                           break
29152                         fi
29153                         ac_mid=`expr 2 '*' $ac_mid + 1`
29154 fi
29155
29156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29157   done
29158 else
29159   echo "$as_me: failed program was:" >&5
29160 sed 's/^/| /' conftest.$ac_ext >&5
29161
29162         cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h.  */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h.  */
29168
29169                                     #undef HAVE_BOOLEAN
29170                                     #include <stdio.h>
29171                                     #include <jpeglib.h>
29172
29173
29174    typedef boolean ac__type_sizeof_;
29175 int
29176 main ()
29177 {
29178 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29179 test_array [0] = 0
29180
29181   ;
29182   return 0;
29183 }
29184 _ACEOF
29185 rm -f conftest.$ac_objext
29186 if { (ac_try="$ac_compile"
29187 case "(($ac_try" in
29188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189   *) ac_try_echo=$ac_try;;
29190 esac
29191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192   (eval "$ac_compile") 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } && {
29199          test -z "$ac_c_werror_flag" ||
29200          test ! -s conftest.err
29201        } && test -s conftest.$ac_objext; then
29202   ac_hi=-1 ac_mid=-1
29203   while :; do
29204     cat >conftest.$ac_ext <<_ACEOF
29205 /* confdefs.h.  */
29206 _ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h.  */
29210
29211                                     #undef HAVE_BOOLEAN
29212                                     #include <stdio.h>
29213                                     #include <jpeglib.h>
29214
29215
29216    typedef boolean ac__type_sizeof_;
29217 int
29218 main ()
29219 {
29220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29221 test_array [0] = 0
29222
29223   ;
29224   return 0;
29225 }
29226 _ACEOF
29227 rm -f conftest.$ac_objext
29228 if { (ac_try="$ac_compile"
29229 case "(($ac_try" in
29230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231   *) ac_try_echo=$ac_try;;
29232 esac
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234   (eval "$ac_compile") 2>conftest.er1
29235   ac_status=$?
29236   grep -v '^ *+' conftest.er1 >conftest.err
29237   rm -f conftest.er1
29238   cat conftest.err >&5
29239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240   (exit $ac_status); } && {
29241          test -z "$ac_c_werror_flag" ||
29242          test ! -s conftest.err
29243        } && test -s conftest.$ac_objext; then
29244   ac_lo=$ac_mid; break
29245 else
29246   echo "$as_me: failed program was:" >&5
29247 sed 's/^/| /' conftest.$ac_ext >&5
29248
29249         ac_hi=`expr '(' $ac_mid ')' - 1`
29250                         if test $ac_mid -le $ac_hi; then
29251                           ac_lo= ac_hi=
29252                           break
29253                         fi
29254                         ac_mid=`expr 2 '*' $ac_mid`
29255 fi
29256
29257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29258   done
29259 else
29260   echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29262
29263         ac_lo= ac_hi=
29264 fi
29265
29266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29267 fi
29268
29269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29270 # Binary search between lo and hi bounds.
29271 while test "x$ac_lo" != "x$ac_hi"; do
29272   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29273   cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h.  */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h.  */
29279
29280                                     #undef HAVE_BOOLEAN
29281                                     #include <stdio.h>
29282                                     #include <jpeglib.h>
29283
29284
29285    typedef boolean ac__type_sizeof_;
29286 int
29287 main ()
29288 {
29289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29290 test_array [0] = 0
29291
29292   ;
29293   return 0;
29294 }
29295 _ACEOF
29296 rm -f conftest.$ac_objext
29297 if { (ac_try="$ac_compile"
29298 case "(($ac_try" in
29299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300   *) ac_try_echo=$ac_try;;
29301 esac
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303   (eval "$ac_compile") 2>conftest.er1
29304   ac_status=$?
29305   grep -v '^ *+' conftest.er1 >conftest.err
29306   rm -f conftest.er1
29307   cat conftest.err >&5
29308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); } && {
29310          test -z "$ac_c_werror_flag" ||
29311          test ! -s conftest.err
29312        } && test -s conftest.$ac_objext; then
29313   ac_hi=$ac_mid
29314 else
29315   echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29317
29318         ac_lo=`expr '(' $ac_mid ')' + 1`
29319 fi
29320
29321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29322 done
29323 case $ac_lo in
29324 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29325 '') if test "$ac_cv_type_boolean" = yes; then
29326      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29327 See \`config.log' for more details." >&5
29328 echo "$as_me: error: cannot compute sizeof (boolean)
29329 See \`config.log' for more details." >&2;}
29330    { (exit 77); exit 77; }; }
29331    else
29332      ac_cv_sizeof_boolean=0
29333    fi ;;
29334 esac
29335 else
29336   cat >conftest.$ac_ext <<_ACEOF
29337 /* confdefs.h.  */
29338 _ACEOF
29339 cat confdefs.h >>conftest.$ac_ext
29340 cat >>conftest.$ac_ext <<_ACEOF
29341 /* end confdefs.h.  */
29342
29343                                     #undef HAVE_BOOLEAN
29344                                     #include <stdio.h>
29345                                     #include <jpeglib.h>
29346
29347
29348    typedef boolean ac__type_sizeof_;
29349 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29350 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29351 #include <stdio.h>
29352 #include <stdlib.h>
29353 int
29354 main ()
29355 {
29356
29357   FILE *f = fopen ("conftest.val", "w");
29358   if (! f)
29359     return 1;
29360   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29361     {
29362       long int i = longval ();
29363       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29364         return 1;
29365       fprintf (f, "%ld\n", i);
29366     }
29367   else
29368     {
29369       unsigned long int i = ulongval ();
29370       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29371         return 1;
29372       fprintf (f, "%lu\n", i);
29373     }
29374   return ferror (f) || fclose (f) != 0;
29375
29376   ;
29377   return 0;
29378 }
29379 _ACEOF
29380 rm -f conftest$ac_exeext
29381 if { (ac_try="$ac_link"
29382 case "(($ac_try" in
29383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384   *) ac_try_echo=$ac_try;;
29385 esac
29386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387   (eval "$ac_link") 2>&5
29388   ac_status=$?
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29391   { (case "(($ac_try" in
29392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393   *) ac_try_echo=$ac_try;;
29394 esac
29395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396   (eval "$ac_try") 2>&5
29397   ac_status=$?
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); }; }; then
29400   ac_cv_sizeof_boolean=`cat conftest.val`
29401 else
29402   echo "$as_me: program exited with status $ac_status" >&5
29403 echo "$as_me: failed program was:" >&5
29404 sed 's/^/| /' conftest.$ac_ext >&5
29405
29406 ( exit $ac_status )
29407 if test "$ac_cv_type_boolean" = yes; then
29408      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29409 See \`config.log' for more details." >&5
29410 echo "$as_me: error: cannot compute sizeof (boolean)
29411 See \`config.log' for more details." >&2;}
29412    { (exit 77); exit 77; }; }
29413    else
29414      ac_cv_sizeof_boolean=0
29415    fi
29416 fi
29417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29418 fi
29419 rm -f conftest.val
29420 fi
29421 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29422 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29423
29424
29425
29426 cat >>confdefs.h <<_ACEOF
29427 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29428 _ACEOF
29429
29430
29431                             cat >>confdefs.h <<_ACEOF
29432 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29433 _ACEOF
29434
29435
29436 fi
29437
29438                 fi
29439             fi
29440         fi
29441     fi
29442 fi
29443
29444
29445 TIFF_LINK=
29446 TIFF_PREREQ_LINKS=-lm
29447 if test "$wxUSE_LIBTIFF" != "no" ; then
29448     cat >>confdefs.h <<\_ACEOF
29449 #define wxUSE_LIBTIFF 1
29450 _ACEOF
29451
29452
29453     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29454                         if test "$wxUSE_LIBJPEG" = "sys"; then
29455             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29456         fi
29457         if test "$wxUSE_ZLIB" = "sys"; then
29458             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29459         fi
29460         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29461 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29462 if test "${ac_cv_header_tiffio_h+set}" = set; then
29463   echo $ECHO_N "(cached) $ECHO_C" >&6
29464 else
29465   cat >conftest.$ac_ext <<_ACEOF
29466 /* confdefs.h.  */
29467 _ACEOF
29468 cat confdefs.h >>conftest.$ac_ext
29469 cat >>conftest.$ac_ext <<_ACEOF
29470 /* end confdefs.h.  */
29471
29472
29473
29474 #include <tiffio.h>
29475 _ACEOF
29476 rm -f conftest.$ac_objext
29477 if { (ac_try="$ac_compile"
29478 case "(($ac_try" in
29479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480   *) ac_try_echo=$ac_try;;
29481 esac
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483   (eval "$ac_compile") 2>conftest.er1
29484   ac_status=$?
29485   grep -v '^ *+' conftest.er1 >conftest.err
29486   rm -f conftest.er1
29487   cat conftest.err >&5
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); } && {
29490          test -z "$ac_c_werror_flag" ||
29491          test ! -s conftest.err
29492        } && test -s conftest.$ac_objext; then
29493   ac_cv_header_tiffio_h=yes
29494 else
29495   echo "$as_me: failed program was:" >&5
29496 sed 's/^/| /' conftest.$ac_ext >&5
29497
29498         ac_cv_header_tiffio_h=no
29499 fi
29500
29501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29502 fi
29503 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29504 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29505 if test $ac_cv_header_tiffio_h = yes; then
29506
29507                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29508 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29509 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29510   echo $ECHO_N "(cached) $ECHO_C" >&6
29511 else
29512   ac_check_lib_save_LIBS=$LIBS
29513 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29514 cat >conftest.$ac_ext <<_ACEOF
29515 /* confdefs.h.  */
29516 _ACEOF
29517 cat confdefs.h >>conftest.$ac_ext
29518 cat >>conftest.$ac_ext <<_ACEOF
29519 /* end confdefs.h.  */
29520
29521 /* Override any GCC internal prototype to avoid an error.
29522    Use char because int might match the return type of a GCC
29523    builtin and then its argument prototype would still apply.  */
29524 #ifdef __cplusplus
29525 extern "C"
29526 #endif
29527 char TIFFError ();
29528 int
29529 main ()
29530 {
29531 return TIFFError ();
29532   ;
29533   return 0;
29534 }
29535 _ACEOF
29536 rm -f conftest.$ac_objext conftest$ac_exeext
29537 if { (ac_try="$ac_link"
29538 case "(($ac_try" in
29539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540   *) ac_try_echo=$ac_try;;
29541 esac
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543   (eval "$ac_link") 2>conftest.er1
29544   ac_status=$?
29545   grep -v '^ *+' conftest.er1 >conftest.err
29546   rm -f conftest.er1
29547   cat conftest.err >&5
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); } && {
29550          test -z "$ac_c_werror_flag" ||
29551          test ! -s conftest.err
29552        } && test -s conftest$ac_exeext &&
29553        $as_test_x conftest$ac_exeext; then
29554   ac_cv_lib_tiff_TIFFError=yes
29555 else
29556   echo "$as_me: failed program was:" >&5
29557 sed 's/^/| /' conftest.$ac_ext >&5
29558
29559         ac_cv_lib_tiff_TIFFError=no
29560 fi
29561
29562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29563       conftest$ac_exeext conftest.$ac_ext
29564 LIBS=$ac_check_lib_save_LIBS
29565 fi
29566 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29567 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29568 if test $ac_cv_lib_tiff_TIFFError = yes; then
29569   TIFF_LINK=" -ltiff"
29570 fi
29571
29572
29573 fi
29574
29575
29576
29577         if test "x$TIFF_LINK" = "x" ; then
29578             if test "$wxUSE_LIBTIFF" = "sys" ; then
29579                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29580 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29581    { (exit 1); exit 1; }; }
29582             else
29583                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29584 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29585                 wxUSE_LIBTIFF=builtin
29586             fi
29587         else
29588                         wxUSE_LIBTIFF=sys
29589         fi
29590     fi
29591 fi
29592
29593
29594 if test "$wxUSE_WCHAR_T" != "yes"; then
29595     if test "$wxUSE_EXPAT" != "no"; then
29596         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
29597 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
29598         wxUSE_EXPAT=no
29599     fi
29600     if test "$wxUSE_XML" != "no"; then
29601         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
29602 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
29603         wxUSE_XML=no
29604     fi
29605 fi
29606
29607 if test "$wxUSE_EXPAT" != "no"; then
29608     wxUSE_XML=yes
29609     cat >>confdefs.h <<\_ACEOF
29610 #define wxUSE_EXPAT 1
29611 _ACEOF
29612
29613     cat >>confdefs.h <<\_ACEOF
29614 #define wxUSE_XML 1
29615 _ACEOF
29616
29617
29618     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29619         { echo "$as_me:$LINENO: checking for expat.h" >&5
29620 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29621 if test "${ac_cv_header_expat_h+set}" = set; then
29622   echo $ECHO_N "(cached) $ECHO_C" >&6
29623 else
29624   cat >conftest.$ac_ext <<_ACEOF
29625 /* confdefs.h.  */
29626 _ACEOF
29627 cat confdefs.h >>conftest.$ac_ext
29628 cat >>conftest.$ac_ext <<_ACEOF
29629 /* end confdefs.h.  */
29630
29631
29632 #include <expat.h>
29633 _ACEOF
29634 rm -f conftest.$ac_objext
29635 if { (ac_try="$ac_compile"
29636 case "(($ac_try" in
29637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29638   *) ac_try_echo=$ac_try;;
29639 esac
29640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29641   (eval "$ac_compile") 2>conftest.er1
29642   ac_status=$?
29643   grep -v '^ *+' conftest.er1 >conftest.err
29644   rm -f conftest.er1
29645   cat conftest.err >&5
29646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647   (exit $ac_status); } && {
29648          test -z "$ac_c_werror_flag" ||
29649          test ! -s conftest.err
29650        } && test -s conftest.$ac_objext; then
29651   ac_cv_header_expat_h=yes
29652 else
29653   echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29655
29656         ac_cv_header_expat_h=no
29657 fi
29658
29659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29660 fi
29661 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29662 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29663 if test $ac_cv_header_expat_h = yes; then
29664   found_expat_h=1
29665 fi
29666
29667
29668         if test "x$found_expat_h" = "x1"; then
29669                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29670 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29671 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29672   echo $ECHO_N "(cached) $ECHO_C" >&6
29673 else
29674
29675                 ac_ext=cpp
29676 ac_cpp='$CXXCPP $CPPFLAGS'
29677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29680
29681                 cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h.  */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h.  */
29687 #include <expat.h>
29688 int
29689 main ()
29690 {
29691
29692   ;
29693   return 0;
29694 }
29695 _ACEOF
29696 rm -f conftest.$ac_objext
29697 if { (ac_try="$ac_compile"
29698 case "(($ac_try" in
29699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29700   *) ac_try_echo=$ac_try;;
29701 esac
29702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29703   (eval "$ac_compile") 2>conftest.er1
29704   ac_status=$?
29705   grep -v '^ *+' conftest.er1 >conftest.err
29706   rm -f conftest.er1
29707   cat conftest.err >&5
29708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); } && {
29710          test -z "$ac_cxx_werror_flag" ||
29711          test ! -s conftest.err
29712        } && test -s conftest.$ac_objext; then
29713   wx_cv_expat_is_not_broken=yes
29714 else
29715   echo "$as_me: failed program was:" >&5
29716 sed 's/^/| /' conftest.$ac_ext >&5
29717
29718         wx_cv_expat_is_not_broken=no
29719
29720 fi
29721
29722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29723                 ac_ext=c
29724 ac_cpp='$CPP $CPPFLAGS'
29725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29728
29729
29730
29731 fi
29732 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29733 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29734             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29735                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29736 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29737 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29738   echo $ECHO_N "(cached) $ECHO_C" >&6
29739 else
29740   ac_check_lib_save_LIBS=$LIBS
29741 LIBS="-lexpat  $LIBS"
29742 cat >conftest.$ac_ext <<_ACEOF
29743 /* confdefs.h.  */
29744 _ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h.  */
29748
29749 /* Override any GCC internal prototype to avoid an error.
29750    Use char because int might match the return type of a GCC
29751    builtin and then its argument prototype would still apply.  */
29752 #ifdef __cplusplus
29753 extern "C"
29754 #endif
29755 char XML_ParserCreate ();
29756 int
29757 main ()
29758 {
29759 return XML_ParserCreate ();
29760   ;
29761   return 0;
29762 }
29763 _ACEOF
29764 rm -f conftest.$ac_objext conftest$ac_exeext
29765 if { (ac_try="$ac_link"
29766 case "(($ac_try" in
29767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29768   *) ac_try_echo=$ac_try;;
29769 esac
29770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29771   (eval "$ac_link") 2>conftest.er1
29772   ac_status=$?
29773   grep -v '^ *+' conftest.er1 >conftest.err
29774   rm -f conftest.er1
29775   cat conftest.err >&5
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); } && {
29778          test -z "$ac_c_werror_flag" ||
29779          test ! -s conftest.err
29780        } && test -s conftest$ac_exeext &&
29781        $as_test_x conftest$ac_exeext; then
29782   ac_cv_lib_expat_XML_ParserCreate=yes
29783 else
29784   echo "$as_me: failed program was:" >&5
29785 sed 's/^/| /' conftest.$ac_ext >&5
29786
29787         ac_cv_lib_expat_XML_ParserCreate=no
29788 fi
29789
29790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29791       conftest$ac_exeext conftest.$ac_ext
29792 LIBS=$ac_check_lib_save_LIBS
29793 fi
29794 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29795 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29796 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29797   EXPAT_LINK=" -lexpat"
29798 fi
29799
29800             fi
29801         fi
29802         if test "x$EXPAT_LINK" = "x" ; then
29803             if test "$wxUSE_EXPAT" = "sys" ; then
29804                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29805 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29806    { (exit 1); exit 1; }; }
29807             else
29808                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29809 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29810                 wxUSE_EXPAT=builtin
29811             fi
29812         else
29813                         wxUSE_EXPAT=sys
29814         fi
29815     fi
29816     if test "$wxUSE_EXPAT" = "builtin" ; then
29817                 subdirs="$subdirs src/expat"
29818
29819     fi
29820 fi
29821
29822
29823
29824 if test "$wxUSE_LIBMSPACK" != "no"; then
29825     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29826 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29827 if test "${ac_cv_header_mspack_h+set}" = set; then
29828   echo $ECHO_N "(cached) $ECHO_C" >&6
29829 else
29830   cat >conftest.$ac_ext <<_ACEOF
29831 /* confdefs.h.  */
29832 _ACEOF
29833 cat confdefs.h >>conftest.$ac_ext
29834 cat >>conftest.$ac_ext <<_ACEOF
29835 /* end confdefs.h.  */
29836
29837
29838 #include <mspack.h>
29839 _ACEOF
29840 rm -f conftest.$ac_objext
29841 if { (ac_try="$ac_compile"
29842 case "(($ac_try" in
29843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29844   *) ac_try_echo=$ac_try;;
29845 esac
29846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29847   (eval "$ac_compile") 2>conftest.er1
29848   ac_status=$?
29849   grep -v '^ *+' conftest.er1 >conftest.err
29850   rm -f conftest.er1
29851   cat conftest.err >&5
29852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853   (exit $ac_status); } && {
29854          test -z "$ac_c_werror_flag" ||
29855          test ! -s conftest.err
29856        } && test -s conftest.$ac_objext; then
29857   ac_cv_header_mspack_h=yes
29858 else
29859   echo "$as_me: failed program was:" >&5
29860 sed 's/^/| /' conftest.$ac_ext >&5
29861
29862         ac_cv_header_mspack_h=no
29863 fi
29864
29865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29866 fi
29867 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29868 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29869 if test $ac_cv_header_mspack_h = yes; then
29870   found_mspack_h=1
29871 fi
29872
29873
29874     if test "x$found_mspack_h" = "x1"; then
29875         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29876 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29877 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29878   echo $ECHO_N "(cached) $ECHO_C" >&6
29879 else
29880   ac_check_lib_save_LIBS=$LIBS
29881 LIBS="-lmspack  $LIBS"
29882 cat >conftest.$ac_ext <<_ACEOF
29883 /* confdefs.h.  */
29884 _ACEOF
29885 cat confdefs.h >>conftest.$ac_ext
29886 cat >>conftest.$ac_ext <<_ACEOF
29887 /* end confdefs.h.  */
29888
29889 /* Override any GCC internal prototype to avoid an error.
29890    Use char because int might match the return type of a GCC
29891    builtin and then its argument prototype would still apply.  */
29892 #ifdef __cplusplus
29893 extern "C"
29894 #endif
29895 char mspack_create_chm_decompressor ();
29896 int
29897 main ()
29898 {
29899 return mspack_create_chm_decompressor ();
29900   ;
29901   return 0;
29902 }
29903 _ACEOF
29904 rm -f conftest.$ac_objext conftest$ac_exeext
29905 if { (ac_try="$ac_link"
29906 case "(($ac_try" in
29907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908   *) ac_try_echo=$ac_try;;
29909 esac
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911   (eval "$ac_link") 2>conftest.er1
29912   ac_status=$?
29913   grep -v '^ *+' conftest.er1 >conftest.err
29914   rm -f conftest.er1
29915   cat conftest.err >&5
29916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917   (exit $ac_status); } && {
29918          test -z "$ac_c_werror_flag" ||
29919          test ! -s conftest.err
29920        } && test -s conftest$ac_exeext &&
29921        $as_test_x conftest$ac_exeext; then
29922   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29923 else
29924   echo "$as_me: failed program was:" >&5
29925 sed 's/^/| /' conftest.$ac_ext >&5
29926
29927         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29928 fi
29929
29930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29931       conftest$ac_exeext conftest.$ac_ext
29932 LIBS=$ac_check_lib_save_LIBS
29933 fi
29934 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29935 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29936 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29937   MSPACK_LINK=" -lmspack"
29938 fi
29939
29940     fi
29941     if test "x$MSPACK_LINK" = "x" ; then
29942         wxUSE_LIBMSPACK=no
29943     fi
29944 fi
29945
29946 if test "$wxUSE_LIBMSPACK" != "no"; then
29947     cat >>confdefs.h <<\_ACEOF
29948 #define wxUSE_LIBMSPACK 1
29949 _ACEOF
29950
29951 fi
29952
29953
29954
29955 AFMINSTALL=
29956 WIN32INSTALL=
29957
29958 TOOLKIT=
29959 TOOLKIT_INCLUDE=
29960 WIDGET_SET=
29961
29962 if test "$USE_WIN32" = 1 ; then
29963     { echo "$as_me:$LINENO: checking for w32api.h" >&5
29964 echo $ECHO_N "checking for w32api.h... $ECHO_C" >&6; }
29965 if test "${ac_cv_header_w32api_h+set}" = set; then
29966   echo $ECHO_N "(cached) $ECHO_C" >&6
29967 else
29968   cat >conftest.$ac_ext <<_ACEOF
29969 /* confdefs.h.  */
29970 _ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h.  */
29974
29975
29976 #include <w32api.h>
29977 _ACEOF
29978 rm -f conftest.$ac_objext
29979 if { (ac_try="$ac_compile"
29980 case "(($ac_try" in
29981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982   *) ac_try_echo=$ac_try;;
29983 esac
29984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29985   (eval "$ac_compile") 2>conftest.er1
29986   ac_status=$?
29987   grep -v '^ *+' conftest.er1 >conftest.err
29988   rm -f conftest.er1
29989   cat conftest.err >&5
29990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991   (exit $ac_status); } && {
29992          test -z "$ac_c_werror_flag" ||
29993          test ! -s conftest.err
29994        } && test -s conftest.$ac_objext; then
29995   ac_cv_header_w32api_h=yes
29996 else
29997   echo "$as_me: failed program was:" >&5
29998 sed 's/^/| /' conftest.$ac_ext >&5
29999
30000         ac_cv_header_w32api_h=no
30001 fi
30002
30003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30004 fi
30005 { echo "$as_me:$LINENO: result: $ac_cv_header_w32api_h" >&5
30006 echo "${ECHO_T}$ac_cv_header_w32api_h" >&6; }
30007
30008
30009     { echo "$as_me:$LINENO: checking for windows.h" >&5
30010 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30011 if test "${ac_cv_header_windows_h+set}" = set; then
30012   echo $ECHO_N "(cached) $ECHO_C" >&6
30013 else
30014   cat >conftest.$ac_ext <<_ACEOF
30015 /* confdefs.h.  */
30016 _ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h.  */
30020
30021
30022 #include <windows.h>
30023 _ACEOF
30024 rm -f conftest.$ac_objext
30025 if { (ac_try="$ac_compile"
30026 case "(($ac_try" in
30027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30028   *) ac_try_echo=$ac_try;;
30029 esac
30030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30031   (eval "$ac_compile") 2>conftest.er1
30032   ac_status=$?
30033   grep -v '^ *+' conftest.er1 >conftest.err
30034   rm -f conftest.er1
30035   cat conftest.err >&5
30036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037   (exit $ac_status); } && {
30038          test -z "$ac_c_werror_flag" ||
30039          test ! -s conftest.err
30040        } && test -s conftest.$ac_objext; then
30041   ac_cv_header_windows_h=yes
30042 else
30043   echo "$as_me: failed program was:" >&5
30044 sed 's/^/| /' conftest.$ac_ext >&5
30045
30046         ac_cv_header_windows_h=no
30047 fi
30048
30049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30050 fi
30051 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30052 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30053 if test $ac_cv_header_windows_h = yes; then
30054   :
30055 else
30056
30057         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30058 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30059    { (exit 1); exit 1; }; }
30060
30061 fi
30062
30063
30064
30065             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30066
30067     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30068         LIBS="$LIBS -loleacc"
30069     fi
30070
30071     case "${host}" in
30072         *-*-cygwin* )
30073                         LIBS="$LIBS -lkernel32 -luser32"
30074     esac
30075
30076         if test "$wxUSE_ODBC" = "sys" ; then
30077         wxUSE_ODBC = "yes"
30078     fi
30079     if test "$wxUSE_ODBC" = "yes" ; then
30080         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
30081         cat >>confdefs.h <<\_ACEOF
30082 #define wxUSE_ODBC 1
30083 _ACEOF
30084
30085     fi
30086
30087         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30088     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30089
30090                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30091
30092         WIN32INSTALL=win32install
30093
30094         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30095 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30096 if test "${ac_cv_header_pbt_h+set}" = set; then
30097   echo $ECHO_N "(cached) $ECHO_C" >&6
30098 else
30099   cat >conftest.$ac_ext <<_ACEOF
30100 /* confdefs.h.  */
30101 _ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h.  */
30105
30106
30107 #include <pbt.h>
30108 _ACEOF
30109 rm -f conftest.$ac_objext
30110 if { (ac_try="$ac_compile"
30111 case "(($ac_try" in
30112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113   *) ac_try_echo=$ac_try;;
30114 esac
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116   (eval "$ac_compile") 2>conftest.er1
30117   ac_status=$?
30118   grep -v '^ *+' conftest.er1 >conftest.err
30119   rm -f conftest.er1
30120   cat conftest.err >&5
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); } && {
30123          test -z "$ac_c_werror_flag" ||
30124          test ! -s conftest.err
30125        } && test -s conftest.$ac_objext; then
30126   ac_cv_header_pbt_h=yes
30127 else
30128   echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30130
30131         ac_cv_header_pbt_h=no
30132 fi
30133
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30135 fi
30136 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30137 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30138 if test $ac_cv_header_pbt_h = yes; then
30139   :
30140 else
30141   cat >>confdefs.h <<\_ACEOF
30142 #define NEED_PBT_H 1
30143 _ACEOF
30144
30145 fi
30146
30147
30148 fi
30149
30150 if test "$wxUSE_GUI" = "yes"; then
30151     USE_GUI=1
30152
30153     GUI_TK_LIBRARY=
30154
30155     WXGTK12=
30156     WXGTK127=
30157     WXGTK20=
30158     WXGPE=
30159
30160     if test "$wxUSE_COCOA" = 1 ; then
30161         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30162             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30163 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30164             wxUSE_PRINTING_ARCHITECTURE=no
30165         fi
30166         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30167             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30168 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30169             wxUSE_DRAG_AND_DROP=no
30170         fi
30171         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30172             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30173 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30174             wxUSE_DRAGIMAGE=no
30175         fi
30176     fi
30177
30178     if test "$wxUSE_MSW" = 1 ; then
30179         TOOLKIT=MSW
30180         GUIDIST=MSW_DIST
30181
30182                 case "${host}" in
30183             *-*-mingw32* )
30184                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30185         esac
30186     fi
30187
30188     if test "$wxUSE_GTK" = 1; then
30189                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30190 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30191
30192         gtk_version_cached=1
30193         if test "${wx_cv_lib_gtk+set}" = set; then
30194   echo $ECHO_N "(cached) $ECHO_C" >&6
30195 else
30196
30197                                                 gtk_version_cached=0
30198                 { echo "$as_me:$LINENO: result: " >&5
30199 echo "${ECHO_T}" >&6; }
30200
30201                                                 GTK_MODULES=
30202                 if test "$wxUSE_THREADS" = "yes"; then
30203                     GTK_MODULES=gthread
30204                 fi
30205
30206                                 wx_cv_lib_gtk=
30207                 if test "x$wxGTK_VERSION" != "x1"
30208                 then
30209                                                                                 case "${host}" in
30210                         *-*-solaris2* )
30211                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30212                                 enable_gtktest=no
30213                             fi
30214                     esac
30215
30216                     # Check whether --enable-gtktest was given.
30217 if test "${enable_gtktest+set}" = set; then
30218   enableval=$enable_gtktest;
30219 else
30220   enable_gtktest=yes
30221 fi
30222
30223
30224   pkg_config_args=gtk+-2.0
30225   for module in . $GTK_MODULES
30226   do
30227       case "$module" in
30228          gthread)
30229              pkg_config_args="$pkg_config_args gthread-2.0"
30230          ;;
30231       esac
30232   done
30233
30234   no_gtk=""
30235
30236   # Extract the first word of "pkg-config", so it can be a program name with args.
30237 set dummy pkg-config; ac_word=$2
30238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30240 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30241   echo $ECHO_N "(cached) $ECHO_C" >&6
30242 else
30243   case $PKG_CONFIG in
30244   [\\/]* | ?:[\\/]*)
30245   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30246   ;;
30247   *)
30248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30249 for as_dir in $PATH
30250 do
30251   IFS=$as_save_IFS
30252   test -z "$as_dir" && as_dir=.
30253   for ac_exec_ext in '' $ac_executable_extensions; do
30254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30255     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30257     break 2
30258   fi
30259 done
30260 done
30261 IFS=$as_save_IFS
30262
30263   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30264   ;;
30265 esac
30266 fi
30267 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30268 if test -n "$PKG_CONFIG"; then
30269   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30270 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30271 else
30272   { echo "$as_me:$LINENO: result: no" >&5
30273 echo "${ECHO_T}no" >&6; }
30274 fi
30275
30276
30277
30278   if test x$PKG_CONFIG != xno ; then
30279     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30280       :
30281     else
30282       echo "*** pkg-config too old; version 0.7 or better required."
30283       no_gtk=yes
30284       PKG_CONFIG=no
30285     fi
30286   else
30287     no_gtk=yes
30288   fi
30289
30290   min_gtk_version=2.0.0
30291   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30292 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30293
30294   if test x$PKG_CONFIG != xno ; then
30295     ## don't try to run the test against uninstalled libtool libs
30296     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30297           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30298           enable_gtktest=no
30299     fi
30300
30301     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30302           :
30303     else
30304           no_gtk=yes
30305     fi
30306   fi
30307
30308   if test x"$no_gtk" = x ; then
30309     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30310     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30311     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30312            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30313     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30314            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30315     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30316            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30317     if test "x$enable_gtktest" = "xyes" ; then
30318       ac_save_CFLAGS="$CFLAGS"
30319       ac_save_LIBS="$LIBS"
30320       CFLAGS="$CFLAGS $GTK_CFLAGS"
30321       LIBS="$GTK_LIBS $LIBS"
30322       rm -f conf.gtktest
30323       if test "$cross_compiling" = yes; then
30324   echo $ac_n "cross compiling; assumed OK... $ac_c"
30325 else
30326   cat >conftest.$ac_ext <<_ACEOF
30327 /* confdefs.h.  */
30328 _ACEOF
30329 cat confdefs.h >>conftest.$ac_ext
30330 cat >>conftest.$ac_ext <<_ACEOF
30331 /* end confdefs.h.  */
30332
30333 #include <gtk/gtk.h>
30334 #include <stdio.h>
30335 #include <stdlib.h>
30336
30337 int
30338 main ()
30339 {
30340   int major, minor, micro;
30341   char *tmp_version;
30342
30343   system ("touch conf.gtktest");
30344
30345   /* HP/UX 9 (%@#!) writes to sscanf strings */
30346   tmp_version = g_strdup("$min_gtk_version");
30347   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30348      printf("%s, bad version string\n", "$min_gtk_version");
30349      exit(1);
30350    }
30351
30352   if ((gtk_major_version != $gtk_config_major_version) ||
30353       (gtk_minor_version != $gtk_config_minor_version) ||
30354       (gtk_micro_version != $gtk_config_micro_version))
30355     {
30356       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30357              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30358              gtk_major_version, gtk_minor_version, gtk_micro_version);
30359       printf ("*** was found! If pkg-config was correct, then it is best\n");
30360       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30361       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30362       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30363       printf("*** required on your system.\n");
30364       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30365       printf("*** to point to the correct configuration files\n");
30366     }
30367   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30368            (gtk_minor_version != GTK_MINOR_VERSION) ||
30369            (gtk_micro_version != GTK_MICRO_VERSION))
30370     {
30371       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30372              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30373       printf("*** library (version %d.%d.%d)\n",
30374              gtk_major_version, gtk_minor_version, gtk_micro_version);
30375     }
30376   else
30377     {
30378       if ((gtk_major_version > major) ||
30379         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30380         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30381       {
30382         return 0;
30383        }
30384      else
30385       {
30386         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30387                gtk_major_version, gtk_minor_version, gtk_micro_version);
30388         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30389                major, minor, micro);
30390         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30391         printf("***\n");
30392         printf("*** If you have already installed a sufficiently new version, this error\n");
30393         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30394         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30395         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30396         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30397         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30398         printf("*** so that the correct libraries are found at run-time))\n");
30399       }
30400     }
30401   return 1;
30402 }
30403
30404 _ACEOF
30405 rm -f conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_link") 2>&5
30413   ac_status=$?
30414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30416   { (case "(($ac_try" in
30417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30418   *) ac_try_echo=$ac_try;;
30419 esac
30420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30421   (eval "$ac_try") 2>&5
30422   ac_status=$?
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); }; }; then
30425   :
30426 else
30427   echo "$as_me: program exited with status $ac_status" >&5
30428 echo "$as_me: failed program was:" >&5
30429 sed 's/^/| /' conftest.$ac_ext >&5
30430
30431 ( exit $ac_status )
30432 no_gtk=yes
30433 fi
30434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30435 fi
30436
30437
30438        CFLAGS="$ac_save_CFLAGS"
30439        LIBS="$ac_save_LIBS"
30440      fi
30441   fi
30442   if test "x$no_gtk" = x ; then
30443      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30444 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30445      wx_cv_lib_gtk=2.0
30446   else
30447      { echo "$as_me:$LINENO: result: no" >&5
30448 echo "${ECHO_T}no" >&6; }
30449      if test "$PKG_CONFIG" = "no" ; then
30450        echo "*** A new enough version of pkg-config was not found."
30451        echo "*** See http://pkgconfig.sourceforge.net"
30452      else
30453        if test -f conf.gtktest ; then
30454         :
30455        else
30456           echo "*** Could not run GTK+ test program, checking why..."
30457           ac_save_CFLAGS="$CFLAGS"
30458           ac_save_LIBS="$LIBS"
30459           CFLAGS="$CFLAGS $GTK_CFLAGS"
30460           LIBS="$LIBS $GTK_LIBS"
30461           cat >conftest.$ac_ext <<_ACEOF
30462 /* confdefs.h.  */
30463 _ACEOF
30464 cat confdefs.h >>conftest.$ac_ext
30465 cat >>conftest.$ac_ext <<_ACEOF
30466 /* end confdefs.h.  */
30467
30468 #include <gtk/gtk.h>
30469 #include <stdio.h>
30470
30471 int
30472 main ()
30473 {
30474  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30475   ;
30476   return 0;
30477 }
30478 _ACEOF
30479 rm -f conftest.$ac_objext conftest$ac_exeext
30480 if { (ac_try="$ac_link"
30481 case "(($ac_try" in
30482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483   *) ac_try_echo=$ac_try;;
30484 esac
30485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486   (eval "$ac_link") 2>conftest.er1
30487   ac_status=$?
30488   grep -v '^ *+' conftest.er1 >conftest.err
30489   rm -f conftest.er1
30490   cat conftest.err >&5
30491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492   (exit $ac_status); } && {
30493          test -z "$ac_c_werror_flag" ||
30494          test ! -s conftest.err
30495        } && test -s conftest$ac_exeext &&
30496        $as_test_x conftest$ac_exeext; then
30497    echo "*** The test program compiled, but did not run. This usually means"
30498           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30499           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30500           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30501           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30502           echo "*** is required on your system"
30503           echo "***"
30504           echo "*** If you have an old version installed, it is best to remove it, although"
30505           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30506 else
30507   echo "$as_me: failed program was:" >&5
30508 sed 's/^/| /' conftest.$ac_ext >&5
30509
30510          echo "*** The test program failed to compile or link. See the file config.log for the"
30511           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30512 fi
30513
30514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30515       conftest$ac_exeext conftest.$ac_ext
30516           CFLAGS="$ac_save_CFLAGS"
30517           LIBS="$ac_save_LIBS"
30518        fi
30519      fi
30520      GTK_CFLAGS=""
30521      GTK_LIBS=""
30522      :
30523   fi
30524
30525
30526   rm -f conf.gtktest
30527
30528
30529                                         case "${host}" in
30530                         *-*-solaris2* )
30531                             if test "$wxUSE_SHARED" != "yes"; then
30532                                 GTK_LIBS="$GTK_LIBS -lX11"
30533                             fi
30534                     esac
30535                 fi
30536
30537                                 if test -z "$wx_cv_lib_gtk"; then
30538                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30539
30540 # Check whether --with-gtk-prefix was given.
30541 if test "${with_gtk_prefix+set}" = set; then
30542   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30543 else
30544   gtk_config_prefix=""
30545 fi
30546
30547
30548 # Check whether --with-gtk-exec-prefix was given.
30549 if test "${with_gtk_exec_prefix+set}" = set; then
30550   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30551 else
30552   gtk_config_exec_prefix=""
30553 fi
30554
30555 # Check whether --enable-gtktest was given.
30556 if test "${enable_gtktest+set}" = set; then
30557   enableval=$enable_gtktest;
30558 else
30559   enable_gtktest=yes
30560 fi
30561
30562
30563   for module in . $GTK_MODULES
30564   do
30565       case "$module" in
30566          gthread)
30567              gtk_config_args="$gtk_config_args gthread"
30568          ;;
30569       esac
30570   done
30571
30572   if test x$gtk_config_exec_prefix != x ; then
30573      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30574      if test x${GTK_CONFIG+set} != xset ; then
30575         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30576      fi
30577   fi
30578   if test x$gtk_config_prefix != x ; then
30579      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30580      if test x${GTK_CONFIG+set} != xset ; then
30581         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30582      fi
30583   fi
30584
30585   # Extract the first word of "gtk-config", so it can be a program name with args.
30586 set dummy gtk-config; ac_word=$2
30587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30589 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30590   echo $ECHO_N "(cached) $ECHO_C" >&6
30591 else
30592   case $GTK_CONFIG in
30593   [\\/]* | ?:[\\/]*)
30594   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30595   ;;
30596   *)
30597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30598 for as_dir in $PATH
30599 do
30600   IFS=$as_save_IFS
30601   test -z "$as_dir" && as_dir=.
30602   for ac_exec_ext in '' $ac_executable_extensions; do
30603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30604     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30606     break 2
30607   fi
30608 done
30609 done
30610 IFS=$as_save_IFS
30611
30612   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30613   ;;
30614 esac
30615 fi
30616 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30617 if test -n "$GTK_CONFIG"; then
30618   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30619 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30620 else
30621   { echo "$as_me:$LINENO: result: no" >&5
30622 echo "${ECHO_T}no" >&6; }
30623 fi
30624
30625
30626   min_gtk_version=1.2.7
30627   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30628 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30629   no_gtk=""
30630   if test "$GTK_CONFIG" = "no" ; then
30631     no_gtk=yes
30632   else
30633     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30634     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30635     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30636            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30637     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30638            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30639     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30640            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30641     if test "x$enable_gtktest" = "xyes" ; then
30642       ac_save_CFLAGS="$CFLAGS"
30643       ac_save_LIBS="$LIBS"
30644       CFLAGS="$CFLAGS $GTK_CFLAGS"
30645       LIBS="$GTK_LIBS $LIBS"
30646       rm -f conf.gtktest
30647       if test "$cross_compiling" = yes; then
30648   echo $ac_n "cross compiling; assumed OK... $ac_c"
30649 else
30650   cat >conftest.$ac_ext <<_ACEOF
30651 /* confdefs.h.  */
30652 _ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h.  */
30656
30657 #include <gtk/gtk.h>
30658 #include <stdio.h>
30659 #include <stdlib.h>
30660
30661 int
30662 main ()
30663 {
30664   int major, minor, micro;
30665   char *tmp_version;
30666
30667   system ("touch conf.gtktest");
30668
30669   /* HP/UX 9 (%@#!) writes to sscanf strings */
30670   tmp_version = g_strdup("$min_gtk_version");
30671   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30672      printf("%s, bad version string\n", "$min_gtk_version");
30673      exit(1);
30674    }
30675
30676   if ((gtk_major_version != $gtk_config_major_version) ||
30677       (gtk_minor_version != $gtk_config_minor_version) ||
30678       (gtk_micro_version != $gtk_config_micro_version))
30679     {
30680       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30681              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30682              gtk_major_version, gtk_minor_version, gtk_micro_version);
30683       printf ("*** was found! If gtk-config was correct, then it is best\n");
30684       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30685       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30686       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30687       printf("*** required on your system.\n");
30688       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30689       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30690       printf("*** before re-running configure\n");
30691     }
30692 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30693   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30694            (gtk_minor_version != GTK_MINOR_VERSION) ||
30695            (gtk_micro_version != GTK_MICRO_VERSION))
30696     {
30697       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30698              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30699       printf("*** library (version %d.%d.%d)\n",
30700              gtk_major_version, gtk_minor_version, gtk_micro_version);
30701     }
30702 #endif /* defined (GTK_MAJOR_VERSION) ... */
30703   else
30704     {
30705       if ((gtk_major_version > major) ||
30706         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30707         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30708       {
30709         return 0;
30710        }
30711      else
30712       {
30713         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30714                gtk_major_version, gtk_minor_version, gtk_micro_version);
30715         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30716                major, minor, micro);
30717         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30718         printf("***\n");
30719         printf("*** If you have already installed a sufficiently new version, this error\n");
30720         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30721         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30722         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30723         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30724         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30725         printf("*** so that the correct libraries are found at run-time))\n");
30726       }
30727     }
30728   return 1;
30729 }
30730
30731 _ACEOF
30732 rm -f conftest$ac_exeext
30733 if { (ac_try="$ac_link"
30734 case "(($ac_try" in
30735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736   *) ac_try_echo=$ac_try;;
30737 esac
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739   (eval "$ac_link") 2>&5
30740   ac_status=$?
30741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30743   { (case "(($ac_try" in
30744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745   *) ac_try_echo=$ac_try;;
30746 esac
30747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748   (eval "$ac_try") 2>&5
30749   ac_status=$?
30750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751   (exit $ac_status); }; }; then
30752   :
30753 else
30754   echo "$as_me: program exited with status $ac_status" >&5
30755 echo "$as_me: failed program was:" >&5
30756 sed 's/^/| /' conftest.$ac_ext >&5
30757
30758 ( exit $ac_status )
30759 no_gtk=yes
30760 fi
30761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30762 fi
30763
30764
30765        CFLAGS="$ac_save_CFLAGS"
30766        LIBS="$ac_save_LIBS"
30767      fi
30768   fi
30769   if test "x$no_gtk" = x ; then
30770      { echo "$as_me:$LINENO: result: yes" >&5
30771 echo "${ECHO_T}yes" >&6; }
30772      wx_cv_lib_gtk=1.2.7
30773   else
30774      { echo "$as_me:$LINENO: result: no" >&5
30775 echo "${ECHO_T}no" >&6; }
30776      if test "$GTK_CONFIG" = "no" ; then
30777        echo "*** The gtk-config script installed by GTK could not be found"
30778        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30779        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30780        echo "*** full path to gtk-config."
30781      else
30782        if test -f conf.gtktest ; then
30783         :
30784        else
30785           echo "*** Could not run GTK test program, checking why..."
30786           CFLAGS="$CFLAGS $GTK_CFLAGS"
30787           LIBS="$LIBS $GTK_LIBS"
30788           cat >conftest.$ac_ext <<_ACEOF
30789 /* confdefs.h.  */
30790 _ACEOF
30791 cat confdefs.h >>conftest.$ac_ext
30792 cat >>conftest.$ac_ext <<_ACEOF
30793 /* end confdefs.h.  */
30794
30795 #include <gtk/gtk.h>
30796 #include <stdio.h>
30797
30798 int
30799 main ()
30800 {
30801  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30802   ;
30803   return 0;
30804 }
30805 _ACEOF
30806 rm -f conftest.$ac_objext conftest$ac_exeext
30807 if { (ac_try="$ac_link"
30808 case "(($ac_try" in
30809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30810   *) ac_try_echo=$ac_try;;
30811 esac
30812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30813   (eval "$ac_link") 2>conftest.er1
30814   ac_status=$?
30815   grep -v '^ *+' conftest.er1 >conftest.err
30816   rm -f conftest.er1
30817   cat conftest.err >&5
30818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30819   (exit $ac_status); } && {
30820          test -z "$ac_c_werror_flag" ||
30821          test ! -s conftest.err
30822        } && test -s conftest$ac_exeext &&
30823        $as_test_x conftest$ac_exeext; then
30824    echo "*** The test program compiled, but did not run. This usually means"
30825           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30826           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30827           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30828           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30829           echo "*** is required on your system"
30830           echo "***"
30831           echo "*** If you have an old version installed, it is best to remove it, although"
30832           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30833           echo "***"
30834           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30835           echo "*** came with the system with the command"
30836           echo "***"
30837           echo "***    rpm --erase --nodeps gtk gtk-devel"
30838 else
30839   echo "$as_me: failed program was:" >&5
30840 sed 's/^/| /' conftest.$ac_ext >&5
30841
30842          echo "*** The test program failed to compile or link. See the file config.log for the"
30843           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30844           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30845           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30846 fi
30847
30848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30849       conftest$ac_exeext conftest.$ac_ext
30850           CFLAGS="$ac_save_CFLAGS"
30851           LIBS="$ac_save_LIBS"
30852        fi
30853      fi
30854      GTK_CFLAGS=""
30855      GTK_LIBS=""
30856      :
30857   fi
30858
30859
30860   rm -f conf.gtktest
30861
30862
30863                         if test -z "$wx_cv_lib_gtk"; then
30864
30865 # Check whether --with-gtk-prefix was given.
30866 if test "${with_gtk_prefix+set}" = set; then
30867   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30868 else
30869   gtk_config_prefix=""
30870 fi
30871
30872
30873 # Check whether --with-gtk-exec-prefix was given.
30874 if test "${with_gtk_exec_prefix+set}" = set; then
30875   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30876 else
30877   gtk_config_exec_prefix=""
30878 fi
30879
30880 # Check whether --enable-gtktest was given.
30881 if test "${enable_gtktest+set}" = set; then
30882   enableval=$enable_gtktest;
30883 else
30884   enable_gtktest=yes
30885 fi
30886
30887
30888   for module in . $GTK_MODULES
30889   do
30890       case "$module" in
30891          gthread)
30892              gtk_config_args="$gtk_config_args gthread"
30893          ;;
30894       esac
30895   done
30896
30897   if test x$gtk_config_exec_prefix != x ; then
30898      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30899      if test x${GTK_CONFIG+set} != xset ; then
30900         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30901      fi
30902   fi
30903   if test x$gtk_config_prefix != x ; then
30904      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30905      if test x${GTK_CONFIG+set} != xset ; then
30906         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30907      fi
30908   fi
30909
30910   # Extract the first word of "gtk-config", so it can be a program name with args.
30911 set dummy gtk-config; ac_word=$2
30912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30914 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30915   echo $ECHO_N "(cached) $ECHO_C" >&6
30916 else
30917   case $GTK_CONFIG in
30918   [\\/]* | ?:[\\/]*)
30919   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30920   ;;
30921   *)
30922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30923 for as_dir in $PATH
30924 do
30925   IFS=$as_save_IFS
30926   test -z "$as_dir" && as_dir=.
30927   for ac_exec_ext in '' $ac_executable_extensions; do
30928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30929     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30931     break 2
30932   fi
30933 done
30934 done
30935 IFS=$as_save_IFS
30936
30937   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30938   ;;
30939 esac
30940 fi
30941 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30942 if test -n "$GTK_CONFIG"; then
30943   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30944 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30945 else
30946   { echo "$as_me:$LINENO: result: no" >&5
30947 echo "${ECHO_T}no" >&6; }
30948 fi
30949
30950
30951   min_gtk_version=1.2.3
30952   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30953 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30954   no_gtk=""
30955   if test "$GTK_CONFIG" = "no" ; then
30956     no_gtk=yes
30957   else
30958     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30959     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30960     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30961            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30962     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30963            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30964     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30965            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30966     if test "x$enable_gtktest" = "xyes" ; then
30967       ac_save_CFLAGS="$CFLAGS"
30968       ac_save_LIBS="$LIBS"
30969       CFLAGS="$CFLAGS $GTK_CFLAGS"
30970       LIBS="$GTK_LIBS $LIBS"
30971       rm -f conf.gtktest
30972       if test "$cross_compiling" = yes; then
30973   echo $ac_n "cross compiling; assumed OK... $ac_c"
30974 else
30975   cat >conftest.$ac_ext <<_ACEOF
30976 /* confdefs.h.  */
30977 _ACEOF
30978 cat confdefs.h >>conftest.$ac_ext
30979 cat >>conftest.$ac_ext <<_ACEOF
30980 /* end confdefs.h.  */
30981
30982 #include <gtk/gtk.h>
30983 #include <stdio.h>
30984 #include <stdlib.h>
30985
30986 int
30987 main ()
30988 {
30989   int major, minor, micro;
30990   char *tmp_version;
30991
30992   system ("touch conf.gtktest");
30993
30994   /* HP/UX 9 (%@#!) writes to sscanf strings */
30995   tmp_version = g_strdup("$min_gtk_version");
30996   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30997      printf("%s, bad version string\n", "$min_gtk_version");
30998      exit(1);
30999    }
31000
31001   if ((gtk_major_version != $gtk_config_major_version) ||
31002       (gtk_minor_version != $gtk_config_minor_version) ||
31003       (gtk_micro_version != $gtk_config_micro_version))
31004     {
31005       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31006              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31007              gtk_major_version, gtk_minor_version, gtk_micro_version);
31008       printf ("*** was found! If gtk-config was correct, then it is best\n");
31009       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31010       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31011       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31012       printf("*** required on your system.\n");
31013       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31014       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31015       printf("*** before re-running configure\n");
31016     }
31017 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31018   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31019            (gtk_minor_version != GTK_MINOR_VERSION) ||
31020            (gtk_micro_version != GTK_MICRO_VERSION))
31021     {
31022       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31023              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31024       printf("*** library (version %d.%d.%d)\n",
31025              gtk_major_version, gtk_minor_version, gtk_micro_version);
31026     }
31027 #endif /* defined (GTK_MAJOR_VERSION) ... */
31028   else
31029     {
31030       if ((gtk_major_version > major) ||
31031         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31032         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31033       {
31034         return 0;
31035        }
31036      else
31037       {
31038         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31039                gtk_major_version, gtk_minor_version, gtk_micro_version);
31040         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31041                major, minor, micro);
31042         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31043         printf("***\n");
31044         printf("*** If you have already installed a sufficiently new version, this error\n");
31045         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31046         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31047         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31048         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31049         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31050         printf("*** so that the correct libraries are found at run-time))\n");
31051       }
31052     }
31053   return 1;
31054 }
31055
31056 _ACEOF
31057 rm -f conftest$ac_exeext
31058 if { (ac_try="$ac_link"
31059 case "(($ac_try" in
31060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061   *) ac_try_echo=$ac_try;;
31062 esac
31063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064   (eval "$ac_link") 2>&5
31065   ac_status=$?
31066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31068   { (case "(($ac_try" in
31069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070   *) ac_try_echo=$ac_try;;
31071 esac
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073   (eval "$ac_try") 2>&5
31074   ac_status=$?
31075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076   (exit $ac_status); }; }; then
31077   :
31078 else
31079   echo "$as_me: program exited with status $ac_status" >&5
31080 echo "$as_me: failed program was:" >&5
31081 sed 's/^/| /' conftest.$ac_ext >&5
31082
31083 ( exit $ac_status )
31084 no_gtk=yes
31085 fi
31086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31087 fi
31088
31089
31090        CFLAGS="$ac_save_CFLAGS"
31091        LIBS="$ac_save_LIBS"
31092      fi
31093   fi
31094   if test "x$no_gtk" = x ; then
31095      { echo "$as_me:$LINENO: result: yes" >&5
31096 echo "${ECHO_T}yes" >&6; }
31097      wx_cv_lib_gtk=1.2.3
31098   else
31099      { echo "$as_me:$LINENO: result: no" >&5
31100 echo "${ECHO_T}no" >&6; }
31101      if test "$GTK_CONFIG" = "no" ; then
31102        echo "*** The gtk-config script installed by GTK could not be found"
31103        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31104        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31105        echo "*** full path to gtk-config."
31106      else
31107        if test -f conf.gtktest ; then
31108         :
31109        else
31110           echo "*** Could not run GTK test program, checking why..."
31111           CFLAGS="$CFLAGS $GTK_CFLAGS"
31112           LIBS="$LIBS $GTK_LIBS"
31113           cat >conftest.$ac_ext <<_ACEOF
31114 /* confdefs.h.  */
31115 _ACEOF
31116 cat confdefs.h >>conftest.$ac_ext
31117 cat >>conftest.$ac_ext <<_ACEOF
31118 /* end confdefs.h.  */
31119
31120 #include <gtk/gtk.h>
31121 #include <stdio.h>
31122
31123 int
31124 main ()
31125 {
31126  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31127   ;
31128   return 0;
31129 }
31130 _ACEOF
31131 rm -f conftest.$ac_objext conftest$ac_exeext
31132 if { (ac_try="$ac_link"
31133 case "(($ac_try" in
31134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135   *) ac_try_echo=$ac_try;;
31136 esac
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138   (eval "$ac_link") 2>conftest.er1
31139   ac_status=$?
31140   grep -v '^ *+' conftest.er1 >conftest.err
31141   rm -f conftest.er1
31142   cat conftest.err >&5
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); } && {
31145          test -z "$ac_c_werror_flag" ||
31146          test ! -s conftest.err
31147        } && test -s conftest$ac_exeext &&
31148        $as_test_x conftest$ac_exeext; then
31149    echo "*** The test program compiled, but did not run. This usually means"
31150           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31151           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31152           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31153           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31154           echo "*** is required on your system"
31155           echo "***"
31156           echo "*** If you have an old version installed, it is best to remove it, although"
31157           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31158           echo "***"
31159           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31160           echo "*** came with the system with the command"
31161           echo "***"
31162           echo "***    rpm --erase --nodeps gtk gtk-devel"
31163 else
31164   echo "$as_me: failed program was:" >&5
31165 sed 's/^/| /' conftest.$ac_ext >&5
31166
31167          echo "*** The test program failed to compile or link. See the file config.log for the"
31168           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31169           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31170           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31171 fi
31172
31173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31174       conftest$ac_exeext conftest.$ac_ext
31175           CFLAGS="$ac_save_CFLAGS"
31176           LIBS="$ac_save_LIBS"
31177        fi
31178      fi
31179      GTK_CFLAGS=""
31180      GTK_LIBS=""
31181      :
31182   fi
31183
31184
31185   rm -f conf.gtktest
31186
31187                         fi
31188                     fi
31189                 fi
31190
31191                 if test -z "$wx_cv_lib_gtk"; then
31192                                         wx_cv_lib_gtk=none
31193                 else
31194                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31195                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31196                 fi
31197
31198
31199 fi
31200
31201
31202                         if test "$gtk_version_cached" = 1; then
31203             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31204 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31205         fi
31206
31207         case "$wx_cv_lib_gtk" in
31208             2.0)    WXGTK20=1
31209                     TOOLKIT_VERSION=2
31210                     ;;
31211             1.2.7)  WXGTK127=1
31212                     WXGTK12=1
31213                     ;;
31214             1.2.3)  WXGTK12=1
31215                     ;;
31216             *)      { { echo "$as_me:$LINENO: error:
31217 The development files for GTK+ were not found. For GTK+ 2, please
31218 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31219 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31220 and that the version is 1.2.3 or above. Also check that the
31221 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31222 --libs' are in the LD_LIBRARY_PATH or equivalent.
31223                             " >&5
31224 echo "$as_me: error:
31225 The development files for GTK+ were not found. For GTK+ 2, please
31226 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31227 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31228 and that the version is 1.2.3 or above. Also check that the
31229 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31230 --libs' are in the LD_LIBRARY_PATH or equivalent.
31231                             " >&2;}
31232    { (exit 1); exit 1; }; }
31233                     ;;
31234         esac
31235
31236         if test "$WXGTK20" = 1; then
31237             save_CFLAGS="$CFLAGS"
31238             save_LIBS="$LIBS"
31239             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31240             LIBS="$LIBS $wx_cv_libs_gtk"
31241
31242                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31243 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31244 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31245   echo $ECHO_N "(cached) $ECHO_C" >&6
31246 else
31247   cat >conftest.$ac_ext <<_ACEOF
31248 /* confdefs.h.  */
31249 _ACEOF
31250 cat confdefs.h >>conftest.$ac_ext
31251 cat >>conftest.$ac_ext <<_ACEOF
31252 /* end confdefs.h.  */
31253 #include <gtk/gtk.h>
31254
31255 int
31256 main ()
31257 {
31258 #ifndef gtk_icon_size_lookup
31259   (void) gtk_icon_size_lookup;
31260 #endif
31261
31262   ;
31263   return 0;
31264 }
31265 _ACEOF
31266 rm -f conftest.$ac_objext
31267 if { (ac_try="$ac_compile"
31268 case "(($ac_try" in
31269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270   *) ac_try_echo=$ac_try;;
31271 esac
31272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273   (eval "$ac_compile") 2>conftest.er1
31274   ac_status=$?
31275   grep -v '^ *+' conftest.er1 >conftest.err
31276   rm -f conftest.er1
31277   cat conftest.err >&5
31278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279   (exit $ac_status); } && {
31280          test -z "$ac_c_werror_flag" ||
31281          test ! -s conftest.err
31282        } && test -s conftest.$ac_objext; then
31283   ac_cv_have_decl_gtk_icon_size_lookup=yes
31284 else
31285   echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31287
31288         ac_cv_have_decl_gtk_icon_size_lookup=no
31289 fi
31290
31291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31292 fi
31293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31294 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31295 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31296
31297 cat >>confdefs.h <<_ACEOF
31298 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31299 _ACEOF
31300
31301
31302 else
31303   cat >>confdefs.h <<_ACEOF
31304 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31305 _ACEOF
31306
31307 cat >>confdefs.h <<\_ACEOF
31308 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31309 _ACEOF
31310
31311 fi
31312
31313
31314
31315
31316                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31317 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31318             cat >conftest.$ac_ext <<_ACEOF
31319 /* confdefs.h.  */
31320 _ACEOF
31321 cat confdefs.h >>conftest.$ac_ext
31322 cat >>conftest.$ac_ext <<_ACEOF
31323 /* end confdefs.h.  */
31324
31325                             #include <gtk/gtk.h>
31326
31327 int
31328 main ()
31329 {
31330
31331                             #if !GTK_CHECK_VERSION(2,10,0)
31332                             Not GTK+ 2.10
31333                             #endif
31334
31335   ;
31336   return 0;
31337 }
31338 _ACEOF
31339 rm -f conftest.$ac_objext
31340 if { (ac_try="$ac_compile"
31341 case "(($ac_try" in
31342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343   *) ac_try_echo=$ac_try;;
31344 esac
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346   (eval "$ac_compile") 2>conftest.er1
31347   ac_status=$?
31348   grep -v '^ *+' conftest.er1 >conftest.err
31349   rm -f conftest.er1
31350   cat conftest.err >&5
31351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352   (exit $ac_status); } && {
31353          test -z "$ac_c_werror_flag" ||
31354          test ! -s conftest.err
31355        } && test -s conftest.$ac_objext; then
31356
31357                             cat >>confdefs.h <<\_ACEOF
31358 #define __WXGTK210__ 1
31359 _ACEOF
31360
31361                             cat >>confdefs.h <<\_ACEOF
31362 #define __WXGTK26__ 1
31363 _ACEOF
31364
31365                             cat >>confdefs.h <<\_ACEOF
31366 #define __WXGTK24__ 1
31367 _ACEOF
31368
31369                             { echo "$as_me:$LINENO: result: yes" >&5
31370 echo "${ECHO_T}yes" >&6; }
31371                             ac_wxgtk210=1
31372
31373 else
31374   echo "$as_me: failed program was:" >&5
31375 sed 's/^/| /' conftest.$ac_ext >&5
31376
31377
31378                             { echo "$as_me:$LINENO: result: no" >&5
31379 echo "${ECHO_T}no" >&6; }
31380                             ac_wxgtk210=0
31381
31382 fi
31383
31384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31385
31386             if test "$ac_wxgtk210" = 0; then
31387                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31388 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31389                 cat >conftest.$ac_ext <<_ACEOF
31390 /* confdefs.h.  */
31391 _ACEOF
31392 cat confdefs.h >>conftest.$ac_ext
31393 cat >>conftest.$ac_ext <<_ACEOF
31394 /* end confdefs.h.  */
31395
31396                                 #include <gtk/gtk.h>
31397
31398 int
31399 main ()
31400 {
31401
31402                                 #if !GTK_CHECK_VERSION(2,6,0)
31403                                 Not GTK+ 2.6
31404                                 #endif
31405
31406   ;
31407   return 0;
31408 }
31409 _ACEOF
31410 rm -f conftest.$ac_objext
31411 if { (ac_try="$ac_compile"
31412 case "(($ac_try" in
31413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414   *) ac_try_echo=$ac_try;;
31415 esac
31416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417   (eval "$ac_compile") 2>conftest.er1
31418   ac_status=$?
31419   grep -v '^ *+' conftest.er1 >conftest.err
31420   rm -f conftest.er1
31421   cat conftest.err >&5
31422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423   (exit $ac_status); } && {
31424          test -z "$ac_c_werror_flag" ||
31425          test ! -s conftest.err
31426        } && test -s conftest.$ac_objext; then
31427
31428                                 cat >>confdefs.h <<\_ACEOF
31429 #define __WXGTK26__ 1
31430 _ACEOF
31431
31432                                 cat >>confdefs.h <<\_ACEOF
31433 #define __WXGTK24__ 1
31434 _ACEOF
31435
31436                                 { echo "$as_me:$LINENO: result: yes" >&5
31437 echo "${ECHO_T}yes" >&6; }
31438                                 ac_wxgtk26=1
31439
31440 else
31441   echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31443
31444
31445                                 { echo "$as_me:$LINENO: result: no" >&5
31446 echo "${ECHO_T}no" >&6; }
31447                                 ac_wxgtk26=0
31448
31449 fi
31450
31451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31452             fi
31453
31454             if test "$ac_wxgtk26" = 0; then
31455                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31456 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31457                 cat >conftest.$ac_ext <<_ACEOF
31458 /* confdefs.h.  */
31459 _ACEOF
31460 cat confdefs.h >>conftest.$ac_ext
31461 cat >>conftest.$ac_ext <<_ACEOF
31462 /* end confdefs.h.  */
31463
31464                                 #include <gtk/gtk.h>
31465
31466 int
31467 main ()
31468 {
31469
31470                                 #if !GTK_CHECK_VERSION(2,4,0)
31471                                 Not GTK+ 2.4
31472                                 #endif
31473
31474   ;
31475   return 0;
31476 }
31477 _ACEOF
31478 rm -f conftest.$ac_objext
31479 if { (ac_try="$ac_compile"
31480 case "(($ac_try" in
31481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31482   *) ac_try_echo=$ac_try;;
31483 esac
31484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31485   (eval "$ac_compile") 2>conftest.er1
31486   ac_status=$?
31487   grep -v '^ *+' conftest.er1 >conftest.err
31488   rm -f conftest.er1
31489   cat conftest.err >&5
31490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491   (exit $ac_status); } && {
31492          test -z "$ac_c_werror_flag" ||
31493          test ! -s conftest.err
31494        } && test -s conftest.$ac_objext; then
31495
31496                                 cat >>confdefs.h <<\_ACEOF
31497 #define __WXGTK24__ 1
31498 _ACEOF
31499
31500                                 { echo "$as_me:$LINENO: result: yes" >&5
31501 echo "${ECHO_T}yes" >&6; }
31502
31503 else
31504   echo "$as_me: failed program was:" >&5
31505 sed 's/^/| /' conftest.$ac_ext >&5
31506
31507
31508                                 { echo "$as_me:$LINENO: result: no" >&5
31509 echo "${ECHO_T}no" >&6; }
31510
31511 fi
31512
31513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31514             fi
31515
31516             CFLAGS="$save_CFLAGS"
31517             LIBS="$save_LIBS"
31518         else
31519             if test "$wxUSE_UNICODE" = "yes"; then
31520                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31521 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31522                 wxUSE_UNICODE=no
31523             fi
31524
31525                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31526 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31527 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31528   echo $ECHO_N "(cached) $ECHO_C" >&6
31529 else
31530   ac_check_lib_save_LIBS=$LIBS
31531 LIBS="-lgdk  $LIBS"
31532 cat >conftest.$ac_ext <<_ACEOF
31533 /* confdefs.h.  */
31534 _ACEOF
31535 cat confdefs.h >>conftest.$ac_ext
31536 cat >>conftest.$ac_ext <<_ACEOF
31537 /* end confdefs.h.  */
31538
31539 /* Override any GCC internal prototype to avoid an error.
31540    Use char because int might match the return type of a GCC
31541    builtin and then its argument prototype would still apply.  */
31542 #ifdef __cplusplus
31543 extern "C"
31544 #endif
31545 char gdk_im_open ();
31546 int
31547 main ()
31548 {
31549 return gdk_im_open ();
31550   ;
31551   return 0;
31552 }
31553 _ACEOF
31554 rm -f conftest.$ac_objext conftest$ac_exeext
31555 if { (ac_try="$ac_link"
31556 case "(($ac_try" in
31557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558   *) ac_try_echo=$ac_try;;
31559 esac
31560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561   (eval "$ac_link") 2>conftest.er1
31562   ac_status=$?
31563   grep -v '^ *+' conftest.er1 >conftest.err
31564   rm -f conftest.er1
31565   cat conftest.err >&5
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); } && {
31568          test -z "$ac_c_werror_flag" ||
31569          test ! -s conftest.err
31570        } && test -s conftest$ac_exeext &&
31571        $as_test_x conftest$ac_exeext; then
31572   ac_cv_lib_gdk_gdk_im_open=yes
31573 else
31574   echo "$as_me: failed program was:" >&5
31575 sed 's/^/| /' conftest.$ac_ext >&5
31576
31577         ac_cv_lib_gdk_gdk_im_open=no
31578 fi
31579
31580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31581       conftest$ac_exeext conftest.$ac_ext
31582 LIBS=$ac_check_lib_save_LIBS
31583 fi
31584 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31585 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31586 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31587   cat >>confdefs.h <<\_ACEOF
31588 #define HAVE_XIM 1
31589 _ACEOF
31590
31591 fi
31592
31593
31594                                     if test "$USE_DARWIN" != 1; then
31595
31596 for ac_func in poll
31597 do
31598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31602   echo $ECHO_N "(cached) $ECHO_C" >&6
31603 else
31604   cat >conftest.$ac_ext <<_ACEOF
31605 /* confdefs.h.  */
31606 _ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h.  */
31610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31612 #define $ac_func innocuous_$ac_func
31613
31614 /* System header to define __stub macros and hopefully few prototypes,
31615     which can conflict with char $ac_func (); below.
31616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31617     <limits.h> exists even on freestanding compilers.  */
31618
31619 #ifdef __STDC__
31620 # include <limits.h>
31621 #else
31622 # include <assert.h>
31623 #endif
31624
31625 #undef $ac_func
31626
31627 /* Override any GCC internal prototype to avoid an error.
31628    Use char because int might match the return type of a GCC
31629    builtin and then its argument prototype would still apply.  */
31630 #ifdef __cplusplus
31631 extern "C"
31632 #endif
31633 char $ac_func ();
31634 /* The GNU C library defines this for functions which it implements
31635     to always fail with ENOSYS.  Some functions are actually named
31636     something starting with __ and the normal name is an alias.  */
31637 #if defined __stub_$ac_func || defined __stub___$ac_func
31638 choke me
31639 #endif
31640
31641 int
31642 main ()
31643 {
31644 return $ac_func ();
31645   ;
31646   return 0;
31647 }
31648 _ACEOF
31649 rm -f conftest.$ac_objext conftest$ac_exeext
31650 if { (ac_try="$ac_link"
31651 case "(($ac_try" in
31652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653   *) ac_try_echo=$ac_try;;
31654 esac
31655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656   (eval "$ac_link") 2>conftest.er1
31657   ac_status=$?
31658   grep -v '^ *+' conftest.er1 >conftest.err
31659   rm -f conftest.er1
31660   cat conftest.err >&5
31661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662   (exit $ac_status); } && {
31663          test -z "$ac_c_werror_flag" ||
31664          test ! -s conftest.err
31665        } && test -s conftest$ac_exeext &&
31666        $as_test_x conftest$ac_exeext; then
31667   eval "$as_ac_var=yes"
31668 else
31669   echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31671
31672         eval "$as_ac_var=no"
31673 fi
31674
31675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31676       conftest$ac_exeext conftest.$ac_ext
31677 fi
31678 ac_res=`eval echo '${'$as_ac_var'}'`
31679                { echo "$as_me:$LINENO: result: $ac_res" >&5
31680 echo "${ECHO_T}$ac_res" >&6; }
31681 if test `eval echo '${'$as_ac_var'}'` = yes; then
31682   cat >>confdefs.h <<_ACEOF
31683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31684 _ACEOF
31685
31686 fi
31687 done
31688
31689             fi
31690         fi
31691
31692         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31693         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31694
31695         AFMINSTALL=afminstall
31696         TOOLKIT=GTK
31697         GUIDIST=GTK_DIST
31698
31699                 if test "$wxUSE_GPE" = "yes"; then
31700             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31701 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31702
31703   ac_find_libraries=
31704   for ac_dir in $SEARCH_LIB;
31705   do
31706     for ac_extension in a so sl dylib dll.a; do
31707       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31708         ac_find_libraries=$ac_dir
31709         break 2
31710       fi
31711     done
31712   done
31713
31714             if test "$ac_find_libraries" != "" ; then
31715
31716     if test "$ac_find_libraries" = "default location"; then
31717     ac_path_to_link=""
31718   else
31719     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31720     result=$?
31721     if test $result = 0; then
31722       ac_path_to_link=""
31723     else
31724       ac_path_to_link=" -L$ac_find_libraries"
31725     fi
31726   fi
31727
31728                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31729                 WXGPE=1
31730                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31731 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31732             else
31733                 { echo "$as_me:$LINENO: result: not found" >&5
31734 echo "${ECHO_T}not found" >&6; }
31735             fi
31736
31737                                                                                                                     fi
31738     fi
31739
31740     if test "$wxUSE_MGL" = 1; then
31741        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31742 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31743         if test "x$MGL_ROOT" = x ; then
31744             { echo "$as_me:$LINENO: result: not found" >&5
31745 echo "${ECHO_T}not found" >&6; }
31746             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31747 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31748    { (exit 1); exit 1; }; }
31749         else
31750             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31751 echo "${ECHO_T}$MGL_ROOT" >&6; }
31752         fi
31753
31754         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31755 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31756                                 case "${host}" in
31757             *-*-linux* )
31758                                           if test "x$wxUSE_SHARED" = xyes ; then
31759                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31760               else
31761                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31762               fi
31763               ;;
31764             *-pc-msdosdjgpp )
31765               mgl_os_candidates="dos32/dj2"
31766               ;;
31767             *)
31768               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31769 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31770    { (exit 1); exit 1; }; }
31771         esac
31772
31773         mgl_lib_type=""
31774         mgl_os=""
31775
31776         for mgl_os_i in $mgl_os_candidates ; do
31777             if test "x$mgl_os" = x ; then
31778                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31779                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31780                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31781                         mgl_lib_type=debug
31782                         mgl_os=$mgl_os_i
31783                     fi
31784                 fi
31785                 if test "x$mgl_lib_type" = x ; then
31786                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31787                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31788                         mgl_lib_type=release
31789                         mgl_os=$mgl_os_i
31790                     fi
31791                 fi
31792             fi
31793         done
31794
31795         if test "x$mgl_os" = x ; then
31796             { echo "$as_me:$LINENO: result: not found" >&5
31797 echo "${ECHO_T}not found" >&6; }
31798             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31799 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31800    { (exit 1); exit 1; }; }
31801         fi
31802         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31803 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31804
31805         wxUSE_UNIVERSAL="yes"
31806
31807         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31808         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31809
31810         AFMINSTALL=afminstall
31811         TOOLKIT=MGL
31812         GUIDIST=MGL_DIST
31813     fi
31814
31815     if test "$wxUSE_DFB" = 1; then
31816
31817
31818 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31819         if test -n "$ac_tool_prefix"; then
31820   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31821 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31824 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31825   echo $ECHO_N "(cached) $ECHO_C" >&6
31826 else
31827   case $PKG_CONFIG in
31828   [\\/]* | ?:[\\/]*)
31829   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31830   ;;
31831   *)
31832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31833 for as_dir in $PATH
31834 do
31835   IFS=$as_save_IFS
31836   test -z "$as_dir" && as_dir=.
31837   for ac_exec_ext in '' $ac_executable_extensions; do
31838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31839     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31841     break 2
31842   fi
31843 done
31844 done
31845 IFS=$as_save_IFS
31846
31847   ;;
31848 esac
31849 fi
31850 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31851 if test -n "$PKG_CONFIG"; then
31852   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31853 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31854 else
31855   { echo "$as_me:$LINENO: result: no" >&5
31856 echo "${ECHO_T}no" >&6; }
31857 fi
31858
31859
31860 fi
31861 if test -z "$ac_cv_path_PKG_CONFIG"; then
31862   ac_pt_PKG_CONFIG=$PKG_CONFIG
31863   # Extract the first word of "pkg-config", so it can be a program name with args.
31864 set dummy pkg-config; ac_word=$2
31865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31867 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31868   echo $ECHO_N "(cached) $ECHO_C" >&6
31869 else
31870   case $ac_pt_PKG_CONFIG in
31871   [\\/]* | ?:[\\/]*)
31872   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31873   ;;
31874   *)
31875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31876 for as_dir in $PATH
31877 do
31878   IFS=$as_save_IFS
31879   test -z "$as_dir" && as_dir=.
31880   for ac_exec_ext in '' $ac_executable_extensions; do
31881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31882     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31884     break 2
31885   fi
31886 done
31887 done
31888 IFS=$as_save_IFS
31889
31890   ;;
31891 esac
31892 fi
31893 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31894 if test -n "$ac_pt_PKG_CONFIG"; then
31895   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31896 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31897 else
31898   { echo "$as_me:$LINENO: result: no" >&5
31899 echo "${ECHO_T}no" >&6; }
31900 fi
31901
31902   if test "x$ac_pt_PKG_CONFIG" = x; then
31903     PKG_CONFIG=""
31904   else
31905     case $cross_compiling:$ac_tool_warned in
31906 yes:)
31907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31908 whose name does not start with the host triplet.  If you think this
31909 configuration is useful to you, please write to autoconf@gnu.org." >&5
31910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31911 whose name does not start with the host triplet.  If you think this
31912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31913 ac_tool_warned=yes ;;
31914 esac
31915     PKG_CONFIG=$ac_pt_PKG_CONFIG
31916   fi
31917 else
31918   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31919 fi
31920
31921 fi
31922 if test -n "$PKG_CONFIG"; then
31923         _pkg_min_version=0.9.0
31924         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31925 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31926         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31927                 { echo "$as_me:$LINENO: result: yes" >&5
31928 echo "${ECHO_T}yes" >&6; }
31929         else
31930                 { echo "$as_me:$LINENO: result: no" >&5
31931 echo "${ECHO_T}no" >&6; }
31932                 PKG_CONFIG=""
31933         fi
31934
31935 fi
31936
31937
31938 pkg_failed=no
31939 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31940 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31941
31942 if test -n "$PKG_CONFIG"; then
31943     if test -n "$DIRECTFB_CFLAGS"; then
31944         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31945     else
31946         if test -n "$PKG_CONFIG" && \
31947     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31948   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31949   ac_status=$?
31950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31951   (exit $ac_status); }; then
31952   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31953 else
31954   pkg_failed=yes
31955 fi
31956     fi
31957 else
31958         pkg_failed=untried
31959 fi
31960 if test -n "$PKG_CONFIG"; then
31961     if test -n "$DIRECTFB_LIBS"; then
31962         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31963     else
31964         if test -n "$PKG_CONFIG" && \
31965     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31966   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31967   ac_status=$?
31968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969   (exit $ac_status); }; then
31970   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31971 else
31972   pkg_failed=yes
31973 fi
31974     fi
31975 else
31976         pkg_failed=untried
31977 fi
31978
31979
31980
31981 if test $pkg_failed = yes; then
31982
31983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31984         _pkg_short_errors_supported=yes
31985 else
31986         _pkg_short_errors_supported=no
31987 fi
31988         if test $_pkg_short_errors_supported = yes; then
31989                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31990         else
31991                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31992         fi
31993         # Put the nasty error message in config.log where it belongs
31994         echo "$DIRECTFB_PKG_ERRORS" >&5
31995
31996
31997                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31998 echo "$as_me: error: DirectFB not found." >&2;}
31999    { (exit 1); exit 1; }; }
32000
32001
32002 elif test $pkg_failed = untried; then
32003
32004                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32005 echo "$as_me: error: DirectFB not found." >&2;}
32006    { (exit 1); exit 1; }; }
32007
32008
32009 else
32010         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32011         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32012         { echo "$as_me:$LINENO: result: yes" >&5
32013 echo "${ECHO_T}yes" >&6; }
32014
32015                            wxUSE_UNIVERSAL="yes"
32016                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32017                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32018                            TOOLKIT=DFB
32019                            GUIDIST=DFB_DIST
32020
32021 fi
32022     fi
32023
32024     if test "$wxUSE_MICROWIN" = 1; then
32025         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32026 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32027         if test "x$MICROWINDOWS" = x ; then
32028             { echo "$as_me:$LINENO: result: not found" >&5
32029 echo "${ECHO_T}not found" >&6; }
32030             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32031 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32032    { (exit 1); exit 1; }; }
32033         else
32034             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32035 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32036         fi
32037
32038         if test -f $MICROWINDOWS/lib/libmwin.a; then
32039             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32040 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
32041         else
32042             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32043 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32044    { (exit 1); exit 1; }; }
32045         fi
32046
32047         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32048         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32049
32050         wxUSE_UNIVERSAL="yes"
32051
32052         AFMINSTALL=afminstall
32053         TOOLKIT=MICROWIN
32054         GUIDIST=MICROWIN_DIST
32055
32056         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32057     fi
32058
32059         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32060                                 { echo "$as_me:$LINENO: checking for X" >&5
32061 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32062
32063
32064 # Check whether --with-x was given.
32065 if test "${with_x+set}" = set; then
32066   withval=$with_x;
32067 fi
32068
32069 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32070 if test "x$with_x" = xno; then
32071   # The user explicitly disabled X.
32072   have_x=disabled
32073 else
32074   case $x_includes,$x_libraries in #(
32075     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32076 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32077    { (exit 1); exit 1; }; };; #(
32078     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32079   echo $ECHO_N "(cached) $ECHO_C" >&6
32080 else
32081   # One or both of the vars are not set, and there is no cached value.
32082 ac_x_includes=no ac_x_libraries=no
32083 rm -f -r conftest.dir
32084 if mkdir conftest.dir; then
32085   cd conftest.dir
32086   cat >Imakefile <<'_ACEOF'
32087 incroot:
32088         @echo incroot='${INCROOT}'
32089 usrlibdir:
32090         @echo usrlibdir='${USRLIBDIR}'
32091 libdir:
32092         @echo libdir='${LIBDIR}'
32093 _ACEOF
32094   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32095     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32096     for ac_var in incroot usrlibdir libdir; do
32097       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32098     done
32099     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32100     for ac_extension in a so sl; do
32101       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32102          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32103         ac_im_usrlibdir=$ac_im_libdir; break
32104       fi
32105     done
32106     # Screen out bogus values from the imake configuration.  They are
32107     # bogus both because they are the default anyway, and because
32108     # using them would break gcc on systems where it needs fixed includes.
32109     case $ac_im_incroot in
32110         /usr/include) ac_x_includes= ;;
32111         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32112     esac
32113     case $ac_im_usrlibdir in
32114         /usr/lib | /lib) ;;
32115         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32116     esac
32117   fi
32118   cd ..
32119   rm -f -r conftest.dir
32120 fi
32121
32122 # Standard set of common directories for X headers.
32123 # Check X11 before X11Rn because it is often a symlink to the current release.
32124 ac_x_header_dirs='
32125 /usr/X11/include
32126 /usr/X11R6/include
32127 /usr/X11R5/include
32128 /usr/X11R4/include
32129
32130 /usr/include/X11
32131 /usr/include/X11R6
32132 /usr/include/X11R5
32133 /usr/include/X11R4
32134
32135 /usr/local/X11/include
32136 /usr/local/X11R6/include
32137 /usr/local/X11R5/include
32138 /usr/local/X11R4/include
32139
32140 /usr/local/include/X11
32141 /usr/local/include/X11R6
32142 /usr/local/include/X11R5
32143 /usr/local/include/X11R4
32144
32145 /usr/X386/include
32146 /usr/x386/include
32147 /usr/XFree86/include/X11
32148
32149 /usr/include
32150 /usr/local/include
32151 /usr/unsupported/include
32152 /usr/athena/include
32153 /usr/local/x11r5/include
32154 /usr/lpp/Xamples/include
32155
32156 /usr/openwin/include
32157 /usr/openwin/share/include'
32158
32159 if test "$ac_x_includes" = no; then
32160   # Guess where to find include files, by looking for Xlib.h.
32161   # First, try using that file with no special directory specified.
32162   cat >conftest.$ac_ext <<_ACEOF
32163 /* confdefs.h.  */
32164 _ACEOF
32165 cat confdefs.h >>conftest.$ac_ext
32166 cat >>conftest.$ac_ext <<_ACEOF
32167 /* end confdefs.h.  */
32168 #include <X11/Xlib.h>
32169 _ACEOF
32170 if { (ac_try="$ac_cpp conftest.$ac_ext"
32171 case "(($ac_try" in
32172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173   *) ac_try_echo=$ac_try;;
32174 esac
32175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32177   ac_status=$?
32178   grep -v '^ *+' conftest.er1 >conftest.err
32179   rm -f conftest.er1
32180   cat conftest.err >&5
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); } >/dev/null && {
32183          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32184          test ! -s conftest.err
32185        }; then
32186   # We can compile using X headers with no special include directory.
32187 ac_x_includes=
32188 else
32189   echo "$as_me: failed program was:" >&5
32190 sed 's/^/| /' conftest.$ac_ext >&5
32191
32192   for ac_dir in $ac_x_header_dirs; do
32193   if test -r "$ac_dir/X11/Xlib.h"; then
32194     ac_x_includes=$ac_dir
32195     break
32196   fi
32197 done
32198 fi
32199
32200 rm -f conftest.err conftest.$ac_ext
32201 fi # $ac_x_includes = no
32202
32203 if test "$ac_x_libraries" = no; then
32204   # Check for the libraries.
32205   # See if we find them without any special options.
32206   # Don't add to $LIBS permanently.
32207   ac_save_LIBS=$LIBS
32208   LIBS="-lX11 $LIBS"
32209   cat >conftest.$ac_ext <<_ACEOF
32210 /* confdefs.h.  */
32211 _ACEOF
32212 cat confdefs.h >>conftest.$ac_ext
32213 cat >>conftest.$ac_ext <<_ACEOF
32214 /* end confdefs.h.  */
32215 #include <X11/Xlib.h>
32216 int
32217 main ()
32218 {
32219 XrmInitialize ()
32220   ;
32221   return 0;
32222 }
32223 _ACEOF
32224 rm -f conftest.$ac_objext conftest$ac_exeext
32225 if { (ac_try="$ac_link"
32226 case "(($ac_try" in
32227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228   *) ac_try_echo=$ac_try;;
32229 esac
32230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231   (eval "$ac_link") 2>conftest.er1
32232   ac_status=$?
32233   grep -v '^ *+' conftest.er1 >conftest.err
32234   rm -f conftest.er1
32235   cat conftest.err >&5
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); } && {
32238          test -z "$ac_c_werror_flag" ||
32239          test ! -s conftest.err
32240        } && test -s conftest$ac_exeext &&
32241        $as_test_x conftest$ac_exeext; then
32242   LIBS=$ac_save_LIBS
32243 # We can link X programs with no special library path.
32244 ac_x_libraries=
32245 else
32246   echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32248
32249         LIBS=$ac_save_LIBS
32250 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32251 do
32252   # Don't even attempt the hair of trying to link an X program!
32253   for ac_extension in a so sl; do
32254     if test -r "$ac_dir/libX11.$ac_extension"; then
32255       ac_x_libraries=$ac_dir
32256       break 2
32257     fi
32258   done
32259 done
32260 fi
32261
32262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32263       conftest$ac_exeext conftest.$ac_ext
32264 fi # $ac_x_libraries = no
32265
32266 case $ac_x_includes,$ac_x_libraries in #(
32267   no,* | *,no | *\'*)
32268     # Didn't find X, or a directory has "'" in its name.
32269     ac_cv_have_x="have_x=no";; #(
32270   *)
32271     # Record where we found X for the cache.
32272     ac_cv_have_x="have_x=yes\
32273         ac_x_includes='$ac_x_includes'\
32274         ac_x_libraries='$ac_x_libraries'"
32275 esac
32276 fi
32277 ;; #(
32278     *) have_x=yes;;
32279   esac
32280   eval "$ac_cv_have_x"
32281 fi # $with_x != no
32282
32283 if test "$have_x" != yes; then
32284   { echo "$as_me:$LINENO: result: $have_x" >&5
32285 echo "${ECHO_T}$have_x" >&6; }
32286   no_x=yes
32287 else
32288   # If each of the values was on the command line, it overrides each guess.
32289   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32290   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32291   # Update the cache value to reflect the command line values.
32292   ac_cv_have_x="have_x=yes\
32293         ac_x_includes='$x_includes'\
32294         ac_x_libraries='$x_libraries'"
32295   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32296 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32297 fi
32298
32299 if test "$no_x" = yes; then
32300   # Not all programs may use this symbol, but it does not hurt to define it.
32301
32302 cat >>confdefs.h <<\_ACEOF
32303 #define X_DISPLAY_MISSING 1
32304 _ACEOF
32305
32306   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32307 else
32308   if test -n "$x_includes"; then
32309     X_CFLAGS="$X_CFLAGS -I$x_includes"
32310   fi
32311
32312   # It would also be nice to do this for all -L options, not just this one.
32313   if test -n "$x_libraries"; then
32314     X_LIBS="$X_LIBS -L$x_libraries"
32315     # For Solaris; some versions of Sun CC require a space after -R and
32316     # others require no space.  Words are not sufficient . . . .
32317     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32318 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32319     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32320     ac_xsave_c_werror_flag=$ac_c_werror_flag
32321     ac_c_werror_flag=yes
32322     cat >conftest.$ac_ext <<_ACEOF
32323 /* confdefs.h.  */
32324 _ACEOF
32325 cat confdefs.h >>conftest.$ac_ext
32326 cat >>conftest.$ac_ext <<_ACEOF
32327 /* end confdefs.h.  */
32328
32329 int
32330 main ()
32331 {
32332
32333   ;
32334   return 0;
32335 }
32336 _ACEOF
32337 rm -f conftest.$ac_objext conftest$ac_exeext
32338 if { (ac_try="$ac_link"
32339 case "(($ac_try" in
32340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32341   *) ac_try_echo=$ac_try;;
32342 esac
32343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32344   (eval "$ac_link") 2>conftest.er1
32345   ac_status=$?
32346   grep -v '^ *+' conftest.er1 >conftest.err
32347   rm -f conftest.er1
32348   cat conftest.err >&5
32349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350   (exit $ac_status); } && {
32351          test -z "$ac_c_werror_flag" ||
32352          test ! -s conftest.err
32353        } && test -s conftest$ac_exeext &&
32354        $as_test_x conftest$ac_exeext; then
32355   { echo "$as_me:$LINENO: result: no" >&5
32356 echo "${ECHO_T}no" >&6; }
32357        X_LIBS="$X_LIBS -R$x_libraries"
32358 else
32359   echo "$as_me: failed program was:" >&5
32360 sed 's/^/| /' conftest.$ac_ext >&5
32361
32362         LIBS="$ac_xsave_LIBS -R $x_libraries"
32363        cat >conftest.$ac_ext <<_ACEOF
32364 /* confdefs.h.  */
32365 _ACEOF
32366 cat confdefs.h >>conftest.$ac_ext
32367 cat >>conftest.$ac_ext <<_ACEOF
32368 /* end confdefs.h.  */
32369
32370 int
32371 main ()
32372 {
32373
32374   ;
32375   return 0;
32376 }
32377 _ACEOF
32378 rm -f conftest.$ac_objext conftest$ac_exeext
32379 if { (ac_try="$ac_link"
32380 case "(($ac_try" in
32381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382   *) ac_try_echo=$ac_try;;
32383 esac
32384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385   (eval "$ac_link") 2>conftest.er1
32386   ac_status=$?
32387   grep -v '^ *+' conftest.er1 >conftest.err
32388   rm -f conftest.er1
32389   cat conftest.err >&5
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); } && {
32392          test -z "$ac_c_werror_flag" ||
32393          test ! -s conftest.err
32394        } && test -s conftest$ac_exeext &&
32395        $as_test_x conftest$ac_exeext; then
32396   { echo "$as_me:$LINENO: result: yes" >&5
32397 echo "${ECHO_T}yes" >&6; }
32398           X_LIBS="$X_LIBS -R $x_libraries"
32399 else
32400   echo "$as_me: failed program was:" >&5
32401 sed 's/^/| /' conftest.$ac_ext >&5
32402
32403         { echo "$as_me:$LINENO: result: neither works" >&5
32404 echo "${ECHO_T}neither works" >&6; }
32405 fi
32406
32407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32408       conftest$ac_exeext conftest.$ac_ext
32409 fi
32410
32411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32412       conftest$ac_exeext conftest.$ac_ext
32413     ac_c_werror_flag=$ac_xsave_c_werror_flag
32414     LIBS=$ac_xsave_LIBS
32415   fi
32416
32417   # Check for system-dependent libraries X programs must link with.
32418   # Do this before checking for the system-independent R6 libraries
32419   # (-lICE), since we may need -lsocket or whatever for X linking.
32420
32421   if test "$ISC" = yes; then
32422     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32423   else
32424     # Martyn Johnson says this is needed for Ultrix, if the X
32425     # libraries were built with DECnet support.  And Karl Berry says
32426     # the Alpha needs dnet_stub (dnet does not exist).
32427     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32428     cat >conftest.$ac_ext <<_ACEOF
32429 /* confdefs.h.  */
32430 _ACEOF
32431 cat confdefs.h >>conftest.$ac_ext
32432 cat >>conftest.$ac_ext <<_ACEOF
32433 /* end confdefs.h.  */
32434
32435 /* Override any GCC internal prototype to avoid an error.
32436    Use char because int might match the return type of a GCC
32437    builtin and then its argument prototype would still apply.  */
32438 #ifdef __cplusplus
32439 extern "C"
32440 #endif
32441 char XOpenDisplay ();
32442 int
32443 main ()
32444 {
32445 return XOpenDisplay ();
32446   ;
32447   return 0;
32448 }
32449 _ACEOF
32450 rm -f conftest.$ac_objext conftest$ac_exeext
32451 if { (ac_try="$ac_link"
32452 case "(($ac_try" in
32453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32454   *) ac_try_echo=$ac_try;;
32455 esac
32456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32457   (eval "$ac_link") 2>conftest.er1
32458   ac_status=$?
32459   grep -v '^ *+' conftest.er1 >conftest.err
32460   rm -f conftest.er1
32461   cat conftest.err >&5
32462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463   (exit $ac_status); } && {
32464          test -z "$ac_c_werror_flag" ||
32465          test ! -s conftest.err
32466        } && test -s conftest$ac_exeext &&
32467        $as_test_x conftest$ac_exeext; then
32468   :
32469 else
32470   echo "$as_me: failed program was:" >&5
32471 sed 's/^/| /' conftest.$ac_ext >&5
32472
32473         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32474 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32475 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32476   echo $ECHO_N "(cached) $ECHO_C" >&6
32477 else
32478   ac_check_lib_save_LIBS=$LIBS
32479 LIBS="-ldnet  $LIBS"
32480 cat >conftest.$ac_ext <<_ACEOF
32481 /* confdefs.h.  */
32482 _ACEOF
32483 cat confdefs.h >>conftest.$ac_ext
32484 cat >>conftest.$ac_ext <<_ACEOF
32485 /* end confdefs.h.  */
32486
32487 /* Override any GCC internal prototype to avoid an error.
32488    Use char because int might match the return type of a GCC
32489    builtin and then its argument prototype would still apply.  */
32490 #ifdef __cplusplus
32491 extern "C"
32492 #endif
32493 char dnet_ntoa ();
32494 int
32495 main ()
32496 {
32497 return dnet_ntoa ();
32498   ;
32499   return 0;
32500 }
32501 _ACEOF
32502 rm -f conftest.$ac_objext conftest$ac_exeext
32503 if { (ac_try="$ac_link"
32504 case "(($ac_try" in
32505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506   *) ac_try_echo=$ac_try;;
32507 esac
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509   (eval "$ac_link") 2>conftest.er1
32510   ac_status=$?
32511   grep -v '^ *+' conftest.er1 >conftest.err
32512   rm -f conftest.er1
32513   cat conftest.err >&5
32514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515   (exit $ac_status); } && {
32516          test -z "$ac_c_werror_flag" ||
32517          test ! -s conftest.err
32518        } && test -s conftest$ac_exeext &&
32519        $as_test_x conftest$ac_exeext; then
32520   ac_cv_lib_dnet_dnet_ntoa=yes
32521 else
32522   echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32524
32525         ac_cv_lib_dnet_dnet_ntoa=no
32526 fi
32527
32528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32529       conftest$ac_exeext conftest.$ac_ext
32530 LIBS=$ac_check_lib_save_LIBS
32531 fi
32532 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32533 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32534 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32535   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32536 fi
32537
32538     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32539       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32540 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32541 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32542   echo $ECHO_N "(cached) $ECHO_C" >&6
32543 else
32544   ac_check_lib_save_LIBS=$LIBS
32545 LIBS="-ldnet_stub  $LIBS"
32546 cat >conftest.$ac_ext <<_ACEOF
32547 /* confdefs.h.  */
32548 _ACEOF
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h.  */
32552
32553 /* Override any GCC internal prototype to avoid an error.
32554    Use char because int might match the return type of a GCC
32555    builtin and then its argument prototype would still apply.  */
32556 #ifdef __cplusplus
32557 extern "C"
32558 #endif
32559 char dnet_ntoa ();
32560 int
32561 main ()
32562 {
32563 return dnet_ntoa ();
32564   ;
32565   return 0;
32566 }
32567 _ACEOF
32568 rm -f conftest.$ac_objext conftest$ac_exeext
32569 if { (ac_try="$ac_link"
32570 case "(($ac_try" in
32571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572   *) ac_try_echo=$ac_try;;
32573 esac
32574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575   (eval "$ac_link") 2>conftest.er1
32576   ac_status=$?
32577   grep -v '^ *+' conftest.er1 >conftest.err
32578   rm -f conftest.er1
32579   cat conftest.err >&5
32580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581   (exit $ac_status); } && {
32582          test -z "$ac_c_werror_flag" ||
32583          test ! -s conftest.err
32584        } && test -s conftest$ac_exeext &&
32585        $as_test_x conftest$ac_exeext; then
32586   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32587 else
32588   echo "$as_me: failed program was:" >&5
32589 sed 's/^/| /' conftest.$ac_ext >&5
32590
32591         ac_cv_lib_dnet_stub_dnet_ntoa=no
32592 fi
32593
32594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32595       conftest$ac_exeext conftest.$ac_ext
32596 LIBS=$ac_check_lib_save_LIBS
32597 fi
32598 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32599 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32600 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32601   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32602 fi
32603
32604     fi
32605 fi
32606
32607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32608       conftest$ac_exeext conftest.$ac_ext
32609     LIBS="$ac_xsave_LIBS"
32610
32611     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32612     # to get the SysV transport functions.
32613     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32614     # needs -lnsl.
32615     # The nsl library prevents programs from opening the X display
32616     # on Irix 5.2, according to T.E. Dickey.
32617     # The functions gethostbyname, getservbyname, and inet_addr are
32618     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32619     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32620 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32621 if test "${ac_cv_func_gethostbyname+set}" = set; then
32622   echo $ECHO_N "(cached) $ECHO_C" >&6
32623 else
32624   cat >conftest.$ac_ext <<_ACEOF
32625 /* confdefs.h.  */
32626 _ACEOF
32627 cat confdefs.h >>conftest.$ac_ext
32628 cat >>conftest.$ac_ext <<_ACEOF
32629 /* end confdefs.h.  */
32630 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32632 #define gethostbyname innocuous_gethostbyname
32633
32634 /* System header to define __stub macros and hopefully few prototypes,
32635     which can conflict with char gethostbyname (); below.
32636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32637     <limits.h> exists even on freestanding compilers.  */
32638
32639 #ifdef __STDC__
32640 # include <limits.h>
32641 #else
32642 # include <assert.h>
32643 #endif
32644
32645 #undef gethostbyname
32646
32647 /* Override any GCC internal prototype to avoid an error.
32648    Use char because int might match the return type of a GCC
32649    builtin and then its argument prototype would still apply.  */
32650 #ifdef __cplusplus
32651 extern "C"
32652 #endif
32653 char gethostbyname ();
32654 /* The GNU C library defines this for functions which it implements
32655     to always fail with ENOSYS.  Some functions are actually named
32656     something starting with __ and the normal name is an alias.  */
32657 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32658 choke me
32659 #endif
32660
32661 int
32662 main ()
32663 {
32664 return gethostbyname ();
32665   ;
32666   return 0;
32667 }
32668 _ACEOF
32669 rm -f conftest.$ac_objext conftest$ac_exeext
32670 if { (ac_try="$ac_link"
32671 case "(($ac_try" in
32672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673   *) ac_try_echo=$ac_try;;
32674 esac
32675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676   (eval "$ac_link") 2>conftest.er1
32677   ac_status=$?
32678   grep -v '^ *+' conftest.er1 >conftest.err
32679   rm -f conftest.er1
32680   cat conftest.err >&5
32681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682   (exit $ac_status); } && {
32683          test -z "$ac_c_werror_flag" ||
32684          test ! -s conftest.err
32685        } && test -s conftest$ac_exeext &&
32686        $as_test_x conftest$ac_exeext; then
32687   ac_cv_func_gethostbyname=yes
32688 else
32689   echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32691
32692         ac_cv_func_gethostbyname=no
32693 fi
32694
32695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32696       conftest$ac_exeext conftest.$ac_ext
32697 fi
32698 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32699 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32700
32701     if test $ac_cv_func_gethostbyname = no; then
32702       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32703 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32704 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32705   echo $ECHO_N "(cached) $ECHO_C" >&6
32706 else
32707   ac_check_lib_save_LIBS=$LIBS
32708 LIBS="-lnsl  $LIBS"
32709 cat >conftest.$ac_ext <<_ACEOF
32710 /* confdefs.h.  */
32711 _ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h.  */
32715
32716 /* Override any GCC internal prototype to avoid an error.
32717    Use char because int might match the return type of a GCC
32718    builtin and then its argument prototype would still apply.  */
32719 #ifdef __cplusplus
32720 extern "C"
32721 #endif
32722 char gethostbyname ();
32723 int
32724 main ()
32725 {
32726 return gethostbyname ();
32727   ;
32728   return 0;
32729 }
32730 _ACEOF
32731 rm -f conftest.$ac_objext conftest$ac_exeext
32732 if { (ac_try="$ac_link"
32733 case "(($ac_try" in
32734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32735   *) ac_try_echo=$ac_try;;
32736 esac
32737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32738   (eval "$ac_link") 2>conftest.er1
32739   ac_status=$?
32740   grep -v '^ *+' conftest.er1 >conftest.err
32741   rm -f conftest.er1
32742   cat conftest.err >&5
32743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32744   (exit $ac_status); } && {
32745          test -z "$ac_c_werror_flag" ||
32746          test ! -s conftest.err
32747        } && test -s conftest$ac_exeext &&
32748        $as_test_x conftest$ac_exeext; then
32749   ac_cv_lib_nsl_gethostbyname=yes
32750 else
32751   echo "$as_me: failed program was:" >&5
32752 sed 's/^/| /' conftest.$ac_ext >&5
32753
32754         ac_cv_lib_nsl_gethostbyname=no
32755 fi
32756
32757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32758       conftest$ac_exeext conftest.$ac_ext
32759 LIBS=$ac_check_lib_save_LIBS
32760 fi
32761 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32762 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32763 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32764   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32765 fi
32766
32767       if test $ac_cv_lib_nsl_gethostbyname = no; then
32768         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32769 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32770 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32771   echo $ECHO_N "(cached) $ECHO_C" >&6
32772 else
32773   ac_check_lib_save_LIBS=$LIBS
32774 LIBS="-lbsd  $LIBS"
32775 cat >conftest.$ac_ext <<_ACEOF
32776 /* confdefs.h.  */
32777 _ACEOF
32778 cat confdefs.h >>conftest.$ac_ext
32779 cat >>conftest.$ac_ext <<_ACEOF
32780 /* end confdefs.h.  */
32781
32782 /* Override any GCC internal prototype to avoid an error.
32783    Use char because int might match the return type of a GCC
32784    builtin and then its argument prototype would still apply.  */
32785 #ifdef __cplusplus
32786 extern "C"
32787 #endif
32788 char gethostbyname ();
32789 int
32790 main ()
32791 {
32792 return gethostbyname ();
32793   ;
32794   return 0;
32795 }
32796 _ACEOF
32797 rm -f conftest.$ac_objext conftest$ac_exeext
32798 if { (ac_try="$ac_link"
32799 case "(($ac_try" in
32800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801   *) ac_try_echo=$ac_try;;
32802 esac
32803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804   (eval "$ac_link") 2>conftest.er1
32805   ac_status=$?
32806   grep -v '^ *+' conftest.er1 >conftest.err
32807   rm -f conftest.er1
32808   cat conftest.err >&5
32809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810   (exit $ac_status); } && {
32811          test -z "$ac_c_werror_flag" ||
32812          test ! -s conftest.err
32813        } && test -s conftest$ac_exeext &&
32814        $as_test_x conftest$ac_exeext; then
32815   ac_cv_lib_bsd_gethostbyname=yes
32816 else
32817   echo "$as_me: failed program was:" >&5
32818 sed 's/^/| /' conftest.$ac_ext >&5
32819
32820         ac_cv_lib_bsd_gethostbyname=no
32821 fi
32822
32823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32824       conftest$ac_exeext conftest.$ac_ext
32825 LIBS=$ac_check_lib_save_LIBS
32826 fi
32827 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32828 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32829 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32830   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32831 fi
32832
32833       fi
32834     fi
32835
32836     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32837     # socket/setsockopt and other routines are undefined under SCO ODT
32838     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32839     # on later versions), says Simon Leinen: it contains gethostby*
32840     # variants that don't use the name server (or something).  -lsocket
32841     # must be given before -lnsl if both are needed.  We assume that
32842     # if connect needs -lnsl, so does gethostbyname.
32843     { echo "$as_me:$LINENO: checking for connect" >&5
32844 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32845 if test "${ac_cv_func_connect+set}" = set; then
32846   echo $ECHO_N "(cached) $ECHO_C" >&6
32847 else
32848   cat >conftest.$ac_ext <<_ACEOF
32849 /* confdefs.h.  */
32850 _ACEOF
32851 cat confdefs.h >>conftest.$ac_ext
32852 cat >>conftest.$ac_ext <<_ACEOF
32853 /* end confdefs.h.  */
32854 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32856 #define connect innocuous_connect
32857
32858 /* System header to define __stub macros and hopefully few prototypes,
32859     which can conflict with char connect (); below.
32860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32861     <limits.h> exists even on freestanding compilers.  */
32862
32863 #ifdef __STDC__
32864 # include <limits.h>
32865 #else
32866 # include <assert.h>
32867 #endif
32868
32869 #undef connect
32870
32871 /* Override any GCC internal prototype to avoid an error.
32872    Use char because int might match the return type of a GCC
32873    builtin and then its argument prototype would still apply.  */
32874 #ifdef __cplusplus
32875 extern "C"
32876 #endif
32877 char connect ();
32878 /* The GNU C library defines this for functions which it implements
32879     to always fail with ENOSYS.  Some functions are actually named
32880     something starting with __ and the normal name is an alias.  */
32881 #if defined __stub_connect || defined __stub___connect
32882 choke me
32883 #endif
32884
32885 int
32886 main ()
32887 {
32888 return connect ();
32889   ;
32890   return 0;
32891 }
32892 _ACEOF
32893 rm -f conftest.$ac_objext conftest$ac_exeext
32894 if { (ac_try="$ac_link"
32895 case "(($ac_try" in
32896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32897   *) ac_try_echo=$ac_try;;
32898 esac
32899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32900   (eval "$ac_link") 2>conftest.er1
32901   ac_status=$?
32902   grep -v '^ *+' conftest.er1 >conftest.err
32903   rm -f conftest.er1
32904   cat conftest.err >&5
32905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906   (exit $ac_status); } && {
32907          test -z "$ac_c_werror_flag" ||
32908          test ! -s conftest.err
32909        } && test -s conftest$ac_exeext &&
32910        $as_test_x conftest$ac_exeext; then
32911   ac_cv_func_connect=yes
32912 else
32913   echo "$as_me: failed program was:" >&5
32914 sed 's/^/| /' conftest.$ac_ext >&5
32915
32916         ac_cv_func_connect=no
32917 fi
32918
32919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32920       conftest$ac_exeext conftest.$ac_ext
32921 fi
32922 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32923 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32924
32925     if test $ac_cv_func_connect = no; then
32926       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32927 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32928 if test "${ac_cv_lib_socket_connect+set}" = set; then
32929   echo $ECHO_N "(cached) $ECHO_C" >&6
32930 else
32931   ac_check_lib_save_LIBS=$LIBS
32932 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32933 cat >conftest.$ac_ext <<_ACEOF
32934 /* confdefs.h.  */
32935 _ACEOF
32936 cat confdefs.h >>conftest.$ac_ext
32937 cat >>conftest.$ac_ext <<_ACEOF
32938 /* end confdefs.h.  */
32939
32940 /* Override any GCC internal prototype to avoid an error.
32941    Use char because int might match the return type of a GCC
32942    builtin and then its argument prototype would still apply.  */
32943 #ifdef __cplusplus
32944 extern "C"
32945 #endif
32946 char connect ();
32947 int
32948 main ()
32949 {
32950 return connect ();
32951   ;
32952   return 0;
32953 }
32954 _ACEOF
32955 rm -f conftest.$ac_objext conftest$ac_exeext
32956 if { (ac_try="$ac_link"
32957 case "(($ac_try" in
32958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32959   *) ac_try_echo=$ac_try;;
32960 esac
32961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32962   (eval "$ac_link") 2>conftest.er1
32963   ac_status=$?
32964   grep -v '^ *+' conftest.er1 >conftest.err
32965   rm -f conftest.er1
32966   cat conftest.err >&5
32967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968   (exit $ac_status); } && {
32969          test -z "$ac_c_werror_flag" ||
32970          test ! -s conftest.err
32971        } && test -s conftest$ac_exeext &&
32972        $as_test_x conftest$ac_exeext; then
32973   ac_cv_lib_socket_connect=yes
32974 else
32975   echo "$as_me: failed program was:" >&5
32976 sed 's/^/| /' conftest.$ac_ext >&5
32977
32978         ac_cv_lib_socket_connect=no
32979 fi
32980
32981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32982       conftest$ac_exeext conftest.$ac_ext
32983 LIBS=$ac_check_lib_save_LIBS
32984 fi
32985 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32986 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32987 if test $ac_cv_lib_socket_connect = yes; then
32988   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32989 fi
32990
32991     fi
32992
32993     # Guillermo Gomez says -lposix is necessary on A/UX.
32994     { echo "$as_me:$LINENO: checking for remove" >&5
32995 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32996 if test "${ac_cv_func_remove+set}" = set; then
32997   echo $ECHO_N "(cached) $ECHO_C" >&6
32998 else
32999   cat >conftest.$ac_ext <<_ACEOF
33000 /* confdefs.h.  */
33001 _ACEOF
33002 cat confdefs.h >>conftest.$ac_ext
33003 cat >>conftest.$ac_ext <<_ACEOF
33004 /* end confdefs.h.  */
33005 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33007 #define remove innocuous_remove
33008
33009 /* System header to define __stub macros and hopefully few prototypes,
33010     which can conflict with char remove (); below.
33011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33012     <limits.h> exists even on freestanding compilers.  */
33013
33014 #ifdef __STDC__
33015 # include <limits.h>
33016 #else
33017 # include <assert.h>
33018 #endif
33019
33020 #undef remove
33021
33022 /* Override any GCC internal prototype to avoid an error.
33023    Use char because int might match the return type of a GCC
33024    builtin and then its argument prototype would still apply.  */
33025 #ifdef __cplusplus
33026 extern "C"
33027 #endif
33028 char remove ();
33029 /* The GNU C library defines this for functions which it implements
33030     to always fail with ENOSYS.  Some functions are actually named
33031     something starting with __ and the normal name is an alias.  */
33032 #if defined __stub_remove || defined __stub___remove
33033 choke me
33034 #endif
33035
33036 int
33037 main ()
33038 {
33039 return remove ();
33040   ;
33041   return 0;
33042 }
33043 _ACEOF
33044 rm -f conftest.$ac_objext conftest$ac_exeext
33045 if { (ac_try="$ac_link"
33046 case "(($ac_try" in
33047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048   *) ac_try_echo=$ac_try;;
33049 esac
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051   (eval "$ac_link") 2>conftest.er1
33052   ac_status=$?
33053   grep -v '^ *+' conftest.er1 >conftest.err
33054   rm -f conftest.er1
33055   cat conftest.err >&5
33056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057   (exit $ac_status); } && {
33058          test -z "$ac_c_werror_flag" ||
33059          test ! -s conftest.err
33060        } && test -s conftest$ac_exeext &&
33061        $as_test_x conftest$ac_exeext; then
33062   ac_cv_func_remove=yes
33063 else
33064   echo "$as_me: failed program was:" >&5
33065 sed 's/^/| /' conftest.$ac_ext >&5
33066
33067         ac_cv_func_remove=no
33068 fi
33069
33070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33071       conftest$ac_exeext conftest.$ac_ext
33072 fi
33073 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33074 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33075
33076     if test $ac_cv_func_remove = no; then
33077       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33078 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33079 if test "${ac_cv_lib_posix_remove+set}" = set; then
33080   echo $ECHO_N "(cached) $ECHO_C" >&6
33081 else
33082   ac_check_lib_save_LIBS=$LIBS
33083 LIBS="-lposix  $LIBS"
33084 cat >conftest.$ac_ext <<_ACEOF
33085 /* confdefs.h.  */
33086 _ACEOF
33087 cat confdefs.h >>conftest.$ac_ext
33088 cat >>conftest.$ac_ext <<_ACEOF
33089 /* end confdefs.h.  */
33090
33091 /* Override any GCC internal prototype to avoid an error.
33092    Use char because int might match the return type of a GCC
33093    builtin and then its argument prototype would still apply.  */
33094 #ifdef __cplusplus
33095 extern "C"
33096 #endif
33097 char remove ();
33098 int
33099 main ()
33100 {
33101 return remove ();
33102   ;
33103   return 0;
33104 }
33105 _ACEOF
33106 rm -f conftest.$ac_objext conftest$ac_exeext
33107 if { (ac_try="$ac_link"
33108 case "(($ac_try" in
33109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33110   *) ac_try_echo=$ac_try;;
33111 esac
33112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33113   (eval "$ac_link") 2>conftest.er1
33114   ac_status=$?
33115   grep -v '^ *+' conftest.er1 >conftest.err
33116   rm -f conftest.er1
33117   cat conftest.err >&5
33118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119   (exit $ac_status); } && {
33120          test -z "$ac_c_werror_flag" ||
33121          test ! -s conftest.err
33122        } && test -s conftest$ac_exeext &&
33123        $as_test_x conftest$ac_exeext; then
33124   ac_cv_lib_posix_remove=yes
33125 else
33126   echo "$as_me: failed program was:" >&5
33127 sed 's/^/| /' conftest.$ac_ext >&5
33128
33129         ac_cv_lib_posix_remove=no
33130 fi
33131
33132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33133       conftest$ac_exeext conftest.$ac_ext
33134 LIBS=$ac_check_lib_save_LIBS
33135 fi
33136 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33137 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33138 if test $ac_cv_lib_posix_remove = yes; then
33139   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33140 fi
33141
33142     fi
33143
33144     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33145     { echo "$as_me:$LINENO: checking for shmat" >&5
33146 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33147 if test "${ac_cv_func_shmat+set}" = set; then
33148   echo $ECHO_N "(cached) $ECHO_C" >&6
33149 else
33150   cat >conftest.$ac_ext <<_ACEOF
33151 /* confdefs.h.  */
33152 _ACEOF
33153 cat confdefs.h >>conftest.$ac_ext
33154 cat >>conftest.$ac_ext <<_ACEOF
33155 /* end confdefs.h.  */
33156 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33158 #define shmat innocuous_shmat
33159
33160 /* System header to define __stub macros and hopefully few prototypes,
33161     which can conflict with char shmat (); below.
33162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33163     <limits.h> exists even on freestanding compilers.  */
33164
33165 #ifdef __STDC__
33166 # include <limits.h>
33167 #else
33168 # include <assert.h>
33169 #endif
33170
33171 #undef shmat
33172
33173 /* Override any GCC internal prototype to avoid an error.
33174    Use char because int might match the return type of a GCC
33175    builtin and then its argument prototype would still apply.  */
33176 #ifdef __cplusplus
33177 extern "C"
33178 #endif
33179 char shmat ();
33180 /* The GNU C library defines this for functions which it implements
33181     to always fail with ENOSYS.  Some functions are actually named
33182     something starting with __ and the normal name is an alias.  */
33183 #if defined __stub_shmat || defined __stub___shmat
33184 choke me
33185 #endif
33186
33187 int
33188 main ()
33189 {
33190 return shmat ();
33191   ;
33192   return 0;
33193 }
33194 _ACEOF
33195 rm -f conftest.$ac_objext conftest$ac_exeext
33196 if { (ac_try="$ac_link"
33197 case "(($ac_try" in
33198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199   *) ac_try_echo=$ac_try;;
33200 esac
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202   (eval "$ac_link") 2>conftest.er1
33203   ac_status=$?
33204   grep -v '^ *+' conftest.er1 >conftest.err
33205   rm -f conftest.er1
33206   cat conftest.err >&5
33207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208   (exit $ac_status); } && {
33209          test -z "$ac_c_werror_flag" ||
33210          test ! -s conftest.err
33211        } && test -s conftest$ac_exeext &&
33212        $as_test_x conftest$ac_exeext; then
33213   ac_cv_func_shmat=yes
33214 else
33215   echo "$as_me: failed program was:" >&5
33216 sed 's/^/| /' conftest.$ac_ext >&5
33217
33218         ac_cv_func_shmat=no
33219 fi
33220
33221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33222       conftest$ac_exeext conftest.$ac_ext
33223 fi
33224 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33225 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33226
33227     if test $ac_cv_func_shmat = no; then
33228       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33229 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33230 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33231   echo $ECHO_N "(cached) $ECHO_C" >&6
33232 else
33233   ac_check_lib_save_LIBS=$LIBS
33234 LIBS="-lipc  $LIBS"
33235 cat >conftest.$ac_ext <<_ACEOF
33236 /* confdefs.h.  */
33237 _ACEOF
33238 cat confdefs.h >>conftest.$ac_ext
33239 cat >>conftest.$ac_ext <<_ACEOF
33240 /* end confdefs.h.  */
33241
33242 /* Override any GCC internal prototype to avoid an error.
33243    Use char because int might match the return type of a GCC
33244    builtin and then its argument prototype would still apply.  */
33245 #ifdef __cplusplus
33246 extern "C"
33247 #endif
33248 char shmat ();
33249 int
33250 main ()
33251 {
33252 return shmat ();
33253   ;
33254   return 0;
33255 }
33256 _ACEOF
33257 rm -f conftest.$ac_objext conftest$ac_exeext
33258 if { (ac_try="$ac_link"
33259 case "(($ac_try" in
33260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261   *) ac_try_echo=$ac_try;;
33262 esac
33263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264   (eval "$ac_link") 2>conftest.er1
33265   ac_status=$?
33266   grep -v '^ *+' conftest.er1 >conftest.err
33267   rm -f conftest.er1
33268   cat conftest.err >&5
33269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270   (exit $ac_status); } && {
33271          test -z "$ac_c_werror_flag" ||
33272          test ! -s conftest.err
33273        } && test -s conftest$ac_exeext &&
33274        $as_test_x conftest$ac_exeext; then
33275   ac_cv_lib_ipc_shmat=yes
33276 else
33277   echo "$as_me: failed program was:" >&5
33278 sed 's/^/| /' conftest.$ac_ext >&5
33279
33280         ac_cv_lib_ipc_shmat=no
33281 fi
33282
33283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33284       conftest$ac_exeext conftest.$ac_ext
33285 LIBS=$ac_check_lib_save_LIBS
33286 fi
33287 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33288 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33289 if test $ac_cv_lib_ipc_shmat = yes; then
33290   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33291 fi
33292
33293     fi
33294   fi
33295
33296   # Check for libraries that X11R6 Xt/Xaw programs need.
33297   ac_save_LDFLAGS=$LDFLAGS
33298   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33299   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33300   # check for ICE first), but we must link in the order -lSM -lICE or
33301   # we get undefined symbols.  So assume we have SM if we have ICE.
33302   # These have to be linked with before -lX11, unlike the other
33303   # libraries we check for below, so use a different variable.
33304   # John Interrante, Karl Berry
33305   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33306 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33307 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33308   echo $ECHO_N "(cached) $ECHO_C" >&6
33309 else
33310   ac_check_lib_save_LIBS=$LIBS
33311 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33312 cat >conftest.$ac_ext <<_ACEOF
33313 /* confdefs.h.  */
33314 _ACEOF
33315 cat confdefs.h >>conftest.$ac_ext
33316 cat >>conftest.$ac_ext <<_ACEOF
33317 /* end confdefs.h.  */
33318
33319 /* Override any GCC internal prototype to avoid an error.
33320    Use char because int might match the return type of a GCC
33321    builtin and then its argument prototype would still apply.  */
33322 #ifdef __cplusplus
33323 extern "C"
33324 #endif
33325 char IceConnectionNumber ();
33326 int
33327 main ()
33328 {
33329 return IceConnectionNumber ();
33330   ;
33331   return 0;
33332 }
33333 _ACEOF
33334 rm -f conftest.$ac_objext conftest$ac_exeext
33335 if { (ac_try="$ac_link"
33336 case "(($ac_try" in
33337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33338   *) ac_try_echo=$ac_try;;
33339 esac
33340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33341   (eval "$ac_link") 2>conftest.er1
33342   ac_status=$?
33343   grep -v '^ *+' conftest.er1 >conftest.err
33344   rm -f conftest.er1
33345   cat conftest.err >&5
33346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347   (exit $ac_status); } && {
33348          test -z "$ac_c_werror_flag" ||
33349          test ! -s conftest.err
33350        } && test -s conftest$ac_exeext &&
33351        $as_test_x conftest$ac_exeext; then
33352   ac_cv_lib_ICE_IceConnectionNumber=yes
33353 else
33354   echo "$as_me: failed program was:" >&5
33355 sed 's/^/| /' conftest.$ac_ext >&5
33356
33357         ac_cv_lib_ICE_IceConnectionNumber=no
33358 fi
33359
33360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33361       conftest$ac_exeext conftest.$ac_ext
33362 LIBS=$ac_check_lib_save_LIBS
33363 fi
33364 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33365 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33366 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33367   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33368 fi
33369
33370   LDFLAGS=$ac_save_LDFLAGS
33371
33372 fi
33373
33374
33375         if test "$no_x" = "yes"; then
33376           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33377 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33378    { (exit 1); exit 1; }; }
33379         fi
33380
33381                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33382         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33383         AFMINSTALL=afminstall
33384         COMPILED_X_PROGRAM=0
33385
33386     fi
33387
33388     if test "$wxUSE_X11" = 1; then
33389         if test "$wxUSE_NANOX" = "yes"; then
33390             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33391 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33392             if test "x$MICROWIN" = x ; then
33393                 { echo "$as_me:$LINENO: result: not found" >&5
33394 echo "${ECHO_T}not found" >&6; }
33395                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33396 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33397    { (exit 1); exit 1; }; }
33398             else
33399                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33400 echo "${ECHO_T}$MICROWIN" >&6; }
33401                 cat >>confdefs.h <<\_ACEOF
33402 #define wxUSE_NANOX 1
33403 _ACEOF
33404
33405             fi
33406         fi
33407
33408         if test "$wxUSE_UNICODE" = "yes"; then
33409
33410
33411 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33412         if test -n "$ac_tool_prefix"; then
33413   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33414 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33418   echo $ECHO_N "(cached) $ECHO_C" >&6
33419 else
33420   case $PKG_CONFIG in
33421   [\\/]* | ?:[\\/]*)
33422   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33423   ;;
33424   *)
33425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33426 for as_dir in $PATH
33427 do
33428   IFS=$as_save_IFS
33429   test -z "$as_dir" && as_dir=.
33430   for ac_exec_ext in '' $ac_executable_extensions; do
33431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33432     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33434     break 2
33435   fi
33436 done
33437 done
33438 IFS=$as_save_IFS
33439
33440   ;;
33441 esac
33442 fi
33443 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33444 if test -n "$PKG_CONFIG"; then
33445   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33446 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33447 else
33448   { echo "$as_me:$LINENO: result: no" >&5
33449 echo "${ECHO_T}no" >&6; }
33450 fi
33451
33452
33453 fi
33454 if test -z "$ac_cv_path_PKG_CONFIG"; then
33455   ac_pt_PKG_CONFIG=$PKG_CONFIG
33456   # Extract the first word of "pkg-config", so it can be a program name with args.
33457 set dummy pkg-config; ac_word=$2
33458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33460 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33461   echo $ECHO_N "(cached) $ECHO_C" >&6
33462 else
33463   case $ac_pt_PKG_CONFIG in
33464   [\\/]* | ?:[\\/]*)
33465   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33466   ;;
33467   *)
33468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33469 for as_dir in $PATH
33470 do
33471   IFS=$as_save_IFS
33472   test -z "$as_dir" && as_dir=.
33473   for ac_exec_ext in '' $ac_executable_extensions; do
33474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33475     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33477     break 2
33478   fi
33479 done
33480 done
33481 IFS=$as_save_IFS
33482
33483   ;;
33484 esac
33485 fi
33486 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33487 if test -n "$ac_pt_PKG_CONFIG"; then
33488   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33489 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33490 else
33491   { echo "$as_me:$LINENO: result: no" >&5
33492 echo "${ECHO_T}no" >&6; }
33493 fi
33494
33495   if test "x$ac_pt_PKG_CONFIG" = x; then
33496     PKG_CONFIG=""
33497   else
33498     case $cross_compiling:$ac_tool_warned in
33499 yes:)
33500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33501 whose name does not start with the host triplet.  If you think this
33502 configuration is useful to you, please write to autoconf@gnu.org." >&5
33503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33504 whose name does not start with the host triplet.  If you think this
33505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33506 ac_tool_warned=yes ;;
33507 esac
33508     PKG_CONFIG=$ac_pt_PKG_CONFIG
33509   fi
33510 else
33511   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33512 fi
33513
33514 fi
33515 if test -n "$PKG_CONFIG"; then
33516         _pkg_min_version=0.9.0
33517         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33518 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33519         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33520                 { echo "$as_me:$LINENO: result: yes" >&5
33521 echo "${ECHO_T}yes" >&6; }
33522         else
33523                 { echo "$as_me:$LINENO: result: no" >&5
33524 echo "${ECHO_T}no" >&6; }
33525                 PKG_CONFIG=""
33526         fi
33527
33528 fi
33529
33530
33531 pkg_failed=no
33532 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33533 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33534
33535 if test -n "$PKG_CONFIG"; then
33536     if test -n "$PANGOX_CFLAGS"; then
33537         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33538     else
33539         if test -n "$PKG_CONFIG" && \
33540     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33541   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33542   ac_status=$?
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); }; then
33545   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33546 else
33547   pkg_failed=yes
33548 fi
33549     fi
33550 else
33551         pkg_failed=untried
33552 fi
33553 if test -n "$PKG_CONFIG"; then
33554     if test -n "$PANGOX_LIBS"; then
33555         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33556     else
33557         if test -n "$PKG_CONFIG" && \
33558     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33559   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33560   ac_status=$?
33561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562   (exit $ac_status); }; then
33563   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33564 else
33565   pkg_failed=yes
33566 fi
33567     fi
33568 else
33569         pkg_failed=untried
33570 fi
33571
33572
33573
33574 if test $pkg_failed = yes; then
33575
33576 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33577         _pkg_short_errors_supported=yes
33578 else
33579         _pkg_short_errors_supported=no
33580 fi
33581         if test $_pkg_short_errors_supported = yes; then
33582                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33583         else
33584                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33585         fi
33586         # Put the nasty error message in config.log where it belongs
33587         echo "$PANGOX_PKG_ERRORS" >&5
33588
33589
33590                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33591 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33592    { (exit 1); exit 1; }; }
33593
33594
33595 elif test $pkg_failed = untried; then
33596
33597                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33598 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33599    { (exit 1); exit 1; }; }
33600
33601
33602 else
33603         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33604         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33605         { echo "$as_me:$LINENO: result: yes" >&5
33606 echo "${ECHO_T}yes" >&6; }
33607
33608                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33609                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33610                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33611
33612 fi
33613
33614 pkg_failed=no
33615 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33616 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33617
33618 if test -n "$PKG_CONFIG"; then
33619     if test -n "$PANGOFT2_CFLAGS"; then
33620         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33621     else
33622         if test -n "$PKG_CONFIG" && \
33623     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33624   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33625   ac_status=$?
33626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627   (exit $ac_status); }; then
33628   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33629 else
33630   pkg_failed=yes
33631 fi
33632     fi
33633 else
33634         pkg_failed=untried
33635 fi
33636 if test -n "$PKG_CONFIG"; then
33637     if test -n "$PANGOFT2_LIBS"; then
33638         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33639     else
33640         if test -n "$PKG_CONFIG" && \
33641     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33642   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33643   ac_status=$?
33644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645   (exit $ac_status); }; then
33646   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33647 else
33648   pkg_failed=yes
33649 fi
33650     fi
33651 else
33652         pkg_failed=untried
33653 fi
33654
33655
33656
33657 if test $pkg_failed = yes; then
33658
33659 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33660         _pkg_short_errors_supported=yes
33661 else
33662         _pkg_short_errors_supported=no
33663 fi
33664         if test $_pkg_short_errors_supported = yes; then
33665                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33666         else
33667                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33668         fi
33669         # Put the nasty error message in config.log where it belongs
33670         echo "$PANGOFT2_PKG_ERRORS" >&5
33671
33672
33673                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33674 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33675                     wxUSE_PRINTING_ARCHITECTURE="no"
33676
33677
33678 elif test $pkg_failed = untried; then
33679
33680                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33681 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33682                     wxUSE_PRINTING_ARCHITECTURE="no"
33683
33684
33685 else
33686         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33687         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33688         { echo "$as_me:$LINENO: result: yes" >&5
33689 echo "${ECHO_T}yes" >&6; }
33690
33691                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33692                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33693                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33694
33695 fi
33696
33697 pkg_failed=no
33698 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33699 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33700
33701 if test -n "$PKG_CONFIG"; then
33702     if test -n "$PANGOXFT_CFLAGS"; then
33703         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33704     else
33705         if test -n "$PKG_CONFIG" && \
33706     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33707   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33708   ac_status=$?
33709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710   (exit $ac_status); }; then
33711   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33712 else
33713   pkg_failed=yes
33714 fi
33715     fi
33716 else
33717         pkg_failed=untried
33718 fi
33719 if test -n "$PKG_CONFIG"; then
33720     if test -n "$PANGOXFT_LIBS"; then
33721         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33722     else
33723         if test -n "$PKG_CONFIG" && \
33724     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33725   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33726   ac_status=$?
33727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728   (exit $ac_status); }; then
33729   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33730 else
33731   pkg_failed=yes
33732 fi
33733     fi
33734 else
33735         pkg_failed=untried
33736 fi
33737
33738
33739
33740 if test $pkg_failed = yes; then
33741
33742 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33743         _pkg_short_errors_supported=yes
33744 else
33745         _pkg_short_errors_supported=no
33746 fi
33747         if test $_pkg_short_errors_supported = yes; then
33748                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33749         else
33750                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33751         fi
33752         # Put the nasty error message in config.log where it belongs
33753         echo "$PANGOXFT_PKG_ERRORS" >&5
33754
33755
33756                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33757 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33758
33759
33760 elif test $pkg_failed = untried; then
33761
33762                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33763 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33764
33765
33766 else
33767         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33768         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33769         { echo "$as_me:$LINENO: result: yes" >&5
33770 echo "${ECHO_T}yes" >&6; }
33771
33772                     cat >>confdefs.h <<\_ACEOF
33773 #define HAVE_PANGO_XFT 1
33774 _ACEOF
33775
33776                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33777                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33778                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33779
33780 fi
33781             save_LIBS="$LIBS"
33782             LIBS="$LIBS $PANGOX_LIBS"
33783
33784 for ac_func in pango_font_family_is_monospace
33785 do
33786 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33787 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33788 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33789 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33790   echo $ECHO_N "(cached) $ECHO_C" >&6
33791 else
33792   cat >conftest.$ac_ext <<_ACEOF
33793 /* confdefs.h.  */
33794 _ACEOF
33795 cat confdefs.h >>conftest.$ac_ext
33796 cat >>conftest.$ac_ext <<_ACEOF
33797 /* end confdefs.h.  */
33798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33800 #define $ac_func innocuous_$ac_func
33801
33802 /* System header to define __stub macros and hopefully few prototypes,
33803     which can conflict with char $ac_func (); below.
33804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33805     <limits.h> exists even on freestanding compilers.  */
33806
33807 #ifdef __STDC__
33808 # include <limits.h>
33809 #else
33810 # include <assert.h>
33811 #endif
33812
33813 #undef $ac_func
33814
33815 /* Override any GCC internal prototype to avoid an error.
33816    Use char because int might match the return type of a GCC
33817    builtin and then its argument prototype would still apply.  */
33818 #ifdef __cplusplus
33819 extern "C"
33820 #endif
33821 char $ac_func ();
33822 /* The GNU C library defines this for functions which it implements
33823     to always fail with ENOSYS.  Some functions are actually named
33824     something starting with __ and the normal name is an alias.  */
33825 #if defined __stub_$ac_func || defined __stub___$ac_func
33826 choke me
33827 #endif
33828
33829 int
33830 main ()
33831 {
33832 return $ac_func ();
33833   ;
33834   return 0;
33835 }
33836 _ACEOF
33837 rm -f conftest.$ac_objext conftest$ac_exeext
33838 if { (ac_try="$ac_link"
33839 case "(($ac_try" in
33840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33841   *) ac_try_echo=$ac_try;;
33842 esac
33843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33844   (eval "$ac_link") 2>conftest.er1
33845   ac_status=$?
33846   grep -v '^ *+' conftest.er1 >conftest.err
33847   rm -f conftest.er1
33848   cat conftest.err >&5
33849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850   (exit $ac_status); } && {
33851          test -z "$ac_c_werror_flag" ||
33852          test ! -s conftest.err
33853        } && test -s conftest$ac_exeext &&
33854        $as_test_x conftest$ac_exeext; then
33855   eval "$as_ac_var=yes"
33856 else
33857   echo "$as_me: failed program was:" >&5
33858 sed 's/^/| /' conftest.$ac_ext >&5
33859
33860         eval "$as_ac_var=no"
33861 fi
33862
33863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33864       conftest$ac_exeext conftest.$ac_ext
33865 fi
33866 ac_res=`eval echo '${'$as_ac_var'}'`
33867                { echo "$as_me:$LINENO: result: $ac_res" >&5
33868 echo "${ECHO_T}$ac_res" >&6; }
33869 if test `eval echo '${'$as_ac_var'}'` = yes; then
33870   cat >>confdefs.h <<_ACEOF
33871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33872 _ACEOF
33873
33874 fi
33875 done
33876
33877             LIBS="$save_LIBS"
33878         fi
33879
33880         wxUSE_UNIVERSAL="yes"
33881
33882         if test "$wxUSE_NANOX" = "yes"; then
33883             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33884             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"
33885             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33886         else
33887             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33888         fi
33889
33890         TOOLKIT=X11
33891         GUIDIST=X11_DIST
33892     fi
33893
33894     if test "$wxUSE_MOTIF" = 1; then
33895         if test "$wxUSE_UNICODE" = "yes"; then
33896             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
33897 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
33898    { (exit 1); exit 1; }; }
33899         fi
33900
33901         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33902 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33903
33904 ac_find_includes=
33905 for ac_dir in $SEARCH_INCLUDE /usr/include;
33906   do
33907     if test -f "$ac_dir/Xm/Xm.h"; then
33908       ac_find_includes=$ac_dir
33909       break
33910     fi
33911   done
33912
33913         if test "$ac_find_includes" != "" ; then
33914             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33915 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33916
33917     if test "x$ac_find_includes" = "x/usr/include"; then
33918     ac_path_to_include=""
33919   else
33920     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33921     result=$?
33922     if test $result = 0; then
33923       ac_path_to_include=""
33924     else
33925       ac_path_to_include=" -I$ac_find_includes"
33926     fi
33927   fi
33928
33929             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33930         else
33931             save_CFLAGS=$CFLAGS
33932             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33933
33934             cat >conftest.$ac_ext <<_ACEOF
33935 /* confdefs.h.  */
33936 _ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h.  */
33940
33941                     #include <Xm/Xm.h>
33942
33943 int
33944 main ()
33945 {
33946
33947                     int version;
33948                     version = xmUseVersion;
33949
33950   ;
33951   return 0;
33952 }
33953 _ACEOF
33954 rm -f conftest.$ac_objext
33955 if { (ac_try="$ac_compile"
33956 case "(($ac_try" in
33957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958   *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961   (eval "$ac_compile") 2>conftest.er1
33962   ac_status=$?
33963   grep -v '^ *+' conftest.er1 >conftest.err
33964   rm -f conftest.er1
33965   cat conftest.err >&5
33966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967   (exit $ac_status); } && {
33968          test -z "$ac_c_werror_flag" ||
33969          test ! -s conftest.err
33970        } && test -s conftest.$ac_objext; then
33971
33972                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33973 echo "${ECHO_T}found in default search path" >&6; }
33974                     COMPILED_X_PROGRAM=1
33975
33976 else
33977   echo "$as_me: failed program was:" >&5
33978 sed 's/^/| /' conftest.$ac_ext >&5
33979
33980
33981                     { echo "$as_me:$LINENO: result: no" >&5
33982 echo "${ECHO_T}no" >&6; }
33983                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33984 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33985    { (exit 1); exit 1; }; }
33986
33987
33988 fi
33989
33990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33991
33992             CFLAGS=$save_CFLAGS
33993         fi
33994
33995
33996         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33997 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33998
33999   ac_find_libraries=
34000   for ac_dir in $SEARCH_LIB;
34001   do
34002     for ac_extension in a so sl dylib dll.a; do
34003       if test -f "$ac_dir/libXm.$ac_extension"; then
34004         ac_find_libraries=$ac_dir
34005         break 2
34006       fi
34007     done
34008   done
34009
34010
34011         if test "x$ac_find_libraries" != "x" ; then
34012             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34013 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34014
34015
34016     if test "$ac_find_libraries" = "default location"; then
34017     ac_path_to_link=""
34018   else
34019     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34020     result=$?
34021     if test $result = 0; then
34022       ac_path_to_link=""
34023     else
34024       ac_path_to_link=" -L$ac_find_libraries"
34025     fi
34026   fi
34027
34028             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34029         else
34030                                                 save_CFLAGS=$CFLAGS
34031             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34032             save_LIBS="$LIBS"
34033             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34034
34035             cat >conftest.$ac_ext <<_ACEOF
34036 /* confdefs.h.  */
34037 _ACEOF
34038 cat confdefs.h >>conftest.$ac_ext
34039 cat >>conftest.$ac_ext <<_ACEOF
34040 /* end confdefs.h.  */
34041
34042                     #include <Xm/Xm.h>
34043
34044 int
34045 main ()
34046 {
34047
34048                     int version;
34049                     version = xmUseVersion;
34050
34051   ;
34052   return 0;
34053 }
34054 _ACEOF
34055 rm -f conftest.$ac_objext conftest$ac_exeext
34056 if { (ac_try="$ac_link"
34057 case "(($ac_try" in
34058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34059   *) ac_try_echo=$ac_try;;
34060 esac
34061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34062   (eval "$ac_link") 2>conftest.er1
34063   ac_status=$?
34064   grep -v '^ *+' conftest.er1 >conftest.err
34065   rm -f conftest.er1
34066   cat conftest.err >&5
34067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34068   (exit $ac_status); } && {
34069          test -z "$ac_c_werror_flag" ||
34070          test ! -s conftest.err
34071        } && test -s conftest$ac_exeext &&
34072        $as_test_x conftest$ac_exeext; then
34073
34074                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34075 echo "${ECHO_T}found in default search path" >&6; }
34076                     COMPILED_X_PROGRAM=1
34077
34078 else
34079   echo "$as_me: failed program was:" >&5
34080 sed 's/^/| /' conftest.$ac_ext >&5
34081
34082
34083                     { echo "$as_me:$LINENO: result: no" >&5
34084 echo "${ECHO_T}no" >&6; }
34085                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34086 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34087    { (exit 1); exit 1; }; }
34088
34089
34090 fi
34091
34092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34093       conftest$ac_exeext conftest.$ac_ext
34094
34095             CFLAGS=$save_CFLAGS
34096             LIBS="$save_LIBS"
34097         fi
34098
34099         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34100 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34101         libp_link=""
34102         libsm_ice_link=""
34103         libs_found=0
34104         for libp in "" " -lXp"; do
34105             if test "$libs_found" = "0"; then
34106                 for libsm_ice in "" " -lSM -lICE"; do
34107                     if test "$libs_found" = "0"; then
34108                         save_LIBS="$LIBS"
34109                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34110                         save_CFLAGS=$CFLAGS
34111                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34112
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
34120                                 #include <Xm/Xm.h>
34121                                 #include <Xm/List.h>
34122
34123 int
34124 main ()
34125 {
34126
34127                                 XmString string = NULL;
34128                                 Widget w = NULL;
34129                                 int position = 0;
34130                                 XmListAddItem(w, string, position);
34131
34132   ;
34133   return 0;
34134 }
34135 _ACEOF
34136 rm -f conftest.$ac_objext conftest$ac_exeext
34137 if { (ac_try="$ac_link"
34138 case "(($ac_try" in
34139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34140   *) ac_try_echo=$ac_try;;
34141 esac
34142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34143   (eval "$ac_link") 2>conftest.er1
34144   ac_status=$?
34145   grep -v '^ *+' conftest.er1 >conftest.err
34146   rm -f conftest.er1
34147   cat conftest.err >&5
34148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149   (exit $ac_status); } && {
34150          test -z "$ac_c_werror_flag" ||
34151          test ! -s conftest.err
34152        } && test -s conftest$ac_exeext &&
34153        $as_test_x conftest$ac_exeext; then
34154
34155                                 libp_link="$libp"
34156                                 libsm_ice_link="$libsm_ice"
34157                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34158 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34159                                 libs_found=1
34160
34161 else
34162   echo "$as_me: failed program was:" >&5
34163 sed 's/^/| /' conftest.$ac_ext >&5
34164
34165
34166
34167 fi
34168
34169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34170       conftest$ac_exeext conftest.$ac_ext
34171
34172                         LIBS="$save_LIBS"
34173                         CFLAGS=$save_CFLAGS
34174                     fi
34175                 done
34176             fi
34177         done
34178
34179         if test "$libs_found" = "0"; then
34180             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34181 echo "${ECHO_T}can't find the right libraries" >&6; }
34182             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34183 echo "$as_me: error: can't link a simple motif program" >&2;}
34184    { (exit 1); exit 1; }; }
34185         fi
34186
34187                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34188 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34189 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34190   echo $ECHO_N "(cached) $ECHO_C" >&6
34191 else
34192   ac_check_lib_save_LIBS=$LIBS
34193 LIBS="-lSgm  $LIBS"
34194 cat >conftest.$ac_ext <<_ACEOF
34195 /* confdefs.h.  */
34196 _ACEOF
34197 cat confdefs.h >>conftest.$ac_ext
34198 cat >>conftest.$ac_ext <<_ACEOF
34199 /* end confdefs.h.  */
34200
34201 /* Override any GCC internal prototype to avoid an error.
34202    Use char because int might match the return type of a GCC
34203    builtin and then its argument prototype would still apply.  */
34204 #ifdef __cplusplus
34205 extern "C"
34206 #endif
34207 char SgCreateList ();
34208 int
34209 main ()
34210 {
34211 return SgCreateList ();
34212   ;
34213   return 0;
34214 }
34215 _ACEOF
34216 rm -f conftest.$ac_objext conftest$ac_exeext
34217 if { (ac_try="$ac_link"
34218 case "(($ac_try" in
34219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220   *) ac_try_echo=$ac_try;;
34221 esac
34222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34223   (eval "$ac_link") 2>conftest.er1
34224   ac_status=$?
34225   grep -v '^ *+' conftest.er1 >conftest.err
34226   rm -f conftest.er1
34227   cat conftest.err >&5
34228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229   (exit $ac_status); } && {
34230          test -z "$ac_c_werror_flag" ||
34231          test ! -s conftest.err
34232        } && test -s conftest$ac_exeext &&
34233        $as_test_x conftest$ac_exeext; then
34234   ac_cv_lib_Sgm_SgCreateList=yes
34235 else
34236   echo "$as_me: failed program was:" >&5
34237 sed 's/^/| /' conftest.$ac_ext >&5
34238
34239         ac_cv_lib_Sgm_SgCreateList=no
34240 fi
34241
34242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34243       conftest$ac_exeext conftest.$ac_ext
34244 LIBS=$ac_check_lib_save_LIBS
34245 fi
34246 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34247 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34248 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34249   libsgm_link=" -lSgm"
34250 fi
34251
34252
34253         save_CFLAGS=$CFLAGS
34254         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34255
34256         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34257 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34258 if test "${wx_cv_lib_motif2+set}" = set; then
34259   echo $ECHO_N "(cached) $ECHO_C" >&6
34260 else
34261   cat >conftest.$ac_ext <<_ACEOF
34262 /* confdefs.h.  */
34263 _ACEOF
34264 cat confdefs.h >>conftest.$ac_ext
34265 cat >>conftest.$ac_ext <<_ACEOF
34266 /* end confdefs.h.  */
34267
34268                             #include <Xm/Xm.h>
34269
34270 int
34271 main ()
34272 {
34273
34274                             #if XmVersion < 2000
34275                             Not Motif 2
34276                             #endif
34277
34278   ;
34279   return 0;
34280 }
34281 _ACEOF
34282 rm -f conftest.$ac_objext
34283 if { (ac_try="$ac_compile"
34284 case "(($ac_try" in
34285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34286   *) ac_try_echo=$ac_try;;
34287 esac
34288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34289   (eval "$ac_compile") 2>conftest.er1
34290   ac_status=$?
34291   grep -v '^ *+' conftest.er1 >conftest.err
34292   rm -f conftest.er1
34293   cat conftest.err >&5
34294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295   (exit $ac_status); } && {
34296          test -z "$ac_c_werror_flag" ||
34297          test ! -s conftest.err
34298        } && test -s conftest.$ac_objext; then
34299   wx_cv_lib_motif2="yes"
34300 else
34301   echo "$as_me: failed program was:" >&5
34302 sed 's/^/| /' conftest.$ac_ext >&5
34303
34304         wx_cv_lib_motif2="no"
34305 fi
34306
34307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34308 fi
34309 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34310 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34311         if test "$wx_cv_lib_motif2" = "yes"; then
34312             cat >>confdefs.h <<\_ACEOF
34313 #define __WXMOTIF20__ 1
34314 _ACEOF
34315
34316         else
34317             cat >>confdefs.h <<\_ACEOF
34318 #define __WXMOTIF20__ 0
34319 _ACEOF
34320
34321         fi
34322
34323         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34324 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34325 if test "${wx_cv_lib_lesstif+set}" = set; then
34326   echo $ECHO_N "(cached) $ECHO_C" >&6
34327 else
34328   cat >conftest.$ac_ext <<_ACEOF
34329 /* confdefs.h.  */
34330 _ACEOF
34331 cat confdefs.h >>conftest.$ac_ext
34332 cat >>conftest.$ac_ext <<_ACEOF
34333 /* end confdefs.h.  */
34334
34335                             #include <Xm/Xm.h>
34336
34337 int
34338 main ()
34339 {
34340
34341                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34342                             Not Lesstif
34343                             #endif
34344
34345   ;
34346   return 0;
34347 }
34348 _ACEOF
34349 rm -f conftest.$ac_objext
34350 if { (ac_try="$ac_compile"
34351 case "(($ac_try" in
34352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34353   *) ac_try_echo=$ac_try;;
34354 esac
34355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34356   (eval "$ac_compile") 2>conftest.er1
34357   ac_status=$?
34358   grep -v '^ *+' conftest.er1 >conftest.err
34359   rm -f conftest.er1
34360   cat conftest.err >&5
34361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362   (exit $ac_status); } && {
34363          test -z "$ac_c_werror_flag" ||
34364          test ! -s conftest.err
34365        } && test -s conftest.$ac_objext; then
34366   wx_cv_lib_lesstif="yes"
34367 else
34368   echo "$as_me: failed program was:" >&5
34369 sed 's/^/| /' conftest.$ac_ext >&5
34370
34371         wx_cv_lib_lesstif="no"
34372 fi
34373
34374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34375
34376 fi
34377 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34378 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34379         if test "$wx_cv_lib_lesstif" = "yes"; then
34380             cat >>confdefs.h <<\_ACEOF
34381 #define __WXLESSTIF__ 1
34382 _ACEOF
34383
34384         else
34385             cat >>confdefs.h <<\_ACEOF
34386 #define __WXLESSTIF__ 0
34387 _ACEOF
34388
34389         fi
34390
34391         CFLAGS=$save_CFLAGS
34392
34393         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34394         TOOLKIT=MOTIF
34395         GUIDIST=MOTIF_DIST
34396     fi
34397
34398         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34399                 if test "$wxUSE_LIBXPM" = "sys"; then
34400             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34401 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34402
34403   ac_find_libraries=
34404   for ac_dir in $SEARCH_LIB;
34405   do
34406     for ac_extension in a so sl dylib dll.a; do
34407       if test -f "$ac_dir/libXpm.$ac_extension"; then
34408         ac_find_libraries=$ac_dir
34409         break 2
34410       fi
34411     done
34412   done
34413
34414             if test "$ac_find_libraries" != "" ; then
34415
34416     if test "$ac_find_libraries" = "default location"; then
34417     ac_path_to_link=""
34418   else
34419     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34420     result=$?
34421     if test $result = 0; then
34422       ac_path_to_link=""
34423     else
34424       ac_path_to_link=" -L$ac_find_libraries"
34425     fi
34426   fi
34427
34428                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34429                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34430 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34431
34432                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34433 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34434 if test "${wx_cv_x11_xpm_h+set}" = set; then
34435   echo $ECHO_N "(cached) $ECHO_C" >&6
34436 else
34437
34438                         save_CFLAGS=$CFLAGS
34439                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34440
34441                         cat >conftest.$ac_ext <<_ACEOF
34442 /* confdefs.h.  */
34443 _ACEOF
34444 cat confdefs.h >>conftest.$ac_ext
34445 cat >>conftest.$ac_ext <<_ACEOF
34446 /* end confdefs.h.  */
34447
34448                                 #include <X11/xpm.h>
34449
34450 int
34451 main ()
34452 {
34453
34454                                 int version;
34455                                 version = XpmLibraryVersion();
34456
34457   ;
34458   return 0;
34459 }
34460 _ACEOF
34461 rm -f conftest.$ac_objext
34462 if { (ac_try="$ac_compile"
34463 case "(($ac_try" in
34464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34465   *) ac_try_echo=$ac_try;;
34466 esac
34467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34468   (eval "$ac_compile") 2>conftest.er1
34469   ac_status=$?
34470   grep -v '^ *+' conftest.er1 >conftest.err
34471   rm -f conftest.er1
34472   cat conftest.err >&5
34473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34474   (exit $ac_status); } && {
34475          test -z "$ac_c_werror_flag" ||
34476          test ! -s conftest.err
34477        } && test -s conftest.$ac_objext; then
34478   wx_cv_x11_xpm_h=yes
34479 else
34480   echo "$as_me: failed program was:" >&5
34481 sed 's/^/| /' conftest.$ac_ext >&5
34482
34483         wx_cv_x11_xpm_h=no
34484
34485 fi
34486
34487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34488
34489                         CFLAGS=$save_CFLAGS
34490
34491
34492 fi
34493 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34494 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34495
34496                 if test $wx_cv_x11_xpm_h = "yes"; then
34497                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34498                     cat >>confdefs.h <<\_ACEOF
34499 #define wxHAVE_LIB_XPM 1
34500 _ACEOF
34501
34502                 else
34503                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34504 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34505                 fi
34506             fi
34507
34508         fi
34509
34510                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34511 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34512 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34513   echo $ECHO_N "(cached) $ECHO_C" >&6
34514 else
34515   ac_check_lib_save_LIBS=$LIBS
34516 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34517 cat >conftest.$ac_ext <<_ACEOF
34518 /* confdefs.h.  */
34519 _ACEOF
34520 cat confdefs.h >>conftest.$ac_ext
34521 cat >>conftest.$ac_ext <<_ACEOF
34522 /* end confdefs.h.  */
34523
34524 /* Override any GCC internal prototype to avoid an error.
34525    Use char because int might match the return type of a GCC
34526    builtin and then its argument prototype would still apply.  */
34527 #ifdef __cplusplus
34528 extern "C"
34529 #endif
34530 char XShapeQueryExtension ();
34531 int
34532 main ()
34533 {
34534 return XShapeQueryExtension ();
34535   ;
34536   return 0;
34537 }
34538 _ACEOF
34539 rm -f conftest.$ac_objext conftest$ac_exeext
34540 if { (ac_try="$ac_link"
34541 case "(($ac_try" in
34542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34543   *) ac_try_echo=$ac_try;;
34544 esac
34545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34546   (eval "$ac_link") 2>conftest.er1
34547   ac_status=$?
34548   grep -v '^ *+' conftest.er1 >conftest.err
34549   rm -f conftest.er1
34550   cat conftest.err >&5
34551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552   (exit $ac_status); } && {
34553          test -z "$ac_c_werror_flag" ||
34554          test ! -s conftest.err
34555        } && test -s conftest$ac_exeext &&
34556        $as_test_x conftest$ac_exeext; then
34557   ac_cv_lib_Xext_XShapeQueryExtension=yes
34558 else
34559   echo "$as_me: failed program was:" >&5
34560 sed 's/^/| /' conftest.$ac_ext >&5
34561
34562         ac_cv_lib_Xext_XShapeQueryExtension=no
34563 fi
34564
34565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34566       conftest$ac_exeext conftest.$ac_ext
34567 LIBS=$ac_check_lib_save_LIBS
34568 fi
34569 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34570 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34571 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34572
34573                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34574                       wxHAVE_XEXT_LIB=1
34575
34576 fi
34577
34578
34579         if test "$wxHAVE_XEXT_LIB" = 1; then
34580             save_CFLAGS="$CFLAGS"
34581             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34582
34583             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34584 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34585             cat >conftest.$ac_ext <<_ACEOF
34586 /* confdefs.h.  */
34587 _ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h.  */
34591
34592                             #include <X11/Xlib.h>
34593                             #include <X11/extensions/shape.h>
34594
34595 int
34596 main ()
34597 {
34598
34599                             int dummy1, dummy2;
34600                             XShapeQueryExtension((Display*)NULL,
34601                                                  (int*)NULL, (int*)NULL);
34602
34603   ;
34604   return 0;
34605 }
34606 _ACEOF
34607 rm -f conftest.$ac_objext
34608 if { (ac_try="$ac_compile"
34609 case "(($ac_try" in
34610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34611   *) ac_try_echo=$ac_try;;
34612 esac
34613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34614   (eval "$ac_compile") 2>conftest.er1
34615   ac_status=$?
34616   grep -v '^ *+' conftest.er1 >conftest.err
34617   rm -f conftest.er1
34618   cat conftest.err >&5
34619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34620   (exit $ac_status); } && {
34621          test -z "$ac_c_werror_flag" ||
34622          test ! -s conftest.err
34623        } && test -s conftest.$ac_objext; then
34624
34625                             cat >>confdefs.h <<\_ACEOF
34626 #define HAVE_XSHAPE 1
34627 _ACEOF
34628
34629                             { echo "$as_me:$LINENO: result: found" >&5
34630 echo "${ECHO_T}found" >&6; }
34631
34632 else
34633   echo "$as_me: failed program was:" >&5
34634 sed 's/^/| /' conftest.$ac_ext >&5
34635
34636
34637                             { echo "$as_me:$LINENO: result: not found" >&5
34638 echo "${ECHO_T}not found" >&6; }
34639
34640 fi
34641
34642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34643             CFLAGS="$save_CFLAGS"
34644
34645         fi
34646     fi
34647
34648     if test "$wxUSE_MAC" = 1; then
34649         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34650 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34651         if test "$GCC" = yes; then
34652             { echo "$as_me:$LINENO: result: gcc" >&5
34653 echo "${ECHO_T}gcc" >&6; }
34654             CPPFLAGS_PASCAL="-fpascal-strings"
34655         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34656             { echo "$as_me:$LINENO: result: xlc" >&5
34657 echo "${ECHO_T}xlc" >&6; }
34658             CPPFLAGS_PASCAL="-qmacpstr"
34659         else
34660             { echo "$as_me:$LINENO: result: none" >&5
34661 echo "${ECHO_T}none" >&6; }
34662         fi
34663
34664         if test "x$wxUSE_UNIX" = "xyes"; then
34665             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34666         else
34667                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
34668         fi
34669
34670         TOOLKIT=MAC
34671                 GUIDIST=MACX_DIST
34672                         WXBASEPORT="_carbon"
34673     fi
34674
34675     if test "$wxUSE_COCOA" = 1; then
34676         TOOLKIT=COCOA
34677         GUIDIST=COCOA_DIST
34678     fi
34679
34680     if test "$wxUSE_PM" = 1; then
34681         TOOLKIT=PM
34682         GUIDIST=PM_DIST
34683         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34684 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34685 if test "${wx_cv_spbcdata+set}" = set; then
34686   echo $ECHO_N "(cached) $ECHO_C" >&6
34687 else
34688
34689                 cat >conftest.$ac_ext <<_ACEOF
34690 /* confdefs.h.  */
34691 _ACEOF
34692 cat confdefs.h >>conftest.$ac_ext
34693 cat >>conftest.$ac_ext <<_ACEOF
34694 /* end confdefs.h.  */
34695
34696                         #define INCL_PM
34697                         #include <os2.h>
34698
34699 int
34700 main ()
34701 {
34702
34703                         SPBCDATA test;
34704
34705   ;
34706   return 0;
34707 }
34708 _ACEOF
34709 rm -f conftest.$ac_objext
34710 if { (ac_try="$ac_compile"
34711 case "(($ac_try" in
34712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713   *) ac_try_echo=$ac_try;;
34714 esac
34715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716   (eval "$ac_compile") 2>conftest.er1
34717   ac_status=$?
34718   grep -v '^ *+' conftest.er1 >conftest.err
34719   rm -f conftest.er1
34720   cat conftest.err >&5
34721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722   (exit $ac_status); } && {
34723          test -z "$ac_c_werror_flag" ||
34724          test ! -s conftest.err
34725        } && test -s conftest.$ac_objext; then
34726   wx_cv_spbcdata=yes
34727 else
34728   echo "$as_me: failed program was:" >&5
34729 sed 's/^/| /' conftest.$ac_ext >&5
34730
34731         wx_cv_spbcdata=no
34732
34733 fi
34734
34735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34736
34737
34738 fi
34739 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34740 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34741
34742         if test $wx_cv_spbcdata = "yes"; then
34743             cat >>confdefs.h <<\_ACEOF
34744 #define HAVE_SPBCDATA 1
34745 _ACEOF
34746
34747         fi
34748     fi
34749
34750         if test "$TOOLKIT" = "PM" ; then
34751         TOOLKIT_DIR="os2"
34752     else
34753         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
34754     fi
34755
34756     if test "$wxUSE_UNIVERSAL" = "yes"; then
34757         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34758         WIDGET_SET=univ
34759     fi
34760
34761         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34762     DISTDIR="wx\$(TOOLKIT)"
34763 else
34764     USE_GUI=0
34765
34766             TOOLKIT_DIR="base"
34767
34768         if test "$USE_WIN32" = 1 ; then
34769                         TOOLKIT="MSW"
34770     fi
34771
34772         GUIDIST="BASE_DIST"
34773     DISTDIR="wxBase"
34774 fi
34775
34776
34777
34778 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34779     if test "$TOOLKIT" = "DFB" ; then
34780         wxUSE_UNICODE_UTF8=yes
34781     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
34782         wxUSE_UNICODE_UTF8=yes
34783     elif test "$USE_OS2" = "1" ; then
34784                                 wxUSE_UNICODE_UTF8=yes
34785     else
34786         wxUSE_UNICODE_UTF8=no
34787     fi
34788 fi
34789
34790
34791 if test "$wxUSE_GUI" = "yes"; then
34792     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34793                 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
34794 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
34795 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34796   echo $ECHO_N "(cached) $ECHO_C" >&6
34797 else
34798   cat >conftest.$ac_ext <<_ACEOF
34799 /* confdefs.h.  */
34800 _ACEOF
34801 cat confdefs.h >>conftest.$ac_ext
34802 cat >>conftest.$ac_ext <<_ACEOF
34803 /* end confdefs.h.  */
34804
34805
34806 #include <X11/Xlib.h>
34807 _ACEOF
34808 rm -f conftest.$ac_objext
34809 if { (ac_try="$ac_compile"
34810 case "(($ac_try" in
34811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34812   *) ac_try_echo=$ac_try;;
34813 esac
34814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34815   (eval "$ac_compile") 2>conftest.er1
34816   ac_status=$?
34817   grep -v '^ *+' conftest.er1 >conftest.err
34818   rm -f conftest.er1
34819   cat conftest.err >&5
34820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821   (exit $ac_status); } && {
34822          test -z "$ac_c_werror_flag" ||
34823          test ! -s conftest.err
34824        } && test -s conftest.$ac_objext; then
34825   ac_cv_header_X11_Xlib_h=yes
34826 else
34827   echo "$as_me: failed program was:" >&5
34828 sed 's/^/| /' conftest.$ac_ext >&5
34829
34830         ac_cv_header_X11_Xlib_h=no
34831 fi
34832
34833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34834 fi
34835 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
34836 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
34837
34838
34839         { echo "$as_me:$LINENO: checking for X11/XKBlib.h" >&5
34840 echo $ECHO_N "checking for X11/XKBlib.h... $ECHO_C" >&6; }
34841 if test "${ac_cv_header_X11_XKBlib_h+set}" = set; then
34842   echo $ECHO_N "(cached) $ECHO_C" >&6
34843 else
34844   cat >conftest.$ac_ext <<_ACEOF
34845 /* confdefs.h.  */
34846 _ACEOF
34847 cat confdefs.h >>conftest.$ac_ext
34848 cat >>conftest.$ac_ext <<_ACEOF
34849 /* end confdefs.h.  */
34850
34851                           #if HAVE_X11_XLIB_H
34852                             #include <X11/Xlib.h>
34853                           #endif
34854
34855
34856 #include <X11/XKBlib.h>
34857 _ACEOF
34858 rm -f conftest.$ac_objext
34859 if { (ac_try="$ac_compile"
34860 case "(($ac_try" in
34861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34862   *) ac_try_echo=$ac_try;;
34863 esac
34864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34865   (eval "$ac_compile") 2>conftest.er1
34866   ac_status=$?
34867   grep -v '^ *+' conftest.er1 >conftest.err
34868   rm -f conftest.er1
34869   cat conftest.err >&5
34870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871   (exit $ac_status); } && {
34872          test -z "$ac_c_werror_flag" ||
34873          test ! -s conftest.err
34874        } && test -s conftest.$ac_objext; then
34875   ac_cv_header_X11_XKBlib_h=yes
34876 else
34877   echo "$as_me: failed program was:" >&5
34878 sed 's/^/| /' conftest.$ac_ext >&5
34879
34880         ac_cv_header_X11_XKBlib_h=no
34881 fi
34882
34883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34884 fi
34885 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_XKBlib_h" >&5
34886 echo "${ECHO_T}$ac_cv_header_X11_XKBlib_h" >&6; }
34887
34888
34889     fi
34890 fi
34891
34892
34893
34894 IODBC_C_SRC=""
34895
34896
34897 if test "$TOOLKIT" != "MSW" ; then
34898
34899     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
34900
34901         { echo "$as_me:$LINENO: checking for sql.h" >&5
34902 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
34903 if test "${ac_cv_header_sql_h+set}" = set; then
34904   echo $ECHO_N "(cached) $ECHO_C" >&6
34905 else
34906   cat >conftest.$ac_ext <<_ACEOF
34907 /* confdefs.h.  */
34908 _ACEOF
34909 cat confdefs.h >>conftest.$ac_ext
34910 cat >>conftest.$ac_ext <<_ACEOF
34911 /* end confdefs.h.  */
34912
34913
34914 #include <sql.h>
34915 _ACEOF
34916 rm -f conftest.$ac_objext
34917 if { (ac_try="$ac_compile"
34918 case "(($ac_try" in
34919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34920   *) ac_try_echo=$ac_try;;
34921 esac
34922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34923   (eval "$ac_compile") 2>conftest.er1
34924   ac_status=$?
34925   grep -v '^ *+' conftest.er1 >conftest.err
34926   rm -f conftest.er1
34927   cat conftest.err >&5
34928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34929   (exit $ac_status); } && {
34930          test -z "$ac_c_werror_flag" ||
34931          test ! -s conftest.err
34932        } && test -s conftest.$ac_objext; then
34933   ac_cv_header_sql_h=yes
34934 else
34935   echo "$as_me: failed program was:" >&5
34936 sed 's/^/| /' conftest.$ac_ext >&5
34937
34938         ac_cv_header_sql_h=no
34939 fi
34940
34941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34942 fi
34943 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
34944 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
34945 if test $ac_cv_header_sql_h = yes; then
34946   found_sql_h=1
34947 fi
34948
34949
34950         if test "x$found_sql_h" = "x1" ; then
34951             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
34952 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
34953 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
34954   echo $ECHO_N "(cached) $ECHO_C" >&6
34955 else
34956   ac_check_lib_save_LIBS=$LIBS
34957 LIBS="-liodbc  $LIBS"
34958 cat >conftest.$ac_ext <<_ACEOF
34959 /* confdefs.h.  */
34960 _ACEOF
34961 cat confdefs.h >>conftest.$ac_ext
34962 cat >>conftest.$ac_ext <<_ACEOF
34963 /* end confdefs.h.  */
34964
34965 /* Override any GCC internal prototype to avoid an error.
34966    Use char because int might match the return type of a GCC
34967    builtin and then its argument prototype would still apply.  */
34968 #ifdef __cplusplus
34969 extern "C"
34970 #endif
34971 char SQLAllocEnv ();
34972 int
34973 main ()
34974 {
34975 return SQLAllocEnv ();
34976   ;
34977   return 0;
34978 }
34979 _ACEOF
34980 rm -f conftest.$ac_objext conftest$ac_exeext
34981 if { (ac_try="$ac_link"
34982 case "(($ac_try" in
34983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34984   *) ac_try_echo=$ac_try;;
34985 esac
34986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34987   (eval "$ac_link") 2>conftest.er1
34988   ac_status=$?
34989   grep -v '^ *+' conftest.er1 >conftest.err
34990   rm -f conftest.er1
34991   cat conftest.err >&5
34992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993   (exit $ac_status); } && {
34994          test -z "$ac_c_werror_flag" ||
34995          test ! -s conftest.err
34996        } && test -s conftest$ac_exeext &&
34997        $as_test_x conftest$ac_exeext; then
34998   ac_cv_lib_iodbc_SQLAllocEnv=yes
34999 else
35000   echo "$as_me: failed program was:" >&5
35001 sed 's/^/| /' conftest.$ac_ext >&5
35002
35003         ac_cv_lib_iodbc_SQLAllocEnv=no
35004 fi
35005
35006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35007       conftest$ac_exeext conftest.$ac_ext
35008 LIBS=$ac_check_lib_save_LIBS
35009 fi
35010 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
35011 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
35012 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
35013   ODBC_LINK=" -liodbc"
35014 else
35015
35016                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
35017 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
35018 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
35019   echo $ECHO_N "(cached) $ECHO_C" >&6
35020 else
35021   ac_check_lib_save_LIBS=$LIBS
35022 LIBS="-lunixodbc  $LIBS"
35023 cat >conftest.$ac_ext <<_ACEOF
35024 /* confdefs.h.  */
35025 _ACEOF
35026 cat confdefs.h >>conftest.$ac_ext
35027 cat >>conftest.$ac_ext <<_ACEOF
35028 /* end confdefs.h.  */
35029
35030 /* Override any GCC internal prototype to avoid an error.
35031    Use char because int might match the return type of a GCC
35032    builtin and then its argument prototype would still apply.  */
35033 #ifdef __cplusplus
35034 extern "C"
35035 #endif
35036 char SQLAllocEnv ();
35037 int
35038 main ()
35039 {
35040 return SQLAllocEnv ();
35041   ;
35042   return 0;
35043 }
35044 _ACEOF
35045 rm -f conftest.$ac_objext conftest$ac_exeext
35046 if { (ac_try="$ac_link"
35047 case "(($ac_try" in
35048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35049   *) ac_try_echo=$ac_try;;
35050 esac
35051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35052   (eval "$ac_link") 2>conftest.er1
35053   ac_status=$?
35054   grep -v '^ *+' conftest.er1 >conftest.err
35055   rm -f conftest.er1
35056   cat conftest.err >&5
35057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058   (exit $ac_status); } && {
35059          test -z "$ac_c_werror_flag" ||
35060          test ! -s conftest.err
35061        } && test -s conftest$ac_exeext &&
35062        $as_test_x conftest$ac_exeext; then
35063   ac_cv_lib_unixodbc_SQLAllocEnv=yes
35064 else
35065   echo "$as_me: failed program was:" >&5
35066 sed 's/^/| /' conftest.$ac_ext >&5
35067
35068         ac_cv_lib_unixodbc_SQLAllocEnv=no
35069 fi
35070
35071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35072       conftest$ac_exeext conftest.$ac_ext
35073 LIBS=$ac_check_lib_save_LIBS
35074 fi
35075 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
35076 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
35077 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
35078   ODBC_LINK=" -lunixodbc"
35079 else
35080
35081                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
35082 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
35083 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
35084   echo $ECHO_N "(cached) $ECHO_C" >&6
35085 else
35086   ac_check_lib_save_LIBS=$LIBS
35087 LIBS="-lodbc  $LIBS"
35088 cat >conftest.$ac_ext <<_ACEOF
35089 /* confdefs.h.  */
35090 _ACEOF
35091 cat confdefs.h >>conftest.$ac_ext
35092 cat >>conftest.$ac_ext <<_ACEOF
35093 /* end confdefs.h.  */
35094
35095 /* Override any GCC internal prototype to avoid an error.
35096    Use char because int might match the return type of a GCC
35097    builtin and then its argument prototype would still apply.  */
35098 #ifdef __cplusplus
35099 extern "C"
35100 #endif
35101 char SQLAllocEnv ();
35102 int
35103 main ()
35104 {
35105 return SQLAllocEnv ();
35106   ;
35107   return 0;
35108 }
35109 _ACEOF
35110 rm -f conftest.$ac_objext conftest$ac_exeext
35111 if { (ac_try="$ac_link"
35112 case "(($ac_try" in
35113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35114   *) ac_try_echo=$ac_try;;
35115 esac
35116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35117   (eval "$ac_link") 2>conftest.er1
35118   ac_status=$?
35119   grep -v '^ *+' conftest.er1 >conftest.err
35120   rm -f conftest.er1
35121   cat conftest.err >&5
35122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35123   (exit $ac_status); } && {
35124          test -z "$ac_c_werror_flag" ||
35125          test ! -s conftest.err
35126        } && test -s conftest$ac_exeext &&
35127        $as_test_x conftest$ac_exeext; then
35128   ac_cv_lib_odbc_SQLAllocEnv=yes
35129 else
35130   echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35132
35133         ac_cv_lib_odbc_SQLAllocEnv=no
35134 fi
35135
35136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35137       conftest$ac_exeext conftest.$ac_ext
35138 LIBS=$ac_check_lib_save_LIBS
35139 fi
35140 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
35141 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
35142 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
35143   ODBC_LINK=" -lodbc"
35144 fi
35145
35146
35147 fi
35148
35149
35150 fi
35151
35152         fi
35153         if test "x$ODBC_LINK" = "x" ; then
35154             if test "$wxUSE_ODBC" = "sys" ; then
35155                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
35156 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
35157    { (exit 1); exit 1; }; }
35158             else
35159                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
35160 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
35161                 wxUSE_ODBC=builtin
35162             fi
35163         else
35164                         wxUSE_ODBC=sys
35165         fi
35166     fi
35167
35168     if test "$wxUSE_ODBC" = "builtin" ; then
35169         cat >>confdefs.h <<\_ACEOF
35170 #define wxUSE_BUILTIN_IODBC 1
35171 _ACEOF
35172
35173     fi
35174 fi
35175
35176 if test "$wxUSE_ODBC" != "no" ; then
35177     cat >>confdefs.h <<\_ACEOF
35178 #define wxUSE_ODBC 1
35179 _ACEOF
35180
35181     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
35182
35183         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
35184 fi
35185
35186
35187 if test "$wxUSE_DISPLAY" = "yes"; then
35188     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35189         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35190 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35191
35192   ac_find_libraries=
35193   for ac_dir in $SEARCH_LIB;
35194   do
35195     for ac_extension in a so sl dylib dll.a; do
35196       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35197         ac_find_libraries=$ac_dir
35198         break 2
35199       fi
35200     done
35201   done
35202
35203         if test "$ac_find_libraries" != "" ; then
35204
35205     if test "$ac_find_libraries" = "default location"; then
35206     ac_path_to_link=""
35207   else
35208     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35209     result=$?
35210     if test $result = 0; then
35211       ac_path_to_link=""
35212     else
35213       ac_path_to_link=" -L$ac_find_libraries"
35214     fi
35215   fi
35216
35217             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35218                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35219             fi
35220             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35221             { echo "$as_me:$LINENO: result: yes" >&5
35222 echo "${ECHO_T}yes" >&6; }
35223
35224             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35225 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35226
35227   ac_find_libraries=
35228   for ac_dir in $SEARCH_LIB;
35229   do
35230     for ac_extension in a so sl dylib dll.a; do
35231       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35232         ac_find_libraries=$ac_dir
35233         break 2
35234       fi
35235     done
35236   done
35237
35238             if test "$ac_find_libraries" != "" ; then
35239                 { echo "$as_me:$LINENO: result: yes" >&5
35240 echo "${ECHO_T}yes" >&6; }
35241                 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
35242 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
35243 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
35244   echo $ECHO_N "(cached) $ECHO_C" >&6
35245 else
35246   cat >conftest.$ac_ext <<_ACEOF
35247 /* confdefs.h.  */
35248 _ACEOF
35249 cat confdefs.h >>conftest.$ac_ext
35250 cat >>conftest.$ac_ext <<_ACEOF
35251 /* end confdefs.h.  */
35252
35253                                       #if HAVE_X11_XLIB_H
35254                                         #include <X11/Xlib.h>
35255                                       #endif
35256
35257
35258 #include <X11/extensions/xf86vmode.h>
35259 _ACEOF
35260 rm -f conftest.$ac_objext
35261 if { (ac_try="$ac_compile"
35262 case "(($ac_try" in
35263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35264   *) ac_try_echo=$ac_try;;
35265 esac
35266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35267   (eval "$ac_compile") 2>conftest.er1
35268   ac_status=$?
35269   grep -v '^ *+' conftest.er1 >conftest.err
35270   rm -f conftest.er1
35271   cat conftest.err >&5
35272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273   (exit $ac_status); } && {
35274          test -z "$ac_c_werror_flag" ||
35275          test ! -s conftest.err
35276        } && test -s conftest.$ac_objext; then
35277   ac_cv_header_X11_extensions_xf86vmode_h=yes
35278 else
35279   echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35281
35282         ac_cv_header_X11_extensions_xf86vmode_h=no
35283 fi
35284
35285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35286 fi
35287 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
35288 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
35289 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
35290
35291                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35292
35293 fi
35294
35295
35296             else
35297                 { echo "$as_me:$LINENO: result: no" >&5
35298 echo "${ECHO_T}no" >&6; }
35299             fi
35300
35301         else
35302             { echo "$as_me:$LINENO: result: no" >&5
35303 echo "${ECHO_T}no" >&6; }
35304             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35305 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35306             wxUSE_DISPLAY="no"
35307         fi
35308     elif test "$wxUSE_MSW" = 1; then
35309         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35310 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35311 if test "${ac_cv_header_ddraw_h+set}" = set; then
35312   echo $ECHO_N "(cached) $ECHO_C" >&6
35313 else
35314   cat >conftest.$ac_ext <<_ACEOF
35315 /* confdefs.h.  */
35316 _ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h.  */
35320 #include <windows.h>
35321
35322 #include <ddraw.h>
35323 _ACEOF
35324 rm -f conftest.$ac_objext
35325 if { (ac_try="$ac_compile"
35326 case "(($ac_try" in
35327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35328   *) ac_try_echo=$ac_try;;
35329 esac
35330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35331   (eval "$ac_compile") 2>conftest.er1
35332   ac_status=$?
35333   grep -v '^ *+' conftest.er1 >conftest.err
35334   rm -f conftest.er1
35335   cat conftest.err >&5
35336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337   (exit $ac_status); } && {
35338          test -z "$ac_c_werror_flag" ||
35339          test ! -s conftest.err
35340        } && test -s conftest.$ac_objext; then
35341   ac_cv_header_ddraw_h=yes
35342 else
35343   echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35345
35346         ac_cv_header_ddraw_h=no
35347 fi
35348
35349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35350 fi
35351 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35352 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35353
35354
35355     fi
35356 fi
35357
35358 if test "$wxUSE_DETECT_SM" = "yes"; then
35359     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35360         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35361 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35362
35363   ac_find_libraries=
35364   for ac_dir in $SEARCH_LIB;
35365   do
35366     for ac_extension in a so sl dylib dll.a; do
35367       if test -f "$ac_dir/libSM.$ac_extension"; then
35368         ac_find_libraries=$ac_dir
35369         break 2
35370       fi
35371     done
35372   done
35373
35374         if test "$ac_find_libraries" != "" ; then
35375
35376     if test "$ac_find_libraries" = "default location"; then
35377     ac_path_to_link=""
35378   else
35379     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35380     result=$?
35381     if test $result = 0; then
35382       ac_path_to_link=""
35383     else
35384       ac_path_to_link=" -L$ac_find_libraries"
35385     fi
35386   fi
35387
35388             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35389                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35390             fi
35391             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35392             { echo "$as_me:$LINENO: result: yes" >&5
35393 echo "${ECHO_T}yes" >&6; }
35394         else
35395             { echo "$as_me:$LINENO: result: no" >&5
35396 echo "${ECHO_T}no" >&6; }
35397             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35398 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35399             wxUSE_DETECT_SM="no"
35400         fi
35401     else
35402         wxUSE_DETECT_SM="no"
35403     fi
35404 fi
35405
35406
35407
35408 USE_OPENGL=0
35409 if test "$wxUSE_OPENGL" = "yes"; then
35410     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35411         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35412 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35413         wxUSE_OPENGL="no"
35414     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35415         OPENGL_LIBS="-framework OpenGL -framework AGL"
35416     elif test "$wxUSE_MSW" = 1; then
35417         OPENGL_LIBS="-lopengl32 -lglu32"
35418     else
35419                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35420 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35421
35422 ac_find_includes=
35423 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35424   do
35425     if test -f "$ac_dir/GL/gl.h"; then
35426       ac_find_includes=$ac_dir
35427       break
35428     fi
35429   done
35430
35431         if test "$ac_find_includes" != "" ; then
35432             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35433 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35434
35435     if test "x$ac_find_includes" = "x/usr/include"; then
35436     ac_path_to_include=""
35437   else
35438     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35439     result=$?
35440     if test $result = 0; then
35441       ac_path_to_include=""
35442     else
35443       ac_path_to_include=" -I$ac_find_includes"
35444     fi
35445   fi
35446
35447             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35448         else
35449             { echo "$as_me:$LINENO: result: not found" >&5
35450 echo "${ECHO_T}not found" >&6; }
35451         fi
35452
35453         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35454 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35455 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35456   echo $ECHO_N "(cached) $ECHO_C" >&6
35457 else
35458   cat >conftest.$ac_ext <<_ACEOF
35459 /* confdefs.h.  */
35460 _ACEOF
35461 cat confdefs.h >>conftest.$ac_ext
35462 cat >>conftest.$ac_ext <<_ACEOF
35463 /* end confdefs.h.  */
35464
35465
35466 #include <GL/gl.h>
35467 _ACEOF
35468 rm -f conftest.$ac_objext
35469 if { (ac_try="$ac_compile"
35470 case "(($ac_try" in
35471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35472   *) ac_try_echo=$ac_try;;
35473 esac
35474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35475   (eval "$ac_compile") 2>conftest.er1
35476   ac_status=$?
35477   grep -v '^ *+' conftest.er1 >conftest.err
35478   rm -f conftest.er1
35479   cat conftest.err >&5
35480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481   (exit $ac_status); } && {
35482          test -z "$ac_c_werror_flag" ||
35483          test ! -s conftest.err
35484        } && test -s conftest.$ac_objext; then
35485   ac_cv_header_GL_gl_h=yes
35486 else
35487   echo "$as_me: failed program was:" >&5
35488 sed 's/^/| /' conftest.$ac_ext >&5
35489
35490         ac_cv_header_GL_gl_h=no
35491 fi
35492
35493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35494 fi
35495 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
35496 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
35497 if test $ac_cv_header_GL_gl_h = yes; then
35498
35499             if test "${ac_cv_header_GL_glu_h+set}" = set; then
35500   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35501 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35502 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35503   echo $ECHO_N "(cached) $ECHO_C" >&6
35504 fi
35505 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35506 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35507 else
35508   # Is the header compilable?
35509 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
35510 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
35511 cat >conftest.$ac_ext <<_ACEOF
35512 /* confdefs.h.  */
35513 _ACEOF
35514 cat confdefs.h >>conftest.$ac_ext
35515 cat >>conftest.$ac_ext <<_ACEOF
35516 /* end confdefs.h.  */
35517 $ac_includes_default
35518 #include <GL/glu.h>
35519 _ACEOF
35520 rm -f conftest.$ac_objext
35521 if { (ac_try="$ac_compile"
35522 case "(($ac_try" in
35523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35524   *) ac_try_echo=$ac_try;;
35525 esac
35526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35527   (eval "$ac_compile") 2>conftest.er1
35528   ac_status=$?
35529   grep -v '^ *+' conftest.er1 >conftest.err
35530   rm -f conftest.er1
35531   cat conftest.err >&5
35532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533   (exit $ac_status); } && {
35534          test -z "$ac_c_werror_flag" ||
35535          test ! -s conftest.err
35536        } && test -s conftest.$ac_objext; then
35537   ac_header_compiler=yes
35538 else
35539   echo "$as_me: failed program was:" >&5
35540 sed 's/^/| /' conftest.$ac_ext >&5
35541
35542         ac_header_compiler=no
35543 fi
35544
35545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35547 echo "${ECHO_T}$ac_header_compiler" >&6; }
35548
35549 # Is the header present?
35550 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
35551 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
35552 cat >conftest.$ac_ext <<_ACEOF
35553 /* confdefs.h.  */
35554 _ACEOF
35555 cat confdefs.h >>conftest.$ac_ext
35556 cat >>conftest.$ac_ext <<_ACEOF
35557 /* end confdefs.h.  */
35558 #include <GL/glu.h>
35559 _ACEOF
35560 if { (ac_try="$ac_cpp conftest.$ac_ext"
35561 case "(($ac_try" in
35562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35563   *) ac_try_echo=$ac_try;;
35564 esac
35565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35567   ac_status=$?
35568   grep -v '^ *+' conftest.er1 >conftest.err
35569   rm -f conftest.er1
35570   cat conftest.err >&5
35571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572   (exit $ac_status); } >/dev/null && {
35573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35574          test ! -s conftest.err
35575        }; then
35576   ac_header_preproc=yes
35577 else
35578   echo "$as_me: failed program was:" >&5
35579 sed 's/^/| /' conftest.$ac_ext >&5
35580
35581   ac_header_preproc=no
35582 fi
35583
35584 rm -f conftest.err conftest.$ac_ext
35585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35586 echo "${ECHO_T}$ac_header_preproc" >&6; }
35587
35588 # So?  What about this header?
35589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35590   yes:no: )
35591     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
35592 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35593     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
35594 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
35595     ac_header_preproc=yes
35596     ;;
35597   no:yes:* )
35598     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
35599 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
35600     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
35601 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
35602     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
35603 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
35604     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
35605 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
35606     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
35607 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
35608     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
35609 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
35610     ( cat <<\_ASBOX
35611 ## ----------------------------------------- ##
35612 ## Report this to wx-dev@lists.wxwidgets.org ##
35613 ## ----------------------------------------- ##
35614 _ASBOX
35615      ) | sed "s/^/$as_me: WARNING:     /" >&2
35616     ;;
35617 esac
35618 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35619 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35620 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35621   echo $ECHO_N "(cached) $ECHO_C" >&6
35622 else
35623   ac_cv_header_GL_glu_h=$ac_header_preproc
35624 fi
35625 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35626 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35627
35628 fi
35629 if test $ac_cv_header_GL_glu_h = yes; then
35630
35631                 found_gl=0
35632
35633                 { echo "$as_me:$LINENO: checking for -lGL" >&5
35634 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
35635
35636   ac_find_libraries=
35637   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
35638   do
35639     for ac_extension in a so sl dylib dll.a; do
35640       if test -f "$ac_dir/libGL.$ac_extension"; then
35641         ac_find_libraries=$ac_dir
35642         break 2
35643       fi
35644     done
35645   done
35646
35647                 if test "$ac_find_libraries" != "" ; then
35648                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35649 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35650
35651
35652     if test "$ac_find_libraries" = "default location"; then
35653     ac_path_to_link=""
35654   else
35655     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35656     result=$?
35657     if test $result = 0; then
35658       ac_path_to_link=""
35659     else
35660       ac_path_to_link=" -L$ac_find_libraries"
35661     fi
35662   fi
35663
35664                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35665                         LDFLAGS_GL="$ac_path_to_link"
35666                     fi
35667
35668                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35669 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35670
35671   ac_find_libraries=
35672   for ac_dir in $SEARCH_LIB;
35673   do
35674     for ac_extension in a so sl dylib dll.a; do
35675       if test -f "$ac_dir/libGLU.$ac_extension"; then
35676         ac_find_libraries=$ac_dir
35677         break 2
35678       fi
35679     done
35680   done
35681
35682                     if test "$ac_find_libraries" != "" ; then
35683
35684     if test "$ac_find_libraries" = "default location"; then
35685     ac_path_to_link=""
35686   else
35687     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35688     result=$?
35689     if test $result = 0; then
35690       ac_path_to_link=""
35691     else
35692       ac_path_to_link=" -L$ac_find_libraries"
35693     fi
35694   fi
35695
35696                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35697                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35698                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35699                         fi
35700
35701                         found_gl=1
35702                         OPENGL_LIBS="-lGL -lGLU"
35703                         { echo "$as_me:$LINENO: result: yes" >&5
35704 echo "${ECHO_T}yes" >&6; }
35705                     else
35706                         { echo "$as_me:$LINENO: result: no" >&5
35707 echo "${ECHO_T}no" >&6; }
35708                     fi
35709                 else
35710                     { echo "$as_me:$LINENO: result: no" >&5
35711 echo "${ECHO_T}no" >&6; }
35712                 fi
35713
35714                 if test "$found_gl" != 1; then
35715                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35716 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35717
35718   ac_find_libraries=
35719   for ac_dir in $SEARCH_LIB;
35720   do
35721     for ac_extension in a so sl dylib dll.a; do
35722       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35723         ac_find_libraries=$ac_dir
35724         break 2
35725       fi
35726     done
35727   done
35728
35729                     if test "$ac_find_libraries" != "" ; then
35730
35731     if test "$ac_find_libraries" = "default location"; then
35732     ac_path_to_link=""
35733   else
35734     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35735     result=$?
35736     if test $result = 0; then
35737       ac_path_to_link=""
35738     else
35739       ac_path_to_link=" -L$ac_find_libraries"
35740     fi
35741   fi
35742
35743                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35744                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35745                         { echo "$as_me:$LINENO: result: yes" >&5
35746 echo "${ECHO_T}yes" >&6; }
35747                     else
35748                         { echo "$as_me:$LINENO: result: no" >&5
35749 echo "${ECHO_T}no" >&6; }
35750                     fi
35751                 fi
35752
35753 fi
35754
35755
35756
35757 fi
35758
35759
35760
35761         if test "x$OPENGL_LIBS" = "x"; then
35762                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35763 echo "$as_me: error: OpenGL libraries not available" >&2;}
35764    { (exit 1); exit 1; }; }
35765         fi
35766     fi
35767
35768     if test "$wxUSE_OPENGL" = "yes"; then
35769         USE_OPENGL=1
35770         cat >>confdefs.h <<\_ACEOF
35771 #define wxUSE_OPENGL 1
35772 _ACEOF
35773
35774         cat >>confdefs.h <<\_ACEOF
35775 #define wxUSE_GLCANVAS 1
35776 _ACEOF
35777
35778         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35779     fi
35780 fi
35781
35782
35783 if test -n "$TOOLKIT" ; then
35784     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35785 fi
35786
35787
35788
35789 if test "$wxUSE_SHARED" = "yes"; then
35790     case "${host}" in
35791       *-pc-msdosdjgpp )
35792                 wxUSE_SHARED=no
35793         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35794 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35795       ;;
35796     esac
35797 fi
35798
35799 if test "$wxUSE_SHARED" = "yes"; then
35800
35801
35802     case "${host}" in
35803         *-*-cygwin* | *-*-mingw* )
35804                                                                                                 wx_cv_version_script=no
35805             ;;
35806
35807         *)
35808             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35809 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35810 if test "${wx_cv_version_script+set}" = set; then
35811   echo $ECHO_N "(cached) $ECHO_C" >&6
35812 else
35813
35814                 echo "VER_1 { *; };" >conftest.sym
35815                 echo "int main() { return 0; }" >conftest.cpp
35816
35817                 if { ac_try='
35818                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35819                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35821   (eval $ac_try) 2>&5
35822   ac_status=$?
35823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35824   (exit $ac_status); }; } ; then
35825                   if test -s conftest.stderr ; then
35826                       wx_cv_version_script=no
35827                   else
35828                       wx_cv_version_script=yes
35829                   fi
35830                 else
35831                   wx_cv_version_script=no
35832                 fi
35833
35834                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35835                 then
35836                   echo "struct B { virtual ~B() { } }; \
35837                         struct D : public B { }; \
35838                         void F() { D d; }" > conftest.cpp
35839
35840                   if { ac_try='
35841                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35842                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35844   (eval $ac_try) 2>&5
35845   ac_status=$?
35846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847   (exit $ac_status); }; } &&
35848                      { ac_try='
35849                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35850                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35852   (eval $ac_try) 2>&5
35853   ac_status=$?
35854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855   (exit $ac_status); }; }
35856                   then
35857                     if { ac_try='
35858                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35859                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35861   (eval $ac_try) 2>&5
35862   ac_status=$?
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); }; }
35865                     then
35866                       wx_cv_version_script=yes
35867                     else
35868                       wx_cv_version_script=no
35869                     fi
35870                   fi
35871                 fi
35872
35873                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35874                 rm -f conftest1.output conftest2.output conftest3.output
35875
35876 fi
35877 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35878 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35879
35880             if test $wx_cv_version_script = yes ; then
35881                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35882             fi
35883             ;;
35884     esac
35885
35886
35887             if test "$wxUSE_VISIBILITY" != "no"; then
35888
35889
35890   if test -n "$GCC"; then
35891     CFLAGS_VISIBILITY="-fvisibility=hidden"
35892     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35893     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35894 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35895     if test "${wx_cv_cc_visibility+set}" = set; then
35896   echo $ECHO_N "(cached) $ECHO_C" >&6
35897 else
35898
35899       wx_save_CXXFLAGS="$CXXFLAGS"
35900       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35901       ac_ext=cpp
35902 ac_cpp='$CXXCPP $CPPFLAGS'
35903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35906
35907       cat >conftest.$ac_ext <<_ACEOF
35908 /* confdefs.h.  */
35909 _ACEOF
35910 cat confdefs.h >>conftest.$ac_ext
35911 cat >>conftest.$ac_ext <<_ACEOF
35912 /* end confdefs.h.  */
35913
35914          /* we need gcc >= 4.0, older versions with visibility support
35915             didn't have class visibility: */
35916          #if defined(__GNUC__) && __GNUC__ < 4
35917          error this gcc is too old;
35918          #endif
35919
35920          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35921          extern __attribute__((__visibility__("default"))) int exportedvar;
35922          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35923          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35924          class __attribute__((__visibility__("default"))) Foo {
35925            Foo() {}
35926          };
35927
35928 int
35929 main ()
35930 {
35931
35932   ;
35933   return 0;
35934 }
35935 _ACEOF
35936 rm -f conftest.$ac_objext
35937 if { (ac_try="$ac_compile"
35938 case "(($ac_try" in
35939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35940   *) ac_try_echo=$ac_try;;
35941 esac
35942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35943   (eval "$ac_compile") 2>conftest.er1
35944   ac_status=$?
35945   grep -v '^ *+' conftest.er1 >conftest.err
35946   rm -f conftest.er1
35947   cat conftest.err >&5
35948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949   (exit $ac_status); } && {
35950          test -z "$ac_cxx_werror_flag" ||
35951          test ! -s conftest.err
35952        } && test -s conftest.$ac_objext; then
35953   wx_cv_cc_visibility=yes
35954 else
35955   echo "$as_me: failed program was:" >&5
35956 sed 's/^/| /' conftest.$ac_ext >&5
35957
35958         wx_cv_cc_visibility=no
35959 fi
35960
35961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35962       ac_ext=c
35963 ac_cpp='$CPP $CPPFLAGS'
35964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35967
35968       CXXFLAGS="$wx_save_CXXFLAGS"
35969 fi
35970
35971     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35972 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35973     if test $wx_cv_cc_visibility = yes; then
35974       cat >>confdefs.h <<\_ACEOF
35975 #define HAVE_VISIBILITY 1
35976 _ACEOF
35977
35978     else
35979       CFLAGS_VISIBILITY=""
35980       CXXFLAGS_VISIBILITY=""
35981     fi
35982
35983
35984   fi
35985
35986     fi
35987
35988         if test "x$SUNCXX" = xyes; then
35989         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35990         WXCONFIG_RPATH="-R\$libdir"
35991     else
35992     case "${host}" in
35993       *-*-linux* | *-*-gnu* )
35994         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35995         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35996         ;;
35997
35998       *-*-solaris2* )
35999
36000                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36001
36002                         saveLdflags="$LDFLAGS"
36003         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36004         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36005 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36006         cat >conftest.$ac_ext <<_ACEOF
36007 /* confdefs.h.  */
36008 _ACEOF
36009 cat confdefs.h >>conftest.$ac_ext
36010 cat >>conftest.$ac_ext <<_ACEOF
36011 /* end confdefs.h.  */
36012
36013 int
36014 main ()
36015 {
36016
36017   ;
36018   return 0;
36019 }
36020 _ACEOF
36021 rm -f conftest.$ac_objext conftest$ac_exeext
36022 if { (ac_try="$ac_link"
36023 case "(($ac_try" in
36024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36025   *) ac_try_echo=$ac_try;;
36026 esac
36027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36028   (eval "$ac_link") 2>conftest.er1
36029   ac_status=$?
36030   grep -v '^ *+' conftest.er1 >conftest.err
36031   rm -f conftest.er1
36032   cat conftest.err >&5
36033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034   (exit $ac_status); } && {
36035          test -z "$ac_c_werror_flag" ||
36036          test ! -s conftest.err
36037        } && test -s conftest$ac_exeext &&
36038        $as_test_x conftest$ac_exeext; then
36039
36040                 { echo "$as_me:$LINENO: result: yes" >&5
36041 echo "${ECHO_T}yes" >&6; }
36042                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36043                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36044
36045 else
36046   echo "$as_me: failed program was:" >&5
36047 sed 's/^/| /' conftest.$ac_ext >&5
36048
36049
36050                 { echo "$as_me:$LINENO: result: no" >&5
36051 echo "${ECHO_T}no" >&6; }
36052                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36053 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
36054                 LDFLAGS="$saveLdflags -Wl,-R,/"
36055                 cat >conftest.$ac_ext <<_ACEOF
36056 /* confdefs.h.  */
36057 _ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h.  */
36061
36062 int
36063 main ()
36064 {
36065
36066   ;
36067   return 0;
36068 }
36069 _ACEOF
36070 rm -f conftest.$ac_objext conftest$ac_exeext
36071 if { (ac_try="$ac_link"
36072 case "(($ac_try" in
36073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36074   *) ac_try_echo=$ac_try;;
36075 esac
36076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36077   (eval "$ac_link") 2>conftest.er1
36078   ac_status=$?
36079   grep -v '^ *+' conftest.er1 >conftest.err
36080   rm -f conftest.er1
36081   cat conftest.err >&5
36082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083   (exit $ac_status); } && {
36084          test -z "$ac_c_werror_flag" ||
36085          test ! -s conftest.err
36086        } && test -s conftest$ac_exeext &&
36087        $as_test_x conftest$ac_exeext; then
36088
36089                         { echo "$as_me:$LINENO: result: yes" >&5
36090 echo "${ECHO_T}yes" >&6; }
36091                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36092                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36093
36094 else
36095   echo "$as_me: failed program was:" >&5
36096 sed 's/^/| /' conftest.$ac_ext >&5
36097
36098
36099                         { echo "$as_me:$LINENO: result: no" >&5
36100 echo "${ECHO_T}no" >&6; }
36101
36102 fi
36103
36104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36105       conftest$ac_exeext conftest.$ac_ext
36106
36107 fi
36108
36109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36110       conftest$ac_exeext conftest.$ac_ext
36111         LDFLAGS="$saveLdflags"
36112       ;;
36113
36114       *-*-darwin* )
36115         install_name_tool=`which install_name_tool`
36116         if test "$install_name_tool" -a -x "$install_name_tool"; then
36117             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36118             cat <<EOF >change-install-names
36119 #!/bin/sh
36120 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36121 inst_cmd="install_name_tool "
36122 for i in \${libnames} ; do
36123     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36124 done
36125 \${inst_cmd} \${3}
36126 EOF
36127             chmod +x change-install-names
36128         fi
36129       ;;
36130
36131       *-*-cygwin* | *-*-mingw32* )
36132                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36133         ;;
36134
36135       *-*-hpux* )
36136         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36137         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36138         ;;
36139
36140     esac
36141     fi
36142
36143     if test $wxUSE_RPATH = "no"; then
36144         SAMPLES_RPATH_FLAG=''
36145         SAMPLES_RPATH_POSTLINK=''
36146         WXCONFIG_RPATH=''
36147     fi
36148
36149     SHARED=1
36150
36151 else
36152
36153     config_linkage_component="-static"
36154     SHARED=0
36155
36156 fi
36157
36158
36159 UNICODE=0
36160 lib_unicode_suffix=
36161 WX_CHARTYPE="ansi"
36162 if test "$wxUSE_UNICODE" = "yes"; then
36163     lib_unicode_suffix=u
36164     WX_CHARTYPE="unicode"
36165     UNICODE=1
36166 fi
36167
36168 lib_debug_suffix=
36169 WX_DEBUGTYPE="release"
36170 DEBUG_FLAG=0
36171 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36172     lib_debug_suffix=d
36173     WX_DEBUGTYPE="debug"
36174     DEBUG_FLAG=1
36175 fi
36176
36177 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36178 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36179
36180 DEBUG_INFO=0
36181 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36182     DEBUG_INFO=1
36183 fi
36184
36185 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
36186
36187 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36188
36189 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36190
36191 if test "$cross_compiling" = "yes"; then
36192     HOST_SUFFIX="-$host_alias"
36193     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36194     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36195 fi
36196
36197 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36198 if test "${TOOLKIT_DIR}" = "os2"; then
36199     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36200 else
36201     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36202 fi
36203
36204
36205
36206 if test "$wxUSE_COCOA" = 1; then
36207
36208     ac_ext=c
36209 ac_cpp='$CPP $CPPFLAGS'
36210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36213
36214 ac_ext=m
36215
36216     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36217 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36218     cat >conftest.$ac_ext <<_ACEOF
36219 /* confdefs.h.  */
36220 _ACEOF
36221 cat confdefs.h >>conftest.$ac_ext
36222 cat >>conftest.$ac_ext <<_ACEOF
36223 /* end confdefs.h.  */
36224 #include <AppKit/NSEvent.h>
36225 #include <CoreFoundation/CoreFoundation.h>
36226
36227 int
36228 main ()
36229 {
36230
36231   ;
36232   return 0;
36233 }
36234 _ACEOF
36235 rm -f conftest.$ac_objext
36236 if { (ac_try="$ac_compile"
36237 case "(($ac_try" in
36238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36239   *) ac_try_echo=$ac_try;;
36240 esac
36241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36242   (eval "$ac_compile") 2>conftest.er1
36243   ac_status=$?
36244   grep -v '^ *+' conftest.er1 >conftest.err
36245   rm -f conftest.er1
36246   cat conftest.err >&5
36247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248   (exit $ac_status); } && {
36249          test -z "$ac_c_werror_flag" ||
36250          test ! -s conftest.err
36251        } && test -s conftest.$ac_objext; then
36252   { echo "$as_me:$LINENO: result: no" >&5
36253 echo "${ECHO_T}no" >&6; }
36254 else
36255   echo "$as_me: failed program was:" >&5
36256 sed 's/^/| /' conftest.$ac_ext >&5
36257
36258         { echo "$as_me:$LINENO: result: yes" >&5
36259 echo "${ECHO_T}yes" >&6; }
36260         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36261 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36262         cat >conftest.$ac_ext <<_ACEOF
36263 /* confdefs.h.  */
36264 _ACEOF
36265 cat confdefs.h >>conftest.$ac_ext
36266 cat >>conftest.$ac_ext <<_ACEOF
36267 /* end confdefs.h.  */
36268 #define __Point__ 1
36269 #include <AppKit/NSEvent.h>
36270 #include <CoreFoundation/CoreFoundation.h>
36271
36272 int
36273 main ()
36274 {
36275
36276   ;
36277   return 0;
36278 }
36279 _ACEOF
36280 rm -f conftest.$ac_objext
36281 if { (ac_try="$ac_compile"
36282 case "(($ac_try" in
36283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36284   *) ac_try_echo=$ac_try;;
36285 esac
36286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36287   (eval "$ac_compile") 2>conftest.er1
36288   ac_status=$?
36289   grep -v '^ *+' conftest.er1 >conftest.err
36290   rm -f conftest.er1
36291   cat conftest.err >&5
36292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293   (exit $ac_status); } && {
36294          test -z "$ac_c_werror_flag" ||
36295          test ! -s conftest.err
36296        } && test -s conftest.$ac_objext; then
36297   { echo "$as_me:$LINENO: result: yes" >&5
36298 echo "${ECHO_T}yes" >&6; }
36299             cat >>confdefs.h <<\_ACEOF
36300 #define __Point__ 1
36301 _ACEOF
36302
36303
36304 else
36305   echo "$as_me: failed program was:" >&5
36306 sed 's/^/| /' conftest.$ac_ext >&5
36307
36308         { { echo "$as_me:$LINENO: error: no
36309 See \`config.log' for more details." >&5
36310 echo "$as_me: error: no
36311 See \`config.log' for more details." >&2;}
36312    { (exit 1); exit 1; }; }
36313
36314 fi
36315
36316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36317
36318 fi
36319
36320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36321     ac_ext=c
36322 ac_cpp='$CPP $CPPFLAGS'
36323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36326
36327 fi
36328
36329 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
36330             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
36331     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
36332
36333         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
36334
36335     # Extract the first word of "Rez", so it can be a program name with args.
36336 set dummy Rez; ac_word=$2
36337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36339 if test "${ac_cv_prog_REZ+set}" = set; then
36340   echo $ECHO_N "(cached) $ECHO_C" >&6
36341 else
36342   if test -n "$REZ"; then
36343   ac_cv_prog_REZ="$REZ" # Let the user override the test.
36344 else
36345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36346 for as_dir in $PATH
36347 do
36348   IFS=$as_save_IFS
36349   test -z "$as_dir" && as_dir=.
36350   for ac_exec_ext in '' $ac_executable_extensions; do
36351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36352     ac_cv_prog_REZ="Rez"
36353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36354     break 2
36355   fi
36356 done
36357 done
36358 IFS=$as_save_IFS
36359
36360   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
36361 fi
36362 fi
36363 REZ=$ac_cv_prog_REZ
36364 if test -n "$REZ"; then
36365   { echo "$as_me:$LINENO: result: $REZ" >&5
36366 echo "${ECHO_T}$REZ" >&6; }
36367 else
36368   { echo "$as_me:$LINENO: result: no" >&5
36369 echo "${ECHO_T}no" >&6; }
36370 fi
36371
36372
36373     # Extract the first word of "DeRez", so it can be a program name with args.
36374 set dummy DeRez; ac_word=$2
36375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36377 if test "${ac_cv_prog_DEREZ+set}" = set; then
36378   echo $ECHO_N "(cached) $ECHO_C" >&6
36379 else
36380   if test -n "$DEREZ"; then
36381   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
36382 else
36383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36384 for as_dir in $PATH
36385 do
36386   IFS=$as_save_IFS
36387   test -z "$as_dir" && as_dir=.
36388   for ac_exec_ext in '' $ac_executable_extensions; do
36389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36390     ac_cv_prog_DEREZ="DeRez"
36391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36392     break 2
36393   fi
36394 done
36395 done
36396 IFS=$as_save_IFS
36397
36398   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
36399 fi
36400 fi
36401 DEREZ=$ac_cv_prog_DEREZ
36402 if test -n "$DEREZ"; then
36403   { echo "$as_me:$LINENO: result: $DEREZ" >&5
36404 echo "${ECHO_T}$DEREZ" >&6; }
36405 else
36406   { echo "$as_me:$LINENO: result: no" >&5
36407 echo "${ECHO_T}no" >&6; }
36408 fi
36409
36410
36411     # Extract the first word of "SetFile", so it can be a program name with args.
36412 set dummy SetFile; ac_word=$2
36413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36415 if test "${ac_cv_prog_SETFILE+set}" = set; then
36416   echo $ECHO_N "(cached) $ECHO_C" >&6
36417 else
36418   if test -n "$SETFILE"; then
36419   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36420 else
36421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36422 for as_dir in $PATH
36423 do
36424   IFS=$as_save_IFS
36425   test -z "$as_dir" && as_dir=.
36426   for ac_exec_ext in '' $ac_executable_extensions; do
36427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36428     ac_cv_prog_SETFILE="SetFile"
36429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36430     break 2
36431   fi
36432 done
36433 done
36434 IFS=$as_save_IFS
36435
36436   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36437 fi
36438 fi
36439 SETFILE=$ac_cv_prog_SETFILE
36440 if test -n "$SETFILE"; then
36441   { echo "$as_me:$LINENO: result: $SETFILE" >&5
36442 echo "${ECHO_T}$SETFILE" >&6; }
36443 else
36444   { echo "$as_me:$LINENO: result: no" >&5
36445 echo "${ECHO_T}no" >&6; }
36446 fi
36447
36448
36449
36450     MACSETFILE="\$(SETFILE)"
36451
36452             if test "$wxUSE_MAC" = 1; then
36453         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
36454         RESCOMP="$REZ"
36455         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
36456     else
36457         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
36458         RESCOMP="echo -n \| $REZ"
36459         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
36460     fi
36461
36462 else
36463         MACSETFILE="@true"
36464
36465     if test "$wxUSE_PM" = 1; then
36466         RESCOMP="emxbind"
36467         WXCONFIG_RESFLAGS="-ep"
36468
36469                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
36470     else
36471         POSTLINK_COMMAND="@true"
36472     fi
36473
36474 fi
36475
36476
36477
36478 { echo "$as_me:$LINENO: checking for mode_t" >&5
36479 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36480 if test "${ac_cv_type_mode_t+set}" = set; then
36481   echo $ECHO_N "(cached) $ECHO_C" >&6
36482 else
36483   cat >conftest.$ac_ext <<_ACEOF
36484 /* confdefs.h.  */
36485 _ACEOF
36486 cat confdefs.h >>conftest.$ac_ext
36487 cat >>conftest.$ac_ext <<_ACEOF
36488 /* end confdefs.h.  */
36489 $ac_includes_default
36490 typedef mode_t ac__type_new_;
36491 int
36492 main ()
36493 {
36494 if ((ac__type_new_ *) 0)
36495   return 0;
36496 if (sizeof (ac__type_new_))
36497   return 0;
36498   ;
36499   return 0;
36500 }
36501 _ACEOF
36502 rm -f conftest.$ac_objext
36503 if { (ac_try="$ac_compile"
36504 case "(($ac_try" in
36505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36506   *) ac_try_echo=$ac_try;;
36507 esac
36508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36509   (eval "$ac_compile") 2>conftest.er1
36510   ac_status=$?
36511   grep -v '^ *+' conftest.er1 >conftest.err
36512   rm -f conftest.er1
36513   cat conftest.err >&5
36514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515   (exit $ac_status); } && {
36516          test -z "$ac_c_werror_flag" ||
36517          test ! -s conftest.err
36518        } && test -s conftest.$ac_objext; then
36519   ac_cv_type_mode_t=yes
36520 else
36521   echo "$as_me: failed program was:" >&5
36522 sed 's/^/| /' conftest.$ac_ext >&5
36523
36524         ac_cv_type_mode_t=no
36525 fi
36526
36527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36528 fi
36529 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36530 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36531 if test $ac_cv_type_mode_t = yes; then
36532   :
36533 else
36534
36535 cat >>confdefs.h <<_ACEOF
36536 #define mode_t int
36537 _ACEOF
36538
36539 fi
36540
36541 { echo "$as_me:$LINENO: checking for off_t" >&5
36542 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36543 if test "${ac_cv_type_off_t+set}" = set; then
36544   echo $ECHO_N "(cached) $ECHO_C" >&6
36545 else
36546   cat >conftest.$ac_ext <<_ACEOF
36547 /* confdefs.h.  */
36548 _ACEOF
36549 cat confdefs.h >>conftest.$ac_ext
36550 cat >>conftest.$ac_ext <<_ACEOF
36551 /* end confdefs.h.  */
36552 $ac_includes_default
36553 typedef off_t ac__type_new_;
36554 int
36555 main ()
36556 {
36557 if ((ac__type_new_ *) 0)
36558   return 0;
36559 if (sizeof (ac__type_new_))
36560   return 0;
36561   ;
36562   return 0;
36563 }
36564 _ACEOF
36565 rm -f conftest.$ac_objext
36566 if { (ac_try="$ac_compile"
36567 case "(($ac_try" in
36568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36569   *) ac_try_echo=$ac_try;;
36570 esac
36571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36572   (eval "$ac_compile") 2>conftest.er1
36573   ac_status=$?
36574   grep -v '^ *+' conftest.er1 >conftest.err
36575   rm -f conftest.er1
36576   cat conftest.err >&5
36577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578   (exit $ac_status); } && {
36579          test -z "$ac_c_werror_flag" ||
36580          test ! -s conftest.err
36581        } && test -s conftest.$ac_objext; then
36582   ac_cv_type_off_t=yes
36583 else
36584   echo "$as_me: failed program was:" >&5
36585 sed 's/^/| /' conftest.$ac_ext >&5
36586
36587         ac_cv_type_off_t=no
36588 fi
36589
36590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36591 fi
36592 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36593 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36594 if test $ac_cv_type_off_t = yes; then
36595   :
36596 else
36597
36598 cat >>confdefs.h <<_ACEOF
36599 #define off_t long int
36600 _ACEOF
36601
36602 fi
36603
36604 { echo "$as_me:$LINENO: checking for pid_t" >&5
36605 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36606 if test "${ac_cv_type_pid_t+set}" = set; then
36607   echo $ECHO_N "(cached) $ECHO_C" >&6
36608 else
36609   cat >conftest.$ac_ext <<_ACEOF
36610 /* confdefs.h.  */
36611 _ACEOF
36612 cat confdefs.h >>conftest.$ac_ext
36613 cat >>conftest.$ac_ext <<_ACEOF
36614 /* end confdefs.h.  */
36615 $ac_includes_default
36616 typedef pid_t ac__type_new_;
36617 int
36618 main ()
36619 {
36620 if ((ac__type_new_ *) 0)
36621   return 0;
36622 if (sizeof (ac__type_new_))
36623   return 0;
36624   ;
36625   return 0;
36626 }
36627 _ACEOF
36628 rm -f conftest.$ac_objext
36629 if { (ac_try="$ac_compile"
36630 case "(($ac_try" in
36631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36632   *) ac_try_echo=$ac_try;;
36633 esac
36634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36635   (eval "$ac_compile") 2>conftest.er1
36636   ac_status=$?
36637   grep -v '^ *+' conftest.er1 >conftest.err
36638   rm -f conftest.er1
36639   cat conftest.err >&5
36640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36641   (exit $ac_status); } && {
36642          test -z "$ac_c_werror_flag" ||
36643          test ! -s conftest.err
36644        } && test -s conftest.$ac_objext; then
36645   ac_cv_type_pid_t=yes
36646 else
36647   echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36649
36650         ac_cv_type_pid_t=no
36651 fi
36652
36653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36654 fi
36655 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36656 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36657 if test $ac_cv_type_pid_t = yes; then
36658   :
36659 else
36660
36661 cat >>confdefs.h <<_ACEOF
36662 #define pid_t int
36663 _ACEOF
36664
36665 fi
36666
36667 { echo "$as_me:$LINENO: checking for size_t" >&5
36668 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36669 if test "${ac_cv_type_size_t+set}" = set; then
36670   echo $ECHO_N "(cached) $ECHO_C" >&6
36671 else
36672   cat >conftest.$ac_ext <<_ACEOF
36673 /* confdefs.h.  */
36674 _ACEOF
36675 cat confdefs.h >>conftest.$ac_ext
36676 cat >>conftest.$ac_ext <<_ACEOF
36677 /* end confdefs.h.  */
36678 $ac_includes_default
36679 typedef size_t ac__type_new_;
36680 int
36681 main ()
36682 {
36683 if ((ac__type_new_ *) 0)
36684   return 0;
36685 if (sizeof (ac__type_new_))
36686   return 0;
36687   ;
36688   return 0;
36689 }
36690 _ACEOF
36691 rm -f conftest.$ac_objext
36692 if { (ac_try="$ac_compile"
36693 case "(($ac_try" in
36694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36695   *) ac_try_echo=$ac_try;;
36696 esac
36697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36698   (eval "$ac_compile") 2>conftest.er1
36699   ac_status=$?
36700   grep -v '^ *+' conftest.er1 >conftest.err
36701   rm -f conftest.er1
36702   cat conftest.err >&5
36703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704   (exit $ac_status); } && {
36705          test -z "$ac_c_werror_flag" ||
36706          test ! -s conftest.err
36707        } && test -s conftest.$ac_objext; then
36708   ac_cv_type_size_t=yes
36709 else
36710   echo "$as_me: failed program was:" >&5
36711 sed 's/^/| /' conftest.$ac_ext >&5
36712
36713         ac_cv_type_size_t=no
36714 fi
36715
36716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36717 fi
36718 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36719 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36720 if test $ac_cv_type_size_t = yes; then
36721   :
36722 else
36723
36724 cat >>confdefs.h <<_ACEOF
36725 #define size_t unsigned int
36726 _ACEOF
36727
36728 fi
36729
36730 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
36731 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
36732 if test "${ac_cv_type_uid_t+set}" = set; then
36733   echo $ECHO_N "(cached) $ECHO_C" >&6
36734 else
36735   cat >conftest.$ac_ext <<_ACEOF
36736 /* confdefs.h.  */
36737 _ACEOF
36738 cat confdefs.h >>conftest.$ac_ext
36739 cat >>conftest.$ac_ext <<_ACEOF
36740 /* end confdefs.h.  */
36741 #include <sys/types.h>
36742
36743 _ACEOF
36744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36745   $EGREP "uid_t" >/dev/null 2>&1; then
36746   ac_cv_type_uid_t=yes
36747 else
36748   ac_cv_type_uid_t=no
36749 fi
36750 rm -f conftest*
36751
36752 fi
36753 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
36754 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
36755 if test $ac_cv_type_uid_t = no; then
36756
36757 cat >>confdefs.h <<\_ACEOF
36758 #define uid_t int
36759 _ACEOF
36760
36761
36762 cat >>confdefs.h <<\_ACEOF
36763 #define gid_t int
36764 _ACEOF
36765
36766 fi
36767
36768
36769 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36770 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36771 if test "${ac_cv_type_ssize_t+set}" = set; then
36772   echo $ECHO_N "(cached) $ECHO_C" >&6
36773 else
36774   cat >conftest.$ac_ext <<_ACEOF
36775 /* confdefs.h.  */
36776 _ACEOF
36777 cat confdefs.h >>conftest.$ac_ext
36778 cat >>conftest.$ac_ext <<_ACEOF
36779 /* end confdefs.h.  */
36780 $ac_includes_default
36781 typedef ssize_t ac__type_new_;
36782 int
36783 main ()
36784 {
36785 if ((ac__type_new_ *) 0)
36786   return 0;
36787 if (sizeof (ac__type_new_))
36788   return 0;
36789   ;
36790   return 0;
36791 }
36792 _ACEOF
36793 rm -f conftest.$ac_objext
36794 if { (ac_try="$ac_compile"
36795 case "(($ac_try" in
36796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36797   *) ac_try_echo=$ac_try;;
36798 esac
36799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36800   (eval "$ac_compile") 2>conftest.er1
36801   ac_status=$?
36802   grep -v '^ *+' conftest.er1 >conftest.err
36803   rm -f conftest.er1
36804   cat conftest.err >&5
36805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806   (exit $ac_status); } && {
36807          test -z "$ac_c_werror_flag" ||
36808          test ! -s conftest.err
36809        } && test -s conftest.$ac_objext; then
36810   ac_cv_type_ssize_t=yes
36811 else
36812   echo "$as_me: failed program was:" >&5
36813 sed 's/^/| /' conftest.$ac_ext >&5
36814
36815         ac_cv_type_ssize_t=no
36816 fi
36817
36818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36819 fi
36820 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36821 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36822 if test $ac_cv_type_ssize_t = yes; then
36823
36824 cat >>confdefs.h <<_ACEOF
36825 #define HAVE_SSIZE_T 1
36826 _ACEOF
36827
36828
36829 fi
36830
36831
36832 ac_ext=cpp
36833 ac_cpp='$CXXCPP $CPPFLAGS'
36834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36837  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36838 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36839 if test "${wx_cv_size_t_is_uint+set}" = set; then
36840   echo $ECHO_N "(cached) $ECHO_C" >&6
36841 else
36842
36843                             cat >conftest.$ac_ext <<_ACEOF
36844 /* confdefs.h.  */
36845 _ACEOF
36846 cat confdefs.h >>conftest.$ac_ext
36847 cat >>conftest.$ac_ext <<_ACEOF
36848 /* end confdefs.h.  */
36849 #include <stddef.h>
36850 int
36851 main ()
36852 {
36853
36854             return 0; }
36855
36856             struct Foo { void foo(size_t); void foo(unsigned int); };
36857
36858             int bar() {
36859
36860   ;
36861   return 0;
36862 }
36863 _ACEOF
36864 rm -f conftest.$ac_objext
36865 if { (ac_try="$ac_compile"
36866 case "(($ac_try" in
36867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36868   *) ac_try_echo=$ac_try;;
36869 esac
36870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36871   (eval "$ac_compile") 2>conftest.er1
36872   ac_status=$?
36873   grep -v '^ *+' conftest.er1 >conftest.err
36874   rm -f conftest.er1
36875   cat conftest.err >&5
36876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877   (exit $ac_status); } && {
36878          test -z "$ac_cxx_werror_flag" ||
36879          test ! -s conftest.err
36880        } && test -s conftest.$ac_objext; then
36881   wx_cv_size_t_is_uint=no
36882 else
36883   echo "$as_me: failed program was:" >&5
36884 sed 's/^/| /' conftest.$ac_ext >&5
36885
36886         wx_cv_size_t_is_uint=yes
36887
36888 fi
36889
36890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36891
36892
36893 fi
36894 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36895 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36896
36897 if test "$wx_cv_size_t_is_uint" = "yes"; then
36898     cat >>confdefs.h <<\_ACEOF
36899 #define wxSIZE_T_IS_UINT 1
36900 _ACEOF
36901
36902 else
36903     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36904 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36905 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36906   echo $ECHO_N "(cached) $ECHO_C" >&6
36907 else
36908   cat >conftest.$ac_ext <<_ACEOF
36909 /* confdefs.h.  */
36910 _ACEOF
36911 cat confdefs.h >>conftest.$ac_ext
36912 cat >>conftest.$ac_ext <<_ACEOF
36913 /* end confdefs.h.  */
36914 #include <stddef.h>
36915 int
36916 main ()
36917 {
36918
36919                 return 0; }
36920
36921                 struct Foo { void foo(size_t); void foo(unsigned long); };
36922
36923                 int bar() {
36924
36925   ;
36926   return 0;
36927 }
36928 _ACEOF
36929 rm -f conftest.$ac_objext
36930 if { (ac_try="$ac_compile"
36931 case "(($ac_try" in
36932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36933   *) ac_try_echo=$ac_try;;
36934 esac
36935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36936   (eval "$ac_compile") 2>conftest.er1
36937   ac_status=$?
36938   grep -v '^ *+' conftest.er1 >conftest.err
36939   rm -f conftest.er1
36940   cat conftest.err >&5
36941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942   (exit $ac_status); } && {
36943          test -z "$ac_cxx_werror_flag" ||
36944          test ! -s conftest.err
36945        } && test -s conftest.$ac_objext; then
36946   wx_cv_size_t_is_ulong=no
36947 else
36948   echo "$as_me: failed program was:" >&5
36949 sed 's/^/| /' conftest.$ac_ext >&5
36950
36951         wx_cv_size_t_is_ulong=yes
36952
36953 fi
36954
36955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36956
36957 fi
36958 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36959 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36960
36961     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36962         cat >>confdefs.h <<\_ACEOF
36963 #define wxSIZE_T_IS_ULONG 1
36964 _ACEOF
36965
36966     fi
36967 fi
36968
36969 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36970 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36971 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36972   echo $ECHO_N "(cached) $ECHO_C" >&6
36973 else
36974   cat >conftest.$ac_ext <<_ACEOF
36975 /* confdefs.h.  */
36976 _ACEOF
36977 cat confdefs.h >>conftest.$ac_ext
36978 cat >>conftest.$ac_ext <<_ACEOF
36979 /* end confdefs.h.  */
36980 #include <wchar.h>
36981 int
36982 main ()
36983 {
36984
36985             return 0; }
36986
36987             struct Foo { void foo(wchar_t);
36988                          void foo(unsigned short);
36989                          void foo(unsigned int);
36990                          void foo(unsigned long); };
36991
36992             int bar() {
36993
36994   ;
36995   return 0;
36996 }
36997 _ACEOF
36998 rm -f conftest.$ac_objext
36999 if { (ac_try="$ac_compile"
37000 case "(($ac_try" in
37001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37002   *) ac_try_echo=$ac_try;;
37003 esac
37004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37005   (eval "$ac_compile") 2>conftest.er1
37006   ac_status=$?
37007   grep -v '^ *+' conftest.er1 >conftest.err
37008   rm -f conftest.er1
37009   cat conftest.err >&5
37010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37011   (exit $ac_status); } && {
37012          test -z "$ac_cxx_werror_flag" ||
37013          test ! -s conftest.err
37014        } && test -s conftest.$ac_objext; then
37015   wx_cv_wchar_t_is_separate_type=yes
37016 else
37017   echo "$as_me: failed program was:" >&5
37018 sed 's/^/| /' conftest.$ac_ext >&5
37019
37020         wx_cv_wchar_t_is_separate_type=no
37021
37022 fi
37023
37024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37025
37026 fi
37027 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37028 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
37029
37030 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37031     cat >>confdefs.h <<\_ACEOF
37032 #define wxWCHAR_T_IS_REAL_TYPE 1
37033 _ACEOF
37034
37035 else
37036     cat >>confdefs.h <<\_ACEOF
37037 #define wxWCHAR_T_IS_REAL_TYPE 0
37038 _ACEOF
37039
37040 fi
37041
37042 ac_ext=c
37043 ac_cpp='$CPP $CPPFLAGS'
37044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37047
37048
37049 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37050 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
37051 if test "${wx_cv_struct_pw_gecos+set}" = set; then
37052   echo $ECHO_N "(cached) $ECHO_C" >&6
37053 else
37054
37055         cat >conftest.$ac_ext <<_ACEOF
37056 /* confdefs.h.  */
37057 _ACEOF
37058 cat confdefs.h >>conftest.$ac_ext
37059 cat >>conftest.$ac_ext <<_ACEOF
37060 /* end confdefs.h.  */
37061 #include <pwd.h>
37062 int
37063 main ()
37064 {
37065
37066                 char *p;
37067                 struct passwd *pw;
37068                 p = pw->pw_gecos;
37069
37070   ;
37071   return 0;
37072 }
37073 _ACEOF
37074 rm -f conftest.$ac_objext
37075 if { (ac_try="$ac_compile"
37076 case "(($ac_try" in
37077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37078   *) ac_try_echo=$ac_try;;
37079 esac
37080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37081   (eval "$ac_compile") 2>conftest.er1
37082   ac_status=$?
37083   grep -v '^ *+' conftest.er1 >conftest.err
37084   rm -f conftest.er1
37085   cat conftest.err >&5
37086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37087   (exit $ac_status); } && {
37088          test -z "$ac_c_werror_flag" ||
37089          test ! -s conftest.err
37090        } && test -s conftest.$ac_objext; then
37091
37092                 wx_cv_struct_pw_gecos=yes
37093
37094 else
37095   echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37097
37098
37099                 wx_cv_struct_pw_gecos=no
37100
37101
37102 fi
37103
37104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37105
37106
37107 fi
37108 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37109 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37110
37111 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37112     cat >>confdefs.h <<\_ACEOF
37113 #define HAVE_PW_GECOS 1
37114 _ACEOF
37115
37116 fi
37117
37118
37119 if test "$wxUSE_WCHAR_T" = "yes"; then
37120     cat >>confdefs.h <<\_ACEOF
37121 #define wxUSE_WCHAR_T 1
37122 _ACEOF
37123
37124
37125         WCSLEN_FOUND=0
37126     WCHAR_LINK=
37127
37128 for ac_func in wcslen
37129 do
37130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37134   echo $ECHO_N "(cached) $ECHO_C" >&6
37135 else
37136   cat >conftest.$ac_ext <<_ACEOF
37137 /* confdefs.h.  */
37138 _ACEOF
37139 cat confdefs.h >>conftest.$ac_ext
37140 cat >>conftest.$ac_ext <<_ACEOF
37141 /* end confdefs.h.  */
37142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37144 #define $ac_func innocuous_$ac_func
37145
37146 /* System header to define __stub macros and hopefully few prototypes,
37147     which can conflict with char $ac_func (); below.
37148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37149     <limits.h> exists even on freestanding compilers.  */
37150
37151 #ifdef __STDC__
37152 # include <limits.h>
37153 #else
37154 # include <assert.h>
37155 #endif
37156
37157 #undef $ac_func
37158
37159 /* Override any GCC internal prototype to avoid an error.
37160    Use char because int might match the return type of a GCC
37161    builtin and then its argument prototype would still apply.  */
37162 #ifdef __cplusplus
37163 extern "C"
37164 #endif
37165 char $ac_func ();
37166 /* The GNU C library defines this for functions which it implements
37167     to always fail with ENOSYS.  Some functions are actually named
37168     something starting with __ and the normal name is an alias.  */
37169 #if defined __stub_$ac_func || defined __stub___$ac_func
37170 choke me
37171 #endif
37172
37173 int
37174 main ()
37175 {
37176 return $ac_func ();
37177   ;
37178   return 0;
37179 }
37180 _ACEOF
37181 rm -f conftest.$ac_objext conftest$ac_exeext
37182 if { (ac_try="$ac_link"
37183 case "(($ac_try" in
37184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37185   *) ac_try_echo=$ac_try;;
37186 esac
37187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37188   (eval "$ac_link") 2>conftest.er1
37189   ac_status=$?
37190   grep -v '^ *+' conftest.er1 >conftest.err
37191   rm -f conftest.er1
37192   cat conftest.err >&5
37193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37194   (exit $ac_status); } && {
37195          test -z "$ac_c_werror_flag" ||
37196          test ! -s conftest.err
37197        } && test -s conftest$ac_exeext &&
37198        $as_test_x conftest$ac_exeext; then
37199   eval "$as_ac_var=yes"
37200 else
37201   echo "$as_me: failed program was:" >&5
37202 sed 's/^/| /' conftest.$ac_ext >&5
37203
37204         eval "$as_ac_var=no"
37205 fi
37206
37207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37208       conftest$ac_exeext conftest.$ac_ext
37209 fi
37210 ac_res=`eval echo '${'$as_ac_var'}'`
37211                { echo "$as_me:$LINENO: result: $ac_res" >&5
37212 echo "${ECHO_T}$ac_res" >&6; }
37213 if test `eval echo '${'$as_ac_var'}'` = yes; then
37214   cat >>confdefs.h <<_ACEOF
37215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37216 _ACEOF
37217  WCSLEN_FOUND=1
37218 fi
37219 done
37220
37221
37222     if test "$WCSLEN_FOUND" = 0; then
37223         if test "$TOOLKIT" = "MSW"; then
37224             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37225 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37226 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37227   echo $ECHO_N "(cached) $ECHO_C" >&6
37228 else
37229   ac_check_lib_save_LIBS=$LIBS
37230 LIBS="-lmsvcrt  $LIBS"
37231 cat >conftest.$ac_ext <<_ACEOF
37232 /* confdefs.h.  */
37233 _ACEOF
37234 cat confdefs.h >>conftest.$ac_ext
37235 cat >>conftest.$ac_ext <<_ACEOF
37236 /* end confdefs.h.  */
37237
37238 /* Override any GCC internal prototype to avoid an error.
37239    Use char because int might match the return type of a GCC
37240    builtin and then its argument prototype would still apply.  */
37241 #ifdef __cplusplus
37242 extern "C"
37243 #endif
37244 char wcslen ();
37245 int
37246 main ()
37247 {
37248 return wcslen ();
37249   ;
37250   return 0;
37251 }
37252 _ACEOF
37253 rm -f conftest.$ac_objext conftest$ac_exeext
37254 if { (ac_try="$ac_link"
37255 case "(($ac_try" in
37256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37257   *) ac_try_echo=$ac_try;;
37258 esac
37259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37260   (eval "$ac_link") 2>conftest.er1
37261   ac_status=$?
37262   grep -v '^ *+' conftest.er1 >conftest.err
37263   rm -f conftest.er1
37264   cat conftest.err >&5
37265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266   (exit $ac_status); } && {
37267          test -z "$ac_c_werror_flag" ||
37268          test ! -s conftest.err
37269        } && test -s conftest$ac_exeext &&
37270        $as_test_x conftest$ac_exeext; then
37271   ac_cv_lib_msvcrt_wcslen=yes
37272 else
37273   echo "$as_me: failed program was:" >&5
37274 sed 's/^/| /' conftest.$ac_ext >&5
37275
37276         ac_cv_lib_msvcrt_wcslen=no
37277 fi
37278
37279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37280       conftest$ac_exeext conftest.$ac_ext
37281 LIBS=$ac_check_lib_save_LIBS
37282 fi
37283 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37284 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37285 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37286   WCHAR_OK=1
37287 fi
37288
37289         else
37290             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37291 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37292 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37293   echo $ECHO_N "(cached) $ECHO_C" >&6
37294 else
37295   ac_check_lib_save_LIBS=$LIBS
37296 LIBS="-lw  $LIBS"
37297 cat >conftest.$ac_ext <<_ACEOF
37298 /* confdefs.h.  */
37299 _ACEOF
37300 cat confdefs.h >>conftest.$ac_ext
37301 cat >>conftest.$ac_ext <<_ACEOF
37302 /* end confdefs.h.  */
37303
37304 /* Override any GCC internal prototype to avoid an error.
37305    Use char because int might match the return type of a GCC
37306    builtin and then its argument prototype would still apply.  */
37307 #ifdef __cplusplus
37308 extern "C"
37309 #endif
37310 char wcslen ();
37311 int
37312 main ()
37313 {
37314 return wcslen ();
37315   ;
37316   return 0;
37317 }
37318 _ACEOF
37319 rm -f conftest.$ac_objext conftest$ac_exeext
37320 if { (ac_try="$ac_link"
37321 case "(($ac_try" in
37322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37323   *) ac_try_echo=$ac_try;;
37324 esac
37325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37326   (eval "$ac_link") 2>conftest.er1
37327   ac_status=$?
37328   grep -v '^ *+' conftest.er1 >conftest.err
37329   rm -f conftest.er1
37330   cat conftest.err >&5
37331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332   (exit $ac_status); } && {
37333          test -z "$ac_c_werror_flag" ||
37334          test ! -s conftest.err
37335        } && test -s conftest$ac_exeext &&
37336        $as_test_x conftest$ac_exeext; then
37337   ac_cv_lib_w_wcslen=yes
37338 else
37339   echo "$as_me: failed program was:" >&5
37340 sed 's/^/| /' conftest.$ac_ext >&5
37341
37342         ac_cv_lib_w_wcslen=no
37343 fi
37344
37345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37346       conftest$ac_exeext conftest.$ac_ext
37347 LIBS=$ac_check_lib_save_LIBS
37348 fi
37349 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37350 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37351 if test $ac_cv_lib_w_wcslen = yes; then
37352
37353                             WCHAR_LINK=" -lw"
37354                             WCSLEN_FOUND=1
37355
37356 fi
37357
37358         fi
37359     fi
37360
37361     if test "$WCSLEN_FOUND" = 1; then
37362         cat >>confdefs.h <<\_ACEOF
37363 #define HAVE_WCSLEN 1
37364 _ACEOF
37365
37366     fi
37367
37368
37369 for ac_func in wcsdup
37370 do
37371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37375   echo $ECHO_N "(cached) $ECHO_C" >&6
37376 else
37377   cat >conftest.$ac_ext <<_ACEOF
37378 /* confdefs.h.  */
37379 _ACEOF
37380 cat confdefs.h >>conftest.$ac_ext
37381 cat >>conftest.$ac_ext <<_ACEOF
37382 /* end confdefs.h.  */
37383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37385 #define $ac_func innocuous_$ac_func
37386
37387 /* System header to define __stub macros and hopefully few prototypes,
37388     which can conflict with char $ac_func (); below.
37389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37390     <limits.h> exists even on freestanding compilers.  */
37391
37392 #ifdef __STDC__
37393 # include <limits.h>
37394 #else
37395 # include <assert.h>
37396 #endif
37397
37398 #undef $ac_func
37399
37400 /* Override any GCC internal prototype to avoid an error.
37401    Use char because int might match the return type of a GCC
37402    builtin and then its argument prototype would still apply.  */
37403 #ifdef __cplusplus
37404 extern "C"
37405 #endif
37406 char $ac_func ();
37407 /* The GNU C library defines this for functions which it implements
37408     to always fail with ENOSYS.  Some functions are actually named
37409     something starting with __ and the normal name is an alias.  */
37410 #if defined __stub_$ac_func || defined __stub___$ac_func
37411 choke me
37412 #endif
37413
37414 int
37415 main ()
37416 {
37417 return $ac_func ();
37418   ;
37419   return 0;
37420 }
37421 _ACEOF
37422 rm -f conftest.$ac_objext conftest$ac_exeext
37423 if { (ac_try="$ac_link"
37424 case "(($ac_try" in
37425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37426   *) ac_try_echo=$ac_try;;
37427 esac
37428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37429   (eval "$ac_link") 2>conftest.er1
37430   ac_status=$?
37431   grep -v '^ *+' conftest.er1 >conftest.err
37432   rm -f conftest.er1
37433   cat conftest.err >&5
37434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435   (exit $ac_status); } && {
37436          test -z "$ac_c_werror_flag" ||
37437          test ! -s conftest.err
37438        } && test -s conftest$ac_exeext &&
37439        $as_test_x conftest$ac_exeext; then
37440   eval "$as_ac_var=yes"
37441 else
37442   echo "$as_me: failed program was:" >&5
37443 sed 's/^/| /' conftest.$ac_ext >&5
37444
37445         eval "$as_ac_var=no"
37446 fi
37447
37448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37449       conftest$ac_exeext conftest.$ac_ext
37450 fi
37451 ac_res=`eval echo '${'$as_ac_var'}'`
37452                { echo "$as_me:$LINENO: result: $ac_res" >&5
37453 echo "${ECHO_T}$ac_res" >&6; }
37454 if test `eval echo '${'$as_ac_var'}'` = yes; then
37455   cat >>confdefs.h <<_ACEOF
37456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37457 _ACEOF
37458
37459 fi
37460 done
37461
37462
37463                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
37464         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
37465     fi
37466
37467                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37468 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
37469 if test "${ac_cv_type_mbstate_t+set}" = set; then
37470   echo $ECHO_N "(cached) $ECHO_C" >&6
37471 else
37472   cat >conftest.$ac_ext <<_ACEOF
37473 /* confdefs.h.  */
37474 _ACEOF
37475 cat confdefs.h >>conftest.$ac_ext
37476 cat >>conftest.$ac_ext <<_ACEOF
37477 /* end confdefs.h.  */
37478 #include <wchar.h>
37479
37480 typedef mbstate_t ac__type_new_;
37481 int
37482 main ()
37483 {
37484 if ((ac__type_new_ *) 0)
37485   return 0;
37486 if (sizeof (ac__type_new_))
37487   return 0;
37488   ;
37489   return 0;
37490 }
37491 _ACEOF
37492 rm -f conftest.$ac_objext
37493 if { (ac_try="$ac_compile"
37494 case "(($ac_try" in
37495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37496   *) ac_try_echo=$ac_try;;
37497 esac
37498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37499   (eval "$ac_compile") 2>conftest.er1
37500   ac_status=$?
37501   grep -v '^ *+' conftest.er1 >conftest.err
37502   rm -f conftest.er1
37503   cat conftest.err >&5
37504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37505   (exit $ac_status); } && {
37506          test -z "$ac_c_werror_flag" ||
37507          test ! -s conftest.err
37508        } && test -s conftest.$ac_objext; then
37509   ac_cv_type_mbstate_t=yes
37510 else
37511   echo "$as_me: failed program was:" >&5
37512 sed 's/^/| /' conftest.$ac_ext >&5
37513
37514         ac_cv_type_mbstate_t=no
37515 fi
37516
37517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37518 fi
37519 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
37520 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
37521 if test $ac_cv_type_mbstate_t = yes; then
37522
37523 cat >>confdefs.h <<_ACEOF
37524 #define HAVE_MBSTATE_T 1
37525 _ACEOF
37526
37527
37528 for ac_func in wcsrtombs
37529 do
37530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37534   echo $ECHO_N "(cached) $ECHO_C" >&6
37535 else
37536   cat >conftest.$ac_ext <<_ACEOF
37537 /* confdefs.h.  */
37538 _ACEOF
37539 cat confdefs.h >>conftest.$ac_ext
37540 cat >>conftest.$ac_ext <<_ACEOF
37541 /* end confdefs.h.  */
37542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37544 #define $ac_func innocuous_$ac_func
37545
37546 /* System header to define __stub macros and hopefully few prototypes,
37547     which can conflict with char $ac_func (); below.
37548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37549     <limits.h> exists even on freestanding compilers.  */
37550
37551 #ifdef __STDC__
37552 # include <limits.h>
37553 #else
37554 # include <assert.h>
37555 #endif
37556
37557 #undef $ac_func
37558
37559 /* Override any GCC internal prototype to avoid an error.
37560    Use char because int might match the return type of a GCC
37561    builtin and then its argument prototype would still apply.  */
37562 #ifdef __cplusplus
37563 extern "C"
37564 #endif
37565 char $ac_func ();
37566 /* The GNU C library defines this for functions which it implements
37567     to always fail with ENOSYS.  Some functions are actually named
37568     something starting with __ and the normal name is an alias.  */
37569 #if defined __stub_$ac_func || defined __stub___$ac_func
37570 choke me
37571 #endif
37572
37573 int
37574 main ()
37575 {
37576 return $ac_func ();
37577   ;
37578   return 0;
37579 }
37580 _ACEOF
37581 rm -f conftest.$ac_objext conftest$ac_exeext
37582 if { (ac_try="$ac_link"
37583 case "(($ac_try" in
37584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37585   *) ac_try_echo=$ac_try;;
37586 esac
37587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37588   (eval "$ac_link") 2>conftest.er1
37589   ac_status=$?
37590   grep -v '^ *+' conftest.er1 >conftest.err
37591   rm -f conftest.er1
37592   cat conftest.err >&5
37593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37594   (exit $ac_status); } && {
37595          test -z "$ac_c_werror_flag" ||
37596          test ! -s conftest.err
37597        } && test -s conftest$ac_exeext &&
37598        $as_test_x conftest$ac_exeext; then
37599   eval "$as_ac_var=yes"
37600 else
37601   echo "$as_me: failed program was:" >&5
37602 sed 's/^/| /' conftest.$ac_ext >&5
37603
37604         eval "$as_ac_var=no"
37605 fi
37606
37607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37608       conftest$ac_exeext conftest.$ac_ext
37609 fi
37610 ac_res=`eval echo '${'$as_ac_var'}'`
37611                { echo "$as_me:$LINENO: result: $ac_res" >&5
37612 echo "${ECHO_T}$ac_res" >&6; }
37613 if test `eval echo '${'$as_ac_var'}'` = yes; then
37614   cat >>confdefs.h <<_ACEOF
37615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37616 _ACEOF
37617
37618 fi
37619 done
37620
37621 fi
37622
37623 else
37624     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
37625 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
37626 fi
37627
37628
37629
37630 for ac_func in snprintf vsnprintf
37631 do
37632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37636   echo $ECHO_N "(cached) $ECHO_C" >&6
37637 else
37638   cat >conftest.$ac_ext <<_ACEOF
37639 /* confdefs.h.  */
37640 _ACEOF
37641 cat confdefs.h >>conftest.$ac_ext
37642 cat >>conftest.$ac_ext <<_ACEOF
37643 /* end confdefs.h.  */
37644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37646 #define $ac_func innocuous_$ac_func
37647
37648 /* System header to define __stub macros and hopefully few prototypes,
37649     which can conflict with char $ac_func (); below.
37650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37651     <limits.h> exists even on freestanding compilers.  */
37652
37653 #ifdef __STDC__
37654 # include <limits.h>
37655 #else
37656 # include <assert.h>
37657 #endif
37658
37659 #undef $ac_func
37660
37661 /* Override any GCC internal prototype to avoid an error.
37662    Use char because int might match the return type of a GCC
37663    builtin and then its argument prototype would still apply.  */
37664 #ifdef __cplusplus
37665 extern "C"
37666 #endif
37667 char $ac_func ();
37668 /* The GNU C library defines this for functions which it implements
37669     to always fail with ENOSYS.  Some functions are actually named
37670     something starting with __ and the normal name is an alias.  */
37671 #if defined __stub_$ac_func || defined __stub___$ac_func
37672 choke me
37673 #endif
37674
37675 int
37676 main ()
37677 {
37678 return $ac_func ();
37679   ;
37680   return 0;
37681 }
37682 _ACEOF
37683 rm -f conftest.$ac_objext conftest$ac_exeext
37684 if { (ac_try="$ac_link"
37685 case "(($ac_try" in
37686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37687   *) ac_try_echo=$ac_try;;
37688 esac
37689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37690   (eval "$ac_link") 2>conftest.er1
37691   ac_status=$?
37692   grep -v '^ *+' conftest.er1 >conftest.err
37693   rm -f conftest.er1
37694   cat conftest.err >&5
37695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37696   (exit $ac_status); } && {
37697          test -z "$ac_c_werror_flag" ||
37698          test ! -s conftest.err
37699        } && test -s conftest$ac_exeext &&
37700        $as_test_x conftest$ac_exeext; then
37701   eval "$as_ac_var=yes"
37702 else
37703   echo "$as_me: failed program was:" >&5
37704 sed 's/^/| /' conftest.$ac_ext >&5
37705
37706         eval "$as_ac_var=no"
37707 fi
37708
37709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37710       conftest$ac_exeext conftest.$ac_ext
37711 fi
37712 ac_res=`eval echo '${'$as_ac_var'}'`
37713                { echo "$as_me:$LINENO: result: $ac_res" >&5
37714 echo "${ECHO_T}$ac_res" >&6; }
37715 if test `eval echo '${'$as_ac_var'}'` = yes; then
37716   cat >>confdefs.h <<_ACEOF
37717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37718 _ACEOF
37719
37720 fi
37721 done
37722
37723
37724 if test "$ac_cv_func_vsnprintf" = "yes"; then
37725         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37726 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37727 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37728   echo $ECHO_N "(cached) $ECHO_C" >&6
37729 else
37730
37731                                                             cat >conftest.$ac_ext <<_ACEOF
37732 /* confdefs.h.  */
37733 _ACEOF
37734 cat confdefs.h >>conftest.$ac_ext
37735 cat >>conftest.$ac_ext <<_ACEOF
37736 /* end confdefs.h.  */
37737
37738                     #include <stdio.h>
37739                     #include <stdarg.h>
37740                     #ifdef __MSL__
37741                     #if __MSL__ >= 0x6000
37742                     namespace std {}
37743                     using namespace std;
37744                     #endif
37745                     #endif
37746
37747 int
37748 main ()
37749 {
37750
37751                     char *buf;
37752                     va_list ap;
37753                     vsnprintf(buf, 10u, "%s", ap);
37754
37755   ;
37756   return 0;
37757 }
37758 _ACEOF
37759 rm -f conftest.$ac_objext
37760 if { (ac_try="$ac_compile"
37761 case "(($ac_try" in
37762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37763   *) ac_try_echo=$ac_try;;
37764 esac
37765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37766   (eval "$ac_compile") 2>conftest.er1
37767   ac_status=$?
37768   grep -v '^ *+' conftest.er1 >conftest.err
37769   rm -f conftest.er1
37770   cat conftest.err >&5
37771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772   (exit $ac_status); } && {
37773          test -z "$ac_c_werror_flag" ||
37774          test ! -s conftest.err
37775        } && test -s conftest.$ac_objext; then
37776   wx_cv_func_vsnprintf_decl=yes
37777 else
37778   echo "$as_me: failed program was:" >&5
37779 sed 's/^/| /' conftest.$ac_ext >&5
37780
37781         wx_cv_func_vsnprintf_decl=no
37782
37783 fi
37784
37785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37786
37787
37788 fi
37789 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37790 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37791
37792     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37793         cat >>confdefs.h <<\_ACEOF
37794 #define HAVE_VSNPRINTF_DECL 1
37795 _ACEOF
37796
37797
37798                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37799 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37800 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37801   echo $ECHO_N "(cached) $ECHO_C" >&6
37802 else
37803
37804                 cat >conftest.$ac_ext <<_ACEOF
37805 /* confdefs.h.  */
37806 _ACEOF
37807 cat confdefs.h >>conftest.$ac_ext
37808 cat >>conftest.$ac_ext <<_ACEOF
37809 /* end confdefs.h.  */
37810
37811                         #include <stdio.h>
37812                         #include <stdarg.h>
37813                         #ifdef __MSL__
37814                         #if __MSL__ >= 0x6000
37815                         namespace std {}
37816                         using namespace std;
37817                         #endif
37818                         #endif
37819
37820 int
37821 main ()
37822 {
37823
37824                         char *buf;
37825                         va_list ap;
37826                         const char *fmt = "%s";
37827                         vsnprintf(buf, 10u, fmt, ap);
37828
37829   ;
37830   return 0;
37831 }
37832 _ACEOF
37833 rm -f conftest.$ac_objext
37834 if { (ac_try="$ac_compile"
37835 case "(($ac_try" in
37836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37837   *) ac_try_echo=$ac_try;;
37838 esac
37839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37840   (eval "$ac_compile") 2>conftest.er1
37841   ac_status=$?
37842   grep -v '^ *+' conftest.er1 >conftest.err
37843   rm -f conftest.er1
37844   cat conftest.err >&5
37845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37846   (exit $ac_status); } && {
37847          test -z "$ac_c_werror_flag" ||
37848          test ! -s conftest.err
37849        } && test -s conftest.$ac_objext; then
37850   wx_cv_func_broken_vsnprintf_decl=no
37851 else
37852   echo "$as_me: failed program was:" >&5
37853 sed 's/^/| /' conftest.$ac_ext >&5
37854
37855         wx_cv_func_broken_vsnprintf_decl=yes
37856
37857 fi
37858
37859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37860
37861
37862 fi
37863 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37864 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37865
37866         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37867             cat >>confdefs.h <<\_ACEOF
37868 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37869 _ACEOF
37870
37871         fi
37872     fi
37873 fi
37874
37875 if test "$ac_cv_func_snprintf" = "yes"; then
37876     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37877 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37878 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37879   echo $ECHO_N "(cached) $ECHO_C" >&6
37880 else
37881
37882             cat >conftest.$ac_ext <<_ACEOF
37883 /* confdefs.h.  */
37884 _ACEOF
37885 cat confdefs.h >>conftest.$ac_ext
37886 cat >>conftest.$ac_ext <<_ACEOF
37887 /* end confdefs.h.  */
37888
37889                     #include <stdio.h>
37890                     #include <stdarg.h>
37891                     #ifdef __MSL__
37892                     #if __MSL__ >= 0x6000
37893                     namespace std {}
37894                     using namespace std;
37895                     #endif
37896                     #endif
37897
37898 int
37899 main ()
37900 {
37901
37902                     char *buf;
37903                     snprintf(buf, 10u, "%s", "wx");
37904
37905   ;
37906   return 0;
37907 }
37908 _ACEOF
37909 rm -f conftest.$ac_objext
37910 if { (ac_try="$ac_compile"
37911 case "(($ac_try" in
37912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37913   *) ac_try_echo=$ac_try;;
37914 esac
37915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37916   (eval "$ac_compile") 2>conftest.er1
37917   ac_status=$?
37918   grep -v '^ *+' conftest.er1 >conftest.err
37919   rm -f conftest.er1
37920   cat conftest.err >&5
37921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922   (exit $ac_status); } && {
37923          test -z "$ac_c_werror_flag" ||
37924          test ! -s conftest.err
37925        } && test -s conftest.$ac_objext; then
37926   wx_cv_func_snprintf_decl=yes
37927 else
37928   echo "$as_me: failed program was:" >&5
37929 sed 's/^/| /' conftest.$ac_ext >&5
37930
37931         wx_cv_func_snprintf_decl=no
37932
37933 fi
37934
37935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37936
37937
37938 fi
37939 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37940 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37941
37942     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37943         cat >>confdefs.h <<\_ACEOF
37944 #define HAVE_SNPRINTF_DECL 1
37945 _ACEOF
37946
37947
37948                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
37949 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
37950 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
37951   echo $ECHO_N "(cached) $ECHO_C" >&6
37952 else
37953
37954                 cat >conftest.$ac_ext <<_ACEOF
37955 /* confdefs.h.  */
37956 _ACEOF
37957 cat confdefs.h >>conftest.$ac_ext
37958 cat >>conftest.$ac_ext <<_ACEOF
37959 /* end confdefs.h.  */
37960
37961                         #include <stdio.h>
37962                         #include <stdarg.h>
37963                         #ifdef __MSL__
37964                         #if __MSL__ >= 0x6000
37965                         namespace std {}
37966                         using namespace std;
37967                         #endif
37968                         #endif
37969
37970 int
37971 main ()
37972 {
37973
37974                         char *buf;
37975                         const char *fmt = "%s";
37976                         snprintf(buf, 10u, fmt, "wx");
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_c_werror_flag" ||
37997          test ! -s conftest.err
37998        } && test -s conftest.$ac_objext; then
37999   wx_cv_func_broken_snprintf_decl=no
38000 else
38001   echo "$as_me: failed program was:" >&5
38002 sed 's/^/| /' conftest.$ac_ext >&5
38003
38004         wx_cv_func_broken_snprintf_decl=yes
38005
38006 fi
38007
38008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38009
38010
38011 fi
38012 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
38013 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
38014
38015         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
38016             cat >>confdefs.h <<\_ACEOF
38017 #define HAVE_BROKEN_SNPRINTF_DECL 1
38018 _ACEOF
38019
38020         fi
38021     fi
38022
38023     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
38024
38025                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
38026 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
38027 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
38028   echo $ECHO_N "(cached) $ECHO_C" >&6
38029 else
38030
38031                 if test "$cross_compiling" = yes; then
38032
38033                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
38034 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
38035 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
38036 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
38037                         wx_cv_func_snprintf_pos_params=no
38038
38039
38040 else
38041   cat >conftest.$ac_ext <<_ACEOF
38042 /* confdefs.h.  */
38043 _ACEOF
38044 cat confdefs.h >>conftest.$ac_ext
38045 cat >>conftest.$ac_ext <<_ACEOF
38046 /* end confdefs.h.  */
38047
38048                         #include <stdio.h>
38049
38050                         int main (void)
38051                         {
38052                             char buffer[128];
38053                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
38054                             if (strcmp ("2 3 1", buffer) == 0)
38055                                 exit (0);
38056                             exit (1);
38057                         }
38058
38059 _ACEOF
38060 rm -f conftest$ac_exeext
38061 if { (ac_try="$ac_link"
38062 case "(($ac_try" in
38063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38064   *) ac_try_echo=$ac_try;;
38065 esac
38066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38067   (eval "$ac_link") 2>&5
38068   ac_status=$?
38069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38071   { (case "(($ac_try" in
38072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38073   *) ac_try_echo=$ac_try;;
38074 esac
38075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38076   (eval "$ac_try") 2>&5
38077   ac_status=$?
38078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079   (exit $ac_status); }; }; then
38080   wx_cv_func_snprintf_pos_params=no
38081 else
38082   echo "$as_me: program exited with status $ac_status" >&5
38083 echo "$as_me: failed program was:" >&5
38084 sed 's/^/| /' conftest.$ac_ext >&5
38085
38086 ( exit $ac_status )
38087 wx_cv_func_snprintf_pos_params=yes
38088 fi
38089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38090 fi
38091
38092
38093
38094
38095 fi
38096 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38097 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38098
38099         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38100             cat >>confdefs.h <<\_ACEOF
38101 #define HAVE_UNIX98_PRINTF 1
38102 _ACEOF
38103
38104         fi
38105     fi
38106 fi
38107
38108 if test "$wxUSE_UNICODE" = yes; then
38109
38110
38111 for ac_func in swprintf
38112 do
38113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38117   echo $ECHO_N "(cached) $ECHO_C" >&6
38118 else
38119   cat >conftest.$ac_ext <<_ACEOF
38120 /* confdefs.h.  */
38121 _ACEOF
38122 cat confdefs.h >>conftest.$ac_ext
38123 cat >>conftest.$ac_ext <<_ACEOF
38124 /* end confdefs.h.  */
38125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38127 #define $ac_func innocuous_$ac_func
38128
38129 /* System header to define __stub macros and hopefully few prototypes,
38130     which can conflict with char $ac_func (); below.
38131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38132     <limits.h> exists even on freestanding compilers.  */
38133
38134 #ifdef __STDC__
38135 # include <limits.h>
38136 #else
38137 # include <assert.h>
38138 #endif
38139
38140 #undef $ac_func
38141
38142 /* Override any GCC internal prototype to avoid an error.
38143    Use char because int might match the return type of a GCC
38144    builtin and then its argument prototype would still apply.  */
38145 #ifdef __cplusplus
38146 extern "C"
38147 #endif
38148 char $ac_func ();
38149 /* The GNU C library defines this for functions which it implements
38150     to always fail with ENOSYS.  Some functions are actually named
38151     something starting with __ and the normal name is an alias.  */
38152 #if defined __stub_$ac_func || defined __stub___$ac_func
38153 choke me
38154 #endif
38155
38156 int
38157 main ()
38158 {
38159 return $ac_func ();
38160   ;
38161   return 0;
38162 }
38163 _ACEOF
38164 rm -f conftest.$ac_objext conftest$ac_exeext
38165 if { (ac_try="$ac_link"
38166 case "(($ac_try" in
38167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38168   *) ac_try_echo=$ac_try;;
38169 esac
38170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38171   (eval "$ac_link") 2>conftest.er1
38172   ac_status=$?
38173   grep -v '^ *+' conftest.er1 >conftest.err
38174   rm -f conftest.er1
38175   cat conftest.err >&5
38176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177   (exit $ac_status); } && {
38178          test -z "$ac_c_werror_flag" ||
38179          test ! -s conftest.err
38180        } && test -s conftest$ac_exeext &&
38181        $as_test_x conftest$ac_exeext; then
38182   eval "$as_ac_var=yes"
38183 else
38184   echo "$as_me: failed program was:" >&5
38185 sed 's/^/| /' conftest.$ac_ext >&5
38186
38187         eval "$as_ac_var=no"
38188 fi
38189
38190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38191       conftest$ac_exeext conftest.$ac_ext
38192 fi
38193 ac_res=`eval echo '${'$as_ac_var'}'`
38194                { echo "$as_me:$LINENO: result: $ac_res" >&5
38195 echo "${ECHO_T}$ac_res" >&6; }
38196 if test `eval echo '${'$as_ac_var'}'` = yes; then
38197   cat >>confdefs.h <<_ACEOF
38198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38199 _ACEOF
38200
38201 fi
38202 done
38203
38204
38205     if test "$ac_cv_func_swprintf" = "yes"; then
38206         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
38207 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
38208 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
38209   echo $ECHO_N "(cached) $ECHO_C" >&6
38210 else
38211
38212                 cat >conftest.$ac_ext <<_ACEOF
38213 /* confdefs.h.  */
38214 _ACEOF
38215 cat confdefs.h >>conftest.$ac_ext
38216 cat >>conftest.$ac_ext <<_ACEOF
38217 /* end confdefs.h.  */
38218
38219                         #include <stdio.h>
38220                         #include <stdarg.h>
38221                         #include <wchar.h>
38222
38223 int
38224 main ()
38225 {
38226
38227                         wchar_t *buf;
38228                         const wchar_t *fmt = L"test";
38229                         swprintf(buf, 10u, fmt);
38230
38231   ;
38232   return 0;
38233 }
38234 _ACEOF
38235 rm -f conftest.$ac_objext
38236 if { (ac_try="$ac_compile"
38237 case "(($ac_try" in
38238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38239   *) ac_try_echo=$ac_try;;
38240 esac
38241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38242   (eval "$ac_compile") 2>conftest.er1
38243   ac_status=$?
38244   grep -v '^ *+' conftest.er1 >conftest.err
38245   rm -f conftest.er1
38246   cat conftest.err >&5
38247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248   (exit $ac_status); } && {
38249          test -z "$ac_c_werror_flag" ||
38250          test ! -s conftest.err
38251        } && test -s conftest.$ac_objext; then
38252   wx_cv_func_broken_swprintf_decl=no
38253 else
38254   echo "$as_me: failed program was:" >&5
38255 sed 's/^/| /' conftest.$ac_ext >&5
38256
38257         wx_cv_func_broken_swprintf_decl=yes
38258
38259 fi
38260
38261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38262
38263
38264 fi
38265 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
38266 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
38267
38268         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
38269             cat >>confdefs.h <<\_ACEOF
38270 #define HAVE_BROKEN_SWPRINTF_DECL 1
38271 _ACEOF
38272
38273         fi
38274     fi
38275
38276             wchar_headers="#include <stdio.h>
38277 #include <wchar.h>"
38278     case "${host}" in
38279         *-*-solaris2* )
38280             { echo "$as_me:$LINENO: checking for widec.h" >&5
38281 echo $ECHO_N "checking for widec.h... $ECHO_C" >&6; }
38282 if test "${ac_cv_header_widec_h+set}" = set; then
38283   echo $ECHO_N "(cached) $ECHO_C" >&6
38284 else
38285   cat >conftest.$ac_ext <<_ACEOF
38286 /* confdefs.h.  */
38287 _ACEOF
38288 cat confdefs.h >>conftest.$ac_ext
38289 cat >>conftest.$ac_ext <<_ACEOF
38290 /* end confdefs.h.  */
38291 $ac_includes_default
38292
38293 #include <widec.h>
38294 _ACEOF
38295 rm -f conftest.$ac_objext
38296 if { (ac_try="$ac_compile"
38297 case "(($ac_try" in
38298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38299   *) ac_try_echo=$ac_try;;
38300 esac
38301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38302   (eval "$ac_compile") 2>conftest.er1
38303   ac_status=$?
38304   grep -v '^ *+' conftest.er1 >conftest.err
38305   rm -f conftest.er1
38306   cat conftest.err >&5
38307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38308   (exit $ac_status); } && {
38309          test -z "$ac_c_werror_flag" ||
38310          test ! -s conftest.err
38311        } && test -s conftest.$ac_objext; then
38312   ac_cv_header_widec_h=yes
38313 else
38314   echo "$as_me: failed program was:" >&5
38315 sed 's/^/| /' conftest.$ac_ext >&5
38316
38317         ac_cv_header_widec_h=no
38318 fi
38319
38320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38321 fi
38322 { echo "$as_me:$LINENO: result: $ac_cv_header_widec_h" >&5
38323 echo "${ECHO_T}$ac_cv_header_widec_h" >&6; }
38324
38325
38326             if test "$ac_cv_header_widec_h" = "yes"; then
38327                 wchar_headers="$wchar_headers
38328 #include <widec.h>"
38329             fi
38330     esac
38331
38332
38333   for wx_func in wputc wputchar putws fputws wprintf vswprintf
38334   do
38335     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38336 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38337 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38338   echo $ECHO_N "(cached) $ECHO_C" >&6
38339 else
38340
38341         cat >conftest.$ac_ext <<_ACEOF
38342
38343             /* confdefs.h.  */
38344 _ACEOF
38345 cat confdefs.h >>conftest.$ac_ext
38346 cat >>conftest.$ac_ext <<_ACEOF
38347 /* end confdefs.h.  */
38348
38349                 $wchar_headers
38350                 $ac_includes_default
38351
38352 int
38353 main ()
38354 {
38355
38356                 #ifndef $wx_func
38357                   &$wx_func;
38358                 #endif
38359
38360
38361   ;
38362   return 0;
38363 }
38364
38365 _ACEOF
38366 rm -f conftest.$ac_objext conftest$ac_exeext
38367 if { (ac_try="$ac_link"
38368 case "(($ac_try" in
38369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38370   *) ac_try_echo=$ac_try;;
38371 esac
38372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38373   (eval "$ac_link") 2>conftest.er1
38374   ac_status=$?
38375   grep -v '^ *+' conftest.er1 >conftest.err
38376   rm -f conftest.er1
38377   cat conftest.err >&5
38378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379   (exit $ac_status); } && {
38380          test -z "$ac_c_werror_flag" ||
38381          test ! -s conftest.err
38382        } && test -s conftest$ac_exeext &&
38383        $as_test_x conftest$ac_exeext; then
38384   eval wx_cv_func_$wx_func=yes
38385 else
38386   echo "$as_me: failed program was:" >&5
38387 sed 's/^/| /' conftest.$ac_ext >&5
38388
38389         eval wx_cv_func_$wx_func=no
38390 fi
38391
38392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38393       conftest$ac_exeext conftest.$ac_ext
38394
38395 fi
38396 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38397                { echo "$as_me:$LINENO: result: $ac_res" >&5
38398 echo "${ECHO_T}$ac_res" >&6; }
38399
38400     if eval test \$wx_cv_func_$wx_func = yes
38401     then
38402       cat >>confdefs.h <<_ACEOF
38403 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38404 _ACEOF
38405
38406
38407     else
38408       :
38409
38410     fi
38411   done
38412
38413
38414                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38415 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38416     cat >conftest.$ac_ext <<_ACEOF
38417 /* confdefs.h.  */
38418 _ACEOF
38419 cat confdefs.h >>conftest.$ac_ext
38420 cat >>conftest.$ac_ext <<_ACEOF
38421 /* end confdefs.h.  */
38422 #include <wchar.h>
38423 int
38424 main ()
38425 {
38426 &_vsnwprintf;
38427   ;
38428   return 0;
38429 }
38430 _ACEOF
38431 rm -f conftest.$ac_objext
38432 if { (ac_try="$ac_compile"
38433 case "(($ac_try" in
38434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38435   *) ac_try_echo=$ac_try;;
38436 esac
38437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38438   (eval "$ac_compile") 2>conftest.er1
38439   ac_status=$?
38440   grep -v '^ *+' conftest.er1 >conftest.err
38441   rm -f conftest.er1
38442   cat conftest.err >&5
38443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444   (exit $ac_status); } && {
38445          test -z "$ac_c_werror_flag" ||
38446          test ! -s conftest.err
38447        } && test -s conftest.$ac_objext; then
38448   { echo "$as_me:$LINENO: result: yes" >&5
38449 echo "${ECHO_T}yes" >&6; }
38450                     cat >>confdefs.h <<\_ACEOF
38451 #define HAVE__VSNWPRINTF 1
38452 _ACEOF
38453
38454 else
38455   echo "$as_me: failed program was:" >&5
38456 sed 's/^/| /' conftest.$ac_ext >&5
38457
38458         { echo "$as_me:$LINENO: result: no" >&5
38459 echo "${ECHO_T}no" >&6; }
38460 fi
38461
38462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
38463 fi
38464
38465 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
38466
38467   for wx_func in fnmatch
38468   do
38469     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38470 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38471 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38472   echo $ECHO_N "(cached) $ECHO_C" >&6
38473 else
38474
38475         cat >conftest.$ac_ext <<_ACEOF
38476
38477             /* confdefs.h.  */
38478 _ACEOF
38479 cat confdefs.h >>conftest.$ac_ext
38480 cat >>conftest.$ac_ext <<_ACEOF
38481 /* end confdefs.h.  */
38482
38483                 #include <fnmatch.h>
38484                 $ac_includes_default
38485
38486 int
38487 main ()
38488 {
38489
38490                 #ifndef $wx_func
38491                   &$wx_func;
38492                 #endif
38493
38494
38495   ;
38496   return 0;
38497 }
38498
38499 _ACEOF
38500 rm -f conftest.$ac_objext conftest$ac_exeext
38501 if { (ac_try="$ac_link"
38502 case "(($ac_try" in
38503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38504   *) ac_try_echo=$ac_try;;
38505 esac
38506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38507   (eval "$ac_link") 2>conftest.er1
38508   ac_status=$?
38509   grep -v '^ *+' conftest.er1 >conftest.err
38510   rm -f conftest.er1
38511   cat conftest.err >&5
38512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513   (exit $ac_status); } && {
38514          test -z "$ac_c_werror_flag" ||
38515          test ! -s conftest.err
38516        } && test -s conftest$ac_exeext &&
38517        $as_test_x conftest$ac_exeext; then
38518   eval wx_cv_func_$wx_func=yes
38519 else
38520   echo "$as_me: failed program was:" >&5
38521 sed 's/^/| /' conftest.$ac_ext >&5
38522
38523         eval wx_cv_func_$wx_func=no
38524 fi
38525
38526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38527       conftest$ac_exeext conftest.$ac_ext
38528
38529 fi
38530 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38531                { echo "$as_me:$LINENO: result: $ac_res" >&5
38532 echo "${ECHO_T}$ac_res" >&6; }
38533
38534     if eval test \$wx_cv_func_$wx_func = yes
38535     then
38536       cat >>confdefs.h <<_ACEOF
38537 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38538 _ACEOF
38539
38540
38541     else
38542       :
38543
38544     fi
38545   done
38546
38547 fi
38548
38549 if test "$wxUSE_FILE" = "yes"; then
38550
38551   for wx_func in fsync
38552   do
38553     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38554 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38555 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38556   echo $ECHO_N "(cached) $ECHO_C" >&6
38557 else
38558
38559         cat >conftest.$ac_ext <<_ACEOF
38560
38561             /* confdefs.h.  */
38562 _ACEOF
38563 cat confdefs.h >>conftest.$ac_ext
38564 cat >>conftest.$ac_ext <<_ACEOF
38565 /* end confdefs.h.  */
38566
38567
38568                 $ac_includes_default
38569
38570 int
38571 main ()
38572 {
38573
38574                 #ifndef $wx_func
38575                   &$wx_func;
38576                 #endif
38577
38578
38579   ;
38580   return 0;
38581 }
38582
38583 _ACEOF
38584 rm -f conftest.$ac_objext conftest$ac_exeext
38585 if { (ac_try="$ac_link"
38586 case "(($ac_try" in
38587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588   *) ac_try_echo=$ac_try;;
38589 esac
38590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38591   (eval "$ac_link") 2>conftest.er1
38592   ac_status=$?
38593   grep -v '^ *+' conftest.er1 >conftest.err
38594   rm -f conftest.er1
38595   cat conftest.err >&5
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); } && {
38598          test -z "$ac_c_werror_flag" ||
38599          test ! -s conftest.err
38600        } && test -s conftest$ac_exeext &&
38601        $as_test_x conftest$ac_exeext; then
38602   eval wx_cv_func_$wx_func=yes
38603 else
38604   echo "$as_me: failed program was:" >&5
38605 sed 's/^/| /' conftest.$ac_ext >&5
38606
38607         eval wx_cv_func_$wx_func=no
38608 fi
38609
38610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38611       conftest$ac_exeext conftest.$ac_ext
38612
38613 fi
38614 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38615                { echo "$as_me:$LINENO: result: $ac_res" >&5
38616 echo "${ECHO_T}$ac_res" >&6; }
38617
38618     if eval test \$wx_cv_func_$wx_func = yes
38619     then
38620       cat >>confdefs.h <<_ACEOF
38621 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38622 _ACEOF
38623
38624
38625     else
38626       :
38627
38628     fi
38629   done
38630
38631 fi
38632
38633 ac_ext=cpp
38634 ac_cpp='$CXXCPP $CPPFLAGS'
38635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38638
38639
38640   for wx_func in round
38641   do
38642     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38643 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38644 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38645   echo $ECHO_N "(cached) $ECHO_C" >&6
38646 else
38647
38648         cat >conftest.$ac_ext <<_ACEOF
38649
38650             /* confdefs.h.  */
38651 _ACEOF
38652 cat confdefs.h >>conftest.$ac_ext
38653 cat >>conftest.$ac_ext <<_ACEOF
38654 /* end confdefs.h.  */
38655
38656                 #include <math.h>
38657                 $ac_includes_default
38658
38659 int
38660 main ()
38661 {
38662
38663                 #ifndef $wx_func
38664                   &$wx_func;
38665                 #endif
38666
38667
38668   ;
38669   return 0;
38670 }
38671
38672 _ACEOF
38673 rm -f conftest.$ac_objext conftest$ac_exeext
38674 if { (ac_try="$ac_link"
38675 case "(($ac_try" in
38676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38677   *) ac_try_echo=$ac_try;;
38678 esac
38679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38680   (eval "$ac_link") 2>conftest.er1
38681   ac_status=$?
38682   grep -v '^ *+' conftest.er1 >conftest.err
38683   rm -f conftest.er1
38684   cat conftest.err >&5
38685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38686   (exit $ac_status); } && {
38687          test -z "$ac_cxx_werror_flag" ||
38688          test ! -s conftest.err
38689        } && test -s conftest$ac_exeext &&
38690        $as_test_x conftest$ac_exeext; then
38691   eval wx_cv_func_$wx_func=yes
38692 else
38693   echo "$as_me: failed program was:" >&5
38694 sed 's/^/| /' conftest.$ac_ext >&5
38695
38696         eval wx_cv_func_$wx_func=no
38697 fi
38698
38699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38700       conftest$ac_exeext conftest.$ac_ext
38701
38702 fi
38703 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38704                { echo "$as_me:$LINENO: result: $ac_res" >&5
38705 echo "${ECHO_T}$ac_res" >&6; }
38706
38707     if eval test \$wx_cv_func_$wx_func = yes
38708     then
38709       cat >>confdefs.h <<_ACEOF
38710 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38711 _ACEOF
38712
38713
38714     else
38715       :
38716
38717     fi
38718   done
38719
38720 ac_ext=c
38721 ac_cpp='$CPP $CPPFLAGS'
38722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38725
38726
38727 if test "$TOOLKIT" != "MSW"; then
38728
38729
38730
38731
38732
38733 # Check whether --with-libiconv-prefix was given.
38734 if test "${with_libiconv_prefix+set}" = set; then
38735   withval=$with_libiconv_prefix;
38736     for dir in `echo "$withval" | tr : ' '`; do
38737       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
38738       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
38739     done
38740
38741 fi
38742
38743
38744   { echo "$as_me:$LINENO: checking for iconv" >&5
38745 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38746 if test "${am_cv_func_iconv+set}" = set; then
38747   echo $ECHO_N "(cached) $ECHO_C" >&6
38748 else
38749
38750     am_cv_func_iconv="no, consider installing GNU libiconv"
38751     am_cv_lib_iconv=no
38752     cat >conftest.$ac_ext <<_ACEOF
38753 /* confdefs.h.  */
38754 _ACEOF
38755 cat confdefs.h >>conftest.$ac_ext
38756 cat >>conftest.$ac_ext <<_ACEOF
38757 /* end confdefs.h.  */
38758 #include <stdlib.h>
38759 #include <iconv.h>
38760 int
38761 main ()
38762 {
38763 iconv_t cd = iconv_open("","");
38764        iconv(cd,NULL,NULL,NULL,NULL);
38765        iconv_close(cd);
38766   ;
38767   return 0;
38768 }
38769 _ACEOF
38770 rm -f conftest.$ac_objext conftest$ac_exeext
38771 if { (ac_try="$ac_link"
38772 case "(($ac_try" in
38773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38774   *) ac_try_echo=$ac_try;;
38775 esac
38776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38777   (eval "$ac_link") 2>conftest.er1
38778   ac_status=$?
38779   grep -v '^ *+' conftest.er1 >conftest.err
38780   rm -f conftest.er1
38781   cat conftest.err >&5
38782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38783   (exit $ac_status); } && {
38784          test -z "$ac_c_werror_flag" ||
38785          test ! -s conftest.err
38786        } && test -s conftest$ac_exeext &&
38787        $as_test_x conftest$ac_exeext; then
38788   am_cv_func_iconv=yes
38789 else
38790   echo "$as_me: failed program was:" >&5
38791 sed 's/^/| /' conftest.$ac_ext >&5
38792
38793
38794 fi
38795
38796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38797       conftest$ac_exeext conftest.$ac_ext
38798     if test "$am_cv_func_iconv" != yes; then
38799       am_save_LIBS="$LIBS"
38800       LIBS="$LIBS -liconv"
38801       cat >conftest.$ac_ext <<_ACEOF
38802 /* confdefs.h.  */
38803 _ACEOF
38804 cat confdefs.h >>conftest.$ac_ext
38805 cat >>conftest.$ac_ext <<_ACEOF
38806 /* end confdefs.h.  */
38807 #include <stdlib.h>
38808 #include <iconv.h>
38809 int
38810 main ()
38811 {
38812 iconv_t cd = iconv_open("","");
38813          iconv(cd,NULL,NULL,NULL,NULL);
38814          iconv_close(cd);
38815   ;
38816   return 0;
38817 }
38818 _ACEOF
38819 rm -f conftest.$ac_objext conftest$ac_exeext
38820 if { (ac_try="$ac_link"
38821 case "(($ac_try" in
38822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38823   *) ac_try_echo=$ac_try;;
38824 esac
38825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38826   (eval "$ac_link") 2>conftest.er1
38827   ac_status=$?
38828   grep -v '^ *+' conftest.er1 >conftest.err
38829   rm -f conftest.er1
38830   cat conftest.err >&5
38831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832   (exit $ac_status); } && {
38833          test -z "$ac_c_werror_flag" ||
38834          test ! -s conftest.err
38835        } && test -s conftest$ac_exeext &&
38836        $as_test_x conftest$ac_exeext; then
38837   am_cv_lib_iconv=yes
38838         am_cv_func_iconv=yes
38839 else
38840   echo "$as_me: failed program was:" >&5
38841 sed 's/^/| /' conftest.$ac_ext >&5
38842
38843
38844 fi
38845
38846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38847       conftest$ac_exeext conftest.$ac_ext
38848       LIBS="$am_save_LIBS"
38849     fi
38850
38851 fi
38852 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38853 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38854   if test "$am_cv_func_iconv" = yes; then
38855
38856 cat >>confdefs.h <<\_ACEOF
38857 #define HAVE_ICONV 1
38858 _ACEOF
38859
38860     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38861 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38862 if test "${wx_cv_func_iconv_const+set}" = set; then
38863   echo $ECHO_N "(cached) $ECHO_C" >&6
38864 else
38865   cat >conftest.$ac_ext <<_ACEOF
38866 /* confdefs.h.  */
38867 _ACEOF
38868 cat confdefs.h >>conftest.$ac_ext
38869 cat >>conftest.$ac_ext <<_ACEOF
38870 /* end confdefs.h.  */
38871
38872 #include <stdlib.h>
38873 #include <iconv.h>
38874 extern
38875 #ifdef __cplusplus
38876 "C"
38877 #endif
38878 #if defined(__STDC__) || defined(__cplusplus)
38879 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38880 #else
38881 size_t iconv();
38882 #endif
38883
38884 int
38885 main ()
38886 {
38887
38888   ;
38889   return 0;
38890 }
38891 _ACEOF
38892 rm -f conftest.$ac_objext
38893 if { (ac_try="$ac_compile"
38894 case "(($ac_try" in
38895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38896   *) ac_try_echo=$ac_try;;
38897 esac
38898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38899   (eval "$ac_compile") 2>conftest.er1
38900   ac_status=$?
38901   grep -v '^ *+' conftest.er1 >conftest.err
38902   rm -f conftest.er1
38903   cat conftest.err >&5
38904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38905   (exit $ac_status); } && {
38906          test -z "$ac_c_werror_flag" ||
38907          test ! -s conftest.err
38908        } && test -s conftest.$ac_objext; then
38909   wx_cv_func_iconv_const="no"
38910 else
38911   echo "$as_me: failed program was:" >&5
38912 sed 's/^/| /' conftest.$ac_ext >&5
38913
38914         wx_cv_func_iconv_const="yes"
38915
38916 fi
38917
38918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38919
38920 fi
38921 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
38922 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
38923
38924     iconv_const=
38925     if test "x$wx_cv_func_iconv_const" = "xyes"; then
38926         iconv_const="const"
38927     fi
38928
38929
38930 cat >>confdefs.h <<_ACEOF
38931 #define ICONV_CONST $iconv_const
38932 _ACEOF
38933
38934   fi
38935   LIBICONV=
38936   if test "$am_cv_lib_iconv" = yes; then
38937     LIBICONV="-liconv"
38938   fi
38939
38940
38941 LIBS="$LIBICONV $LIBS"
38942
38943 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38944
38945 for ac_func in sigaction
38946 do
38947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38951   echo $ECHO_N "(cached) $ECHO_C" >&6
38952 else
38953   cat >conftest.$ac_ext <<_ACEOF
38954 /* confdefs.h.  */
38955 _ACEOF
38956 cat confdefs.h >>conftest.$ac_ext
38957 cat >>conftest.$ac_ext <<_ACEOF
38958 /* end confdefs.h.  */
38959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38961 #define $ac_func innocuous_$ac_func
38962
38963 /* System header to define __stub macros and hopefully few prototypes,
38964     which can conflict with char $ac_func (); below.
38965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38966     <limits.h> exists even on freestanding compilers.  */
38967
38968 #ifdef __STDC__
38969 # include <limits.h>
38970 #else
38971 # include <assert.h>
38972 #endif
38973
38974 #undef $ac_func
38975
38976 /* Override any GCC internal prototype to avoid an error.
38977    Use char because int might match the return type of a GCC
38978    builtin and then its argument prototype would still apply.  */
38979 #ifdef __cplusplus
38980 extern "C"
38981 #endif
38982 char $ac_func ();
38983 /* The GNU C library defines this for functions which it implements
38984     to always fail with ENOSYS.  Some functions are actually named
38985     something starting with __ and the normal name is an alias.  */
38986 #if defined __stub_$ac_func || defined __stub___$ac_func
38987 choke me
38988 #endif
38989
38990 int
38991 main ()
38992 {
38993 return $ac_func ();
38994   ;
38995   return 0;
38996 }
38997 _ACEOF
38998 rm -f conftest.$ac_objext conftest$ac_exeext
38999 if { (ac_try="$ac_link"
39000 case "(($ac_try" in
39001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39002   *) ac_try_echo=$ac_try;;
39003 esac
39004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39005   (eval "$ac_link") 2>conftest.er1
39006   ac_status=$?
39007   grep -v '^ *+' conftest.er1 >conftest.err
39008   rm -f conftest.er1
39009   cat conftest.err >&5
39010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011   (exit $ac_status); } && {
39012          test -z "$ac_c_werror_flag" ||
39013          test ! -s conftest.err
39014        } && test -s conftest$ac_exeext &&
39015        $as_test_x conftest$ac_exeext; then
39016   eval "$as_ac_var=yes"
39017 else
39018   echo "$as_me: failed program was:" >&5
39019 sed 's/^/| /' conftest.$ac_ext >&5
39020
39021         eval "$as_ac_var=no"
39022 fi
39023
39024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39025       conftest$ac_exeext conftest.$ac_ext
39026 fi
39027 ac_res=`eval echo '${'$as_ac_var'}'`
39028                { echo "$as_me:$LINENO: result: $ac_res" >&5
39029 echo "${ECHO_T}$ac_res" >&6; }
39030 if test `eval echo '${'$as_ac_var'}'` = yes; then
39031   cat >>confdefs.h <<_ACEOF
39032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39033 _ACEOF
39034
39035 fi
39036 done
39037
39038
39039     if test "$ac_cv_func_sigaction" = "no"; then
39040         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
39041 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
39042         wxUSE_ON_FATAL_EXCEPTION=no
39043     fi
39044
39045     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39046       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
39047 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
39048 if test "${wx_cv_type_sa_handler+set}" = set; then
39049   echo $ECHO_N "(cached) $ECHO_C" >&6
39050 else
39051
39052                 ac_ext=cpp
39053 ac_cpp='$CXXCPP $CPPFLAGS'
39054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39057
39058         cat >conftest.$ac_ext <<_ACEOF
39059 /* confdefs.h.  */
39060 _ACEOF
39061 cat confdefs.h >>conftest.$ac_ext
39062 cat >>conftest.$ac_ext <<_ACEOF
39063 /* end confdefs.h.  */
39064 #include <signal.h>
39065 int
39066 main ()
39067 {
39068
39069                         extern void testSigHandler(int);
39070
39071                         struct sigaction sa;
39072                         sa.sa_handler = testSigHandler;
39073
39074   ;
39075   return 0;
39076 }
39077 _ACEOF
39078 rm -f conftest.$ac_objext
39079 if { (ac_try="$ac_compile"
39080 case "(($ac_try" in
39081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39082   *) ac_try_echo=$ac_try;;
39083 esac
39084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39085   (eval "$ac_compile") 2>conftest.er1
39086   ac_status=$?
39087   grep -v '^ *+' conftest.er1 >conftest.err
39088   rm -f conftest.er1
39089   cat conftest.err >&5
39090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091   (exit $ac_status); } && {
39092          test -z "$ac_cxx_werror_flag" ||
39093          test ! -s conftest.err
39094        } && test -s conftest.$ac_objext; then
39095
39096                         wx_cv_type_sa_handler=int
39097
39098 else
39099   echo "$as_me: failed program was:" >&5
39100 sed 's/^/| /' conftest.$ac_ext >&5
39101
39102
39103                         wx_cv_type_sa_handler=void
39104
39105 fi
39106
39107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39108         ac_ext=c
39109 ac_cpp='$CPP $CPPFLAGS'
39110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39113
39114
39115 fi
39116 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
39117 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
39118
39119       cat >>confdefs.h <<_ACEOF
39120 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
39121 _ACEOF
39122
39123     fi
39124 fi
39125
39126 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39127     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
39128 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
39129 if test "${wx_cv_func_backtrace+set}" = set; then
39130   echo $ECHO_N "(cached) $ECHO_C" >&6
39131 else
39132
39133             ac_ext=cpp
39134 ac_cpp='$CXXCPP $CPPFLAGS'
39135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39138
39139             cat >conftest.$ac_ext <<_ACEOF
39140 /* confdefs.h.  */
39141 _ACEOF
39142 cat confdefs.h >>conftest.$ac_ext
39143 cat >>conftest.$ac_ext <<_ACEOF
39144 /* end confdefs.h.  */
39145 #include <execinfo.h>
39146 int
39147 main ()
39148 {
39149
39150                     void *trace[1];
39151                     char **messages;
39152
39153                     backtrace(trace, 1);
39154                     messages = backtrace_symbols(trace, 1);
39155
39156   ;
39157   return 0;
39158 }
39159 _ACEOF
39160 rm -f conftest.$ac_objext
39161 if { (ac_try="$ac_compile"
39162 case "(($ac_try" in
39163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39164   *) ac_try_echo=$ac_try;;
39165 esac
39166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39167   (eval "$ac_compile") 2>conftest.er1
39168   ac_status=$?
39169   grep -v '^ *+' conftest.er1 >conftest.err
39170   rm -f conftest.er1
39171   cat conftest.err >&5
39172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173   (exit $ac_status); } && {
39174          test -z "$ac_cxx_werror_flag" ||
39175          test ! -s conftest.err
39176        } && test -s conftest.$ac_objext; then
39177   wx_cv_func_backtrace=yes
39178 else
39179   echo "$as_me: failed program was:" >&5
39180 sed 's/^/| /' conftest.$ac_ext >&5
39181
39182         wx_cv_func_backtrace=no
39183
39184 fi
39185
39186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39187             ac_ext=c
39188 ac_cpp='$CPP $CPPFLAGS'
39189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39192
39193
39194
39195 fi
39196 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
39197 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
39198
39199
39200     if test "$wx_cv_func_backtrace" = "no"; then
39201         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39202 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39203         wxUSE_STACKWALKER=no
39204     else
39205         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39206 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
39207 if test "${wx_cv_func_cxa_demangle+set}" = set; then
39208   echo $ECHO_N "(cached) $ECHO_C" >&6
39209 else
39210
39211                 ac_ext=cpp
39212 ac_cpp='$CXXCPP $CPPFLAGS'
39213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39216
39217                 cat >conftest.$ac_ext <<_ACEOF
39218 /* confdefs.h.  */
39219 _ACEOF
39220 cat confdefs.h >>conftest.$ac_ext
39221 cat >>conftest.$ac_ext <<_ACEOF
39222 /* end confdefs.h.  */
39223 #include <cxxabi.h>
39224 int
39225 main ()
39226 {
39227
39228                         int rc;
39229                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39230
39231   ;
39232   return 0;
39233 }
39234 _ACEOF
39235 rm -f conftest.$ac_objext conftest$ac_exeext
39236 if { (ac_try="$ac_link"
39237 case "(($ac_try" in
39238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39239   *) ac_try_echo=$ac_try;;
39240 esac
39241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39242   (eval "$ac_link") 2>conftest.er1
39243   ac_status=$?
39244   grep -v '^ *+' conftest.er1 >conftest.err
39245   rm -f conftest.er1
39246   cat conftest.err >&5
39247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39248   (exit $ac_status); } && {
39249          test -z "$ac_cxx_werror_flag" ||
39250          test ! -s conftest.err
39251        } && test -s conftest$ac_exeext &&
39252        $as_test_x conftest$ac_exeext; then
39253   wx_cv_func_cxa_demangle=yes
39254 else
39255   echo "$as_me: failed program was:" >&5
39256 sed 's/^/| /' conftest.$ac_ext >&5
39257
39258         wx_cv_func_cxa_demangle=no
39259
39260 fi
39261
39262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39263       conftest$ac_exeext conftest.$ac_ext
39264                 ac_ext=c
39265 ac_cpp='$CPP $CPPFLAGS'
39266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39269
39270
39271
39272 fi
39273 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39274 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39275
39276         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39277             cat >>confdefs.h <<\_ACEOF
39278 #define HAVE_CXA_DEMANGLE 1
39279 _ACEOF
39280
39281         fi
39282     fi
39283 fi
39284
39285 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39286     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39287 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39288     wxUSE_STACKWALKER=no
39289 fi
39290
39291
39292
39293
39294 for ac_func in mkstemp mktemp
39295 do
39296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39300   echo $ECHO_N "(cached) $ECHO_C" >&6
39301 else
39302   cat >conftest.$ac_ext <<_ACEOF
39303 /* confdefs.h.  */
39304 _ACEOF
39305 cat confdefs.h >>conftest.$ac_ext
39306 cat >>conftest.$ac_ext <<_ACEOF
39307 /* end confdefs.h.  */
39308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39310 #define $ac_func innocuous_$ac_func
39311
39312 /* System header to define __stub macros and hopefully few prototypes,
39313     which can conflict with char $ac_func (); below.
39314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39315     <limits.h> exists even on freestanding compilers.  */
39316
39317 #ifdef __STDC__
39318 # include <limits.h>
39319 #else
39320 # include <assert.h>
39321 #endif
39322
39323 #undef $ac_func
39324
39325 /* Override any GCC internal prototype to avoid an error.
39326    Use char because int might match the return type of a GCC
39327    builtin and then its argument prototype would still apply.  */
39328 #ifdef __cplusplus
39329 extern "C"
39330 #endif
39331 char $ac_func ();
39332 /* The GNU C library defines this for functions which it implements
39333     to always fail with ENOSYS.  Some functions are actually named
39334     something starting with __ and the normal name is an alias.  */
39335 #if defined __stub_$ac_func || defined __stub___$ac_func
39336 choke me
39337 #endif
39338
39339 int
39340 main ()
39341 {
39342 return $ac_func ();
39343   ;
39344   return 0;
39345 }
39346 _ACEOF
39347 rm -f conftest.$ac_objext conftest$ac_exeext
39348 if { (ac_try="$ac_link"
39349 case "(($ac_try" in
39350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39351   *) ac_try_echo=$ac_try;;
39352 esac
39353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39354   (eval "$ac_link") 2>conftest.er1
39355   ac_status=$?
39356   grep -v '^ *+' conftest.er1 >conftest.err
39357   rm -f conftest.er1
39358   cat conftest.err >&5
39359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360   (exit $ac_status); } && {
39361          test -z "$ac_c_werror_flag" ||
39362          test ! -s conftest.err
39363        } && test -s conftest$ac_exeext &&
39364        $as_test_x conftest$ac_exeext; then
39365   eval "$as_ac_var=yes"
39366 else
39367   echo "$as_me: failed program was:" >&5
39368 sed 's/^/| /' conftest.$ac_ext >&5
39369
39370         eval "$as_ac_var=no"
39371 fi
39372
39373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39374       conftest$ac_exeext conftest.$ac_ext
39375 fi
39376 ac_res=`eval echo '${'$as_ac_var'}'`
39377                { echo "$as_me:$LINENO: result: $ac_res" >&5
39378 echo "${ECHO_T}$ac_res" >&6; }
39379 if test `eval echo '${'$as_ac_var'}'` = yes; then
39380   cat >>confdefs.h <<_ACEOF
39381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39382 _ACEOF
39383  break
39384 fi
39385 done
39386
39387
39388 { echo "$as_me:$LINENO: checking for statfs" >&5
39389 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39390 if test "${wx_cv_func_statfs+set}" = set; then
39391   echo $ECHO_N "(cached) $ECHO_C" >&6
39392 else
39393   cat >conftest.$ac_ext <<_ACEOF
39394 /* confdefs.h.  */
39395 _ACEOF
39396 cat confdefs.h >>conftest.$ac_ext
39397 cat >>conftest.$ac_ext <<_ACEOF
39398 /* end confdefs.h.  */
39399
39400              #if defined(__BSD__)
39401              #include <sys/param.h>
39402              #include <sys/mount.h>
39403              #else
39404              #include <sys/vfs.h>
39405              #endif
39406
39407 int
39408 main ()
39409 {
39410
39411              long l;
39412              struct statfs fs;
39413              statfs("/", &fs);
39414              l = fs.f_bsize;
39415              l += fs.f_blocks;
39416              l += fs.f_bavail;
39417
39418   ;
39419   return 0;
39420 }
39421 _ACEOF
39422 rm -f conftest.$ac_objext
39423 if { (ac_try="$ac_compile"
39424 case "(($ac_try" in
39425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39426   *) ac_try_echo=$ac_try;;
39427 esac
39428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39429   (eval "$ac_compile") 2>conftest.er1
39430   ac_status=$?
39431   grep -v '^ *+' conftest.er1 >conftest.err
39432   rm -f conftest.er1
39433   cat conftest.err >&5
39434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39435   (exit $ac_status); } && {
39436          test -z "$ac_c_werror_flag" ||
39437          test ! -s conftest.err
39438        } && test -s conftest.$ac_objext; then
39439   wx_cv_func_statfs=yes
39440 else
39441   echo "$as_me: failed program was:" >&5
39442 sed 's/^/| /' conftest.$ac_ext >&5
39443
39444         wx_cv_func_statfs=no
39445
39446 fi
39447
39448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39449
39450 fi
39451 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39452 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
39453
39454 if test "$wx_cv_func_statfs" = "yes"; then
39455         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39456 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
39457 if test "${wx_cv_func_statfs_decl+set}" = set; then
39458   echo $ECHO_N "(cached) $ECHO_C" >&6
39459 else
39460   ac_ext=cpp
39461 ac_cpp='$CXXCPP $CPPFLAGS'
39462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39465
39466         cat >conftest.$ac_ext <<_ACEOF
39467 /* confdefs.h.  */
39468 _ACEOF
39469 cat confdefs.h >>conftest.$ac_ext
39470 cat >>conftest.$ac_ext <<_ACEOF
39471 /* end confdefs.h.  */
39472
39473                  #if defined(__BSD__)
39474                  #include <sys/param.h>
39475                  #include <sys/mount.h>
39476                  #else
39477                  #include <sys/vfs.h>
39478                  #endif
39479
39480 int
39481 main ()
39482 {
39483
39484                 struct statfs fs;
39485                 statfs("", &fs);
39486
39487   ;
39488   return 0;
39489 }
39490 _ACEOF
39491 rm -f conftest.$ac_objext
39492 if { (ac_try="$ac_compile"
39493 case "(($ac_try" in
39494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39495   *) ac_try_echo=$ac_try;;
39496 esac
39497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39498   (eval "$ac_compile") 2>conftest.er1
39499   ac_status=$?
39500   grep -v '^ *+' conftest.er1 >conftest.err
39501   rm -f conftest.er1
39502   cat conftest.err >&5
39503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504   (exit $ac_status); } && {
39505          test -z "$ac_cxx_werror_flag" ||
39506          test ! -s conftest.err
39507        } && test -s conftest.$ac_objext; then
39508   wx_cv_func_statfs_decl=yes
39509 else
39510   echo "$as_me: failed program was:" >&5
39511 sed 's/^/| /' conftest.$ac_ext >&5
39512
39513         wx_cv_func_statfs_decl=no
39514
39515 fi
39516
39517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39518         ac_ext=c
39519 ac_cpp='$CPP $CPPFLAGS'
39520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39523
39524
39525 fi
39526 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
39527 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
39528
39529     if test "$wx_cv_func_statfs_decl" = "yes"; then
39530         cat >>confdefs.h <<\_ACEOF
39531 #define HAVE_STATFS_DECL 1
39532 _ACEOF
39533
39534     fi
39535
39536     wx_cv_type_statvfs_t="struct statfs"
39537     cat >>confdefs.h <<\_ACEOF
39538 #define HAVE_STATFS 1
39539 _ACEOF
39540
39541 else
39542     { echo "$as_me:$LINENO: checking for statvfs" >&5
39543 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
39544 if test "${wx_cv_func_statvfs+set}" = set; then
39545   echo $ECHO_N "(cached) $ECHO_C" >&6
39546 else
39547   cat >conftest.$ac_ext <<_ACEOF
39548 /* confdefs.h.  */
39549 _ACEOF
39550 cat confdefs.h >>conftest.$ac_ext
39551 cat >>conftest.$ac_ext <<_ACEOF
39552 /* end confdefs.h.  */
39553
39554                 #include <stddef.h>
39555                 #include <sys/statvfs.h>
39556
39557 int
39558 main ()
39559 {
39560
39561                 statvfs("/", NULL);
39562
39563   ;
39564   return 0;
39565 }
39566 _ACEOF
39567 rm -f conftest.$ac_objext
39568 if { (ac_try="$ac_compile"
39569 case "(($ac_try" in
39570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39571   *) ac_try_echo=$ac_try;;
39572 esac
39573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39574   (eval "$ac_compile") 2>conftest.er1
39575   ac_status=$?
39576   grep -v '^ *+' conftest.er1 >conftest.err
39577   rm -f conftest.er1
39578   cat conftest.err >&5
39579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39580   (exit $ac_status); } && {
39581          test -z "$ac_c_werror_flag" ||
39582          test ! -s conftest.err
39583        } && test -s conftest.$ac_objext; then
39584   wx_cv_func_statvfs=yes
39585 else
39586   echo "$as_me: failed program was:" >&5
39587 sed 's/^/| /' conftest.$ac_ext >&5
39588
39589         wx_cv_func_statvfs=no
39590
39591 fi
39592
39593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39594
39595 fi
39596 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
39597 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
39598
39599     if test "$wx_cv_func_statvfs" = "yes"; then
39600                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
39601 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
39602 if test "${wx_cv_type_statvfs_t+set}" = set; then
39603   echo $ECHO_N "(cached) $ECHO_C" >&6
39604 else
39605   ac_ext=cpp
39606 ac_cpp='$CXXCPP $CPPFLAGS'
39607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39610
39611             cat >conftest.$ac_ext <<_ACEOF
39612 /* confdefs.h.  */
39613 _ACEOF
39614 cat confdefs.h >>conftest.$ac_ext
39615 cat >>conftest.$ac_ext <<_ACEOF
39616 /* end confdefs.h.  */
39617
39618                     #include <sys/statvfs.h>
39619
39620 int
39621 main ()
39622 {
39623
39624                     long l;
39625                     statvfs_t fs;
39626                     statvfs("/", &fs);
39627                     l = fs.f_bsize;
39628                     l += fs.f_blocks;
39629                     l += fs.f_bavail;
39630
39631   ;
39632   return 0;
39633 }
39634 _ACEOF
39635 rm -f conftest.$ac_objext
39636 if { (ac_try="$ac_compile"
39637 case "(($ac_try" in
39638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39639   *) ac_try_echo=$ac_try;;
39640 esac
39641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39642   (eval "$ac_compile") 2>conftest.er1
39643   ac_status=$?
39644   grep -v '^ *+' conftest.er1 >conftest.err
39645   rm -f conftest.er1
39646   cat conftest.err >&5
39647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39648   (exit $ac_status); } && {
39649          test -z "$ac_cxx_werror_flag" ||
39650          test ! -s conftest.err
39651        } && test -s conftest.$ac_objext; then
39652   wx_cv_type_statvfs_t=statvfs_t
39653 else
39654   echo "$as_me: failed program was:" >&5
39655 sed 's/^/| /' conftest.$ac_ext >&5
39656
39657
39658                     cat >conftest.$ac_ext <<_ACEOF
39659 /* confdefs.h.  */
39660 _ACEOF
39661 cat confdefs.h >>conftest.$ac_ext
39662 cat >>conftest.$ac_ext <<_ACEOF
39663 /* end confdefs.h.  */
39664
39665                             #include <sys/statvfs.h>
39666
39667 int
39668 main ()
39669 {
39670
39671                             long l;
39672                             struct statvfs fs;
39673                             statvfs("/", &fs);
39674                             l = fs.f_bsize;
39675                             l += fs.f_blocks;
39676                             l += fs.f_bavail;
39677
39678   ;
39679   return 0;
39680 }
39681 _ACEOF
39682 rm -f conftest.$ac_objext
39683 if { (ac_try="$ac_compile"
39684 case "(($ac_try" in
39685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39686   *) ac_try_echo=$ac_try;;
39687 esac
39688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39689   (eval "$ac_compile") 2>conftest.er1
39690   ac_status=$?
39691   grep -v '^ *+' conftest.er1 >conftest.err
39692   rm -f conftest.er1
39693   cat conftest.err >&5
39694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39695   (exit $ac_status); } && {
39696          test -z "$ac_cxx_werror_flag" ||
39697          test ! -s conftest.err
39698        } && test -s conftest.$ac_objext; then
39699   wx_cv_type_statvfs_t="struct statvfs"
39700 else
39701   echo "$as_me: failed program was:" >&5
39702 sed 's/^/| /' conftest.$ac_ext >&5
39703
39704         wx_cv_type_statvfs_t="unknown"
39705
39706 fi
39707
39708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39709
39710
39711 fi
39712
39713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39714             ac_ext=c
39715 ac_cpp='$CPP $CPPFLAGS'
39716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39719
39720
39721 fi
39722 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
39723 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
39724
39725         if test "$wx_cv_type_statvfs_t" != "unknown"; then
39726             cat >>confdefs.h <<\_ACEOF
39727 #define HAVE_STATVFS 1
39728 _ACEOF
39729
39730         fi
39731     else
39732                 wx_cv_type_statvfs_t="unknown"
39733     fi
39734 fi
39735
39736 if test "$wx_cv_type_statvfs_t" != "unknown"; then
39737     cat >>confdefs.h <<_ACEOF
39738 #define WX_STATFS_T $wx_cv_type_statvfs_t
39739 _ACEOF
39740
39741 else
39742     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
39743 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
39744 fi
39745
39746 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39747
39748
39749 for ac_func in fcntl flock
39750 do
39751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39755   echo $ECHO_N "(cached) $ECHO_C" >&6
39756 else
39757   cat >conftest.$ac_ext <<_ACEOF
39758 /* confdefs.h.  */
39759 _ACEOF
39760 cat confdefs.h >>conftest.$ac_ext
39761 cat >>conftest.$ac_ext <<_ACEOF
39762 /* end confdefs.h.  */
39763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39765 #define $ac_func innocuous_$ac_func
39766
39767 /* System header to define __stub macros and hopefully few prototypes,
39768     which can conflict with char $ac_func (); below.
39769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39770     <limits.h> exists even on freestanding compilers.  */
39771
39772 #ifdef __STDC__
39773 # include <limits.h>
39774 #else
39775 # include <assert.h>
39776 #endif
39777
39778 #undef $ac_func
39779
39780 /* Override any GCC internal prototype to avoid an error.
39781    Use char because int might match the return type of a GCC
39782    builtin and then its argument prototype would still apply.  */
39783 #ifdef __cplusplus
39784 extern "C"
39785 #endif
39786 char $ac_func ();
39787 /* The GNU C library defines this for functions which it implements
39788     to always fail with ENOSYS.  Some functions are actually named
39789     something starting with __ and the normal name is an alias.  */
39790 #if defined __stub_$ac_func || defined __stub___$ac_func
39791 choke me
39792 #endif
39793
39794 int
39795 main ()
39796 {
39797 return $ac_func ();
39798   ;
39799   return 0;
39800 }
39801 _ACEOF
39802 rm -f conftest.$ac_objext conftest$ac_exeext
39803 if { (ac_try="$ac_link"
39804 case "(($ac_try" in
39805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39806   *) ac_try_echo=$ac_try;;
39807 esac
39808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39809   (eval "$ac_link") 2>conftest.er1
39810   ac_status=$?
39811   grep -v '^ *+' conftest.er1 >conftest.err
39812   rm -f conftest.er1
39813   cat conftest.err >&5
39814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39815   (exit $ac_status); } && {
39816          test -z "$ac_c_werror_flag" ||
39817          test ! -s conftest.err
39818        } && test -s conftest$ac_exeext &&
39819        $as_test_x conftest$ac_exeext; then
39820   eval "$as_ac_var=yes"
39821 else
39822   echo "$as_me: failed program was:" >&5
39823 sed 's/^/| /' conftest.$ac_ext >&5
39824
39825         eval "$as_ac_var=no"
39826 fi
39827
39828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39829       conftest$ac_exeext conftest.$ac_ext
39830 fi
39831 ac_res=`eval echo '${'$as_ac_var'}'`
39832                { echo "$as_me:$LINENO: result: $ac_res" >&5
39833 echo "${ECHO_T}$ac_res" >&6; }
39834 if test `eval echo '${'$as_ac_var'}'` = yes; then
39835   cat >>confdefs.h <<_ACEOF
39836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39837 _ACEOF
39838  break
39839 fi
39840 done
39841
39842
39843     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39844         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39845 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39846         wxUSE_SNGLINST_CHECKER=no
39847     fi
39848 fi
39849
39850
39851 for ac_func in timegm
39852 do
39853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39857   echo $ECHO_N "(cached) $ECHO_C" >&6
39858 else
39859   cat >conftest.$ac_ext <<_ACEOF
39860 /* confdefs.h.  */
39861 _ACEOF
39862 cat confdefs.h >>conftest.$ac_ext
39863 cat >>conftest.$ac_ext <<_ACEOF
39864 /* end confdefs.h.  */
39865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39867 #define $ac_func innocuous_$ac_func
39868
39869 /* System header to define __stub macros and hopefully few prototypes,
39870     which can conflict with char $ac_func (); below.
39871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39872     <limits.h> exists even on freestanding compilers.  */
39873
39874 #ifdef __STDC__
39875 # include <limits.h>
39876 #else
39877 # include <assert.h>
39878 #endif
39879
39880 #undef $ac_func
39881
39882 /* Override any GCC internal prototype to avoid an error.
39883    Use char because int might match the return type of a GCC
39884    builtin and then its argument prototype would still apply.  */
39885 #ifdef __cplusplus
39886 extern "C"
39887 #endif
39888 char $ac_func ();
39889 /* The GNU C library defines this for functions which it implements
39890     to always fail with ENOSYS.  Some functions are actually named
39891     something starting with __ and the normal name is an alias.  */
39892 #if defined __stub_$ac_func || defined __stub___$ac_func
39893 choke me
39894 #endif
39895
39896 int
39897 main ()
39898 {
39899 return $ac_func ();
39900   ;
39901   return 0;
39902 }
39903 _ACEOF
39904 rm -f conftest.$ac_objext conftest$ac_exeext
39905 if { (ac_try="$ac_link"
39906 case "(($ac_try" in
39907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39908   *) ac_try_echo=$ac_try;;
39909 esac
39910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39911   (eval "$ac_link") 2>conftest.er1
39912   ac_status=$?
39913   grep -v '^ *+' conftest.er1 >conftest.err
39914   rm -f conftest.er1
39915   cat conftest.err >&5
39916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917   (exit $ac_status); } && {
39918          test -z "$ac_c_werror_flag" ||
39919          test ! -s conftest.err
39920        } && test -s conftest$ac_exeext &&
39921        $as_test_x conftest$ac_exeext; then
39922   eval "$as_ac_var=yes"
39923 else
39924   echo "$as_me: failed program was:" >&5
39925 sed 's/^/| /' conftest.$ac_ext >&5
39926
39927         eval "$as_ac_var=no"
39928 fi
39929
39930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39931       conftest$ac_exeext conftest.$ac_ext
39932 fi
39933 ac_res=`eval echo '${'$as_ac_var'}'`
39934                { echo "$as_me:$LINENO: result: $ac_res" >&5
39935 echo "${ECHO_T}$ac_res" >&6; }
39936 if test `eval echo '${'$as_ac_var'}'` = yes; then
39937   cat >>confdefs.h <<_ACEOF
39938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39939 _ACEOF
39940
39941 fi
39942 done
39943
39944
39945
39946
39947 for ac_func in putenv setenv
39948 do
39949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39953   echo $ECHO_N "(cached) $ECHO_C" >&6
39954 else
39955   cat >conftest.$ac_ext <<_ACEOF
39956 /* confdefs.h.  */
39957 _ACEOF
39958 cat confdefs.h >>conftest.$ac_ext
39959 cat >>conftest.$ac_ext <<_ACEOF
39960 /* end confdefs.h.  */
39961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39963 #define $ac_func innocuous_$ac_func
39964
39965 /* System header to define __stub macros and hopefully few prototypes,
39966     which can conflict with char $ac_func (); below.
39967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39968     <limits.h> exists even on freestanding compilers.  */
39969
39970 #ifdef __STDC__
39971 # include <limits.h>
39972 #else
39973 # include <assert.h>
39974 #endif
39975
39976 #undef $ac_func
39977
39978 /* Override any GCC internal prototype to avoid an error.
39979    Use char because int might match the return type of a GCC
39980    builtin and then its argument prototype would still apply.  */
39981 #ifdef __cplusplus
39982 extern "C"
39983 #endif
39984 char $ac_func ();
39985 /* The GNU C library defines this for functions which it implements
39986     to always fail with ENOSYS.  Some functions are actually named
39987     something starting with __ and the normal name is an alias.  */
39988 #if defined __stub_$ac_func || defined __stub___$ac_func
39989 choke me
39990 #endif
39991
39992 int
39993 main ()
39994 {
39995 return $ac_func ();
39996   ;
39997   return 0;
39998 }
39999 _ACEOF
40000 rm -f conftest.$ac_objext conftest$ac_exeext
40001 if { (ac_try="$ac_link"
40002 case "(($ac_try" in
40003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40004   *) ac_try_echo=$ac_try;;
40005 esac
40006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40007   (eval "$ac_link") 2>conftest.er1
40008   ac_status=$?
40009   grep -v '^ *+' conftest.er1 >conftest.err
40010   rm -f conftest.er1
40011   cat conftest.err >&5
40012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013   (exit $ac_status); } && {
40014          test -z "$ac_c_werror_flag" ||
40015          test ! -s conftest.err
40016        } && test -s conftest$ac_exeext &&
40017        $as_test_x conftest$ac_exeext; then
40018   eval "$as_ac_var=yes"
40019 else
40020   echo "$as_me: failed program was:" >&5
40021 sed 's/^/| /' conftest.$ac_ext >&5
40022
40023         eval "$as_ac_var=no"
40024 fi
40025
40026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40027       conftest$ac_exeext conftest.$ac_ext
40028 fi
40029 ac_res=`eval echo '${'$as_ac_var'}'`
40030                { echo "$as_me:$LINENO: result: $ac_res" >&5
40031 echo "${ECHO_T}$ac_res" >&6; }
40032 if test `eval echo '${'$as_ac_var'}'` = yes; then
40033   cat >>confdefs.h <<_ACEOF
40034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40035 _ACEOF
40036  break
40037 fi
40038 done
40039
40040
40041 HAVE_SOME_SLEEP_FUNC=0
40042 if test "$USE_BEOS" = 1; then
40043             cat >>confdefs.h <<\_ACEOF
40044 #define HAVE_SLEEP 1
40045 _ACEOF
40046
40047     HAVE_SOME_SLEEP_FUNC=1
40048 fi
40049
40050 if test "$USE_DARWIN" = 1; then
40051             cat >>confdefs.h <<\_ACEOF
40052 #define HAVE_USLEEP 1
40053 _ACEOF
40054
40055     HAVE_SOME_SLEEP_FUNC=1
40056 fi
40057
40058 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
40059         POSIX4_LINK=
40060
40061 for ac_func in nanosleep
40062 do
40063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40067   echo $ECHO_N "(cached) $ECHO_C" >&6
40068 else
40069   cat >conftest.$ac_ext <<_ACEOF
40070 /* confdefs.h.  */
40071 _ACEOF
40072 cat confdefs.h >>conftest.$ac_ext
40073 cat >>conftest.$ac_ext <<_ACEOF
40074 /* end confdefs.h.  */
40075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40077 #define $ac_func innocuous_$ac_func
40078
40079 /* System header to define __stub macros and hopefully few prototypes,
40080     which can conflict with char $ac_func (); below.
40081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40082     <limits.h> exists even on freestanding compilers.  */
40083
40084 #ifdef __STDC__
40085 # include <limits.h>
40086 #else
40087 # include <assert.h>
40088 #endif
40089
40090 #undef $ac_func
40091
40092 /* Override any GCC internal prototype to avoid an error.
40093    Use char because int might match the return type of a GCC
40094    builtin and then its argument prototype would still apply.  */
40095 #ifdef __cplusplus
40096 extern "C"
40097 #endif
40098 char $ac_func ();
40099 /* The GNU C library defines this for functions which it implements
40100     to always fail with ENOSYS.  Some functions are actually named
40101     something starting with __ and the normal name is an alias.  */
40102 #if defined __stub_$ac_func || defined __stub___$ac_func
40103 choke me
40104 #endif
40105
40106 int
40107 main ()
40108 {
40109 return $ac_func ();
40110   ;
40111   return 0;
40112 }
40113 _ACEOF
40114 rm -f conftest.$ac_objext conftest$ac_exeext
40115 if { (ac_try="$ac_link"
40116 case "(($ac_try" in
40117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40118   *) ac_try_echo=$ac_try;;
40119 esac
40120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40121   (eval "$ac_link") 2>conftest.er1
40122   ac_status=$?
40123   grep -v '^ *+' conftest.er1 >conftest.err
40124   rm -f conftest.er1
40125   cat conftest.err >&5
40126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40127   (exit $ac_status); } && {
40128          test -z "$ac_c_werror_flag" ||
40129          test ! -s conftest.err
40130        } && test -s conftest$ac_exeext &&
40131        $as_test_x conftest$ac_exeext; then
40132   eval "$as_ac_var=yes"
40133 else
40134   echo "$as_me: failed program was:" >&5
40135 sed 's/^/| /' conftest.$ac_ext >&5
40136
40137         eval "$as_ac_var=no"
40138 fi
40139
40140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40141       conftest$ac_exeext conftest.$ac_ext
40142 fi
40143 ac_res=`eval echo '${'$as_ac_var'}'`
40144                { echo "$as_me:$LINENO: result: $ac_res" >&5
40145 echo "${ECHO_T}$ac_res" >&6; }
40146 if test `eval echo '${'$as_ac_var'}'` = yes; then
40147   cat >>confdefs.h <<_ACEOF
40148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40149 _ACEOF
40150  cat >>confdefs.h <<\_ACEOF
40151 #define HAVE_NANOSLEEP 1
40152 _ACEOF
40153
40154 else
40155
40156             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
40157 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
40158 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
40159   echo $ECHO_N "(cached) $ECHO_C" >&6
40160 else
40161   ac_check_lib_save_LIBS=$LIBS
40162 LIBS="-lposix4  $LIBS"
40163 cat >conftest.$ac_ext <<_ACEOF
40164 /* confdefs.h.  */
40165 _ACEOF
40166 cat confdefs.h >>conftest.$ac_ext
40167 cat >>conftest.$ac_ext <<_ACEOF
40168 /* end confdefs.h.  */
40169
40170 /* Override any GCC internal prototype to avoid an error.
40171    Use char because int might match the return type of a GCC
40172    builtin and then its argument prototype would still apply.  */
40173 #ifdef __cplusplus
40174 extern "C"
40175 #endif
40176 char nanosleep ();
40177 int
40178 main ()
40179 {
40180 return nanosleep ();
40181   ;
40182   return 0;
40183 }
40184 _ACEOF
40185 rm -f conftest.$ac_objext conftest$ac_exeext
40186 if { (ac_try="$ac_link"
40187 case "(($ac_try" in
40188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40189   *) ac_try_echo=$ac_try;;
40190 esac
40191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40192   (eval "$ac_link") 2>conftest.er1
40193   ac_status=$?
40194   grep -v '^ *+' conftest.er1 >conftest.err
40195   rm -f conftest.er1
40196   cat conftest.err >&5
40197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198   (exit $ac_status); } && {
40199          test -z "$ac_c_werror_flag" ||
40200          test ! -s conftest.err
40201        } && test -s conftest$ac_exeext &&
40202        $as_test_x conftest$ac_exeext; then
40203   ac_cv_lib_posix4_nanosleep=yes
40204 else
40205   echo "$as_me: failed program was:" >&5
40206 sed 's/^/| /' conftest.$ac_ext >&5
40207
40208         ac_cv_lib_posix4_nanosleep=no
40209 fi
40210
40211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40212       conftest$ac_exeext conftest.$ac_ext
40213 LIBS=$ac_check_lib_save_LIBS
40214 fi
40215 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40216 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
40217 if test $ac_cv_lib_posix4_nanosleep = yes; then
40218
40219                     cat >>confdefs.h <<\_ACEOF
40220 #define HAVE_NANOSLEEP 1
40221 _ACEOF
40222
40223                     POSIX4_LINK=" -lposix4"
40224
40225 else
40226
40227
40228   for wx_func in usleep
40229   do
40230     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40231 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40232 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40233   echo $ECHO_N "(cached) $ECHO_C" >&6
40234 else
40235
40236         cat >conftest.$ac_ext <<_ACEOF
40237
40238             /* confdefs.h.  */
40239 _ACEOF
40240 cat confdefs.h >>conftest.$ac_ext
40241 cat >>conftest.$ac_ext <<_ACEOF
40242 /* end confdefs.h.  */
40243
40244
40245                 $ac_includes_default
40246
40247 int
40248 main ()
40249 {
40250
40251                 #ifndef $wx_func
40252                   &$wx_func;
40253                 #endif
40254
40255
40256   ;
40257   return 0;
40258 }
40259
40260 _ACEOF
40261 rm -f conftest.$ac_objext conftest$ac_exeext
40262 if { (ac_try="$ac_link"
40263 case "(($ac_try" in
40264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40265   *) ac_try_echo=$ac_try;;
40266 esac
40267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40268   (eval "$ac_link") 2>conftest.er1
40269   ac_status=$?
40270   grep -v '^ *+' conftest.er1 >conftest.err
40271   rm -f conftest.er1
40272   cat conftest.err >&5
40273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274   (exit $ac_status); } && {
40275          test -z "$ac_c_werror_flag" ||
40276          test ! -s conftest.err
40277        } && test -s conftest$ac_exeext &&
40278        $as_test_x conftest$ac_exeext; then
40279   eval wx_cv_func_$wx_func=yes
40280 else
40281   echo "$as_me: failed program was:" >&5
40282 sed 's/^/| /' conftest.$ac_ext >&5
40283
40284         eval wx_cv_func_$wx_func=no
40285 fi
40286
40287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40288       conftest$ac_exeext conftest.$ac_ext
40289
40290 fi
40291 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40292                { echo "$as_me:$LINENO: result: $ac_res" >&5
40293 echo "${ECHO_T}$ac_res" >&6; }
40294
40295     if eval test \$wx_cv_func_$wx_func = yes
40296     then
40297       cat >>confdefs.h <<_ACEOF
40298 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40299 _ACEOF
40300
40301
40302     else
40303       :
40304       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40305 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40306
40307     fi
40308   done
40309
40310
40311
40312 fi
40313
40314
40315
40316 fi
40317 done
40318
40319 fi
40320
40321
40322   for wx_func in uname
40323   do
40324     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40325 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40326 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40327   echo $ECHO_N "(cached) $ECHO_C" >&6
40328 else
40329
40330         cat >conftest.$ac_ext <<_ACEOF
40331
40332             /* confdefs.h.  */
40333 _ACEOF
40334 cat confdefs.h >>conftest.$ac_ext
40335 cat >>conftest.$ac_ext <<_ACEOF
40336 /* end confdefs.h.  */
40337
40338                 #include <sys/utsname.h>
40339                 $ac_includes_default
40340
40341 int
40342 main ()
40343 {
40344
40345                 #ifndef $wx_func
40346                   &$wx_func;
40347                 #endif
40348
40349
40350   ;
40351   return 0;
40352 }
40353
40354 _ACEOF
40355 rm -f conftest.$ac_objext conftest$ac_exeext
40356 if { (ac_try="$ac_link"
40357 case "(($ac_try" in
40358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40359   *) ac_try_echo=$ac_try;;
40360 esac
40361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40362   (eval "$ac_link") 2>conftest.er1
40363   ac_status=$?
40364   grep -v '^ *+' conftest.er1 >conftest.err
40365   rm -f conftest.er1
40366   cat conftest.err >&5
40367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368   (exit $ac_status); } && {
40369          test -z "$ac_c_werror_flag" ||
40370          test ! -s conftest.err
40371        } && test -s conftest$ac_exeext &&
40372        $as_test_x conftest$ac_exeext; then
40373   eval wx_cv_func_$wx_func=yes
40374 else
40375   echo "$as_me: failed program was:" >&5
40376 sed 's/^/| /' conftest.$ac_ext >&5
40377
40378         eval wx_cv_func_$wx_func=no
40379 fi
40380
40381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40382       conftest$ac_exeext conftest.$ac_ext
40383
40384 fi
40385 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40386                { echo "$as_me:$LINENO: result: $ac_res" >&5
40387 echo "${ECHO_T}$ac_res" >&6; }
40388
40389     if eval test \$wx_cv_func_$wx_func = yes
40390     then
40391       cat >>confdefs.h <<_ACEOF
40392 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40393 _ACEOF
40394
40395
40396     else
40397       :
40398
40399     fi
40400   done
40401
40402 if test "$wx_cv_func_uname" != yes; then
40403
40404   for wx_func in gethostname
40405   do
40406     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40407 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40408 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40409   echo $ECHO_N "(cached) $ECHO_C" >&6
40410 else
40411
40412         cat >conftest.$ac_ext <<_ACEOF
40413
40414             /* confdefs.h.  */
40415 _ACEOF
40416 cat confdefs.h >>conftest.$ac_ext
40417 cat >>conftest.$ac_ext <<_ACEOF
40418 /* end confdefs.h.  */
40419
40420
40421                 $ac_includes_default
40422
40423 int
40424 main ()
40425 {
40426
40427                 #ifndef $wx_func
40428                   &$wx_func;
40429                 #endif
40430
40431
40432   ;
40433   return 0;
40434 }
40435
40436 _ACEOF
40437 rm -f conftest.$ac_objext conftest$ac_exeext
40438 if { (ac_try="$ac_link"
40439 case "(($ac_try" in
40440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40441   *) ac_try_echo=$ac_try;;
40442 esac
40443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40444   (eval "$ac_link") 2>conftest.er1
40445   ac_status=$?
40446   grep -v '^ *+' conftest.er1 >conftest.err
40447   rm -f conftest.er1
40448   cat conftest.err >&5
40449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40450   (exit $ac_status); } && {
40451          test -z "$ac_c_werror_flag" ||
40452          test ! -s conftest.err
40453        } && test -s conftest$ac_exeext &&
40454        $as_test_x conftest$ac_exeext; then
40455   eval wx_cv_func_$wx_func=yes
40456 else
40457   echo "$as_me: failed program was:" >&5
40458 sed 's/^/| /' conftest.$ac_ext >&5
40459
40460         eval wx_cv_func_$wx_func=no
40461 fi
40462
40463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40464       conftest$ac_exeext conftest.$ac_ext
40465
40466 fi
40467 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40468                { echo "$as_me:$LINENO: result: $ac_res" >&5
40469 echo "${ECHO_T}$ac_res" >&6; }
40470
40471     if eval test \$wx_cv_func_$wx_func = yes
40472     then
40473       cat >>confdefs.h <<_ACEOF
40474 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40475 _ACEOF
40476
40477
40478     else
40479       :
40480
40481     fi
40482   done
40483
40484 fi
40485
40486
40487   for wx_func in strtok_r
40488   do
40489     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40490 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40491 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40492   echo $ECHO_N "(cached) $ECHO_C" >&6
40493 else
40494
40495         cat >conftest.$ac_ext <<_ACEOF
40496
40497             /* confdefs.h.  */
40498 _ACEOF
40499 cat confdefs.h >>conftest.$ac_ext
40500 cat >>conftest.$ac_ext <<_ACEOF
40501 /* end confdefs.h.  */
40502
40503                 #define _REENTRANT
40504                 $ac_includes_default
40505
40506 int
40507 main ()
40508 {
40509
40510                 #ifndef $wx_func
40511                   &$wx_func;
40512                 #endif
40513
40514
40515   ;
40516   return 0;
40517 }
40518
40519 _ACEOF
40520 rm -f conftest.$ac_objext conftest$ac_exeext
40521 if { (ac_try="$ac_link"
40522 case "(($ac_try" in
40523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40524   *) ac_try_echo=$ac_try;;
40525 esac
40526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40527   (eval "$ac_link") 2>conftest.er1
40528   ac_status=$?
40529   grep -v '^ *+' conftest.er1 >conftest.err
40530   rm -f conftest.er1
40531   cat conftest.err >&5
40532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533   (exit $ac_status); } && {
40534          test -z "$ac_c_werror_flag" ||
40535          test ! -s conftest.err
40536        } && test -s conftest$ac_exeext &&
40537        $as_test_x conftest$ac_exeext; then
40538   eval wx_cv_func_$wx_func=yes
40539 else
40540   echo "$as_me: failed program was:" >&5
40541 sed 's/^/| /' conftest.$ac_ext >&5
40542
40543         eval wx_cv_func_$wx_func=no
40544 fi
40545
40546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40547       conftest$ac_exeext conftest.$ac_ext
40548
40549 fi
40550 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40551                { echo "$as_me:$LINENO: result: $ac_res" >&5
40552 echo "${ECHO_T}$ac_res" >&6; }
40553
40554     if eval test \$wx_cv_func_$wx_func = yes
40555     then
40556       cat >>confdefs.h <<_ACEOF
40557 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40558 _ACEOF
40559
40560
40561     else
40562       :
40563
40564     fi
40565   done
40566
40567
40568 INET_LINK=
40569
40570 for ac_func in inet_addr
40571 do
40572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40576   echo $ECHO_N "(cached) $ECHO_C" >&6
40577 else
40578   cat >conftest.$ac_ext <<_ACEOF
40579 /* confdefs.h.  */
40580 _ACEOF
40581 cat confdefs.h >>conftest.$ac_ext
40582 cat >>conftest.$ac_ext <<_ACEOF
40583 /* end confdefs.h.  */
40584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40586 #define $ac_func innocuous_$ac_func
40587
40588 /* System header to define __stub macros and hopefully few prototypes,
40589     which can conflict with char $ac_func (); below.
40590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40591     <limits.h> exists even on freestanding compilers.  */
40592
40593 #ifdef __STDC__
40594 # include <limits.h>
40595 #else
40596 # include <assert.h>
40597 #endif
40598
40599 #undef $ac_func
40600
40601 /* Override any GCC internal prototype to avoid an error.
40602    Use char because int might match the return type of a GCC
40603    builtin and then its argument prototype would still apply.  */
40604 #ifdef __cplusplus
40605 extern "C"
40606 #endif
40607 char $ac_func ();
40608 /* The GNU C library defines this for functions which it implements
40609     to always fail with ENOSYS.  Some functions are actually named
40610     something starting with __ and the normal name is an alias.  */
40611 #if defined __stub_$ac_func || defined __stub___$ac_func
40612 choke me
40613 #endif
40614
40615 int
40616 main ()
40617 {
40618 return $ac_func ();
40619   ;
40620   return 0;
40621 }
40622 _ACEOF
40623 rm -f conftest.$ac_objext conftest$ac_exeext
40624 if { (ac_try="$ac_link"
40625 case "(($ac_try" in
40626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40627   *) ac_try_echo=$ac_try;;
40628 esac
40629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40630   (eval "$ac_link") 2>conftest.er1
40631   ac_status=$?
40632   grep -v '^ *+' conftest.er1 >conftest.err
40633   rm -f conftest.er1
40634   cat conftest.err >&5
40635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636   (exit $ac_status); } && {
40637          test -z "$ac_c_werror_flag" ||
40638          test ! -s conftest.err
40639        } && test -s conftest$ac_exeext &&
40640        $as_test_x conftest$ac_exeext; then
40641   eval "$as_ac_var=yes"
40642 else
40643   echo "$as_me: failed program was:" >&5
40644 sed 's/^/| /' conftest.$ac_ext >&5
40645
40646         eval "$as_ac_var=no"
40647 fi
40648
40649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40650       conftest$ac_exeext conftest.$ac_ext
40651 fi
40652 ac_res=`eval echo '${'$as_ac_var'}'`
40653                { echo "$as_me:$LINENO: result: $ac_res" >&5
40654 echo "${ECHO_T}$ac_res" >&6; }
40655 if test `eval echo '${'$as_ac_var'}'` = yes; then
40656   cat >>confdefs.h <<_ACEOF
40657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40658 _ACEOF
40659  cat >>confdefs.h <<\_ACEOF
40660 #define HAVE_INET_ADDR 1
40661 _ACEOF
40662
40663 else
40664
40665         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
40666 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
40667 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
40668   echo $ECHO_N "(cached) $ECHO_C" >&6
40669 else
40670   ac_check_lib_save_LIBS=$LIBS
40671 LIBS="-lnsl  $LIBS"
40672 cat >conftest.$ac_ext <<_ACEOF
40673 /* confdefs.h.  */
40674 _ACEOF
40675 cat confdefs.h >>conftest.$ac_ext
40676 cat >>conftest.$ac_ext <<_ACEOF
40677 /* end confdefs.h.  */
40678
40679 /* Override any GCC internal prototype to avoid an error.
40680    Use char because int might match the return type of a GCC
40681    builtin and then its argument prototype would still apply.  */
40682 #ifdef __cplusplus
40683 extern "C"
40684 #endif
40685 char inet_addr ();
40686 int
40687 main ()
40688 {
40689 return inet_addr ();
40690   ;
40691   return 0;
40692 }
40693 _ACEOF
40694 rm -f conftest.$ac_objext conftest$ac_exeext
40695 if { (ac_try="$ac_link"
40696 case "(($ac_try" in
40697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40698   *) ac_try_echo=$ac_try;;
40699 esac
40700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40701   (eval "$ac_link") 2>conftest.er1
40702   ac_status=$?
40703   grep -v '^ *+' conftest.er1 >conftest.err
40704   rm -f conftest.er1
40705   cat conftest.err >&5
40706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40707   (exit $ac_status); } && {
40708          test -z "$ac_c_werror_flag" ||
40709          test ! -s conftest.err
40710        } && test -s conftest$ac_exeext &&
40711        $as_test_x conftest$ac_exeext; then
40712   ac_cv_lib_nsl_inet_addr=yes
40713 else
40714   echo "$as_me: failed program was:" >&5
40715 sed 's/^/| /' conftest.$ac_ext >&5
40716
40717         ac_cv_lib_nsl_inet_addr=no
40718 fi
40719
40720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40721       conftest$ac_exeext conftest.$ac_ext
40722 LIBS=$ac_check_lib_save_LIBS
40723 fi
40724 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
40725 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
40726 if test $ac_cv_lib_nsl_inet_addr = yes; then
40727   INET_LINK="nsl"
40728 else
40729
40730                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
40731 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
40732 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
40733   echo $ECHO_N "(cached) $ECHO_C" >&6
40734 else
40735   ac_check_lib_save_LIBS=$LIBS
40736 LIBS="-lresolv  $LIBS"
40737 cat >conftest.$ac_ext <<_ACEOF
40738 /* confdefs.h.  */
40739 _ACEOF
40740 cat confdefs.h >>conftest.$ac_ext
40741 cat >>conftest.$ac_ext <<_ACEOF
40742 /* end confdefs.h.  */
40743
40744 /* Override any GCC internal prototype to avoid an error.
40745    Use char because int might match the return type of a GCC
40746    builtin and then its argument prototype would still apply.  */
40747 #ifdef __cplusplus
40748 extern "C"
40749 #endif
40750 char inet_addr ();
40751 int
40752 main ()
40753 {
40754 return inet_addr ();
40755   ;
40756   return 0;
40757 }
40758 _ACEOF
40759 rm -f conftest.$ac_objext conftest$ac_exeext
40760 if { (ac_try="$ac_link"
40761 case "(($ac_try" in
40762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40763   *) ac_try_echo=$ac_try;;
40764 esac
40765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40766   (eval "$ac_link") 2>conftest.er1
40767   ac_status=$?
40768   grep -v '^ *+' conftest.er1 >conftest.err
40769   rm -f conftest.er1
40770   cat conftest.err >&5
40771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40772   (exit $ac_status); } && {
40773          test -z "$ac_c_werror_flag" ||
40774          test ! -s conftest.err
40775        } && test -s conftest$ac_exeext &&
40776        $as_test_x conftest$ac_exeext; then
40777   ac_cv_lib_resolv_inet_addr=yes
40778 else
40779   echo "$as_me: failed program was:" >&5
40780 sed 's/^/| /' conftest.$ac_ext >&5
40781
40782         ac_cv_lib_resolv_inet_addr=no
40783 fi
40784
40785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40786       conftest$ac_exeext conftest.$ac_ext
40787 LIBS=$ac_check_lib_save_LIBS
40788 fi
40789 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
40790 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
40791 if test $ac_cv_lib_resolv_inet_addr = yes; then
40792   INET_LINK="resolv"
40793 else
40794
40795                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
40796 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
40797 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
40798   echo $ECHO_N "(cached) $ECHO_C" >&6
40799 else
40800   ac_check_lib_save_LIBS=$LIBS
40801 LIBS="-lsocket  $LIBS"
40802 cat >conftest.$ac_ext <<_ACEOF
40803 /* confdefs.h.  */
40804 _ACEOF
40805 cat confdefs.h >>conftest.$ac_ext
40806 cat >>conftest.$ac_ext <<_ACEOF
40807 /* end confdefs.h.  */
40808
40809 /* Override any GCC internal prototype to avoid an error.
40810    Use char because int might match the return type of a GCC
40811    builtin and then its argument prototype would still apply.  */
40812 #ifdef __cplusplus
40813 extern "C"
40814 #endif
40815 char inet_addr ();
40816 int
40817 main ()
40818 {
40819 return inet_addr ();
40820   ;
40821   return 0;
40822 }
40823 _ACEOF
40824 rm -f conftest.$ac_objext conftest$ac_exeext
40825 if { (ac_try="$ac_link"
40826 case "(($ac_try" in
40827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40828   *) ac_try_echo=$ac_try;;
40829 esac
40830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40831   (eval "$ac_link") 2>conftest.er1
40832   ac_status=$?
40833   grep -v '^ *+' conftest.er1 >conftest.err
40834   rm -f conftest.er1
40835   cat conftest.err >&5
40836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40837   (exit $ac_status); } && {
40838          test -z "$ac_c_werror_flag" ||
40839          test ! -s conftest.err
40840        } && test -s conftest$ac_exeext &&
40841        $as_test_x conftest$ac_exeext; then
40842   ac_cv_lib_socket_inet_addr=yes
40843 else
40844   echo "$as_me: failed program was:" >&5
40845 sed 's/^/| /' conftest.$ac_ext >&5
40846
40847         ac_cv_lib_socket_inet_addr=no
40848 fi
40849
40850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40851       conftest$ac_exeext conftest.$ac_ext
40852 LIBS=$ac_check_lib_save_LIBS
40853 fi
40854 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40855 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40856 if test $ac_cv_lib_socket_inet_addr = yes; then
40857   INET_LINK="socket"
40858
40859 fi
40860
40861
40862
40863 fi
40864
40865
40866
40867 fi
40868
40869
40870
40871 fi
40872 done
40873
40874
40875
40876 for ac_func in inet_aton
40877 do
40878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40882   echo $ECHO_N "(cached) $ECHO_C" >&6
40883 else
40884   cat >conftest.$ac_ext <<_ACEOF
40885 /* confdefs.h.  */
40886 _ACEOF
40887 cat confdefs.h >>conftest.$ac_ext
40888 cat >>conftest.$ac_ext <<_ACEOF
40889 /* end confdefs.h.  */
40890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40892 #define $ac_func innocuous_$ac_func
40893
40894 /* System header to define __stub macros and hopefully few prototypes,
40895     which can conflict with char $ac_func (); below.
40896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40897     <limits.h> exists even on freestanding compilers.  */
40898
40899 #ifdef __STDC__
40900 # include <limits.h>
40901 #else
40902 # include <assert.h>
40903 #endif
40904
40905 #undef $ac_func
40906
40907 /* Override any GCC internal prototype to avoid an error.
40908    Use char because int might match the return type of a GCC
40909    builtin and then its argument prototype would still apply.  */
40910 #ifdef __cplusplus
40911 extern "C"
40912 #endif
40913 char $ac_func ();
40914 /* The GNU C library defines this for functions which it implements
40915     to always fail with ENOSYS.  Some functions are actually named
40916     something starting with __ and the normal name is an alias.  */
40917 #if defined __stub_$ac_func || defined __stub___$ac_func
40918 choke me
40919 #endif
40920
40921 int
40922 main ()
40923 {
40924 return $ac_func ();
40925   ;
40926   return 0;
40927 }
40928 _ACEOF
40929 rm -f conftest.$ac_objext conftest$ac_exeext
40930 if { (ac_try="$ac_link"
40931 case "(($ac_try" in
40932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40933   *) ac_try_echo=$ac_try;;
40934 esac
40935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40936   (eval "$ac_link") 2>conftest.er1
40937   ac_status=$?
40938   grep -v '^ *+' conftest.er1 >conftest.err
40939   rm -f conftest.er1
40940   cat conftest.err >&5
40941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40942   (exit $ac_status); } && {
40943          test -z "$ac_c_werror_flag" ||
40944          test ! -s conftest.err
40945        } && test -s conftest$ac_exeext &&
40946        $as_test_x conftest$ac_exeext; then
40947   eval "$as_ac_var=yes"
40948 else
40949   echo "$as_me: failed program was:" >&5
40950 sed 's/^/| /' conftest.$ac_ext >&5
40951
40952         eval "$as_ac_var=no"
40953 fi
40954
40955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40956       conftest$ac_exeext conftest.$ac_ext
40957 fi
40958 ac_res=`eval echo '${'$as_ac_var'}'`
40959                { echo "$as_me:$LINENO: result: $ac_res" >&5
40960 echo "${ECHO_T}$ac_res" >&6; }
40961 if test `eval echo '${'$as_ac_var'}'` = yes; then
40962   cat >>confdefs.h <<_ACEOF
40963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40964 _ACEOF
40965  cat >>confdefs.h <<\_ACEOF
40966 #define HAVE_INET_ATON 1
40967 _ACEOF
40968
40969 else
40970
40971                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40972 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40973 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40974 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40975   echo $ECHO_N "(cached) $ECHO_C" >&6
40976 else
40977   ac_check_lib_save_LIBS=$LIBS
40978 LIBS="-l$INET_LINK  $LIBS"
40979 cat >conftest.$ac_ext <<_ACEOF
40980 /* confdefs.h.  */
40981 _ACEOF
40982 cat confdefs.h >>conftest.$ac_ext
40983 cat >>conftest.$ac_ext <<_ACEOF
40984 /* end confdefs.h.  */
40985
40986 /* Override any GCC internal prototype to avoid an error.
40987    Use char because int might match the return type of a GCC
40988    builtin and then its argument prototype would still apply.  */
40989 #ifdef __cplusplus
40990 extern "C"
40991 #endif
40992 char inet_aton ();
40993 int
40994 main ()
40995 {
40996 return inet_aton ();
40997   ;
40998   return 0;
40999 }
41000 _ACEOF
41001 rm -f conftest.$ac_objext conftest$ac_exeext
41002 if { (ac_try="$ac_link"
41003 case "(($ac_try" in
41004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41005   *) ac_try_echo=$ac_try;;
41006 esac
41007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41008   (eval "$ac_link") 2>conftest.er1
41009   ac_status=$?
41010   grep -v '^ *+' conftest.er1 >conftest.err
41011   rm -f conftest.er1
41012   cat conftest.err >&5
41013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014   (exit $ac_status); } && {
41015          test -z "$ac_c_werror_flag" ||
41016          test ! -s conftest.err
41017        } && test -s conftest$ac_exeext &&
41018        $as_test_x conftest$ac_exeext; then
41019   eval "$as_ac_Lib=yes"
41020 else
41021   echo "$as_me: failed program was:" >&5
41022 sed 's/^/| /' conftest.$ac_ext >&5
41023
41024         eval "$as_ac_Lib=no"
41025 fi
41026
41027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41028       conftest$ac_exeext conftest.$ac_ext
41029 LIBS=$ac_check_lib_save_LIBS
41030 fi
41031 ac_res=`eval echo '${'$as_ac_Lib'}'`
41032                { echo "$as_me:$LINENO: result: $ac_res" >&5
41033 echo "${ECHO_T}$ac_res" >&6; }
41034 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41035   cat >>confdefs.h <<\_ACEOF
41036 #define HAVE_INET_ATON 1
41037 _ACEOF
41038
41039 fi
41040
41041
41042 fi
41043 done
41044
41045
41046 if test "x$INET_LINK" != "x"; then
41047     cat >>confdefs.h <<\_ACEOF
41048 #define HAVE_INET_ADDR 1
41049 _ACEOF
41050
41051     INET_LINK=" -l$INET_LINK"
41052 fi
41053
41054
41055   for wx_func in fdopen
41056   do
41057     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41058 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41059 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41060   echo $ECHO_N "(cached) $ECHO_C" >&6
41061 else
41062
41063         cat >conftest.$ac_ext <<_ACEOF
41064
41065             /* confdefs.h.  */
41066 _ACEOF
41067 cat confdefs.h >>conftest.$ac_ext
41068 cat >>conftest.$ac_ext <<_ACEOF
41069 /* end confdefs.h.  */
41070
41071
41072                 $ac_includes_default
41073
41074 int
41075 main ()
41076 {
41077
41078                 #ifndef $wx_func
41079                   &$wx_func;
41080                 #endif
41081
41082
41083   ;
41084   return 0;
41085 }
41086
41087 _ACEOF
41088 rm -f conftest.$ac_objext conftest$ac_exeext
41089 if { (ac_try="$ac_link"
41090 case "(($ac_try" in
41091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41092   *) ac_try_echo=$ac_try;;
41093 esac
41094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41095   (eval "$ac_link") 2>conftest.er1
41096   ac_status=$?
41097   grep -v '^ *+' conftest.er1 >conftest.err
41098   rm -f conftest.er1
41099   cat conftest.err >&5
41100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41101   (exit $ac_status); } && {
41102          test -z "$ac_c_werror_flag" ||
41103          test ! -s conftest.err
41104        } && test -s conftest$ac_exeext &&
41105        $as_test_x conftest$ac_exeext; then
41106   eval wx_cv_func_$wx_func=yes
41107 else
41108   echo "$as_me: failed program was:" >&5
41109 sed 's/^/| /' conftest.$ac_ext >&5
41110
41111         eval wx_cv_func_$wx_func=no
41112 fi
41113
41114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41115       conftest$ac_exeext conftest.$ac_ext
41116
41117 fi
41118 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41119                { echo "$as_me:$LINENO: result: $ac_res" >&5
41120 echo "${ECHO_T}$ac_res" >&6; }
41121
41122     if eval test \$wx_cv_func_$wx_func = yes
41123     then
41124       cat >>confdefs.h <<_ACEOF
41125 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41126 _ACEOF
41127
41128
41129     else
41130       :
41131
41132     fi
41133   done
41134
41135
41136 fi
41137
41138
41139
41140 cat >confcache <<\_ACEOF
41141 # This file is a shell script that caches the results of configure
41142 # tests run on this system so they can be shared between configure
41143 # scripts and configure runs, see configure's option --config-cache.
41144 # It is not useful on other systems.  If it contains results you don't
41145 # want to keep, you may remove or edit it.
41146 #
41147 # config.status only pays attention to the cache file if you give it
41148 # the --recheck option to rerun configure.
41149 #
41150 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41151 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41152 # following values.
41153
41154 _ACEOF
41155
41156 # The following way of writing the cache mishandles newlines in values,
41157 # but we know of no workaround that is simple, portable, and efficient.
41158 # So, we kill variables containing newlines.
41159 # Ultrix sh set writes to stderr and can't be redirected directly,
41160 # and sets the high bit in the cache file unless we assign to the vars.
41161 (
41162   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41163     eval ac_val=\$$ac_var
41164     case $ac_val in #(
41165     *${as_nl}*)
41166       case $ac_var in #(
41167       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41168 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41169       esac
41170       case $ac_var in #(
41171       _ | IFS | as_nl) ;; #(
41172       *) $as_unset $ac_var ;;
41173       esac ;;
41174     esac
41175   done
41176
41177   (set) 2>&1 |
41178     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41179     *${as_nl}ac_space=\ *)
41180       # `set' does not quote correctly, so add quotes (double-quote
41181       # substitution turns \\\\ into \\, and sed turns \\ into \).
41182       sed -n \
41183         "s/'/'\\\\''/g;
41184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41185       ;; #(
41186     *)
41187       # `set' quotes correctly as required by POSIX, so do not add quotes.
41188       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41189       ;;
41190     esac |
41191     sort
41192 ) |
41193   sed '
41194      /^ac_cv_env_/b end
41195      t clear
41196      :clear
41197      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41198      t end
41199      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41200      :end' >>confcache
41201 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41202   if test -w "$cache_file"; then
41203     test "x$cache_file" != "x/dev/null" &&
41204       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41205 echo "$as_me: updating cache $cache_file" >&6;}
41206     cat confcache >$cache_file
41207   else
41208     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41209 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41210   fi
41211 fi
41212 rm -f confcache
41213
41214
41215 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41216
41217
41218     THREADS_LINK=
41219     THREADS_CFLAGS=
41220
41221     if test "$wxUSE_THREADS" = "yes" ; then
41222         if test "$USE_BEOS" = 1; then
41223             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41224 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41225             wxUSE_THREADS="no"
41226         fi
41227     fi
41228
41229     if test "$wxUSE_THREADS" = "yes" ; then
41230
41231
41232                                 THREAD_OPTS="-pthread"
41233         if test "x$SUNCXX" = xyes; then
41234             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41235         fi
41236
41237         case "${host}" in
41238           *-*-solaris2* | *-*-sunos4* )
41239                 if test "x$GCC" = "xyes"; then
41240                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41241                 fi
41242                 ;;
41243           *-*-freebsd*)
41244                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41245                 ;;
41246           *-*-darwin* | *-*-cygwin* )
41247                                                 THREAD_OPTS=""
41248                 ;;
41249           *-*-aix*)
41250                                 THREAD_OPTS="pthreads"
41251                 ;;
41252           *-hp-hpux* )
41253                 if test "x$GCC" = "xyes"; then
41254                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41255                         THREAD_OPTS=""
41256                 else
41257                                                             THREAD_OPTS="-mt"
41258                 fi
41259                 ;;
41260
41261           *-*-irix* )
41262                                                                 if test "x$GCC" = "xyes"; then
41263                     THREAD_OPTS=""
41264                 fi
41265                 ;;
41266
41267           *-*-*UnixWare*)
41268                                 if test "x$GCC" != "xyes"; then
41269                     THREAD_OPTS="-Ethread"
41270                 fi
41271                 ;;
41272         esac
41273
41274                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41275
41276                 THREADS_OK=no
41277         for flag in $THREAD_OPTS; do
41278             case $flag in
41279                 none)
41280                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41281 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41282                     ;;
41283
41284                 -*)
41285                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41286 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41287                     THREADS_CFLAGS="$flag"
41288                     ;;
41289
41290                 *)
41291                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41292 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41293                     THREADS_LINK="-l$flag"
41294                     ;;
41295               esac
41296
41297               save_LIBS="$LIBS"
41298               save_CFLAGS="$CFLAGS"
41299               LIBS="$THREADS_LINK $LIBS"
41300               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41301
41302               cat >conftest.$ac_ext <<_ACEOF
41303 /* confdefs.h.  */
41304 _ACEOF
41305 cat confdefs.h >>conftest.$ac_ext
41306 cat >>conftest.$ac_ext <<_ACEOF
41307 /* end confdefs.h.  */
41308 #include <pthread.h>
41309 int
41310 main ()
41311 {
41312 pthread_create(0,0,0,0);
41313   ;
41314   return 0;
41315 }
41316 _ACEOF
41317 rm -f conftest.$ac_objext conftest$ac_exeext
41318 if { (ac_try="$ac_link"
41319 case "(($ac_try" in
41320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41321   *) ac_try_echo=$ac_try;;
41322 esac
41323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41324   (eval "$ac_link") 2>conftest.er1
41325   ac_status=$?
41326   grep -v '^ *+' conftest.er1 >conftest.err
41327   rm -f conftest.er1
41328   cat conftest.err >&5
41329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41330   (exit $ac_status); } && {
41331          test -z "$ac_c_werror_flag" ||
41332          test ! -s conftest.err
41333        } && test -s conftest$ac_exeext &&
41334        $as_test_x conftest$ac_exeext; then
41335   THREADS_OK=yes
41336 else
41337   echo "$as_me: failed program was:" >&5
41338 sed 's/^/| /' conftest.$ac_ext >&5
41339
41340
41341 fi
41342
41343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41344       conftest$ac_exeext conftest.$ac_ext
41345
41346               LIBS="$save_LIBS"
41347               CFLAGS="$save_CFLAGS"
41348
41349               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41350 echo "${ECHO_T}$THREADS_OK" >&6; }
41351               if test "x$THREADS_OK" = "xyes"; then
41352                       break;
41353               fi
41354
41355               THREADS_LINK=""
41356               THREADS_CFLAGS=""
41357       done
41358
41359       if test "x$THREADS_OK" != "xyes"; then
41360           wxUSE_THREADS=no
41361           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41362 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41363       else
41364                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41365           LIBS="$THREADS_LINK $LIBS"
41366
41367           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41368 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41369           flag=no
41370           case "${host}" in
41371             *-aix*)
41372                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41373                 flag="-D_THREAD_SAFE"
41374                 ;;
41375             *-freebsd*)
41376                 flag="-D_THREAD_SAFE"
41377                 ;;
41378             *-hp-hpux* )
41379                 flag="-D_REENTRANT"
41380                 if test "x$GCC" != "xyes"; then
41381                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41382                 fi
41383                 ;;
41384             *solaris* | alpha*-osf*)
41385                 flag="-D_REENTRANT"
41386                 ;;
41387           esac
41388           { echo "$as_me:$LINENO: result: ${flag}" >&5
41389 echo "${ECHO_T}${flag}" >&6; }
41390           if test "x$flag" != xno; then
41391               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41392           fi
41393
41394                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41395       fi
41396     fi
41397
41398         if test "$wxUSE_THREADS" = "yes" ; then
41399
41400 for ac_func in thr_setconcurrency
41401 do
41402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41406   echo $ECHO_N "(cached) $ECHO_C" >&6
41407 else
41408   cat >conftest.$ac_ext <<_ACEOF
41409 /* confdefs.h.  */
41410 _ACEOF
41411 cat confdefs.h >>conftest.$ac_ext
41412 cat >>conftest.$ac_ext <<_ACEOF
41413 /* end confdefs.h.  */
41414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41416 #define $ac_func innocuous_$ac_func
41417
41418 /* System header to define __stub macros and hopefully few prototypes,
41419     which can conflict with char $ac_func (); below.
41420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41421     <limits.h> exists even on freestanding compilers.  */
41422
41423 #ifdef __STDC__
41424 # include <limits.h>
41425 #else
41426 # include <assert.h>
41427 #endif
41428
41429 #undef $ac_func
41430
41431 /* Override any GCC internal prototype to avoid an error.
41432    Use char because int might match the return type of a GCC
41433    builtin and then its argument prototype would still apply.  */
41434 #ifdef __cplusplus
41435 extern "C"
41436 #endif
41437 char $ac_func ();
41438 /* The GNU C library defines this for functions which it implements
41439     to always fail with ENOSYS.  Some functions are actually named
41440     something starting with __ and the normal name is an alias.  */
41441 #if defined __stub_$ac_func || defined __stub___$ac_func
41442 choke me
41443 #endif
41444
41445 int
41446 main ()
41447 {
41448 return $ac_func ();
41449   ;
41450   return 0;
41451 }
41452 _ACEOF
41453 rm -f conftest.$ac_objext conftest$ac_exeext
41454 if { (ac_try="$ac_link"
41455 case "(($ac_try" in
41456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41457   *) ac_try_echo=$ac_try;;
41458 esac
41459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41460   (eval "$ac_link") 2>conftest.er1
41461   ac_status=$?
41462   grep -v '^ *+' conftest.er1 >conftest.err
41463   rm -f conftest.er1
41464   cat conftest.err >&5
41465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41466   (exit $ac_status); } && {
41467          test -z "$ac_c_werror_flag" ||
41468          test ! -s conftest.err
41469        } && test -s conftest$ac_exeext &&
41470        $as_test_x conftest$ac_exeext; then
41471   eval "$as_ac_var=yes"
41472 else
41473   echo "$as_me: failed program was:" >&5
41474 sed 's/^/| /' conftest.$ac_ext >&5
41475
41476         eval "$as_ac_var=no"
41477 fi
41478
41479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41480       conftest$ac_exeext conftest.$ac_ext
41481 fi
41482 ac_res=`eval echo '${'$as_ac_var'}'`
41483                { echo "$as_me:$LINENO: result: $ac_res" >&5
41484 echo "${ECHO_T}$ac_res" >&6; }
41485 if test `eval echo '${'$as_ac_var'}'` = yes; then
41486   cat >>confdefs.h <<_ACEOF
41487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41488 _ACEOF
41489
41490 fi
41491 done
41492
41493
41494                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
41495 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
41496 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
41497   echo $ECHO_N "(cached) $ECHO_C" >&6
41498 else
41499
41500                                 ac_ext=cpp
41501 ac_cpp='$CXXCPP $CPPFLAGS'
41502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41505
41506         cat >conftest.$ac_ext <<_ACEOF
41507 /* confdefs.h.  */
41508 _ACEOF
41509 cat confdefs.h >>conftest.$ac_ext
41510 cat >>conftest.$ac_ext <<_ACEOF
41511 /* end confdefs.h.  */
41512 #include <pthread.h>
41513                void ThreadCleanupFunc(void *p);
41514
41515 int
41516 main ()
41517 {
41518
41519                 void *p;
41520                 pthread_cleanup_push(ThreadCleanupFunc, p);
41521                 pthread_cleanup_pop(0);
41522
41523   ;
41524   return 0;
41525 }
41526 _ACEOF
41527 rm -f conftest.$ac_objext
41528 if { (ac_try="$ac_compile"
41529 case "(($ac_try" in
41530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41531   *) ac_try_echo=$ac_try;;
41532 esac
41533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41534   (eval "$ac_compile") 2>conftest.er1
41535   ac_status=$?
41536   grep -v '^ *+' conftest.er1 >conftest.err
41537   rm -f conftest.er1
41538   cat conftest.err >&5
41539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41540   (exit $ac_status); } && {
41541          test -z "$ac_cxx_werror_flag" ||
41542          test ! -s conftest.err
41543        } && test -s conftest.$ac_objext; then
41544
41545                wx_cv_func_pthread_cleanup=yes
41546
41547 else
41548   echo "$as_me: failed program was:" >&5
41549 sed 's/^/| /' conftest.$ac_ext >&5
41550
41551
41552                wx_cv_func_pthread_cleanup=no
41553
41554
41555 fi
41556
41557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41558         ac_ext=c
41559 ac_cpp='$CPP $CPPFLAGS'
41560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41563
41564
41565 fi
41566 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41567 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41568       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41569         cat >>confdefs.h <<\_ACEOF
41570 #define wxHAVE_PTHREAD_CLEANUP 1
41571 _ACEOF
41572
41573       fi
41574
41575       { echo "$as_me:$LINENO: checking for sched.h" >&5
41576 echo $ECHO_N "checking for sched.h... $ECHO_C" >&6; }
41577 if test "${ac_cv_header_sched_h+set}" = set; then
41578   echo $ECHO_N "(cached) $ECHO_C" >&6
41579 else
41580   cat >conftest.$ac_ext <<_ACEOF
41581 /* confdefs.h.  */
41582 _ACEOF
41583 cat confdefs.h >>conftest.$ac_ext
41584 cat >>conftest.$ac_ext <<_ACEOF
41585 /* end confdefs.h.  */
41586 $ac_includes_default
41587
41588 #include <sched.h>
41589 _ACEOF
41590 rm -f conftest.$ac_objext
41591 if { (ac_try="$ac_compile"
41592 case "(($ac_try" in
41593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41594   *) ac_try_echo=$ac_try;;
41595 esac
41596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41597   (eval "$ac_compile") 2>conftest.er1
41598   ac_status=$?
41599   grep -v '^ *+' conftest.er1 >conftest.err
41600   rm -f conftest.er1
41601   cat conftest.err >&5
41602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41603   (exit $ac_status); } && {
41604          test -z "$ac_c_werror_flag" ||
41605          test ! -s conftest.err
41606        } && test -s conftest.$ac_objext; then
41607   ac_cv_header_sched_h=yes
41608 else
41609   echo "$as_me: failed program was:" >&5
41610 sed 's/^/| /' conftest.$ac_ext >&5
41611
41612         ac_cv_header_sched_h=no
41613 fi
41614
41615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41616 fi
41617 { echo "$as_me:$LINENO: result: $ac_cv_header_sched_h" >&5
41618 echo "${ECHO_T}$ac_cv_header_sched_h" >&6; }
41619
41620
41621       if test "$ac_cv_header_sched_h" = "yes"; then
41622           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41623 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41624 if test "${ac_cv_func_sched_yield+set}" = set; then
41625   echo $ECHO_N "(cached) $ECHO_C" >&6
41626 else
41627   cat >conftest.$ac_ext <<_ACEOF
41628 /* confdefs.h.  */
41629 _ACEOF
41630 cat confdefs.h >>conftest.$ac_ext
41631 cat >>conftest.$ac_ext <<_ACEOF
41632 /* end confdefs.h.  */
41633 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41635 #define sched_yield innocuous_sched_yield
41636
41637 /* System header to define __stub macros and hopefully few prototypes,
41638     which can conflict with char sched_yield (); below.
41639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41640     <limits.h> exists even on freestanding compilers.  */
41641
41642 #ifdef __STDC__
41643 # include <limits.h>
41644 #else
41645 # include <assert.h>
41646 #endif
41647
41648 #undef sched_yield
41649
41650 /* Override any GCC internal prototype to avoid an error.
41651    Use char because int might match the return type of a GCC
41652    builtin and then its argument prototype would still apply.  */
41653 #ifdef __cplusplus
41654 extern "C"
41655 #endif
41656 char sched_yield ();
41657 /* The GNU C library defines this for functions which it implements
41658     to always fail with ENOSYS.  Some functions are actually named
41659     something starting with __ and the normal name is an alias.  */
41660 #if defined __stub_sched_yield || defined __stub___sched_yield
41661 choke me
41662 #endif
41663
41664 int
41665 main ()
41666 {
41667 return sched_yield ();
41668   ;
41669   return 0;
41670 }
41671 _ACEOF
41672 rm -f conftest.$ac_objext conftest$ac_exeext
41673 if { (ac_try="$ac_link"
41674 case "(($ac_try" in
41675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41676   *) ac_try_echo=$ac_try;;
41677 esac
41678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41679   (eval "$ac_link") 2>conftest.er1
41680   ac_status=$?
41681   grep -v '^ *+' conftest.er1 >conftest.err
41682   rm -f conftest.er1
41683   cat conftest.err >&5
41684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685   (exit $ac_status); } && {
41686          test -z "$ac_c_werror_flag" ||
41687          test ! -s conftest.err
41688        } && test -s conftest$ac_exeext &&
41689        $as_test_x conftest$ac_exeext; then
41690   ac_cv_func_sched_yield=yes
41691 else
41692   echo "$as_me: failed program was:" >&5
41693 sed 's/^/| /' conftest.$ac_ext >&5
41694
41695         ac_cv_func_sched_yield=no
41696 fi
41697
41698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41699       conftest$ac_exeext conftest.$ac_ext
41700 fi
41701 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41702 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41703 if test $ac_cv_func_sched_yield = yes; then
41704   cat >>confdefs.h <<\_ACEOF
41705 #define HAVE_SCHED_YIELD 1
41706 _ACEOF
41707
41708 else
41709
41710                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41711 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41712 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41713   echo $ECHO_N "(cached) $ECHO_C" >&6
41714 else
41715   ac_check_lib_save_LIBS=$LIBS
41716 LIBS="-lposix4  $LIBS"
41717 cat >conftest.$ac_ext <<_ACEOF
41718 /* confdefs.h.  */
41719 _ACEOF
41720 cat confdefs.h >>conftest.$ac_ext
41721 cat >>conftest.$ac_ext <<_ACEOF
41722 /* end confdefs.h.  */
41723
41724 /* Override any GCC internal prototype to avoid an error.
41725    Use char because int might match the return type of a GCC
41726    builtin and then its argument prototype would still apply.  */
41727 #ifdef __cplusplus
41728 extern "C"
41729 #endif
41730 char sched_yield ();
41731 int
41732 main ()
41733 {
41734 return sched_yield ();
41735   ;
41736   return 0;
41737 }
41738 _ACEOF
41739 rm -f conftest.$ac_objext conftest$ac_exeext
41740 if { (ac_try="$ac_link"
41741 case "(($ac_try" in
41742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41743   *) ac_try_echo=$ac_try;;
41744 esac
41745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41746   (eval "$ac_link") 2>conftest.er1
41747   ac_status=$?
41748   grep -v '^ *+' conftest.er1 >conftest.err
41749   rm -f conftest.er1
41750   cat conftest.err >&5
41751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41752   (exit $ac_status); } && {
41753          test -z "$ac_c_werror_flag" ||
41754          test ! -s conftest.err
41755        } && test -s conftest$ac_exeext &&
41756        $as_test_x conftest$ac_exeext; then
41757   ac_cv_lib_posix4_sched_yield=yes
41758 else
41759   echo "$as_me: failed program was:" >&5
41760 sed 's/^/| /' conftest.$ac_ext >&5
41761
41762         ac_cv_lib_posix4_sched_yield=no
41763 fi
41764
41765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41766       conftest$ac_exeext conftest.$ac_ext
41767 LIBS=$ac_check_lib_save_LIBS
41768 fi
41769 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41770 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41771 if test $ac_cv_lib_posix4_sched_yield = yes; then
41772   cat >>confdefs.h <<\_ACEOF
41773 #define HAVE_SCHED_YIELD 1
41774 _ACEOF
41775  POSIX4_LINK=" -lposix4"
41776 else
41777   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41778 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41779
41780 fi
41781
41782
41783
41784 fi
41785
41786       fi
41787
41788                                           HAVE_PRIOR_FUNCS=0
41789       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41790 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41791 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41792   echo $ECHO_N "(cached) $ECHO_C" >&6
41793 else
41794   cat >conftest.$ac_ext <<_ACEOF
41795 /* confdefs.h.  */
41796 _ACEOF
41797 cat confdefs.h >>conftest.$ac_ext
41798 cat >>conftest.$ac_ext <<_ACEOF
41799 /* end confdefs.h.  */
41800 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41802 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41803
41804 /* System header to define __stub macros and hopefully few prototypes,
41805     which can conflict with char pthread_attr_getschedpolicy (); below.
41806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41807     <limits.h> exists even on freestanding compilers.  */
41808
41809 #ifdef __STDC__
41810 # include <limits.h>
41811 #else
41812 # include <assert.h>
41813 #endif
41814
41815 #undef pthread_attr_getschedpolicy
41816
41817 /* Override any GCC internal prototype to avoid an error.
41818    Use char because int might match the return type of a GCC
41819    builtin and then its argument prototype would still apply.  */
41820 #ifdef __cplusplus
41821 extern "C"
41822 #endif
41823 char pthread_attr_getschedpolicy ();
41824 /* The GNU C library defines this for functions which it implements
41825     to always fail with ENOSYS.  Some functions are actually named
41826     something starting with __ and the normal name is an alias.  */
41827 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41828 choke me
41829 #endif
41830
41831 int
41832 main ()
41833 {
41834 return pthread_attr_getschedpolicy ();
41835   ;
41836   return 0;
41837 }
41838 _ACEOF
41839 rm -f conftest.$ac_objext conftest$ac_exeext
41840 if { (ac_try="$ac_link"
41841 case "(($ac_try" in
41842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41843   *) ac_try_echo=$ac_try;;
41844 esac
41845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41846   (eval "$ac_link") 2>conftest.er1
41847   ac_status=$?
41848   grep -v '^ *+' conftest.er1 >conftest.err
41849   rm -f conftest.er1
41850   cat conftest.err >&5
41851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852   (exit $ac_status); } && {
41853          test -z "$ac_c_werror_flag" ||
41854          test ! -s conftest.err
41855        } && test -s conftest$ac_exeext &&
41856        $as_test_x conftest$ac_exeext; then
41857   ac_cv_func_pthread_attr_getschedpolicy=yes
41858 else
41859   echo "$as_me: failed program was:" >&5
41860 sed 's/^/| /' conftest.$ac_ext >&5
41861
41862         ac_cv_func_pthread_attr_getschedpolicy=no
41863 fi
41864
41865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41866       conftest$ac_exeext conftest.$ac_ext
41867 fi
41868 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41869 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41870 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41871   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41872 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41873 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41874   echo $ECHO_N "(cached) $ECHO_C" >&6
41875 else
41876   cat >conftest.$ac_ext <<_ACEOF
41877 /* confdefs.h.  */
41878 _ACEOF
41879 cat confdefs.h >>conftest.$ac_ext
41880 cat >>conftest.$ac_ext <<_ACEOF
41881 /* end confdefs.h.  */
41882 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41884 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41885
41886 /* System header to define __stub macros and hopefully few prototypes,
41887     which can conflict with char pthread_attr_setschedparam (); below.
41888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41889     <limits.h> exists even on freestanding compilers.  */
41890
41891 #ifdef __STDC__
41892 # include <limits.h>
41893 #else
41894 # include <assert.h>
41895 #endif
41896
41897 #undef pthread_attr_setschedparam
41898
41899 /* Override any GCC internal prototype to avoid an error.
41900    Use char because int might match the return type of a GCC
41901    builtin and then its argument prototype would still apply.  */
41902 #ifdef __cplusplus
41903 extern "C"
41904 #endif
41905 char pthread_attr_setschedparam ();
41906 /* The GNU C library defines this for functions which it implements
41907     to always fail with ENOSYS.  Some functions are actually named
41908     something starting with __ and the normal name is an alias.  */
41909 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41910 choke me
41911 #endif
41912
41913 int
41914 main ()
41915 {
41916 return pthread_attr_setschedparam ();
41917   ;
41918   return 0;
41919 }
41920 _ACEOF
41921 rm -f conftest.$ac_objext conftest$ac_exeext
41922 if { (ac_try="$ac_link"
41923 case "(($ac_try" in
41924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41925   *) ac_try_echo=$ac_try;;
41926 esac
41927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41928   (eval "$ac_link") 2>conftest.er1
41929   ac_status=$?
41930   grep -v '^ *+' conftest.er1 >conftest.err
41931   rm -f conftest.er1
41932   cat conftest.err >&5
41933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41934   (exit $ac_status); } && {
41935          test -z "$ac_c_werror_flag" ||
41936          test ! -s conftest.err
41937        } && test -s conftest$ac_exeext &&
41938        $as_test_x conftest$ac_exeext; then
41939   ac_cv_func_pthread_attr_setschedparam=yes
41940 else
41941   echo "$as_me: failed program was:" >&5
41942 sed 's/^/| /' conftest.$ac_ext >&5
41943
41944         ac_cv_func_pthread_attr_setschedparam=no
41945 fi
41946
41947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41948       conftest$ac_exeext conftest.$ac_ext
41949 fi
41950 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41951 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41952 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41953   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41954 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41955 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41956   echo $ECHO_N "(cached) $ECHO_C" >&6
41957 else
41958   cat >conftest.$ac_ext <<_ACEOF
41959 /* confdefs.h.  */
41960 _ACEOF
41961 cat confdefs.h >>conftest.$ac_ext
41962 cat >>conftest.$ac_ext <<_ACEOF
41963 /* end confdefs.h.  */
41964 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41966 #define sched_get_priority_max innocuous_sched_get_priority_max
41967
41968 /* System header to define __stub macros and hopefully few prototypes,
41969     which can conflict with char sched_get_priority_max (); below.
41970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41971     <limits.h> exists even on freestanding compilers.  */
41972
41973 #ifdef __STDC__
41974 # include <limits.h>
41975 #else
41976 # include <assert.h>
41977 #endif
41978
41979 #undef sched_get_priority_max
41980
41981 /* Override any GCC internal prototype to avoid an error.
41982    Use char because int might match the return type of a GCC
41983    builtin and then its argument prototype would still apply.  */
41984 #ifdef __cplusplus
41985 extern "C"
41986 #endif
41987 char sched_get_priority_max ();
41988 /* The GNU C library defines this for functions which it implements
41989     to always fail with ENOSYS.  Some functions are actually named
41990     something starting with __ and the normal name is an alias.  */
41991 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41992 choke me
41993 #endif
41994
41995 int
41996 main ()
41997 {
41998 return sched_get_priority_max ();
41999   ;
42000   return 0;
42001 }
42002 _ACEOF
42003 rm -f conftest.$ac_objext conftest$ac_exeext
42004 if { (ac_try="$ac_link"
42005 case "(($ac_try" in
42006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42007   *) ac_try_echo=$ac_try;;
42008 esac
42009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42010   (eval "$ac_link") 2>conftest.er1
42011   ac_status=$?
42012   grep -v '^ *+' conftest.er1 >conftest.err
42013   rm -f conftest.er1
42014   cat conftest.err >&5
42015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016   (exit $ac_status); } && {
42017          test -z "$ac_c_werror_flag" ||
42018          test ! -s conftest.err
42019        } && test -s conftest$ac_exeext &&
42020        $as_test_x conftest$ac_exeext; then
42021   ac_cv_func_sched_get_priority_max=yes
42022 else
42023   echo "$as_me: failed program was:" >&5
42024 sed 's/^/| /' conftest.$ac_ext >&5
42025
42026         ac_cv_func_sched_get_priority_max=no
42027 fi
42028
42029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42030       conftest$ac_exeext conftest.$ac_ext
42031 fi
42032 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
42033 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
42034 if test $ac_cv_func_sched_get_priority_max = yes; then
42035   HAVE_PRIOR_FUNCS=1
42036 else
42037   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42038 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
42039 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42040   echo $ECHO_N "(cached) $ECHO_C" >&6
42041 else
42042   ac_check_lib_save_LIBS=$LIBS
42043 LIBS="-lposix4  $LIBS"
42044 cat >conftest.$ac_ext <<_ACEOF
42045 /* confdefs.h.  */
42046 _ACEOF
42047 cat confdefs.h >>conftest.$ac_ext
42048 cat >>conftest.$ac_ext <<_ACEOF
42049 /* end confdefs.h.  */
42050
42051 /* Override any GCC internal prototype to avoid an error.
42052    Use char because int might match the return type of a GCC
42053    builtin and then its argument prototype would still apply.  */
42054 #ifdef __cplusplus
42055 extern "C"
42056 #endif
42057 char sched_get_priority_max ();
42058 int
42059 main ()
42060 {
42061 return sched_get_priority_max ();
42062   ;
42063   return 0;
42064 }
42065 _ACEOF
42066 rm -f conftest.$ac_objext conftest$ac_exeext
42067 if { (ac_try="$ac_link"
42068 case "(($ac_try" in
42069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42070   *) ac_try_echo=$ac_try;;
42071 esac
42072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42073   (eval "$ac_link") 2>conftest.er1
42074   ac_status=$?
42075   grep -v '^ *+' conftest.er1 >conftest.err
42076   rm -f conftest.er1
42077   cat conftest.err >&5
42078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42079   (exit $ac_status); } && {
42080          test -z "$ac_c_werror_flag" ||
42081          test ! -s conftest.err
42082        } && test -s conftest$ac_exeext &&
42083        $as_test_x conftest$ac_exeext; then
42084   ac_cv_lib_posix4_sched_get_priority_max=yes
42085 else
42086   echo "$as_me: failed program was:" >&5
42087 sed 's/^/| /' conftest.$ac_ext >&5
42088
42089         ac_cv_lib_posix4_sched_get_priority_max=no
42090 fi
42091
42092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42093       conftest$ac_exeext conftest.$ac_ext
42094 LIBS=$ac_check_lib_save_LIBS
42095 fi
42096 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42097 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42098 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42099
42100                                 HAVE_PRIOR_FUNCS=1
42101                                 POSIX4_LINK=" -lposix4"
42102
42103 fi
42104
42105
42106 fi
42107
42108
42109 fi
42110
42111
42112 fi
42113
42114
42115       if test "$HAVE_PRIOR_FUNCS" = 1; then
42116         cat >>confdefs.h <<\_ACEOF
42117 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42118 _ACEOF
42119
42120       else
42121         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42122 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42123       fi
42124
42125       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42126 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42127 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42128   echo $ECHO_N "(cached) $ECHO_C" >&6
42129 else
42130   cat >conftest.$ac_ext <<_ACEOF
42131 /* confdefs.h.  */
42132 _ACEOF
42133 cat confdefs.h >>conftest.$ac_ext
42134 cat >>conftest.$ac_ext <<_ACEOF
42135 /* end confdefs.h.  */
42136 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42138 #define pthread_cancel innocuous_pthread_cancel
42139
42140 /* System header to define __stub macros and hopefully few prototypes,
42141     which can conflict with char pthread_cancel (); below.
42142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42143     <limits.h> exists even on freestanding compilers.  */
42144
42145 #ifdef __STDC__
42146 # include <limits.h>
42147 #else
42148 # include <assert.h>
42149 #endif
42150
42151 #undef pthread_cancel
42152
42153 /* Override any GCC internal prototype to avoid an error.
42154    Use char because int might match the return type of a GCC
42155    builtin and then its argument prototype would still apply.  */
42156 #ifdef __cplusplus
42157 extern "C"
42158 #endif
42159 char pthread_cancel ();
42160 /* The GNU C library defines this for functions which it implements
42161     to always fail with ENOSYS.  Some functions are actually named
42162     something starting with __ and the normal name is an alias.  */
42163 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42164 choke me
42165 #endif
42166
42167 int
42168 main ()
42169 {
42170 return pthread_cancel ();
42171   ;
42172   return 0;
42173 }
42174 _ACEOF
42175 rm -f conftest.$ac_objext conftest$ac_exeext
42176 if { (ac_try="$ac_link"
42177 case "(($ac_try" in
42178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42179   *) ac_try_echo=$ac_try;;
42180 esac
42181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42182   (eval "$ac_link") 2>conftest.er1
42183   ac_status=$?
42184   grep -v '^ *+' conftest.er1 >conftest.err
42185   rm -f conftest.er1
42186   cat conftest.err >&5
42187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42188   (exit $ac_status); } && {
42189          test -z "$ac_c_werror_flag" ||
42190          test ! -s conftest.err
42191        } && test -s conftest$ac_exeext &&
42192        $as_test_x conftest$ac_exeext; then
42193   ac_cv_func_pthread_cancel=yes
42194 else
42195   echo "$as_me: failed program was:" >&5
42196 sed 's/^/| /' conftest.$ac_ext >&5
42197
42198         ac_cv_func_pthread_cancel=no
42199 fi
42200
42201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42202       conftest$ac_exeext conftest.$ac_ext
42203 fi
42204 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42205 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42206 if test $ac_cv_func_pthread_cancel = yes; then
42207   cat >>confdefs.h <<\_ACEOF
42208 #define HAVE_PTHREAD_CANCEL 1
42209 _ACEOF
42210
42211 else
42212   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42213 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42214 fi
42215
42216
42217       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42218 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42219 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42220   echo $ECHO_N "(cached) $ECHO_C" >&6
42221 else
42222   cat >conftest.$ac_ext <<_ACEOF
42223 /* confdefs.h.  */
42224 _ACEOF
42225 cat confdefs.h >>conftest.$ac_ext
42226 cat >>conftest.$ac_ext <<_ACEOF
42227 /* end confdefs.h.  */
42228 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42230 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42231
42232 /* System header to define __stub macros and hopefully few prototypes,
42233     which can conflict with char pthread_mutex_timedlock (); below.
42234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42235     <limits.h> exists even on freestanding compilers.  */
42236
42237 #ifdef __STDC__
42238 # include <limits.h>
42239 #else
42240 # include <assert.h>
42241 #endif
42242
42243 #undef pthread_mutex_timedlock
42244
42245 /* Override any GCC internal prototype to avoid an error.
42246    Use char because int might match the return type of a GCC
42247    builtin and then its argument prototype would still apply.  */
42248 #ifdef __cplusplus
42249 extern "C"
42250 #endif
42251 char pthread_mutex_timedlock ();
42252 /* The GNU C library defines this for functions which it implements
42253     to always fail with ENOSYS.  Some functions are actually named
42254     something starting with __ and the normal name is an alias.  */
42255 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42256 choke me
42257 #endif
42258
42259 int
42260 main ()
42261 {
42262 return pthread_mutex_timedlock ();
42263   ;
42264   return 0;
42265 }
42266 _ACEOF
42267 rm -f conftest.$ac_objext conftest$ac_exeext
42268 if { (ac_try="$ac_link"
42269 case "(($ac_try" in
42270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42271   *) ac_try_echo=$ac_try;;
42272 esac
42273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42274   (eval "$ac_link") 2>conftest.er1
42275   ac_status=$?
42276   grep -v '^ *+' conftest.er1 >conftest.err
42277   rm -f conftest.er1
42278   cat conftest.err >&5
42279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42280   (exit $ac_status); } && {
42281          test -z "$ac_c_werror_flag" ||
42282          test ! -s conftest.err
42283        } && test -s conftest$ac_exeext &&
42284        $as_test_x conftest$ac_exeext; then
42285   ac_cv_func_pthread_mutex_timedlock=yes
42286 else
42287   echo "$as_me: failed program was:" >&5
42288 sed 's/^/| /' conftest.$ac_ext >&5
42289
42290         ac_cv_func_pthread_mutex_timedlock=no
42291 fi
42292
42293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42294       conftest$ac_exeext conftest.$ac_ext
42295 fi
42296 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42297 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42298 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42299   cat >>confdefs.h <<\_ACEOF
42300 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42301 _ACEOF
42302
42303 else
42304   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42305 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42306 fi
42307
42308
42309       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42310 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42311 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42312   echo $ECHO_N "(cached) $ECHO_C" >&6
42313 else
42314   cat >conftest.$ac_ext <<_ACEOF
42315 /* confdefs.h.  */
42316 _ACEOF
42317 cat confdefs.h >>conftest.$ac_ext
42318 cat >>conftest.$ac_ext <<_ACEOF
42319 /* end confdefs.h.  */
42320 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42322 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42323
42324 /* System header to define __stub macros and hopefully few prototypes,
42325     which can conflict with char pthread_attr_setstacksize (); below.
42326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42327     <limits.h> exists even on freestanding compilers.  */
42328
42329 #ifdef __STDC__
42330 # include <limits.h>
42331 #else
42332 # include <assert.h>
42333 #endif
42334
42335 #undef pthread_attr_setstacksize
42336
42337 /* Override any GCC internal prototype to avoid an error.
42338    Use char because int might match the return type of a GCC
42339    builtin and then its argument prototype would still apply.  */
42340 #ifdef __cplusplus
42341 extern "C"
42342 #endif
42343 char pthread_attr_setstacksize ();
42344 /* The GNU C library defines this for functions which it implements
42345     to always fail with ENOSYS.  Some functions are actually named
42346     something starting with __ and the normal name is an alias.  */
42347 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42348 choke me
42349 #endif
42350
42351 int
42352 main ()
42353 {
42354 return pthread_attr_setstacksize ();
42355   ;
42356   return 0;
42357 }
42358 _ACEOF
42359 rm -f conftest.$ac_objext conftest$ac_exeext
42360 if { (ac_try="$ac_link"
42361 case "(($ac_try" in
42362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42363   *) ac_try_echo=$ac_try;;
42364 esac
42365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42366   (eval "$ac_link") 2>conftest.er1
42367   ac_status=$?
42368   grep -v '^ *+' conftest.er1 >conftest.err
42369   rm -f conftest.er1
42370   cat conftest.err >&5
42371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42372   (exit $ac_status); } && {
42373          test -z "$ac_c_werror_flag" ||
42374          test ! -s conftest.err
42375        } && test -s conftest$ac_exeext &&
42376        $as_test_x conftest$ac_exeext; then
42377   ac_cv_func_pthread_attr_setstacksize=yes
42378 else
42379   echo "$as_me: failed program was:" >&5
42380 sed 's/^/| /' conftest.$ac_ext >&5
42381
42382         ac_cv_func_pthread_attr_setstacksize=no
42383 fi
42384
42385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42386       conftest$ac_exeext conftest.$ac_ext
42387 fi
42388 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42389 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42390 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42391   cat >>confdefs.h <<\_ACEOF
42392 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42393 _ACEOF
42394
42395 fi
42396
42397
42398
42399       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42400 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42401 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42402   echo $ECHO_N "(cached) $ECHO_C" >&6
42403 else
42404
42405         cat >conftest.$ac_ext <<_ACEOF
42406 /* confdefs.h.  */
42407 _ACEOF
42408 cat confdefs.h >>conftest.$ac_ext
42409 cat >>conftest.$ac_ext <<_ACEOF
42410 /* end confdefs.h.  */
42411 #include <pthread.h>
42412 int
42413 main ()
42414 {
42415
42416                pthread_mutexattr_t attr;
42417                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42418
42419   ;
42420   return 0;
42421 }
42422 _ACEOF
42423 rm -f conftest.$ac_objext
42424 if { (ac_try="$ac_compile"
42425 case "(($ac_try" in
42426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42427   *) ac_try_echo=$ac_try;;
42428 esac
42429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42430   (eval "$ac_compile") 2>conftest.er1
42431   ac_status=$?
42432   grep -v '^ *+' conftest.er1 >conftest.err
42433   rm -f conftest.er1
42434   cat conftest.err >&5
42435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436   (exit $ac_status); } && {
42437          test -z "$ac_c_werror_flag" ||
42438          test ! -s conftest.err
42439        } && test -s conftest.$ac_objext; then
42440   wx_cv_type_pthread_mutexattr_t=yes
42441 else
42442   echo "$as_me: failed program was:" >&5
42443 sed 's/^/| /' conftest.$ac_ext >&5
42444
42445         wx_cv_type_pthread_mutexattr_t=no
42446
42447 fi
42448
42449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42450
42451 fi
42452 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42453 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
42454
42455       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42456         cat >>confdefs.h <<\_ACEOF
42457 #define HAVE_PTHREAD_MUTEXATTR_T 1
42458 _ACEOF
42459
42460
42461                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
42462 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
42463 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
42464   echo $ECHO_N "(cached) $ECHO_C" >&6
42465 else
42466
42467                        cat >conftest.$ac_ext <<_ACEOF
42468 /* confdefs.h.  */
42469 _ACEOF
42470 cat confdefs.h >>conftest.$ac_ext
42471 cat >>conftest.$ac_ext <<_ACEOF
42472 /* end confdefs.h.  */
42473 #include <pthread.h>
42474 int
42475 main ()
42476 {
42477
42478                                pthread_mutexattr_t attr;
42479                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42480
42481   ;
42482   return 0;
42483 }
42484 _ACEOF
42485 rm -f conftest.$ac_objext
42486 if { (ac_try="$ac_compile"
42487 case "(($ac_try" in
42488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42489   *) ac_try_echo=$ac_try;;
42490 esac
42491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42492   (eval "$ac_compile") 2>conftest.er1
42493   ac_status=$?
42494   grep -v '^ *+' conftest.er1 >conftest.err
42495   rm -f conftest.er1
42496   cat conftest.err >&5
42497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42498   (exit $ac_status); } && {
42499          test -z "$ac_c_werror_flag" ||
42500          test ! -s conftest.err
42501        } && test -s conftest.$ac_objext; then
42502   wx_cv_func_pthread_mutexattr_settype_decl=yes
42503 else
42504   echo "$as_me: failed program was:" >&5
42505 sed 's/^/| /' conftest.$ac_ext >&5
42506
42507         wx_cv_func_pthread_mutexattr_settype_decl=no
42508
42509 fi
42510
42511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42512
42513 fi
42514 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
42515 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
42516         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
42517             cat >>confdefs.h <<\_ACEOF
42518 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
42519 _ACEOF
42520
42521         fi
42522       else
42523                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42524 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
42525 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42526   echo $ECHO_N "(cached) $ECHO_C" >&6
42527 else
42528
42529             cat >conftest.$ac_ext <<_ACEOF
42530 /* confdefs.h.  */
42531 _ACEOF
42532 cat confdefs.h >>conftest.$ac_ext
42533 cat >>conftest.$ac_ext <<_ACEOF
42534 /* end confdefs.h.  */
42535 #include <pthread.h>
42536 int
42537 main ()
42538 {
42539
42540                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42541
42542   ;
42543   return 0;
42544 }
42545 _ACEOF
42546 rm -f conftest.$ac_objext
42547 if { (ac_try="$ac_compile"
42548 case "(($ac_try" in
42549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42550   *) ac_try_echo=$ac_try;;
42551 esac
42552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42553   (eval "$ac_compile") 2>conftest.er1
42554   ac_status=$?
42555   grep -v '^ *+' conftest.er1 >conftest.err
42556   rm -f conftest.er1
42557   cat conftest.err >&5
42558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42559   (exit $ac_status); } && {
42560          test -z "$ac_c_werror_flag" ||
42561          test ! -s conftest.err
42562        } && test -s conftest.$ac_objext; then
42563
42564                     wx_cv_type_pthread_rec_mutex_init=yes
42565
42566 else
42567   echo "$as_me: failed program was:" >&5
42568 sed 's/^/| /' conftest.$ac_ext >&5
42569
42570
42571                     wx_cv_type_pthread_rec_mutex_init=no
42572
42573
42574 fi
42575
42576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42577
42578 fi
42579 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42580 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42581         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42582           cat >>confdefs.h <<\_ACEOF
42583 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42584 _ACEOF
42585
42586         else
42587                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42588 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42589         fi
42590       fi
42591     fi
42592
42593 else
42594     if test "$wxUSE_THREADS" = "yes" ; then
42595       case "${host}" in
42596         *-*-mingw32* )
42597                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42598 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42599 if test "${wx_cv_cflags_mthread+set}" = set; then
42600   echo $ECHO_N "(cached) $ECHO_C" >&6
42601 else
42602
42603                     CFLAGS_OLD="$CFLAGS"
42604                     CFLAGS="-mthreads $CFLAGS"
42605                     cat >conftest.$ac_ext <<_ACEOF
42606 /* confdefs.h.  */
42607 _ACEOF
42608 cat confdefs.h >>conftest.$ac_ext
42609 cat >>conftest.$ac_ext <<_ACEOF
42610 /* end confdefs.h.  */
42611
42612 int
42613 main ()
42614 {
42615
42616   ;
42617   return 0;
42618 }
42619 _ACEOF
42620 rm -f conftest.$ac_objext
42621 if { (ac_try="$ac_compile"
42622 case "(($ac_try" in
42623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42624   *) ac_try_echo=$ac_try;;
42625 esac
42626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42627   (eval "$ac_compile") 2>conftest.er1
42628   ac_status=$?
42629   grep -v '^ *+' conftest.er1 >conftest.err
42630   rm -f conftest.er1
42631   cat conftest.err >&5
42632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42633   (exit $ac_status); } && {
42634          test -z "$ac_c_werror_flag" ||
42635          test ! -s conftest.err
42636        } && test -s conftest.$ac_objext; then
42637   wx_cv_cflags_mthread=yes
42638 else
42639   echo "$as_me: failed program was:" >&5
42640 sed 's/^/| /' conftest.$ac_ext >&5
42641
42642         wx_cv_cflags_mthread=no
42643
42644 fi
42645
42646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42647
42648
42649 fi
42650 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42651 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42652
42653             if test "$wx_cv_cflags_mthread" = "yes"; then
42654                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42655                 LDFLAGS="$LDFLAGS -mthreads"
42656             else
42657                                 CFLAGS="$CFLAGS_OLD"
42658             fi
42659         ;;
42660         *-pc-os2*emx )
42661             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42662             LDFLAGS="$LDFLAGS -Zmt"
42663         ;;
42664       esac
42665     fi
42666 fi
42667
42668 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42669 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42670 if test "${ac_cv_func_localtime_r+set}" = set; then
42671   echo $ECHO_N "(cached) $ECHO_C" >&6
42672 else
42673   cat >conftest.$ac_ext <<_ACEOF
42674 /* confdefs.h.  */
42675 _ACEOF
42676 cat confdefs.h >>conftest.$ac_ext
42677 cat >>conftest.$ac_ext <<_ACEOF
42678 /* end confdefs.h.  */
42679 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42681 #define localtime_r innocuous_localtime_r
42682
42683 /* System header to define __stub macros and hopefully few prototypes,
42684     which can conflict with char localtime_r (); below.
42685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42686     <limits.h> exists even on freestanding compilers.  */
42687
42688 #ifdef __STDC__
42689 # include <limits.h>
42690 #else
42691 # include <assert.h>
42692 #endif
42693
42694 #undef localtime_r
42695
42696 /* Override any GCC internal prototype to avoid an error.
42697    Use char because int might match the return type of a GCC
42698    builtin and then its argument prototype would still apply.  */
42699 #ifdef __cplusplus
42700 extern "C"
42701 #endif
42702 char localtime_r ();
42703 /* The GNU C library defines this for functions which it implements
42704     to always fail with ENOSYS.  Some functions are actually named
42705     something starting with __ and the normal name is an alias.  */
42706 #if defined __stub_localtime_r || defined __stub___localtime_r
42707 choke me
42708 #endif
42709
42710 int
42711 main ()
42712 {
42713 return localtime_r ();
42714   ;
42715   return 0;
42716 }
42717 _ACEOF
42718 rm -f conftest.$ac_objext conftest$ac_exeext
42719 if { (ac_try="$ac_link"
42720 case "(($ac_try" in
42721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42722   *) ac_try_echo=$ac_try;;
42723 esac
42724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42725   (eval "$ac_link") 2>conftest.er1
42726   ac_status=$?
42727   grep -v '^ *+' conftest.er1 >conftest.err
42728   rm -f conftest.er1
42729   cat conftest.err >&5
42730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731   (exit $ac_status); } && {
42732          test -z "$ac_c_werror_flag" ||
42733          test ! -s conftest.err
42734        } && test -s conftest$ac_exeext &&
42735        $as_test_x conftest$ac_exeext; then
42736   ac_cv_func_localtime_r=yes
42737 else
42738   echo "$as_me: failed program was:" >&5
42739 sed 's/^/| /' conftest.$ac_ext >&5
42740
42741         ac_cv_func_localtime_r=no
42742 fi
42743
42744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42745       conftest$ac_exeext conftest.$ac_ext
42746 fi
42747 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42748 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42749 if test $ac_cv_func_localtime_r = yes; then
42750    cat >>confdefs.h <<\_ACEOF
42751 #define HAVE_LOCALTIME_R 1
42752 _ACEOF
42753
42754 fi
42755
42756 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42757 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42758 if test "${ac_cv_func_gmtime_r+set}" = set; then
42759   echo $ECHO_N "(cached) $ECHO_C" >&6
42760 else
42761   cat >conftest.$ac_ext <<_ACEOF
42762 /* confdefs.h.  */
42763 _ACEOF
42764 cat confdefs.h >>conftest.$ac_ext
42765 cat >>conftest.$ac_ext <<_ACEOF
42766 /* end confdefs.h.  */
42767 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42769 #define gmtime_r innocuous_gmtime_r
42770
42771 /* System header to define __stub macros and hopefully few prototypes,
42772     which can conflict with char gmtime_r (); below.
42773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42774     <limits.h> exists even on freestanding compilers.  */
42775
42776 #ifdef __STDC__
42777 # include <limits.h>
42778 #else
42779 # include <assert.h>
42780 #endif
42781
42782 #undef gmtime_r
42783
42784 /* Override any GCC internal prototype to avoid an error.
42785    Use char because int might match the return type of a GCC
42786    builtin and then its argument prototype would still apply.  */
42787 #ifdef __cplusplus
42788 extern "C"
42789 #endif
42790 char gmtime_r ();
42791 /* The GNU C library defines this for functions which it implements
42792     to always fail with ENOSYS.  Some functions are actually named
42793     something starting with __ and the normal name is an alias.  */
42794 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42795 choke me
42796 #endif
42797
42798 int
42799 main ()
42800 {
42801 return gmtime_r ();
42802   ;
42803   return 0;
42804 }
42805 _ACEOF
42806 rm -f conftest.$ac_objext conftest$ac_exeext
42807 if { (ac_try="$ac_link"
42808 case "(($ac_try" in
42809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42810   *) ac_try_echo=$ac_try;;
42811 esac
42812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42813   (eval "$ac_link") 2>conftest.er1
42814   ac_status=$?
42815   grep -v '^ *+' conftest.er1 >conftest.err
42816   rm -f conftest.er1
42817   cat conftest.err >&5
42818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819   (exit $ac_status); } && {
42820          test -z "$ac_c_werror_flag" ||
42821          test ! -s conftest.err
42822        } && test -s conftest$ac_exeext &&
42823        $as_test_x conftest$ac_exeext; then
42824   ac_cv_func_gmtime_r=yes
42825 else
42826   echo "$as_me: failed program was:" >&5
42827 sed 's/^/| /' conftest.$ac_ext >&5
42828
42829         ac_cv_func_gmtime_r=no
42830 fi
42831
42832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42833       conftest$ac_exeext conftest.$ac_ext
42834 fi
42835 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42836 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42837 if test $ac_cv_func_gmtime_r = yes; then
42838    cat >>confdefs.h <<\_ACEOF
42839 #define HAVE_GMTIME_R 1
42840 _ACEOF
42841
42842 fi
42843
42844 { echo "$as_me:$LINENO: checking for readdir_r" >&5
42845 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
42846 if test "${ac_cv_func_readdir_r+set}" = set; then
42847   echo $ECHO_N "(cached) $ECHO_C" >&6
42848 else
42849   cat >conftest.$ac_ext <<_ACEOF
42850 /* confdefs.h.  */
42851 _ACEOF
42852 cat confdefs.h >>conftest.$ac_ext
42853 cat >>conftest.$ac_ext <<_ACEOF
42854 /* end confdefs.h.  */
42855 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
42856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42857 #define readdir_r innocuous_readdir_r
42858
42859 /* System header to define __stub macros and hopefully few prototypes,
42860     which can conflict with char readdir_r (); below.
42861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42862     <limits.h> exists even on freestanding compilers.  */
42863
42864 #ifdef __STDC__
42865 # include <limits.h>
42866 #else
42867 # include <assert.h>
42868 #endif
42869
42870 #undef readdir_r
42871
42872 /* Override any GCC internal prototype to avoid an error.
42873    Use char because int might match the return type of a GCC
42874    builtin and then its argument prototype would still apply.  */
42875 #ifdef __cplusplus
42876 extern "C"
42877 #endif
42878 char readdir_r ();
42879 /* The GNU C library defines this for functions which it implements
42880     to always fail with ENOSYS.  Some functions are actually named
42881     something starting with __ and the normal name is an alias.  */
42882 #if defined __stub_readdir_r || defined __stub___readdir_r
42883 choke me
42884 #endif
42885
42886 int
42887 main ()
42888 {
42889 return readdir_r ();
42890   ;
42891   return 0;
42892 }
42893 _ACEOF
42894 rm -f conftest.$ac_objext conftest$ac_exeext
42895 if { (ac_try="$ac_link"
42896 case "(($ac_try" in
42897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42898   *) ac_try_echo=$ac_try;;
42899 esac
42900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42901   (eval "$ac_link") 2>conftest.er1
42902   ac_status=$?
42903   grep -v '^ *+' conftest.er1 >conftest.err
42904   rm -f conftest.er1
42905   cat conftest.err >&5
42906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42907   (exit $ac_status); } && {
42908          test -z "$ac_c_werror_flag" ||
42909          test ! -s conftest.err
42910        } && test -s conftest$ac_exeext &&
42911        $as_test_x conftest$ac_exeext; then
42912   ac_cv_func_readdir_r=yes
42913 else
42914   echo "$as_me: failed program was:" >&5
42915 sed 's/^/| /' conftest.$ac_ext >&5
42916
42917         ac_cv_func_readdir_r=no
42918 fi
42919
42920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42921       conftest$ac_exeext conftest.$ac_ext
42922 fi
42923 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
42924 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
42925 if test $ac_cv_func_readdir_r = yes; then
42926    cat >>confdefs.h <<\_ACEOF
42927 #define HAVE_READDIR_R 1
42928 _ACEOF
42929
42930 fi
42931
42932
42933
42934
42935     ac_ext=c
42936 ac_cpp='$CPP $CPPFLAGS'
42937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42940
42941     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42942 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42943
42944     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42945   echo $ECHO_N "(cached) $ECHO_C" >&6
42946 else
42947
42948
42949 ################################################################
42950
42951 ac_cv_func_which_gethostbyname_r=unknown
42952
42953 #
42954 # ONE ARGUMENT (sanity check)
42955 #
42956
42957 # This should fail, as there is no variant of gethostbyname_r() that takes
42958 # a single argument. If it actually compiles, then we can assume that
42959 # netdb.h is not declaring the function, and the compiler is thereby
42960 # assuming an implicit prototype. In which case, we're out of luck.
42961 #
42962 cat >conftest.$ac_ext <<_ACEOF
42963 /* confdefs.h.  */
42964 _ACEOF
42965 cat confdefs.h >>conftest.$ac_ext
42966 cat >>conftest.$ac_ext <<_ACEOF
42967 /* end confdefs.h.  */
42968 #include <netdb.h>
42969 int
42970 main ()
42971 {
42972
42973             char *name = "www.gnu.org";
42974             (void)gethostbyname_r(name) /* ; */
42975
42976   ;
42977   return 0;
42978 }
42979 _ACEOF
42980 rm -f conftest.$ac_objext
42981 if { (ac_try="$ac_compile"
42982 case "(($ac_try" in
42983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42984   *) ac_try_echo=$ac_try;;
42985 esac
42986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42987   (eval "$ac_compile") 2>conftest.er1
42988   ac_status=$?
42989   grep -v '^ *+' conftest.er1 >conftest.err
42990   rm -f conftest.er1
42991   cat conftest.err >&5
42992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42993   (exit $ac_status); } && {
42994          test -z "$ac_c_werror_flag" ||
42995          test ! -s conftest.err
42996        } && test -s conftest.$ac_objext; then
42997   ac_cv_func_which_gethostbyname_r=no
42998 else
42999   echo "$as_me: failed program was:" >&5
43000 sed 's/^/| /' conftest.$ac_ext >&5
43001
43002
43003 fi
43004
43005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43006
43007 #
43008 # SIX ARGUMENTS
43009 # (e.g. Linux)
43010 #
43011
43012 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43013
43014 cat >conftest.$ac_ext <<_ACEOF
43015 /* confdefs.h.  */
43016 _ACEOF
43017 cat confdefs.h >>conftest.$ac_ext
43018 cat >>conftest.$ac_ext <<_ACEOF
43019 /* end confdefs.h.  */
43020 #include <netdb.h>
43021 int
43022 main ()
43023 {
43024
43025             char *name = "www.gnu.org";
43026             struct hostent ret, *retp;
43027             char buf[1024];
43028             int buflen = 1024;
43029             int my_h_errno;
43030             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
43031
43032   ;
43033   return 0;
43034 }
43035 _ACEOF
43036 rm -f conftest.$ac_objext
43037 if { (ac_try="$ac_compile"
43038 case "(($ac_try" in
43039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43040   *) ac_try_echo=$ac_try;;
43041 esac
43042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43043   (eval "$ac_compile") 2>conftest.er1
43044   ac_status=$?
43045   grep -v '^ *+' conftest.er1 >conftest.err
43046   rm -f conftest.er1
43047   cat conftest.err >&5
43048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43049   (exit $ac_status); } && {
43050          test -z "$ac_c_werror_flag" ||
43051          test ! -s conftest.err
43052        } && test -s conftest.$ac_objext; then
43053   ac_cv_func_which_gethostbyname_r=six
43054 else
43055   echo "$as_me: failed program was:" >&5
43056 sed 's/^/| /' conftest.$ac_ext >&5
43057
43058
43059 fi
43060
43061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43062
43063 fi
43064
43065 #
43066 # FIVE ARGUMENTS
43067 # (e.g. Solaris)
43068 #
43069
43070 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43071
43072 cat >conftest.$ac_ext <<_ACEOF
43073 /* confdefs.h.  */
43074 _ACEOF
43075 cat confdefs.h >>conftest.$ac_ext
43076 cat >>conftest.$ac_ext <<_ACEOF
43077 /* end confdefs.h.  */
43078 #include <netdb.h>
43079 int
43080 main ()
43081 {
43082
43083             char *name = "www.gnu.org";
43084             struct hostent ret;
43085             char buf[1024];
43086             int buflen = 1024;
43087             int my_h_errno;
43088             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43089
43090   ;
43091   return 0;
43092 }
43093 _ACEOF
43094 rm -f conftest.$ac_objext
43095 if { (ac_try="$ac_compile"
43096 case "(($ac_try" in
43097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43098   *) ac_try_echo=$ac_try;;
43099 esac
43100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43101   (eval "$ac_compile") 2>conftest.er1
43102   ac_status=$?
43103   grep -v '^ *+' conftest.er1 >conftest.err
43104   rm -f conftest.er1
43105   cat conftest.err >&5
43106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43107   (exit $ac_status); } && {
43108          test -z "$ac_c_werror_flag" ||
43109          test ! -s conftest.err
43110        } && test -s conftest.$ac_objext; then
43111   ac_cv_func_which_gethostbyname_r=five
43112 else
43113   echo "$as_me: failed program was:" >&5
43114 sed 's/^/| /' conftest.$ac_ext >&5
43115
43116
43117 fi
43118
43119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43120
43121 fi
43122
43123 #
43124 # THREE ARGUMENTS
43125 # (e.g. AIX, HP-UX, Tru64)
43126 #
43127
43128 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43129
43130 cat >conftest.$ac_ext <<_ACEOF
43131 /* confdefs.h.  */
43132 _ACEOF
43133 cat confdefs.h >>conftest.$ac_ext
43134 cat >>conftest.$ac_ext <<_ACEOF
43135 /* end confdefs.h.  */
43136 #include <netdb.h>
43137 int
43138 main ()
43139 {
43140
43141             char *name = "www.gnu.org";
43142             struct hostent ret;
43143             struct hostent_data data;
43144             (void)gethostbyname_r(name, &ret, &data) /* ; */
43145
43146   ;
43147   return 0;
43148 }
43149 _ACEOF
43150 rm -f conftest.$ac_objext
43151 if { (ac_try="$ac_compile"
43152 case "(($ac_try" in
43153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43154   *) ac_try_echo=$ac_try;;
43155 esac
43156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43157   (eval "$ac_compile") 2>conftest.er1
43158   ac_status=$?
43159   grep -v '^ *+' conftest.er1 >conftest.err
43160   rm -f conftest.er1
43161   cat conftest.err >&5
43162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43163   (exit $ac_status); } && {
43164          test -z "$ac_c_werror_flag" ||
43165          test ! -s conftest.err
43166        } && test -s conftest.$ac_objext; then
43167   ac_cv_func_which_gethostbyname_r=three
43168 else
43169   echo "$as_me: failed program was:" >&5
43170 sed 's/^/| /' conftest.$ac_ext >&5
43171
43172
43173 fi
43174
43175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43176
43177 fi
43178
43179 ################################################################
43180
43181
43182 fi
43183
43184 case "$ac_cv_func_which_gethostbyname_r" in
43185     three)
43186     { echo "$as_me:$LINENO: result: three" >&5
43187 echo "${ECHO_T}three" >&6; }
43188     cat >>confdefs.h <<\_ACEOF
43189 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43190 _ACEOF
43191
43192     ;;
43193
43194     five)
43195     { echo "$as_me:$LINENO: result: five" >&5
43196 echo "${ECHO_T}five" >&6; }
43197     cat >>confdefs.h <<\_ACEOF
43198 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43199 _ACEOF
43200
43201     ;;
43202
43203     six)
43204     { echo "$as_me:$LINENO: result: six" >&5
43205 echo "${ECHO_T}six" >&6; }
43206     cat >>confdefs.h <<\_ACEOF
43207 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43208 _ACEOF
43209
43210     ;;
43211
43212     no)
43213     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43214 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43215     ;;
43216
43217     unknown)
43218     { echo "$as_me:$LINENO: result: can't tell" >&5
43219 echo "${ECHO_T}can't tell" >&6; }
43220     ;;
43221
43222     *)
43223     { { echo "$as_me:$LINENO: error: internal error" >&5
43224 echo "$as_me: error: internal error" >&2;}
43225    { (exit 1); exit 1; }; }
43226     ;;
43227 esac
43228
43229 ac_ext=c
43230 ac_cpp='$CPP $CPPFLAGS'
43231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43234
43235
43236
43237       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43238               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43239           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43240 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43241 if test "${ac_cv_func_gethostbyname+set}" = set; then
43242   echo $ECHO_N "(cached) $ECHO_C" >&6
43243 else
43244   cat >conftest.$ac_ext <<_ACEOF
43245 /* confdefs.h.  */
43246 _ACEOF
43247 cat confdefs.h >>conftest.$ac_ext
43248 cat >>conftest.$ac_ext <<_ACEOF
43249 /* end confdefs.h.  */
43250 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43252 #define gethostbyname innocuous_gethostbyname
43253
43254 /* System header to define __stub macros and hopefully few prototypes,
43255     which can conflict with char gethostbyname (); below.
43256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43257     <limits.h> exists even on freestanding compilers.  */
43258
43259 #ifdef __STDC__
43260 # include <limits.h>
43261 #else
43262 # include <assert.h>
43263 #endif
43264
43265 #undef gethostbyname
43266
43267 /* Override any GCC internal prototype to avoid an error.
43268    Use char because int might match the return type of a GCC
43269    builtin and then its argument prototype would still apply.  */
43270 #ifdef __cplusplus
43271 extern "C"
43272 #endif
43273 char gethostbyname ();
43274 /* The GNU C library defines this for functions which it implements
43275     to always fail with ENOSYS.  Some functions are actually named
43276     something starting with __ and the normal name is an alias.  */
43277 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43278 choke me
43279 #endif
43280
43281 int
43282 main ()
43283 {
43284 return gethostbyname ();
43285   ;
43286   return 0;
43287 }
43288 _ACEOF
43289 rm -f conftest.$ac_objext conftest$ac_exeext
43290 if { (ac_try="$ac_link"
43291 case "(($ac_try" in
43292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43293   *) ac_try_echo=$ac_try;;
43294 esac
43295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43296   (eval "$ac_link") 2>conftest.er1
43297   ac_status=$?
43298   grep -v '^ *+' conftest.er1 >conftest.err
43299   rm -f conftest.er1
43300   cat conftest.err >&5
43301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43302   (exit $ac_status); } && {
43303          test -z "$ac_c_werror_flag" ||
43304          test ! -s conftest.err
43305        } && test -s conftest$ac_exeext &&
43306        $as_test_x conftest$ac_exeext; then
43307   ac_cv_func_gethostbyname=yes
43308 else
43309   echo "$as_me: failed program was:" >&5
43310 sed 's/^/| /' conftest.$ac_ext >&5
43311
43312         ac_cv_func_gethostbyname=no
43313 fi
43314
43315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43316       conftest$ac_exeext conftest.$ac_ext
43317 fi
43318 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43319 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43320 if test $ac_cv_func_gethostbyname = yes; then
43321    cat >>confdefs.h <<\_ACEOF
43322 #define HAVE_GETHOSTBYNAME 1
43323 _ACEOF
43324
43325 fi
43326
43327       fi
43328
43329 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43330 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43331 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43332   echo $ECHO_N "(cached) $ECHO_C" >&6
43333 else
43334
43335                 ac_ext=cpp
43336 ac_cpp='$CXXCPP $CPPFLAGS'
43337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43340
43341
43342         cat >conftest.$ac_ext <<_ACEOF
43343 /* confdefs.h.  */
43344 _ACEOF
43345 cat confdefs.h >>conftest.$ac_ext
43346 cat >>conftest.$ac_ext <<_ACEOF
43347 /* end confdefs.h.  */
43348 #include <netdb.h>
43349 int
43350 main ()
43351 {
43352
43353                 char *name;
43354                 char *proto;
43355                 struct servent *se, *res;
43356                 char buffer[2048];
43357                 int buflen = 2048;
43358                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43359
43360   ;
43361   return 0;
43362 }
43363 _ACEOF
43364 rm -f conftest.$ac_objext
43365 if { (ac_try="$ac_compile"
43366 case "(($ac_try" in
43367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43368   *) ac_try_echo=$ac_try;;
43369 esac
43370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43371   (eval "$ac_compile") 2>conftest.er1
43372   ac_status=$?
43373   grep -v '^ *+' conftest.er1 >conftest.err
43374   rm -f conftest.er1
43375   cat conftest.err >&5
43376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43377   (exit $ac_status); } && {
43378          test -z "$ac_cxx_werror_flag" ||
43379          test ! -s conftest.err
43380        } && test -s conftest.$ac_objext; then
43381   ac_cv_func_which_getservbyname_r=six
43382 else
43383   echo "$as_me: failed program was:" >&5
43384 sed 's/^/| /' conftest.$ac_ext >&5
43385
43386
43387                 cat >conftest.$ac_ext <<_ACEOF
43388 /* confdefs.h.  */
43389 _ACEOF
43390 cat confdefs.h >>conftest.$ac_ext
43391 cat >>conftest.$ac_ext <<_ACEOF
43392 /* end confdefs.h.  */
43393 #include <netdb.h>
43394 int
43395 main ()
43396 {
43397
43398                         char *name;
43399                         char *proto;
43400                         struct servent *se;
43401                         char buffer[2048];
43402                         int buflen = 2048;
43403                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43404
43405   ;
43406   return 0;
43407 }
43408 _ACEOF
43409 rm -f conftest.$ac_objext
43410 if { (ac_try="$ac_compile"
43411 case "(($ac_try" in
43412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43413   *) ac_try_echo=$ac_try;;
43414 esac
43415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43416   (eval "$ac_compile") 2>conftest.er1
43417   ac_status=$?
43418   grep -v '^ *+' conftest.er1 >conftest.err
43419   rm -f conftest.er1
43420   cat conftest.err >&5
43421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422   (exit $ac_status); } && {
43423          test -z "$ac_cxx_werror_flag" ||
43424          test ! -s conftest.err
43425        } && test -s conftest.$ac_objext; then
43426   ac_cv_func_which_getservbyname_r=five
43427 else
43428   echo "$as_me: failed program was:" >&5
43429 sed 's/^/| /' conftest.$ac_ext >&5
43430
43431
43432                         cat >conftest.$ac_ext <<_ACEOF
43433 /* confdefs.h.  */
43434 _ACEOF
43435 cat confdefs.h >>conftest.$ac_ext
43436 cat >>conftest.$ac_ext <<_ACEOF
43437 /* end confdefs.h.  */
43438 #include <netdb.h>
43439 int
43440 main ()
43441 {
43442
43443                                 char *name;
43444                                 char *proto;
43445                                 struct servent *se;
43446                                 struct servent_data data;
43447                                 (void) getservbyname_r(name, proto, se, &data);
43448
43449   ;
43450   return 0;
43451 }
43452 _ACEOF
43453 rm -f conftest.$ac_objext
43454 if { (ac_try="$ac_compile"
43455 case "(($ac_try" in
43456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43457   *) ac_try_echo=$ac_try;;
43458 esac
43459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43460   (eval "$ac_compile") 2>conftest.er1
43461   ac_status=$?
43462   grep -v '^ *+' conftest.er1 >conftest.err
43463   rm -f conftest.er1
43464   cat conftest.err >&5
43465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43466   (exit $ac_status); } && {
43467          test -z "$ac_cxx_werror_flag" ||
43468          test ! -s conftest.err
43469        } && test -s conftest.$ac_objext; then
43470   ac_cv_func_which_getservbyname_r=four
43471 else
43472   echo "$as_me: failed program was:" >&5
43473 sed 's/^/| /' conftest.$ac_ext >&5
43474
43475         ac_cv_func_which_getservbyname_r=no
43476
43477 fi
43478
43479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43480
43481
43482 fi
43483
43484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43485
43486
43487 fi
43488
43489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43490         ac_ext=c
43491 ac_cpp='$CPP $CPPFLAGS'
43492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43495
43496
43497
43498 fi
43499 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43500 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43501
43502 if test $ac_cv_func_which_getservbyname_r = six; then
43503   cat >>confdefs.h <<\_ACEOF
43504 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43505 _ACEOF
43506
43507 elif test $ac_cv_func_which_getservbyname_r = five; then
43508   cat >>confdefs.h <<\_ACEOF
43509 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43510 _ACEOF
43511
43512 elif test $ac_cv_func_which_getservbyname_r = four; then
43513   cat >>confdefs.h <<\_ACEOF
43514 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43515 _ACEOF
43516
43517 fi
43518
43519
43520       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43521               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43522
43523 for ac_func in getservbyname
43524 do
43525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43529   echo $ECHO_N "(cached) $ECHO_C" >&6
43530 else
43531   cat >conftest.$ac_ext <<_ACEOF
43532 /* confdefs.h.  */
43533 _ACEOF
43534 cat confdefs.h >>conftest.$ac_ext
43535 cat >>conftest.$ac_ext <<_ACEOF
43536 /* end confdefs.h.  */
43537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43539 #define $ac_func innocuous_$ac_func
43540
43541 /* System header to define __stub macros and hopefully few prototypes,
43542     which can conflict with char $ac_func (); below.
43543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43544     <limits.h> exists even on freestanding compilers.  */
43545
43546 #ifdef __STDC__
43547 # include <limits.h>
43548 #else
43549 # include <assert.h>
43550 #endif
43551
43552 #undef $ac_func
43553
43554 /* Override any GCC internal prototype to avoid an error.
43555    Use char because int might match the return type of a GCC
43556    builtin and then its argument prototype would still apply.  */
43557 #ifdef __cplusplus
43558 extern "C"
43559 #endif
43560 char $ac_func ();
43561 /* The GNU C library defines this for functions which it implements
43562     to always fail with ENOSYS.  Some functions are actually named
43563     something starting with __ and the normal name is an alias.  */
43564 #if defined __stub_$ac_func || defined __stub___$ac_func
43565 choke me
43566 #endif
43567
43568 int
43569 main ()
43570 {
43571 return $ac_func ();
43572   ;
43573   return 0;
43574 }
43575 _ACEOF
43576 rm -f conftest.$ac_objext conftest$ac_exeext
43577 if { (ac_try="$ac_link"
43578 case "(($ac_try" in
43579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43580   *) ac_try_echo=$ac_try;;
43581 esac
43582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43583   (eval "$ac_link") 2>conftest.er1
43584   ac_status=$?
43585   grep -v '^ *+' conftest.er1 >conftest.err
43586   rm -f conftest.er1
43587   cat conftest.err >&5
43588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43589   (exit $ac_status); } && {
43590          test -z "$ac_c_werror_flag" ||
43591          test ! -s conftest.err
43592        } && test -s conftest$ac_exeext &&
43593        $as_test_x conftest$ac_exeext; then
43594   eval "$as_ac_var=yes"
43595 else
43596   echo "$as_me: failed program was:" >&5
43597 sed 's/^/| /' conftest.$ac_ext >&5
43598
43599         eval "$as_ac_var=no"
43600 fi
43601
43602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43603       conftest$ac_exeext conftest.$ac_ext
43604 fi
43605 ac_res=`eval echo '${'$as_ac_var'}'`
43606                { echo "$as_me:$LINENO: result: $ac_res" >&5
43607 echo "${ECHO_T}$ac_res" >&6; }
43608 if test `eval echo '${'$as_ac_var'}'` = yes; then
43609   cat >>confdefs.h <<_ACEOF
43610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43611 _ACEOF
43612   cat >>confdefs.h <<\_ACEOF
43613 #define HAVE_GETSERVBYNAME 1
43614 _ACEOF
43615
43616 fi
43617 done
43618
43619       fi
43620
43621 if test "$wxUSE_THREADS" = "yes"; then
43622   cat >>confdefs.h <<\_ACEOF
43623 #define wxUSE_THREADS 1
43624 _ACEOF
43625
43626
43627   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43628 else
43629       if test "$wx_cv_func_strtok_r" = "yes"; then
43630     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43631 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43632     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43633         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43634         { echo "$as_me:$LINENO: result: yes" >&5
43635 echo "${ECHO_T}yes" >&6; }
43636     else
43637         { echo "$as_me:$LINENO: result: no" >&5
43638 echo "${ECHO_T}no" >&6; }
43639     fi
43640   fi
43641 fi
43642
43643 if test "$WXGTK20" = 1 ; then
43644   cat >>confdefs.h <<_ACEOF
43645 #define __WXGTK20__ $WXGTK20
43646 _ACEOF
43647
43648   WXGTK12=1
43649 fi
43650
43651 if test "$WXGTK12" = 1 ; then
43652   cat >>confdefs.h <<_ACEOF
43653 #define __WXGTK12__ $WXGTK12
43654 _ACEOF
43655
43656 fi
43657
43658 if test "$WXGTK127" = 1 ; then
43659   cat >>confdefs.h <<_ACEOF
43660 #define __WXGTK127__ $WXGTK127
43661 _ACEOF
43662
43663 fi
43664
43665 if test "$WXGPE" = 1 ; then
43666   cat >>confdefs.h <<_ACEOF
43667 #define __WXGPE__ $WXGPE
43668 _ACEOF
43669
43670 fi
43671
43672 DEBUG_CFLAGS=
43673 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
43674     DEBUG_CFLAGS="-g"
43675     wxUSE_OPTIMISE=no
43676 fi
43677
43678 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43679     wxUSE_DEBUG_INFO=yes
43680     if test "$GCC" = yes; then
43681         DEBUG_CFLAGS="-ggdb"
43682     fi
43683 fi
43684
43685 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
43686     cat >>confdefs.h <<\_ACEOF
43687 #define WXDEBUG 1
43688 _ACEOF
43689
43690     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
43691 else
43692     if test "$wxUSE_GTK" = 1 ; then
43693         if test "x$wxGTK_VERSION" = "x1" ; then
43694             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43695         fi
43696     fi
43697 fi
43698
43699 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43700     cat >>confdefs.h <<\_ACEOF
43701 #define wxUSE_MEMORY_TRACING 1
43702 _ACEOF
43703
43704     cat >>confdefs.h <<\_ACEOF
43705 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43706 _ACEOF
43707
43708     cat >>confdefs.h <<\_ACEOF
43709 #define wxUSE_DEBUG_NEW_ALWAYS 1
43710 _ACEOF
43711
43712     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43713 fi
43714
43715 if test "$wxUSE_DMALLOC" = "yes" ; then
43716     DMALLOC_LIBS="-ldmallocthcxx"
43717 fi
43718
43719 PROFILE_FLAGS=
43720 if test "$wxUSE_PROFILE" = "yes" ; then
43721     PROFILE_FLAGS=" -pg"
43722 fi
43723
43724 if test "$GCC" = "yes" ; then
43725     if test "$wxUSE_NO_RTTI" = "yes" ; then
43726         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
43727     fi
43728     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43729         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43730     fi
43731     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43732         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43733     fi
43734
43735                                                 case "${host}" in
43736       powerpc*-*-aix* )
43737         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43738         ;;
43739       *-hppa* )
43740         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43741         ;;
43742     esac
43743 fi
43744
43745 OPTIMISE_CFLAGS=
43746 if test "$wxUSE_OPTIMISE" = "no" ; then
43747     if test "$GCC" = yes ; then
43748                         OPTIMISE_CFLAGS="-O0"
43749     fi
43750 else
43751     if test "$GCC" = yes ; then
43752         case "${host}" in
43753             *-pc-os2_emx | *-pc-os2-emx )
43754                                                 OPTIMISE_CFLAGS="-O2"
43755             ;;
43756             *)
43757                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43758             ;;
43759         esac
43760     else
43761         OPTIMISE_CFLAGS="-O"
43762     fi
43763 fi
43764
43765
43766 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43767     cat >>confdefs.h <<\_ACEOF
43768 #define WXWIN_COMPATIBILITY_2_6 1
43769 _ACEOF
43770
43771
43772     WXWIN_COMPATIBILITY_2_8="yes"
43773 fi
43774
43775 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43776     cat >>confdefs.h <<\_ACEOF
43777 #define WXWIN_COMPATIBILITY_2_8 1
43778 _ACEOF
43779
43780 fi
43781
43782
43783 if test "$wxUSE_GUI" = "yes"; then
43784     cat >>confdefs.h <<\_ACEOF
43785 #define wxUSE_GUI 1
43786 _ACEOF
43787
43788
43789                                             fi
43790
43791
43792 if test "$wxUSE_UNIX" = "yes"; then
43793   cat >>confdefs.h <<\_ACEOF
43794 #define wxUSE_UNIX 1
43795 _ACEOF
43796
43797 fi
43798
43799
43800 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43801
43802     HAVE_DL_FUNCS=0
43803     HAVE_SHL_FUNCS=0
43804     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43805         if test "$USE_DARWIN" = 1; then
43806                         HAVE_DL_FUNCS=1
43807         elif test "$USE_DOS" = 1; then
43808             HAVE_DL_FUNCS=0
43809         else
43810
43811 for ac_func in dlopen
43812 do
43813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43817   echo $ECHO_N "(cached) $ECHO_C" >&6
43818 else
43819   cat >conftest.$ac_ext <<_ACEOF
43820 /* confdefs.h.  */
43821 _ACEOF
43822 cat confdefs.h >>conftest.$ac_ext
43823 cat >>conftest.$ac_ext <<_ACEOF
43824 /* end confdefs.h.  */
43825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43827 #define $ac_func innocuous_$ac_func
43828
43829 /* System header to define __stub macros and hopefully few prototypes,
43830     which can conflict with char $ac_func (); below.
43831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43832     <limits.h> exists even on freestanding compilers.  */
43833
43834 #ifdef __STDC__
43835 # include <limits.h>
43836 #else
43837 # include <assert.h>
43838 #endif
43839
43840 #undef $ac_func
43841
43842 /* Override any GCC internal prototype to avoid an error.
43843    Use char because int might match the return type of a GCC
43844    builtin and then its argument prototype would still apply.  */
43845 #ifdef __cplusplus
43846 extern "C"
43847 #endif
43848 char $ac_func ();
43849 /* The GNU C library defines this for functions which it implements
43850     to always fail with ENOSYS.  Some functions are actually named
43851     something starting with __ and the normal name is an alias.  */
43852 #if defined __stub_$ac_func || defined __stub___$ac_func
43853 choke me
43854 #endif
43855
43856 int
43857 main ()
43858 {
43859 return $ac_func ();
43860   ;
43861   return 0;
43862 }
43863 _ACEOF
43864 rm -f conftest.$ac_objext conftest$ac_exeext
43865 if { (ac_try="$ac_link"
43866 case "(($ac_try" in
43867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43868   *) ac_try_echo=$ac_try;;
43869 esac
43870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43871   (eval "$ac_link") 2>conftest.er1
43872   ac_status=$?
43873   grep -v '^ *+' conftest.er1 >conftest.err
43874   rm -f conftest.er1
43875   cat conftest.err >&5
43876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43877   (exit $ac_status); } && {
43878          test -z "$ac_c_werror_flag" ||
43879          test ! -s conftest.err
43880        } && test -s conftest$ac_exeext &&
43881        $as_test_x conftest$ac_exeext; then
43882   eval "$as_ac_var=yes"
43883 else
43884   echo "$as_me: failed program was:" >&5
43885 sed 's/^/| /' conftest.$ac_ext >&5
43886
43887         eval "$as_ac_var=no"
43888 fi
43889
43890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43891       conftest$ac_exeext conftest.$ac_ext
43892 fi
43893 ac_res=`eval echo '${'$as_ac_var'}'`
43894                { echo "$as_me:$LINENO: result: $ac_res" >&5
43895 echo "${ECHO_T}$ac_res" >&6; }
43896 if test `eval echo '${'$as_ac_var'}'` = yes; then
43897   cat >>confdefs.h <<_ACEOF
43898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43899 _ACEOF
43900
43901                 cat >>confdefs.h <<\_ACEOF
43902 #define HAVE_DLOPEN 1
43903 _ACEOF
43904
43905                 HAVE_DL_FUNCS=1
43906
43907 else
43908
43909                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43910 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43911 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43912   echo $ECHO_N "(cached) $ECHO_C" >&6
43913 else
43914   ac_check_lib_save_LIBS=$LIBS
43915 LIBS="-ldl  $LIBS"
43916 cat >conftest.$ac_ext <<_ACEOF
43917 /* confdefs.h.  */
43918 _ACEOF
43919 cat confdefs.h >>conftest.$ac_ext
43920 cat >>conftest.$ac_ext <<_ACEOF
43921 /* end confdefs.h.  */
43922
43923 /* Override any GCC internal prototype to avoid an error.
43924    Use char because int might match the return type of a GCC
43925    builtin and then its argument prototype would still apply.  */
43926 #ifdef __cplusplus
43927 extern "C"
43928 #endif
43929 char dlopen ();
43930 int
43931 main ()
43932 {
43933 return dlopen ();
43934   ;
43935   return 0;
43936 }
43937 _ACEOF
43938 rm -f conftest.$ac_objext conftest$ac_exeext
43939 if { (ac_try="$ac_link"
43940 case "(($ac_try" in
43941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43942   *) ac_try_echo=$ac_try;;
43943 esac
43944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43945   (eval "$ac_link") 2>conftest.er1
43946   ac_status=$?
43947   grep -v '^ *+' conftest.er1 >conftest.err
43948   rm -f conftest.er1
43949   cat conftest.err >&5
43950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43951   (exit $ac_status); } && {
43952          test -z "$ac_c_werror_flag" ||
43953          test ! -s conftest.err
43954        } && test -s conftest$ac_exeext &&
43955        $as_test_x conftest$ac_exeext; then
43956   ac_cv_lib_dl_dlopen=yes
43957 else
43958   echo "$as_me: failed program was:" >&5
43959 sed 's/^/| /' conftest.$ac_ext >&5
43960
43961         ac_cv_lib_dl_dlopen=no
43962 fi
43963
43964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43965       conftest$ac_exeext conftest.$ac_ext
43966 LIBS=$ac_check_lib_save_LIBS
43967 fi
43968 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43970 if test $ac_cv_lib_dl_dlopen = yes; then
43971
43972                                 cat >>confdefs.h <<\_ACEOF
43973 #define HAVE_DLOPEN 1
43974 _ACEOF
43975
43976                                 HAVE_DL_FUNCS=1
43977                                 DL_LINK=" -ldl$DL_LINK"
43978
43979 else
43980
43981
43982 for ac_func in shl_load
43983 do
43984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43988   echo $ECHO_N "(cached) $ECHO_C" >&6
43989 else
43990   cat >conftest.$ac_ext <<_ACEOF
43991 /* confdefs.h.  */
43992 _ACEOF
43993 cat confdefs.h >>conftest.$ac_ext
43994 cat >>conftest.$ac_ext <<_ACEOF
43995 /* end confdefs.h.  */
43996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43998 #define $ac_func innocuous_$ac_func
43999
44000 /* System header to define __stub macros and hopefully few prototypes,
44001     which can conflict with char $ac_func (); below.
44002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44003     <limits.h> exists even on freestanding compilers.  */
44004
44005 #ifdef __STDC__
44006 # include <limits.h>
44007 #else
44008 # include <assert.h>
44009 #endif
44010
44011 #undef $ac_func
44012
44013 /* Override any GCC internal prototype to avoid an error.
44014    Use char because int might match the return type of a GCC
44015    builtin and then its argument prototype would still apply.  */
44016 #ifdef __cplusplus
44017 extern "C"
44018 #endif
44019 char $ac_func ();
44020 /* The GNU C library defines this for functions which it implements
44021     to always fail with ENOSYS.  Some functions are actually named
44022     something starting with __ and the normal name is an alias.  */
44023 #if defined __stub_$ac_func || defined __stub___$ac_func
44024 choke me
44025 #endif
44026
44027 int
44028 main ()
44029 {
44030 return $ac_func ();
44031   ;
44032   return 0;
44033 }
44034 _ACEOF
44035 rm -f conftest.$ac_objext conftest$ac_exeext
44036 if { (ac_try="$ac_link"
44037 case "(($ac_try" in
44038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44039   *) ac_try_echo=$ac_try;;
44040 esac
44041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44042   (eval "$ac_link") 2>conftest.er1
44043   ac_status=$?
44044   grep -v '^ *+' conftest.er1 >conftest.err
44045   rm -f conftest.er1
44046   cat conftest.err >&5
44047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44048   (exit $ac_status); } && {
44049          test -z "$ac_c_werror_flag" ||
44050          test ! -s conftest.err
44051        } && test -s conftest$ac_exeext &&
44052        $as_test_x conftest$ac_exeext; then
44053   eval "$as_ac_var=yes"
44054 else
44055   echo "$as_me: failed program was:" >&5
44056 sed 's/^/| /' conftest.$ac_ext >&5
44057
44058         eval "$as_ac_var=no"
44059 fi
44060
44061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44062       conftest$ac_exeext conftest.$ac_ext
44063 fi
44064 ac_res=`eval echo '${'$as_ac_var'}'`
44065                { echo "$as_me:$LINENO: result: $ac_res" >&5
44066 echo "${ECHO_T}$ac_res" >&6; }
44067 if test `eval echo '${'$as_ac_var'}'` = yes; then
44068   cat >>confdefs.h <<_ACEOF
44069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44070 _ACEOF
44071
44072                                                 cat >>confdefs.h <<\_ACEOF
44073 #define HAVE_SHL_LOAD 1
44074 _ACEOF
44075
44076                                                 HAVE_SHL_FUNCS=1
44077
44078 else
44079
44080                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44081 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
44082 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44083   echo $ECHO_N "(cached) $ECHO_C" >&6
44084 else
44085   ac_check_lib_save_LIBS=$LIBS
44086 LIBS="-lshl_load  $LIBS"
44087 cat >conftest.$ac_ext <<_ACEOF
44088 /* confdefs.h.  */
44089 _ACEOF
44090 cat confdefs.h >>conftest.$ac_ext
44091 cat >>conftest.$ac_ext <<_ACEOF
44092 /* end confdefs.h.  */
44093
44094 /* Override any GCC internal prototype to avoid an error.
44095    Use char because int might match the return type of a GCC
44096    builtin and then its argument prototype would still apply.  */
44097 #ifdef __cplusplus
44098 extern "C"
44099 #endif
44100 char dld ();
44101 int
44102 main ()
44103 {
44104 return dld ();
44105   ;
44106   return 0;
44107 }
44108 _ACEOF
44109 rm -f conftest.$ac_objext conftest$ac_exeext
44110 if { (ac_try="$ac_link"
44111 case "(($ac_try" in
44112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44113   *) ac_try_echo=$ac_try;;
44114 esac
44115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44116   (eval "$ac_link") 2>conftest.er1
44117   ac_status=$?
44118   grep -v '^ *+' conftest.er1 >conftest.err
44119   rm -f conftest.er1
44120   cat conftest.err >&5
44121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122   (exit $ac_status); } && {
44123          test -z "$ac_c_werror_flag" ||
44124          test ! -s conftest.err
44125        } && test -s conftest$ac_exeext &&
44126        $as_test_x conftest$ac_exeext; then
44127   ac_cv_lib_shl_load_dld=yes
44128 else
44129   echo "$as_me: failed program was:" >&5
44130 sed 's/^/| /' conftest.$ac_ext >&5
44131
44132         ac_cv_lib_shl_load_dld=no
44133 fi
44134
44135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44136       conftest$ac_exeext conftest.$ac_ext
44137 LIBS=$ac_check_lib_save_LIBS
44138 fi
44139 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44140 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44141 if test $ac_cv_lib_shl_load_dld = yes; then
44142
44143                                                                 HAVE_SHL_FUNCS=1
44144                                                                 DL_LINK=" -ldld$DL_LINK"
44145
44146 fi
44147
44148
44149 fi
44150 done
44151
44152
44153 fi
44154
44155
44156 fi
44157 done
44158
44159
44160                 if test "$HAVE_DL_FUNCS" = 1; then
44161
44162 for ac_func in dlerror
44163 do
44164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44165 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44167 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44168   echo $ECHO_N "(cached) $ECHO_C" >&6
44169 else
44170   cat >conftest.$ac_ext <<_ACEOF
44171 /* confdefs.h.  */
44172 _ACEOF
44173 cat confdefs.h >>conftest.$ac_ext
44174 cat >>conftest.$ac_ext <<_ACEOF
44175 /* end confdefs.h.  */
44176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44178 #define $ac_func innocuous_$ac_func
44179
44180 /* System header to define __stub macros and hopefully few prototypes,
44181     which can conflict with char $ac_func (); below.
44182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44183     <limits.h> exists even on freestanding compilers.  */
44184
44185 #ifdef __STDC__
44186 # include <limits.h>
44187 #else
44188 # include <assert.h>
44189 #endif
44190
44191 #undef $ac_func
44192
44193 /* Override any GCC internal prototype to avoid an error.
44194    Use char because int might match the return type of a GCC
44195    builtin and then its argument prototype would still apply.  */
44196 #ifdef __cplusplus
44197 extern "C"
44198 #endif
44199 char $ac_func ();
44200 /* The GNU C library defines this for functions which it implements
44201     to always fail with ENOSYS.  Some functions are actually named
44202     something starting with __ and the normal name is an alias.  */
44203 #if defined __stub_$ac_func || defined __stub___$ac_func
44204 choke me
44205 #endif
44206
44207 int
44208 main ()
44209 {
44210 return $ac_func ();
44211   ;
44212   return 0;
44213 }
44214 _ACEOF
44215 rm -f conftest.$ac_objext conftest$ac_exeext
44216 if { (ac_try="$ac_link"
44217 case "(($ac_try" in
44218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44219   *) ac_try_echo=$ac_try;;
44220 esac
44221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44222   (eval "$ac_link") 2>conftest.er1
44223   ac_status=$?
44224   grep -v '^ *+' conftest.er1 >conftest.err
44225   rm -f conftest.er1
44226   cat conftest.err >&5
44227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44228   (exit $ac_status); } && {
44229          test -z "$ac_c_werror_flag" ||
44230          test ! -s conftest.err
44231        } && test -s conftest$ac_exeext &&
44232        $as_test_x conftest$ac_exeext; then
44233   eval "$as_ac_var=yes"
44234 else
44235   echo "$as_me: failed program was:" >&5
44236 sed 's/^/| /' conftest.$ac_ext >&5
44237
44238         eval "$as_ac_var=no"
44239 fi
44240
44241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44242       conftest$ac_exeext conftest.$ac_ext
44243 fi
44244 ac_res=`eval echo '${'$as_ac_var'}'`
44245                { echo "$as_me:$LINENO: result: $ac_res" >&5
44246 echo "${ECHO_T}$ac_res" >&6; }
44247 if test `eval echo '${'$as_ac_var'}'` = yes; then
44248   cat >>confdefs.h <<_ACEOF
44249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44250 _ACEOF
44251  cat >>confdefs.h <<\_ACEOF
44252 #define HAVE_DLERROR 1
44253 _ACEOF
44254
44255 else
44256
44257                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44258 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44259 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44260   echo $ECHO_N "(cached) $ECHO_C" >&6
44261 else
44262   ac_check_lib_save_LIBS=$LIBS
44263 LIBS="-ldl  $LIBS"
44264 cat >conftest.$ac_ext <<_ACEOF
44265 /* confdefs.h.  */
44266 _ACEOF
44267 cat confdefs.h >>conftest.$ac_ext
44268 cat >>conftest.$ac_ext <<_ACEOF
44269 /* end confdefs.h.  */
44270
44271 /* Override any GCC internal prototype to avoid an error.
44272    Use char because int might match the return type of a GCC
44273    builtin and then its argument prototype would still apply.  */
44274 #ifdef __cplusplus
44275 extern "C"
44276 #endif
44277 char dlerror ();
44278 int
44279 main ()
44280 {
44281 return dlerror ();
44282   ;
44283   return 0;
44284 }
44285 _ACEOF
44286 rm -f conftest.$ac_objext conftest$ac_exeext
44287 if { (ac_try="$ac_link"
44288 case "(($ac_try" in
44289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44290   *) ac_try_echo=$ac_try;;
44291 esac
44292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44293   (eval "$ac_link") 2>conftest.er1
44294   ac_status=$?
44295   grep -v '^ *+' conftest.er1 >conftest.err
44296   rm -f conftest.er1
44297   cat conftest.err >&5
44298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44299   (exit $ac_status); } && {
44300          test -z "$ac_c_werror_flag" ||
44301          test ! -s conftest.err
44302        } && test -s conftest$ac_exeext &&
44303        $as_test_x conftest$ac_exeext; then
44304   ac_cv_lib_dl_dlerror=yes
44305 else
44306   echo "$as_me: failed program was:" >&5
44307 sed 's/^/| /' conftest.$ac_ext >&5
44308
44309         ac_cv_lib_dl_dlerror=no
44310 fi
44311
44312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44313       conftest$ac_exeext conftest.$ac_ext
44314 LIBS=$ac_check_lib_save_LIBS
44315 fi
44316 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44317 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44318 if test $ac_cv_lib_dl_dlerror = yes; then
44319   cat >>confdefs.h <<\_ACEOF
44320 #define HAVE_DLERROR 1
44321 _ACEOF
44322
44323 fi
44324
44325
44326
44327 fi
44328 done
44329
44330         fi
44331         fi
44332
44333         if test "$HAVE_DL_FUNCS" = 0; then
44334             if test "$HAVE_SHL_FUNCS" = 0; then
44335               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44336                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44337 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44338                   wxUSE_DYNAMIC_LOADER=no
44339                   wxUSE_DYNLIB_CLASS=no
44340               else
44341                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44342 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44343               fi
44344             fi
44345         fi
44346     fi
44347 fi
44348
44349 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44350     cat >>confdefs.h <<\_ACEOF
44351 #define wxUSE_DYNAMIC_LOADER 1
44352 _ACEOF
44353
44354 fi
44355 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44356     cat >>confdefs.h <<\_ACEOF
44357 #define wxUSE_DYNLIB_CLASS 1
44358 _ACEOF
44359
44360 fi
44361
44362
44363
44364 if test "$wxUSE_PLUGINS" = "yes" ; then
44365     if test "$wxUSE_SHARED" = "no" ; then
44366         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44367 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44368         wxUSE_PLUGINS=no
44369     fi
44370     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44371         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44372 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44373         wxUSE_PLUGINS=no
44374     fi
44375     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44376         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44377 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44378         wxUSE_PLUGINS=no
44379     fi
44380     if test "$wxUSE_PLUGINS" = "yes" ; then
44381         cat >>confdefs.h <<\_ACEOF
44382 #define wxUSE_PLUGINS 1
44383 _ACEOF
44384
44385     fi
44386 fi
44387
44388
44389 if test "$wxUSE_STL" = "yes"; then
44390   cat >>confdefs.h <<\_ACEOF
44391 #define wxUSE_STL 1
44392 _ACEOF
44393
44394 fi
44395
44396 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44397   cat >>confdefs.h <<\_ACEOF
44398 #define wxUSE_EXTENDED_RTTI 1
44399 _ACEOF
44400
44401 fi
44402
44403 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44404   cat >>confdefs.h <<\_ACEOF
44405 #define wxUSE_APPLE_IEEE 1
44406 _ACEOF
44407
44408 fi
44409
44410 if test "$wxUSE_TIMER" = "yes"; then
44411   cat >>confdefs.h <<\_ACEOF
44412 #define wxUSE_TIMER 1
44413 _ACEOF
44414
44415 fi
44416
44417 if test "$USE_UNIX" = "1" ; then
44418         if test "$wxUSE_MGL" != 1; then
44419                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44420 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44421 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44422   echo $ECHO_N "(cached) $ECHO_C" >&6
44423 else
44424
44425             cat >conftest.$ac_ext <<_ACEOF
44426 /* confdefs.h.  */
44427 _ACEOF
44428 cat confdefs.h >>conftest.$ac_ext
44429 cat >>conftest.$ac_ext <<_ACEOF
44430 /* end confdefs.h.  */
44431
44432                     #include <sys/ioctl.h>
44433                     #include <sys/soundcard.h>
44434
44435 int
44436 main ()
44437 {
44438
44439                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44440
44441   ;
44442   return 0;
44443 }
44444 _ACEOF
44445 rm -f conftest.$ac_objext conftest$ac_exeext
44446 if { (ac_try="$ac_link"
44447 case "(($ac_try" in
44448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44449   *) ac_try_echo=$ac_try;;
44450 esac
44451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44452   (eval "$ac_link") 2>conftest.er1
44453   ac_status=$?
44454   grep -v '^ *+' conftest.er1 >conftest.err
44455   rm -f conftest.er1
44456   cat conftest.err >&5
44457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44458   (exit $ac_status); } && {
44459          test -z "$ac_c_werror_flag" ||
44460          test ! -s conftest.err
44461        } && test -s conftest$ac_exeext &&
44462        $as_test_x conftest$ac_exeext; then
44463   ac_cv_header_sys_soundcard=yes
44464 else
44465   echo "$as_me: failed program was:" >&5
44466 sed 's/^/| /' conftest.$ac_ext >&5
44467
44468
44469                     saveLibs="$LIBS"
44470                     LIBS="$saveLibs -lossaudio"
44471                     cat >conftest.$ac_ext <<_ACEOF
44472 /* confdefs.h.  */
44473 _ACEOF
44474 cat confdefs.h >>conftest.$ac_ext
44475 cat >>conftest.$ac_ext <<_ACEOF
44476 /* end confdefs.h.  */
44477
44478                             #include <sys/ioctl.h>
44479                             #include <sys/soundcard.h>
44480
44481 int
44482 main ()
44483 {
44484
44485                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44486
44487   ;
44488   return 0;
44489 }
44490 _ACEOF
44491 rm -f conftest.$ac_objext conftest$ac_exeext
44492 if { (ac_try="$ac_link"
44493 case "(($ac_try" in
44494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44495   *) ac_try_echo=$ac_try;;
44496 esac
44497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44498   (eval "$ac_link") 2>conftest.er1
44499   ac_status=$?
44500   grep -v '^ *+' conftest.er1 >conftest.err
44501   rm -f conftest.er1
44502   cat conftest.err >&5
44503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44504   (exit $ac_status); } && {
44505          test -z "$ac_c_werror_flag" ||
44506          test ! -s conftest.err
44507        } && test -s conftest$ac_exeext &&
44508        $as_test_x conftest$ac_exeext; then
44509   ac_cv_header_sys_soundcard=yes
44510 else
44511   echo "$as_me: failed program was:" >&5
44512 sed 's/^/| /' conftest.$ac_ext >&5
44513
44514
44515                             LIBS="$saveLibs"
44516                             ac_cv_header_sys_soundcard=no
44517
44518
44519 fi
44520
44521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44522       conftest$ac_exeext conftest.$ac_ext
44523
44524
44525 fi
44526
44527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44528       conftest$ac_exeext conftest.$ac_ext
44529
44530 fi
44531 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44532 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44533     fi
44534
44535     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44536         cat >>confdefs.h <<\_ACEOF
44537 #define HAVE_SYS_SOUNDCARD_H 1
44538 _ACEOF
44539
44540     fi
44541 fi
44542
44543 WITH_PLUGIN_SDL=0
44544 if test "$wxUSE_SOUND" = "yes"; then
44545   if test "$USE_UNIX" = "1" ; then
44546     if test "$wxUSE_LIBSDL" != "no"; then
44547
44548 # Check whether --with-sdl-prefix was given.
44549 if test "${with_sdl_prefix+set}" = set; then
44550   withval=$with_sdl_prefix; sdl_prefix="$withval"
44551 else
44552   sdl_prefix=""
44553 fi
44554
44555
44556 # Check whether --with-sdl-exec-prefix was given.
44557 if test "${with_sdl_exec_prefix+set}" = set; then
44558   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44559 else
44560   sdl_exec_prefix=""
44561 fi
44562
44563 # Check whether --enable-sdltest was given.
44564 if test "${enable_sdltest+set}" = set; then
44565   enableval=$enable_sdltest;
44566 else
44567   enable_sdltest=yes
44568 fi
44569
44570
44571   if test x$sdl_exec_prefix != x ; then
44572     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44573     if test x${SDL_CONFIG+set} != xset ; then
44574       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44575     fi
44576   fi
44577   if test x$sdl_prefix != x ; then
44578     sdl_args="$sdl_args --prefix=$sdl_prefix"
44579     if test x${SDL_CONFIG+set} != xset ; then
44580       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44581     fi
44582   fi
44583
44584   if test "x$prefix" != xNONE; then
44585     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44586   fi
44587   # Extract the first word of "sdl-config", so it can be a program name with args.
44588 set dummy sdl-config; ac_word=$2
44589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44591 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44592   echo $ECHO_N "(cached) $ECHO_C" >&6
44593 else
44594   case $SDL_CONFIG in
44595   [\\/]* | ?:[\\/]*)
44596   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44597   ;;
44598   *)
44599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44600 for as_dir in $PATH
44601 do
44602   IFS=$as_save_IFS
44603   test -z "$as_dir" && as_dir=.
44604   for ac_exec_ext in '' $ac_executable_extensions; do
44605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44606     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44608     break 2
44609   fi
44610 done
44611 done
44612 IFS=$as_save_IFS
44613
44614   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44615   ;;
44616 esac
44617 fi
44618 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44619 if test -n "$SDL_CONFIG"; then
44620   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44621 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44622 else
44623   { echo "$as_me:$LINENO: result: no" >&5
44624 echo "${ECHO_T}no" >&6; }
44625 fi
44626
44627
44628   min_sdl_version=1.2.0
44629   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44630 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44631   no_sdl=""
44632   if test "$SDL_CONFIG" = "no" ; then
44633     no_sdl=yes
44634   else
44635     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44636     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44637
44638     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44639            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44640     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44641            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44642     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44643            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44644     if test "x$enable_sdltest" = "xyes" ; then
44645       ac_save_CFLAGS="$CFLAGS"
44646       ac_save_CXXFLAGS="$CXXFLAGS"
44647       ac_save_LIBS="$LIBS"
44648       CFLAGS="$CFLAGS $SDL_CFLAGS"
44649       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44650       LIBS="$LIBS $SDL_LIBS"
44651       rm -f conf.sdltest
44652       if test "$cross_compiling" = yes; then
44653   echo $ac_n "cross compiling; assumed OK... $ac_c"
44654 else
44655   cat >conftest.$ac_ext <<_ACEOF
44656 /* confdefs.h.  */
44657 _ACEOF
44658 cat confdefs.h >>conftest.$ac_ext
44659 cat >>conftest.$ac_ext <<_ACEOF
44660 /* end confdefs.h.  */
44661
44662 #include <stdio.h>
44663 #include <stdlib.h>
44664 #include <string.h>
44665 #include "SDL.h"
44666
44667 char*
44668 my_strdup (char *str)
44669 {
44670   char *new_str;
44671
44672   if (str)
44673     {
44674       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44675       strcpy (new_str, str);
44676     }
44677   else
44678     new_str = NULL;
44679
44680   return new_str;
44681 }
44682
44683 int main (int argc, char *argv[])
44684 {
44685   int major, minor, micro;
44686   char *tmp_version;
44687
44688   /* This hangs on some systems (?)
44689   system ("touch conf.sdltest");
44690   */
44691   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44692
44693   /* HP/UX 9 (%@#!) writes to sscanf strings */
44694   tmp_version = my_strdup("$min_sdl_version");
44695   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44696      printf("%s, bad version string\n", "$min_sdl_version");
44697      exit(1);
44698    }
44699
44700    if (($sdl_major_version > major) ||
44701       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44702       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44703     {
44704       return 0;
44705     }
44706   else
44707     {
44708       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44709       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44710       printf("*** best to upgrade to the required version.\n");
44711       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44712       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44713       printf("*** config.cache before re-running configure\n");
44714       return 1;
44715     }
44716 }
44717
44718
44719 _ACEOF
44720 rm -f conftest$ac_exeext
44721 if { (ac_try="$ac_link"
44722 case "(($ac_try" in
44723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44724   *) ac_try_echo=$ac_try;;
44725 esac
44726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44727   (eval "$ac_link") 2>&5
44728   ac_status=$?
44729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44731   { (case "(($ac_try" in
44732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44733   *) ac_try_echo=$ac_try;;
44734 esac
44735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44736   (eval "$ac_try") 2>&5
44737   ac_status=$?
44738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44739   (exit $ac_status); }; }; then
44740   :
44741 else
44742   echo "$as_me: program exited with status $ac_status" >&5
44743 echo "$as_me: failed program was:" >&5
44744 sed 's/^/| /' conftest.$ac_ext >&5
44745
44746 ( exit $ac_status )
44747 no_sdl=yes
44748 fi
44749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44750 fi
44751
44752
44753        CFLAGS="$ac_save_CFLAGS"
44754        CXXFLAGS="$ac_save_CXXFLAGS"
44755        LIBS="$ac_save_LIBS"
44756      fi
44757   fi
44758   if test "x$no_sdl" = x ; then
44759      { echo "$as_me:$LINENO: result: yes" >&5
44760 echo "${ECHO_T}yes" >&6; }
44761
44762                     EXTRALIBS_SDL="$SDL_LIBS"
44763                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44764                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44765                     cat >>confdefs.h <<\_ACEOF
44766 #define wxUSE_LIBSDL 1
44767 _ACEOF
44768
44769
44770   else
44771      { echo "$as_me:$LINENO: result: no" >&5
44772 echo "${ECHO_T}no" >&6; }
44773      if test "$SDL_CONFIG" = "no" ; then
44774        echo "*** The sdl-config script installed by SDL could not be found"
44775        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44776        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44777        echo "*** full path to sdl-config."
44778      else
44779        if test -f conf.sdltest ; then
44780         :
44781        else
44782           echo "*** Could not run SDL test program, checking why..."
44783           CFLAGS="$CFLAGS $SDL_CFLAGS"
44784           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44785           LIBS="$LIBS $SDL_LIBS"
44786           cat >conftest.$ac_ext <<_ACEOF
44787 /* confdefs.h.  */
44788 _ACEOF
44789 cat confdefs.h >>conftest.$ac_ext
44790 cat >>conftest.$ac_ext <<_ACEOF
44791 /* end confdefs.h.  */
44792
44793 #include <stdio.h>
44794 #include "SDL.h"
44795
44796 int main(int argc, char *argv[])
44797 { return 0; }
44798 #undef  main
44799 #define main K_and_R_C_main
44800
44801 int
44802 main ()
44803 {
44804  return 0;
44805   ;
44806   return 0;
44807 }
44808 _ACEOF
44809 rm -f conftest.$ac_objext conftest$ac_exeext
44810 if { (ac_try="$ac_link"
44811 case "(($ac_try" in
44812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44813   *) ac_try_echo=$ac_try;;
44814 esac
44815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44816   (eval "$ac_link") 2>conftest.er1
44817   ac_status=$?
44818   grep -v '^ *+' conftest.er1 >conftest.err
44819   rm -f conftest.er1
44820   cat conftest.err >&5
44821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44822   (exit $ac_status); } && {
44823          test -z "$ac_c_werror_flag" ||
44824          test ! -s conftest.err
44825        } && test -s conftest$ac_exeext &&
44826        $as_test_x conftest$ac_exeext; then
44827    echo "*** The test program compiled, but did not run. This usually means"
44828           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44829           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44830           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44831           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44832           echo "*** is required on your system"
44833           echo "***"
44834           echo "*** If you have an old version installed, it is best to remove it, although"
44835           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44836 else
44837   echo "$as_me: failed program was:" >&5
44838 sed 's/^/| /' conftest.$ac_ext >&5
44839
44840          echo "*** The test program failed to compile or link. See the file config.log for the"
44841           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44842           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44843           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44844 fi
44845
44846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44847       conftest$ac_exeext conftest.$ac_ext
44848           CFLAGS="$ac_save_CFLAGS"
44849           CXXFLAGS="$ac_save_CXXFLAGS"
44850           LIBS="$ac_save_LIBS"
44851        fi
44852      fi
44853      SDL_CFLAGS=""
44854      SDL_LIBS=""
44855      wxUSE_LIBSDL="no"
44856   fi
44857
44858
44859   rm -f conf.sdltest
44860
44861       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44862         WITH_PLUGIN_SDL=1
44863       fi
44864     fi
44865   else
44866         if test "$wxUSE_MGL" = 1; then
44867         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44868 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44869         wxUSE_SOUND="no"
44870     fi
44871   fi
44872 fi
44873
44874 if test "$wxUSE_SOUND" = "yes"; then
44875   cat >>confdefs.h <<\_ACEOF
44876 #define wxUSE_SOUND 1
44877 _ACEOF
44878
44879   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44880 fi
44881
44882 if test "$WXGTK20" = 1; then
44883
44884
44885 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44886         if test -n "$ac_tool_prefix"; then
44887   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44888 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44892   echo $ECHO_N "(cached) $ECHO_C" >&6
44893 else
44894   case $PKG_CONFIG in
44895   [\\/]* | ?:[\\/]*)
44896   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44897   ;;
44898   *)
44899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44900 for as_dir in $PATH
44901 do
44902   IFS=$as_save_IFS
44903   test -z "$as_dir" && as_dir=.
44904   for ac_exec_ext in '' $ac_executable_extensions; do
44905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44906     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44908     break 2
44909   fi
44910 done
44911 done
44912 IFS=$as_save_IFS
44913
44914   ;;
44915 esac
44916 fi
44917 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44918 if test -n "$PKG_CONFIG"; then
44919   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44920 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44921 else
44922   { echo "$as_me:$LINENO: result: no" >&5
44923 echo "${ECHO_T}no" >&6; }
44924 fi
44925
44926
44927 fi
44928 if test -z "$ac_cv_path_PKG_CONFIG"; then
44929   ac_pt_PKG_CONFIG=$PKG_CONFIG
44930   # Extract the first word of "pkg-config", so it can be a program name with args.
44931 set dummy pkg-config; ac_word=$2
44932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44934 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44935   echo $ECHO_N "(cached) $ECHO_C" >&6
44936 else
44937   case $ac_pt_PKG_CONFIG in
44938   [\\/]* | ?:[\\/]*)
44939   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44940   ;;
44941   *)
44942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44943 for as_dir in $PATH
44944 do
44945   IFS=$as_save_IFS
44946   test -z "$as_dir" && as_dir=.
44947   for ac_exec_ext in '' $ac_executable_extensions; do
44948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44949     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44950     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44951     break 2
44952   fi
44953 done
44954 done
44955 IFS=$as_save_IFS
44956
44957   ;;
44958 esac
44959 fi
44960 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44961 if test -n "$ac_pt_PKG_CONFIG"; then
44962   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44963 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44964 else
44965   { echo "$as_me:$LINENO: result: no" >&5
44966 echo "${ECHO_T}no" >&6; }
44967 fi
44968
44969   if test "x$ac_pt_PKG_CONFIG" = x; then
44970     PKG_CONFIG=""
44971   else
44972     case $cross_compiling:$ac_tool_warned in
44973 yes:)
44974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44975 whose name does not start with the host triplet.  If you think this
44976 configuration is useful to you, please write to autoconf@gnu.org." >&5
44977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44978 whose name does not start with the host triplet.  If you think this
44979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44980 ac_tool_warned=yes ;;
44981 esac
44982     PKG_CONFIG=$ac_pt_PKG_CONFIG
44983   fi
44984 else
44985   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44986 fi
44987
44988 fi
44989 if test -n "$PKG_CONFIG"; then
44990         _pkg_min_version=0.9.0
44991         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44992 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44993         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44994                 { echo "$as_me:$LINENO: result: yes" >&5
44995 echo "${ECHO_T}yes" >&6; }
44996         else
44997                 { echo "$as_me:$LINENO: result: no" >&5
44998 echo "${ECHO_T}no" >&6; }
44999                 PKG_CONFIG=""
45000         fi
45001
45002 fi
45003
45004     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45005         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45006
45007
45008 pkg_failed=no
45009 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
45010 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
45011
45012 if test -n "$PKG_CONFIG"; then
45013     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
45014         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
45015     else
45016         if test -n "$PKG_CONFIG" && \
45017     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45018   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45019   ac_status=$?
45020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45021   (exit $ac_status); }; then
45022   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45023 else
45024   pkg_failed=yes
45025 fi
45026     fi
45027 else
45028         pkg_failed=untried
45029 fi
45030 if test -n "$PKG_CONFIG"; then
45031     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
45032         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45033     else
45034         if test -n "$PKG_CONFIG" && \
45035     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45036   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45037   ac_status=$?
45038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45039   (exit $ac_status); }; then
45040   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45041 else
45042   pkg_failed=yes
45043 fi
45044     fi
45045 else
45046         pkg_failed=untried
45047 fi
45048
45049
45050
45051 if test $pkg_failed = yes; then
45052
45053 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45054         _pkg_short_errors_supported=yes
45055 else
45056         _pkg_short_errors_supported=no
45057 fi
45058         if test $_pkg_short_errors_supported = yes; then
45059                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45060         else
45061                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45062         fi
45063         # Put the nasty error message in config.log where it belongs
45064         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45065
45066
45067                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45068 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45069                         wxUSE_LIBGNOMEPRINT="no"
45070
45071
45072 elif test $pkg_failed = untried; then
45073
45074                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45075 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45076                         wxUSE_LIBGNOMEPRINT="no"
45077
45078
45079 else
45080         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45081         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45082         { echo "$as_me:$LINENO: result: yes" >&5
45083 echo "${ECHO_T}yes" >&6; }
45084
45085                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45086                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45087                         cat >>confdefs.h <<\_ACEOF
45088 #define wxUSE_LIBGNOMEPRINT 1
45089 _ACEOF
45090
45091
45092 fi
45093         fi
45094     fi
45095
45096     if test "$wxUSE_MIMETYPE" = "yes" ; then
45097         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45098
45099
45100 pkg_failed=no
45101 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45102 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45103
45104 if test -n "$PKG_CONFIG"; then
45105     if test -n "$GNOMEVFS_CFLAGS"; then
45106         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45107     else
45108         if test -n "$PKG_CONFIG" && \
45109     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45110   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45111   ac_status=$?
45112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113   (exit $ac_status); }; then
45114   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45115 else
45116   pkg_failed=yes
45117 fi
45118     fi
45119 else
45120         pkg_failed=untried
45121 fi
45122 if test -n "$PKG_CONFIG"; then
45123     if test -n "$GNOMEVFS_LIBS"; then
45124         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45125     else
45126         if test -n "$PKG_CONFIG" && \
45127     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45128   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45129   ac_status=$?
45130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45131   (exit $ac_status); }; then
45132   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45133 else
45134   pkg_failed=yes
45135 fi
45136     fi
45137 else
45138         pkg_failed=untried
45139 fi
45140
45141
45142
45143 if test $pkg_failed = yes; then
45144
45145 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45146         _pkg_short_errors_supported=yes
45147 else
45148         _pkg_short_errors_supported=no
45149 fi
45150         if test $_pkg_short_errors_supported = yes; then
45151                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45152         else
45153                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45154         fi
45155         # Put the nasty error message in config.log where it belongs
45156         echo "$GNOMEVFS_PKG_ERRORS" >&5
45157
45158
45159                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45160 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45161                         wxUSE_LIBGNOMEVFS="no"
45162
45163
45164 elif test $pkg_failed = untried; then
45165
45166                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45167 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45168                         wxUSE_LIBGNOMEVFS="no"
45169
45170
45171 else
45172         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45173         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45174         { echo "$as_me:$LINENO: result: yes" >&5
45175 echo "${ECHO_T}yes" >&6; }
45176
45177                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45178                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45179                         cat >>confdefs.h <<\_ACEOF
45180 #define wxUSE_LIBGNOMEVFS 1
45181 _ACEOF
45182
45183
45184 fi
45185         fi
45186     fi
45187
45188     if test "$wxUSE_LIBHILDON" = "yes" ; then
45189
45190 pkg_failed=no
45191 { echo "$as_me:$LINENO: checking for HILDON" >&5
45192 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45193
45194 if test -n "$PKG_CONFIG"; then
45195     if test -n "$HILDON_CFLAGS"; then
45196         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45197     else
45198         if test -n "$PKG_CONFIG" && \
45199     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45200   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45201   ac_status=$?
45202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203   (exit $ac_status); }; then
45204   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45205 else
45206   pkg_failed=yes
45207 fi
45208     fi
45209 else
45210         pkg_failed=untried
45211 fi
45212 if test -n "$PKG_CONFIG"; then
45213     if test -n "$HILDON_LIBS"; then
45214         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45215     else
45216         if test -n "$PKG_CONFIG" && \
45217     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45218   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45219   ac_status=$?
45220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221   (exit $ac_status); }; then
45222   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45223 else
45224   pkg_failed=yes
45225 fi
45226     fi
45227 else
45228         pkg_failed=untried
45229 fi
45230
45231
45232
45233 if test $pkg_failed = yes; then
45234
45235 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45236         _pkg_short_errors_supported=yes
45237 else
45238         _pkg_short_errors_supported=no
45239 fi
45240         if test $_pkg_short_errors_supported = yes; then
45241                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45242         else
45243                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45244         fi
45245         # Put the nasty error message in config.log where it belongs
45246         echo "$HILDON_PKG_ERRORS" >&5
45247
45248
45249                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45250 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45251                         wxUSE_LIBHILDON="no"
45252
45253
45254 elif test $pkg_failed = untried; then
45255
45256                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45257 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45258                         wxUSE_LIBHILDON="no"
45259
45260
45261 else
45262         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45263         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45264         { echo "$as_me:$LINENO: result: yes" >&5
45265 echo "${ECHO_T}yes" >&6; }
45266
45267                 EXTRALIBS_HILDON="$HILDON_LIBS"
45268                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45269                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45270                 cat >>confdefs.h <<\_ACEOF
45271 #define wxUSE_LIBHILDON 1
45272 _ACEOF
45273
45274
45275 fi
45276     fi
45277 fi
45278
45279 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45280   cat >>confdefs.h <<\_ACEOF
45281 #define wxUSE_CMDLINE_PARSER 1
45282 _ACEOF
45283
45284 fi
45285
45286 if test "$wxUSE_STOPWATCH" = "yes"; then
45287   cat >>confdefs.h <<\_ACEOF
45288 #define wxUSE_STOPWATCH 1
45289 _ACEOF
45290
45291 fi
45292
45293 if test "$wxUSE_DATETIME" = "yes"; then
45294   cat >>confdefs.h <<\_ACEOF
45295 #define wxUSE_DATETIME 1
45296 _ACEOF
45297
45298 fi
45299
45300 if test "$wxUSE_FILE" = "yes"; then
45301   cat >>confdefs.h <<\_ACEOF
45302 #define wxUSE_FILE 1
45303 _ACEOF
45304
45305 fi
45306
45307 if test "$wxUSE_FFILE" = "yes"; then
45308   cat >>confdefs.h <<\_ACEOF
45309 #define wxUSE_FFILE 1
45310 _ACEOF
45311
45312 fi
45313
45314 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45315   if test "$wxUSE_STREAMS" != yes; then
45316     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45317 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45318     wxUSE_ARCHIVE_STREAMS=no
45319   else
45320     cat >>confdefs.h <<\_ACEOF
45321 #define wxUSE_ARCHIVE_STREAMS 1
45322 _ACEOF
45323
45324   fi
45325 fi
45326
45327 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45328   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45329     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45330 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45331   elif test "$wxUSE_ZLIB" = "no"; then
45332     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45333 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45334   else
45335     cat >>confdefs.h <<\_ACEOF
45336 #define wxUSE_ZIPSTREAM 1
45337 _ACEOF
45338
45339   fi
45340 fi
45341
45342 if test "$wxUSE_TARSTREAM" = "yes"; then
45343   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45344     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45345 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45346   else
45347     cat >>confdefs.h <<\_ACEOF
45348 #define wxUSE_TARSTREAM 1
45349 _ACEOF
45350
45351   fi
45352 fi
45353
45354 if test "$wxUSE_FILESYSTEM" = "yes"; then
45355   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45356     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45357 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45358     wxUSE_FILESYSTEM=no
45359   else
45360     cat >>confdefs.h <<\_ACEOF
45361 #define wxUSE_FILESYSTEM 1
45362 _ACEOF
45363
45364   fi
45365 fi
45366
45367 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45368   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45369     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45370 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45371   else
45372     cat >>confdefs.h <<\_ACEOF
45373 #define wxUSE_FS_ARCHIVE 1
45374 _ACEOF
45375
45376   fi
45377 fi
45378
45379 if test "$wxUSE_FS_ZIP" = "yes"; then
45380   if test "$wxUSE_FS_ARCHIVE" != yes; then
45381     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45382 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45383   else
45384     cat >>confdefs.h <<\_ACEOF
45385 #define wxUSE_FS_ZIP 1
45386 _ACEOF
45387
45388   fi
45389 fi
45390
45391 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45392   if test "$USE_UNIX" != 1; then
45393     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45394 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45395     wxUSE_ON_FATAL_EXCEPTION=no
45396   else
45397     cat >>confdefs.h <<\_ACEOF
45398 #define wxUSE_ON_FATAL_EXCEPTION 1
45399 _ACEOF
45400
45401   fi
45402 fi
45403
45404 if test "$wxUSE_STACKWALKER" = "yes"; then
45405     cat >>confdefs.h <<\_ACEOF
45406 #define wxUSE_STACKWALKER 1
45407 _ACEOF
45408
45409 fi
45410
45411 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45412     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45413         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45414 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45415         wxUSE_DEBUGREPORT=no
45416     else
45417         cat >>confdefs.h <<\_ACEOF
45418 #define wxUSE_DEBUGREPORT 1
45419 _ACEOF
45420
45421         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45422             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45423         fi
45424     fi
45425 fi
45426
45427 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45428   cat >>confdefs.h <<\_ACEOF
45429 #define wxUSE_SNGLINST_CHECKER 1
45430 _ACEOF
45431
45432 fi
45433
45434 if test "$wxUSE_BUSYINFO" = "yes"; then
45435   cat >>confdefs.h <<\_ACEOF
45436 #define wxUSE_BUSYINFO 1
45437 _ACEOF
45438
45439 fi
45440
45441 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45442   cat >>confdefs.h <<\_ACEOF
45443 #define wxUSE_STD_IOSTREAM 1
45444 _ACEOF
45445
45446 fi
45447
45448 if test "$wxUSE_STD_STRING" = "yes"; then
45449   cat >>confdefs.h <<\_ACEOF
45450 #define wxUSE_STD_STRING 1
45451 _ACEOF
45452
45453 fi
45454
45455 if test "$wxUSE_STDPATHS" = "yes"; then
45456   cat >>confdefs.h <<\_ACEOF
45457 #define wxUSE_STDPATHS 1
45458 _ACEOF
45459
45460 fi
45461
45462 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45463     cat >>confdefs.h <<\_ACEOF
45464 #define wxUSE_TEXTBUFFER 1
45465 _ACEOF
45466
45467 fi
45468
45469 if test "$wxUSE_TEXTFILE" = "yes"; then
45470   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45471     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45472 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45473   else
45474     cat >>confdefs.h <<\_ACEOF
45475 #define wxUSE_TEXTFILE 1
45476 _ACEOF
45477
45478   fi
45479 fi
45480
45481 if test "$wxUSE_CONFIG" = "yes" ; then
45482   if test "$wxUSE_TEXTFILE" != "yes"; then
45483     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45484 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45485   else
45486     cat >>confdefs.h <<\_ACEOF
45487 #define wxUSE_CONFIG 1
45488 _ACEOF
45489
45490     cat >>confdefs.h <<\_ACEOF
45491 #define wxUSE_CONFIG_NATIVE 1
45492 _ACEOF
45493
45494     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45495   fi
45496 fi
45497
45498 if test "$wxUSE_INTL" = "yes" ; then
45499   if test "$wxUSE_FILE" != "yes"; then
45500     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45501 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45502   else
45503     cat >>confdefs.h <<\_ACEOF
45504 #define wxUSE_INTL 1
45505 _ACEOF
45506
45507     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45508     GUIDIST="$GUIDIST INTL_DIST"
45509   fi
45510 fi
45511
45512 if test "$wxUSE_LOG" = "yes"; then
45513   cat >>confdefs.h <<\_ACEOF
45514 #define wxUSE_LOG 1
45515 _ACEOF
45516
45517
45518     if test "$wxUSE_LOGGUI" = "yes"; then
45519       cat >>confdefs.h <<\_ACEOF
45520 #define wxUSE_LOGGUI 1
45521 _ACEOF
45522
45523     fi
45524
45525     if test "$wxUSE_LOGWINDOW" = "yes"; then
45526       cat >>confdefs.h <<\_ACEOF
45527 #define wxUSE_LOGWINDOW 1
45528 _ACEOF
45529
45530     fi
45531
45532     if test "$wxUSE_LOGDIALOG" = "yes"; then
45533       cat >>confdefs.h <<\_ACEOF
45534 #define wxUSE_LOG_DIALOG 1
45535 _ACEOF
45536
45537     fi
45538
45539         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45540 fi
45541
45542 if test "$wxUSE_LONGLONG" = "yes"; then
45543   cat >>confdefs.h <<\_ACEOF
45544 #define wxUSE_LONGLONG 1
45545 _ACEOF
45546
45547 fi
45548
45549 if test "$wxUSE_GEOMETRY" = "yes"; then
45550   cat >>confdefs.h <<\_ACEOF
45551 #define wxUSE_GEOMETRY 1
45552 _ACEOF
45553
45554 fi
45555
45556 if test "$wxUSE_BASE64" = "yes"; then
45557   cat >>confdefs.h <<\_ACEOF
45558 #define wxUSE_BASE64 1
45559 _ACEOF
45560
45561 fi
45562
45563 if test "$wxUSE_STREAMS" = "yes" ; then
45564   cat >>confdefs.h <<\_ACEOF
45565 #define wxUSE_STREAMS 1
45566 _ACEOF
45567
45568 fi
45569
45570 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45571   cat >>confdefs.h <<\_ACEOF
45572 #define wxUSE_PRINTF_POS_PARAMS 1
45573 _ACEOF
45574
45575 fi
45576
45577 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45578   cat >>confdefs.h <<\_ACEOF
45579 #define wxUSE_OBJC_UNIQUIFYING 1
45580 _ACEOF
45581
45582 fi
45583
45584
45585 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45586     cat >>confdefs.h <<\_ACEOF
45587 #define wxUSE_CONSOLE_EVENTLOOP 1
45588 _ACEOF
45589
45590
45591     if test "$wxUSE_UNIX" = "yes"; then
45592         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45593             cat >>confdefs.h <<\_ACEOF
45594 #define wxUSE_SELECT_DISPATCHER 1
45595 _ACEOF
45596
45597         fi
45598
45599         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45600
45601 for ac_header in sys/epoll.h
45602 do
45603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45605   { echo "$as_me:$LINENO: checking for $ac_header" >&5
45606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45608   echo $ECHO_N "(cached) $ECHO_C" >&6
45609 fi
45610 ac_res=`eval echo '${'$as_ac_Header'}'`
45611                { echo "$as_me:$LINENO: result: $ac_res" >&5
45612 echo "${ECHO_T}$ac_res" >&6; }
45613 else
45614   # Is the header compilable?
45615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45617 cat >conftest.$ac_ext <<_ACEOF
45618 /* confdefs.h.  */
45619 _ACEOF
45620 cat confdefs.h >>conftest.$ac_ext
45621 cat >>conftest.$ac_ext <<_ACEOF
45622 /* end confdefs.h.  */
45623 $ac_includes_default
45624 #include <$ac_header>
45625 _ACEOF
45626 rm -f conftest.$ac_objext
45627 if { (ac_try="$ac_compile"
45628 case "(($ac_try" in
45629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45630   *) ac_try_echo=$ac_try;;
45631 esac
45632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45633   (eval "$ac_compile") 2>conftest.er1
45634   ac_status=$?
45635   grep -v '^ *+' conftest.er1 >conftest.err
45636   rm -f conftest.er1
45637   cat conftest.err >&5
45638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45639   (exit $ac_status); } && {
45640          test -z "$ac_c_werror_flag" ||
45641          test ! -s conftest.err
45642        } && test -s conftest.$ac_objext; then
45643   ac_header_compiler=yes
45644 else
45645   echo "$as_me: failed program was:" >&5
45646 sed 's/^/| /' conftest.$ac_ext >&5
45647
45648         ac_header_compiler=no
45649 fi
45650
45651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45653 echo "${ECHO_T}$ac_header_compiler" >&6; }
45654
45655 # Is the header present?
45656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45658 cat >conftest.$ac_ext <<_ACEOF
45659 /* confdefs.h.  */
45660 _ACEOF
45661 cat confdefs.h >>conftest.$ac_ext
45662 cat >>conftest.$ac_ext <<_ACEOF
45663 /* end confdefs.h.  */
45664 #include <$ac_header>
45665 _ACEOF
45666 if { (ac_try="$ac_cpp conftest.$ac_ext"
45667 case "(($ac_try" in
45668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45669   *) ac_try_echo=$ac_try;;
45670 esac
45671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45673   ac_status=$?
45674   grep -v '^ *+' conftest.er1 >conftest.err
45675   rm -f conftest.er1
45676   cat conftest.err >&5
45677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45678   (exit $ac_status); } >/dev/null && {
45679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45680          test ! -s conftest.err
45681        }; then
45682   ac_header_preproc=yes
45683 else
45684   echo "$as_me: failed program was:" >&5
45685 sed 's/^/| /' conftest.$ac_ext >&5
45686
45687   ac_header_preproc=no
45688 fi
45689
45690 rm -f conftest.err conftest.$ac_ext
45691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45692 echo "${ECHO_T}$ac_header_preproc" >&6; }
45693
45694 # So?  What about this header?
45695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45696   yes:no: )
45697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45701     ac_header_preproc=yes
45702     ;;
45703   no:yes:* )
45704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45716     ( cat <<\_ASBOX
45717 ## ----------------------------------------- ##
45718 ## Report this to wx-dev@lists.wxwidgets.org ##
45719 ## ----------------------------------------- ##
45720 _ASBOX
45721      ) | sed "s/^/$as_me: WARNING:     /" >&2
45722     ;;
45723 esac
45724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45727   echo $ECHO_N "(cached) $ECHO_C" >&6
45728 else
45729   eval "$as_ac_Header=\$ac_header_preproc"
45730 fi
45731 ac_res=`eval echo '${'$as_ac_Header'}'`
45732                { echo "$as_me:$LINENO: result: $ac_res" >&5
45733 echo "${ECHO_T}$ac_res" >&6; }
45734
45735 fi
45736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45737   cat >>confdefs.h <<_ACEOF
45738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45739 _ACEOF
45740
45741 fi
45742
45743 done
45744
45745             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45746                 cat >>confdefs.h <<\_ACEOF
45747 #define wxUSE_EPOLL_DISPATCHER 1
45748 _ACEOF
45749
45750             else
45751                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45752 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45753             fi
45754         fi
45755     fi
45756 fi
45757
45758
45759
45760
45761 for ac_func in gettimeofday ftime
45762 do
45763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45767   echo $ECHO_N "(cached) $ECHO_C" >&6
45768 else
45769   cat >conftest.$ac_ext <<_ACEOF
45770 /* confdefs.h.  */
45771 _ACEOF
45772 cat confdefs.h >>conftest.$ac_ext
45773 cat >>conftest.$ac_ext <<_ACEOF
45774 /* end confdefs.h.  */
45775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45777 #define $ac_func innocuous_$ac_func
45778
45779 /* System header to define __stub macros and hopefully few prototypes,
45780     which can conflict with char $ac_func (); below.
45781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45782     <limits.h> exists even on freestanding compilers.  */
45783
45784 #ifdef __STDC__
45785 # include <limits.h>
45786 #else
45787 # include <assert.h>
45788 #endif
45789
45790 #undef $ac_func
45791
45792 /* Override any GCC internal prototype to avoid an error.
45793    Use char because int might match the return type of a GCC
45794    builtin and then its argument prototype would still apply.  */
45795 #ifdef __cplusplus
45796 extern "C"
45797 #endif
45798 char $ac_func ();
45799 /* The GNU C library defines this for functions which it implements
45800     to always fail with ENOSYS.  Some functions are actually named
45801     something starting with __ and the normal name is an alias.  */
45802 #if defined __stub_$ac_func || defined __stub___$ac_func
45803 choke me
45804 #endif
45805
45806 int
45807 main ()
45808 {
45809 return $ac_func ();
45810   ;
45811   return 0;
45812 }
45813 _ACEOF
45814 rm -f conftest.$ac_objext conftest$ac_exeext
45815 if { (ac_try="$ac_link"
45816 case "(($ac_try" in
45817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45818   *) ac_try_echo=$ac_try;;
45819 esac
45820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45821   (eval "$ac_link") 2>conftest.er1
45822   ac_status=$?
45823   grep -v '^ *+' conftest.er1 >conftest.err
45824   rm -f conftest.er1
45825   cat conftest.err >&5
45826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45827   (exit $ac_status); } && {
45828          test -z "$ac_c_werror_flag" ||
45829          test ! -s conftest.err
45830        } && test -s conftest$ac_exeext &&
45831        $as_test_x conftest$ac_exeext; then
45832   eval "$as_ac_var=yes"
45833 else
45834   echo "$as_me: failed program was:" >&5
45835 sed 's/^/| /' conftest.$ac_ext >&5
45836
45837         eval "$as_ac_var=no"
45838 fi
45839
45840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45841       conftest$ac_exeext conftest.$ac_ext
45842 fi
45843 ac_res=`eval echo '${'$as_ac_var'}'`
45844                { echo "$as_me:$LINENO: result: $ac_res" >&5
45845 echo "${ECHO_T}$ac_res" >&6; }
45846 if test `eval echo '${'$as_ac_var'}'` = yes; then
45847   cat >>confdefs.h <<_ACEOF
45848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45849 _ACEOF
45850  break
45851 fi
45852 done
45853
45854
45855 if test "$ac_cv_func_gettimeofday" = "yes"; then
45856     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45857 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45858 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45859   echo $ECHO_N "(cached) $ECHO_C" >&6
45860 else
45861
45862                 cat >conftest.$ac_ext <<_ACEOF
45863 /* confdefs.h.  */
45864 _ACEOF
45865 cat confdefs.h >>conftest.$ac_ext
45866 cat >>conftest.$ac_ext <<_ACEOF
45867 /* end confdefs.h.  */
45868
45869                 #include <sys/time.h>
45870                 #include <unistd.h>
45871
45872 int
45873 main ()
45874 {
45875
45876                 struct timeval tv;
45877                 gettimeofday(&tv, NULL);
45878
45879   ;
45880   return 0;
45881 }
45882 _ACEOF
45883 rm -f conftest.$ac_objext
45884 if { (ac_try="$ac_compile"
45885 case "(($ac_try" in
45886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45887   *) ac_try_echo=$ac_try;;
45888 esac
45889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45890   (eval "$ac_compile") 2>conftest.er1
45891   ac_status=$?
45892   grep -v '^ *+' conftest.er1 >conftest.err
45893   rm -f conftest.er1
45894   cat conftest.err >&5
45895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45896   (exit $ac_status); } && {
45897          test -z "$ac_c_werror_flag" ||
45898          test ! -s conftest.err
45899        } && test -s conftest.$ac_objext; then
45900   wx_cv_func_gettimeofday_has_2_args=yes
45901 else
45902   echo "$as_me: failed program was:" >&5
45903 sed 's/^/| /' conftest.$ac_ext >&5
45904
45905         cat >conftest.$ac_ext <<_ACEOF
45906 /* confdefs.h.  */
45907 _ACEOF
45908 cat confdefs.h >>conftest.$ac_ext
45909 cat >>conftest.$ac_ext <<_ACEOF
45910 /* end confdefs.h.  */
45911
45912                     #include <sys/time.h>
45913                     #include <unistd.h>
45914
45915 int
45916 main ()
45917 {
45918
45919                     struct timeval tv;
45920                     gettimeofday(&tv);
45921
45922   ;
45923   return 0;
45924 }
45925 _ACEOF
45926 rm -f conftest.$ac_objext
45927 if { (ac_try="$ac_compile"
45928 case "(($ac_try" in
45929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45930   *) ac_try_echo=$ac_try;;
45931 esac
45932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45933   (eval "$ac_compile") 2>conftest.er1
45934   ac_status=$?
45935   grep -v '^ *+' conftest.er1 >conftest.err
45936   rm -f conftest.er1
45937   cat conftest.err >&5
45938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939   (exit $ac_status); } && {
45940          test -z "$ac_c_werror_flag" ||
45941          test ! -s conftest.err
45942        } && test -s conftest.$ac_objext; then
45943   wx_cv_func_gettimeofday_has_2_args=no
45944 else
45945   echo "$as_me: failed program was:" >&5
45946 sed 's/^/| /' conftest.$ac_ext >&5
45947
45948
45949                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45950 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45951                     wx_cv_func_gettimeofday_has_2_args=unknown
45952
45953
45954 fi
45955
45956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45957
45958 fi
45959
45960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45961
45962 fi
45963 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45964 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45965
45966     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45967         cat >>confdefs.h <<\_ACEOF
45968 #define WX_GETTIMEOFDAY_NO_TZ 1
45969 _ACEOF
45970
45971     fi
45972 fi
45973
45974 if test "$wxUSE_DATETIME" = "yes"; then
45975         { echo "$as_me:$LINENO: checking for strptime" >&5
45976 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
45977 if test "${ac_cv_func_strptime+set}" = set; then
45978   echo $ECHO_N "(cached) $ECHO_C" >&6
45979 else
45980   cat >conftest.$ac_ext <<_ACEOF
45981 /* confdefs.h.  */
45982 _ACEOF
45983 cat confdefs.h >>conftest.$ac_ext
45984 cat >>conftest.$ac_ext <<_ACEOF
45985 /* end confdefs.h.  */
45986 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
45987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45988 #define strptime innocuous_strptime
45989
45990 /* System header to define __stub macros and hopefully few prototypes,
45991     which can conflict with char strptime (); below.
45992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45993     <limits.h> exists even on freestanding compilers.  */
45994
45995 #ifdef __STDC__
45996 # include <limits.h>
45997 #else
45998 # include <assert.h>
45999 #endif
46000
46001 #undef strptime
46002
46003 /* Override any GCC internal prototype to avoid an error.
46004    Use char because int might match the return type of a GCC
46005    builtin and then its argument prototype would still apply.  */
46006 #ifdef __cplusplus
46007 extern "C"
46008 #endif
46009 char strptime ();
46010 /* The GNU C library defines this for functions which it implements
46011     to always fail with ENOSYS.  Some functions are actually named
46012     something starting with __ and the normal name is an alias.  */
46013 #if defined __stub_strptime || defined __stub___strptime
46014 choke me
46015 #endif
46016
46017 int
46018 main ()
46019 {
46020 return strptime ();
46021   ;
46022   return 0;
46023 }
46024 _ACEOF
46025 rm -f conftest.$ac_objext conftest$ac_exeext
46026 if { (ac_try="$ac_link"
46027 case "(($ac_try" in
46028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46029   *) ac_try_echo=$ac_try;;
46030 esac
46031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46032   (eval "$ac_link") 2>conftest.er1
46033   ac_status=$?
46034   grep -v '^ *+' conftest.er1 >conftest.err
46035   rm -f conftest.er1
46036   cat conftest.err >&5
46037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46038   (exit $ac_status); } && {
46039          test -z "$ac_c_werror_flag" ||
46040          test ! -s conftest.err
46041        } && test -s conftest$ac_exeext &&
46042        $as_test_x conftest$ac_exeext; then
46043   ac_cv_func_strptime=yes
46044 else
46045   echo "$as_me: failed program was:" >&5
46046 sed 's/^/| /' conftest.$ac_ext >&5
46047
46048         ac_cv_func_strptime=no
46049 fi
46050
46051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46052       conftest$ac_exeext conftest.$ac_ext
46053 fi
46054 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46055 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46056
46057     if test "$ac_cv_func_strptime" = "yes"; then
46058         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46059 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46060 if test "${wx_cv_func_strptime_decl+set}" = set; then
46061   echo $ECHO_N "(cached) $ECHO_C" >&6
46062 else
46063
46064                 ac_ext=cpp
46065 ac_cpp='$CXXCPP $CPPFLAGS'
46066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46069
46070                 cat >conftest.$ac_ext <<_ACEOF
46071 /* confdefs.h.  */
46072 _ACEOF
46073 cat confdefs.h >>conftest.$ac_ext
46074 cat >>conftest.$ac_ext <<_ACEOF
46075 /* end confdefs.h.  */
46076
46077                         #include <time.h>
46078
46079 int
46080 main ()
46081 {
46082
46083                         struct tm t;
46084                         strptime("foo", "bar", &t);
46085
46086   ;
46087   return 0;
46088 }
46089 _ACEOF
46090 rm -f conftest.$ac_objext
46091 if { (ac_try="$ac_compile"
46092 case "(($ac_try" in
46093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46094   *) ac_try_echo=$ac_try;;
46095 esac
46096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46097   (eval "$ac_compile") 2>conftest.er1
46098   ac_status=$?
46099   grep -v '^ *+' conftest.er1 >conftest.err
46100   rm -f conftest.er1
46101   cat conftest.err >&5
46102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46103   (exit $ac_status); } && {
46104          test -z "$ac_cxx_werror_flag" ||
46105          test ! -s conftest.err
46106        } && test -s conftest.$ac_objext; then
46107   wx_cv_func_strptime_decl=yes
46108 else
46109   echo "$as_me: failed program was:" >&5
46110 sed 's/^/| /' conftest.$ac_ext >&5
46111
46112         wx_cv_func_strptime_decl=no
46113
46114 fi
46115
46116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46117                 ac_ext=c
46118 ac_cpp='$CPP $CPPFLAGS'
46119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46122
46123
46124
46125 fi
46126 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46127 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46128     fi
46129     if test "$wx_cv_func_strptime_decl" = "yes"; then
46130         cat >>confdefs.h <<\_ACEOF
46131 #define HAVE_STRPTIME_DECL 1
46132 _ACEOF
46133
46134     else
46135         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46136     fi
46137     if test "$ac_cv_func_strptime" = "yes"; then
46138                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46139 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46140 if test "${wx_cv_func_strptime_ok+set}" = set; then
46141   echo $ECHO_N "(cached) $ECHO_C" >&6
46142 else
46143   if test "$cross_compiling" = yes; then
46144                   wx_cv_func_strptime_ok=no
46145
46146 else
46147   cat >conftest.$ac_ext <<_ACEOF
46148
46149                     #include <stdlib.h>
46150                     #include <time.h>
46151                     #include "confdefs.h"
46152
46153                     $wx_strptime_decl
46154
46155                     int main()
46156                     {
46157                         struct tm t;
46158                         return !!strptime("", "%x", &t);
46159                     }
46160
46161 _ACEOF
46162 rm -f conftest$ac_exeext
46163 if { (ac_try="$ac_link"
46164 case "(($ac_try" in
46165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46166   *) ac_try_echo=$ac_try;;
46167 esac
46168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46169   (eval "$ac_link") 2>&5
46170   ac_status=$?
46171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46173   { (case "(($ac_try" in
46174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46175   *) ac_try_echo=$ac_try;;
46176 esac
46177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46178   (eval "$ac_try") 2>&5
46179   ac_status=$?
46180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46181   (exit $ac_status); }; }; then
46182   wx_cv_func_strptime_ok=yes
46183 else
46184   echo "$as_me: program exited with status $ac_status" >&5
46185 echo "$as_me: failed program was:" >&5
46186 sed 's/^/| /' conftest.$ac_ext >&5
46187
46188 ( exit $ac_status )
46189 wx_cv_func_strptime_ok=no
46190 fi
46191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46192 fi
46193
46194
46195
46196 fi
46197 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46198 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46199
46200         if test "$wx_cv_func_strptime_ok" = "yes"; then
46201             cat >>confdefs.h <<\_ACEOF
46202 #define HAVE_STRPTIME 1
46203 _ACEOF
46204
46205         fi
46206     fi
46207
46208             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46209 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46210 if test "${wx_cv_var_timezone+set}" = set; then
46211   echo $ECHO_N "(cached) $ECHO_C" >&6
46212 else
46213
46214                         ac_ext=cpp
46215 ac_cpp='$CXXCPP $CPPFLAGS'
46216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46219
46220                         cat >conftest.$ac_ext <<_ACEOF
46221 /* confdefs.h.  */
46222 _ACEOF
46223 cat confdefs.h >>conftest.$ac_ext
46224 cat >>conftest.$ac_ext <<_ACEOF
46225 /* end confdefs.h.  */
46226
46227                                 #include <time.h>
46228
46229 int
46230 main ()
46231 {
46232
46233                                 int tz;
46234                                 tz = timezone;
46235
46236   ;
46237   return 0;
46238 }
46239 _ACEOF
46240 rm -f conftest.$ac_objext
46241 if { (ac_try="$ac_compile"
46242 case "(($ac_try" in
46243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46244   *) ac_try_echo=$ac_try;;
46245 esac
46246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46247   (eval "$ac_compile") 2>conftest.er1
46248   ac_status=$?
46249   grep -v '^ *+' conftest.er1 >conftest.err
46250   rm -f conftest.er1
46251   cat conftest.err >&5
46252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46253   (exit $ac_status); } && {
46254          test -z "$ac_cxx_werror_flag" ||
46255          test ! -s conftest.err
46256        } && test -s conftest.$ac_objext; then
46257
46258                                 wx_cv_var_timezone=timezone
46259
46260 else
46261   echo "$as_me: failed program was:" >&5
46262 sed 's/^/| /' conftest.$ac_ext >&5
46263
46264
46265                                 cat >conftest.$ac_ext <<_ACEOF
46266 /* confdefs.h.  */
46267 _ACEOF
46268 cat confdefs.h >>conftest.$ac_ext
46269 cat >>conftest.$ac_ext <<_ACEOF
46270 /* end confdefs.h.  */
46271
46272                                         #include <time.h>
46273
46274 int
46275 main ()
46276 {
46277
46278                                         int tz;
46279                                         tz = _timezone;
46280
46281   ;
46282   return 0;
46283 }
46284 _ACEOF
46285 rm -f conftest.$ac_objext
46286 if { (ac_try="$ac_compile"
46287 case "(($ac_try" in
46288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46289   *) ac_try_echo=$ac_try;;
46290 esac
46291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46292   (eval "$ac_compile") 2>conftest.er1
46293   ac_status=$?
46294   grep -v '^ *+' conftest.er1 >conftest.err
46295   rm -f conftest.er1
46296   cat conftest.err >&5
46297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46298   (exit $ac_status); } && {
46299          test -z "$ac_cxx_werror_flag" ||
46300          test ! -s conftest.err
46301        } && test -s conftest.$ac_objext; then
46302
46303                                         wx_cv_var_timezone=_timezone
46304
46305 else
46306   echo "$as_me: failed program was:" >&5
46307 sed 's/^/| /' conftest.$ac_ext >&5
46308
46309
46310                                         cat >conftest.$ac_ext <<_ACEOF
46311 /* confdefs.h.  */
46312 _ACEOF
46313 cat confdefs.h >>conftest.$ac_ext
46314 cat >>conftest.$ac_ext <<_ACEOF
46315 /* end confdefs.h.  */
46316
46317                                                 #include <time.h>
46318
46319 int
46320 main ()
46321 {
46322
46323                                                 int tz;
46324                                                 tz = __timezone;
46325
46326   ;
46327   return 0;
46328 }
46329 _ACEOF
46330 rm -f conftest.$ac_objext
46331 if { (ac_try="$ac_compile"
46332 case "(($ac_try" in
46333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46334   *) ac_try_echo=$ac_try;;
46335 esac
46336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46337   (eval "$ac_compile") 2>conftest.er1
46338   ac_status=$?
46339   grep -v '^ *+' conftest.er1 >conftest.err
46340   rm -f conftest.er1
46341   cat conftest.err >&5
46342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46343   (exit $ac_status); } && {
46344          test -z "$ac_cxx_werror_flag" ||
46345          test ! -s conftest.err
46346        } && test -s conftest.$ac_objext; then
46347
46348                                                 wx_cv_var_timezone=__timezone
46349
46350 else
46351   echo "$as_me: failed program was:" >&5
46352 sed 's/^/| /' conftest.$ac_ext >&5
46353
46354
46355                                                 if test "$USE_DOS" = 0 ; then
46356                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46357 echo "$as_me: WARNING: no timezone variable" >&2;}
46358                                                 fi
46359
46360
46361 fi
46362
46363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46364
46365
46366 fi
46367
46368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46369
46370
46371 fi
46372
46373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46374                         ac_ext=c
46375 ac_cpp='$CPP $CPPFLAGS'
46376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46379
46380
46381
46382 fi
46383 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46384 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46385
46386         if test "x$wx_cv_var_timezone" != x ; then
46387         cat >>confdefs.h <<_ACEOF
46388 #define WX_TIMEZONE $wx_cv_var_timezone
46389 _ACEOF
46390
46391     fi
46392
46393
46394 for ac_func in localtime
46395 do
46396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46400   echo $ECHO_N "(cached) $ECHO_C" >&6
46401 else
46402   cat >conftest.$ac_ext <<_ACEOF
46403 /* confdefs.h.  */
46404 _ACEOF
46405 cat confdefs.h >>conftest.$ac_ext
46406 cat >>conftest.$ac_ext <<_ACEOF
46407 /* end confdefs.h.  */
46408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46410 #define $ac_func innocuous_$ac_func
46411
46412 /* System header to define __stub macros and hopefully few prototypes,
46413     which can conflict with char $ac_func (); below.
46414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46415     <limits.h> exists even on freestanding compilers.  */
46416
46417 #ifdef __STDC__
46418 # include <limits.h>
46419 #else
46420 # include <assert.h>
46421 #endif
46422
46423 #undef $ac_func
46424
46425 /* Override any GCC internal prototype to avoid an error.
46426    Use char because int might match the return type of a GCC
46427    builtin and then its argument prototype would still apply.  */
46428 #ifdef __cplusplus
46429 extern "C"
46430 #endif
46431 char $ac_func ();
46432 /* The GNU C library defines this for functions which it implements
46433     to always fail with ENOSYS.  Some functions are actually named
46434     something starting with __ and the normal name is an alias.  */
46435 #if defined __stub_$ac_func || defined __stub___$ac_func
46436 choke me
46437 #endif
46438
46439 int
46440 main ()
46441 {
46442 return $ac_func ();
46443   ;
46444   return 0;
46445 }
46446 _ACEOF
46447 rm -f conftest.$ac_objext conftest$ac_exeext
46448 if { (ac_try="$ac_link"
46449 case "(($ac_try" in
46450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46451   *) ac_try_echo=$ac_try;;
46452 esac
46453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46454   (eval "$ac_link") 2>conftest.er1
46455   ac_status=$?
46456   grep -v '^ *+' conftest.er1 >conftest.err
46457   rm -f conftest.er1
46458   cat conftest.err >&5
46459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46460   (exit $ac_status); } && {
46461          test -z "$ac_c_werror_flag" ||
46462          test ! -s conftest.err
46463        } && test -s conftest$ac_exeext &&
46464        $as_test_x conftest$ac_exeext; then
46465   eval "$as_ac_var=yes"
46466 else
46467   echo "$as_me: failed program was:" >&5
46468 sed 's/^/| /' conftest.$ac_ext >&5
46469
46470         eval "$as_ac_var=no"
46471 fi
46472
46473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46474       conftest$ac_exeext conftest.$ac_ext
46475 fi
46476 ac_res=`eval echo '${'$as_ac_var'}'`
46477                { echo "$as_me:$LINENO: result: $ac_res" >&5
46478 echo "${ECHO_T}$ac_res" >&6; }
46479 if test `eval echo '${'$as_ac_var'}'` = yes; then
46480   cat >>confdefs.h <<_ACEOF
46481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46482 _ACEOF
46483
46484 fi
46485 done
46486
46487
46488     if test "$ac_cv_func_localtime" = "yes"; then
46489         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46490 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46491 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46492   echo $ECHO_N "(cached) $ECHO_C" >&6
46493 else
46494
46495             cat >conftest.$ac_ext <<_ACEOF
46496 /* confdefs.h.  */
46497 _ACEOF
46498 cat confdefs.h >>conftest.$ac_ext
46499 cat >>conftest.$ac_ext <<_ACEOF
46500 /* end confdefs.h.  */
46501
46502                     #include <time.h>
46503
46504 int
46505 main ()
46506 {
46507
46508                     struct tm tm;
46509                     tm.tm_gmtoff++;
46510
46511   ;
46512   return 0;
46513 }
46514 _ACEOF
46515 rm -f conftest.$ac_objext
46516 if { (ac_try="$ac_compile"
46517 case "(($ac_try" in
46518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46519   *) ac_try_echo=$ac_try;;
46520 esac
46521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46522   (eval "$ac_compile") 2>conftest.er1
46523   ac_status=$?
46524   grep -v '^ *+' conftest.er1 >conftest.err
46525   rm -f conftest.er1
46526   cat conftest.err >&5
46527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46528   (exit $ac_status); } && {
46529          test -z "$ac_c_werror_flag" ||
46530          test ! -s conftest.err
46531        } && test -s conftest.$ac_objext; then
46532
46533                     wx_cv_struct_tm_has_gmtoff=yes
46534
46535 else
46536   echo "$as_me: failed program was:" >&5
46537 sed 's/^/| /' conftest.$ac_ext >&5
46538
46539         wx_cv_struct_tm_has_gmtoff=no
46540
46541 fi
46542
46543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46544
46545 fi
46546 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46547 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46548     fi
46549
46550     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46551         cat >>confdefs.h <<\_ACEOF
46552 #define WX_GMTOFF_IN_TM 1
46553 _ACEOF
46554
46555     fi
46556
46557     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46558 fi
46559
46560
46561 if test "$wxUSE_SOCKETS" = "yes"; then
46562     if test "$wxUSE_MGL" = "1"; then
46563         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46564 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46565         wxUSE_SOCKETS="no"
46566     fi
46567 fi
46568
46569 if test "$wxUSE_SOCKETS" = "yes"; then
46570         if test "$TOOLKIT" != "MSW"; then
46571                 { echo "$as_me:$LINENO: checking for socket" >&5
46572 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46573 if test "${ac_cv_func_socket+set}" = set; then
46574   echo $ECHO_N "(cached) $ECHO_C" >&6
46575 else
46576   cat >conftest.$ac_ext <<_ACEOF
46577 /* confdefs.h.  */
46578 _ACEOF
46579 cat confdefs.h >>conftest.$ac_ext
46580 cat >>conftest.$ac_ext <<_ACEOF
46581 /* end confdefs.h.  */
46582 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46584 #define socket innocuous_socket
46585
46586 /* System header to define __stub macros and hopefully few prototypes,
46587     which can conflict with char socket (); below.
46588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46589     <limits.h> exists even on freestanding compilers.  */
46590
46591 #ifdef __STDC__
46592 # include <limits.h>
46593 #else
46594 # include <assert.h>
46595 #endif
46596
46597 #undef socket
46598
46599 /* Override any GCC internal prototype to avoid an error.
46600    Use char because int might match the return type of a GCC
46601    builtin and then its argument prototype would still apply.  */
46602 #ifdef __cplusplus
46603 extern "C"
46604 #endif
46605 char socket ();
46606 /* The GNU C library defines this for functions which it implements
46607     to always fail with ENOSYS.  Some functions are actually named
46608     something starting with __ and the normal name is an alias.  */
46609 #if defined __stub_socket || defined __stub___socket
46610 choke me
46611 #endif
46612
46613 int
46614 main ()
46615 {
46616 return socket ();
46617   ;
46618   return 0;
46619 }
46620 _ACEOF
46621 rm -f conftest.$ac_objext conftest$ac_exeext
46622 if { (ac_try="$ac_link"
46623 case "(($ac_try" in
46624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46625   *) ac_try_echo=$ac_try;;
46626 esac
46627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46628   (eval "$ac_link") 2>conftest.er1
46629   ac_status=$?
46630   grep -v '^ *+' conftest.er1 >conftest.err
46631   rm -f conftest.er1
46632   cat conftest.err >&5
46633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46634   (exit $ac_status); } && {
46635          test -z "$ac_c_werror_flag" ||
46636          test ! -s conftest.err
46637        } && test -s conftest$ac_exeext &&
46638        $as_test_x conftest$ac_exeext; then
46639   ac_cv_func_socket=yes
46640 else
46641   echo "$as_me: failed program was:" >&5
46642 sed 's/^/| /' conftest.$ac_ext >&5
46643
46644         ac_cv_func_socket=no
46645 fi
46646
46647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46648       conftest$ac_exeext conftest.$ac_ext
46649 fi
46650 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46651 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46652 if test $ac_cv_func_socket = yes; then
46653   :
46654 else
46655
46656                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46657 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46658 if test "${ac_cv_lib_socket_socket+set}" = set; then
46659   echo $ECHO_N "(cached) $ECHO_C" >&6
46660 else
46661   ac_check_lib_save_LIBS=$LIBS
46662 LIBS="-lsocket  $LIBS"
46663 cat >conftest.$ac_ext <<_ACEOF
46664 /* confdefs.h.  */
46665 _ACEOF
46666 cat confdefs.h >>conftest.$ac_ext
46667 cat >>conftest.$ac_ext <<_ACEOF
46668 /* end confdefs.h.  */
46669
46670 /* Override any GCC internal prototype to avoid an error.
46671    Use char because int might match the return type of a GCC
46672    builtin and then its argument prototype would still apply.  */
46673 #ifdef __cplusplus
46674 extern "C"
46675 #endif
46676 char socket ();
46677 int
46678 main ()
46679 {
46680 return socket ();
46681   ;
46682   return 0;
46683 }
46684 _ACEOF
46685 rm -f conftest.$ac_objext conftest$ac_exeext
46686 if { (ac_try="$ac_link"
46687 case "(($ac_try" in
46688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46689   *) ac_try_echo=$ac_try;;
46690 esac
46691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46692   (eval "$ac_link") 2>conftest.er1
46693   ac_status=$?
46694   grep -v '^ *+' conftest.er1 >conftest.err
46695   rm -f conftest.er1
46696   cat conftest.err >&5
46697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46698   (exit $ac_status); } && {
46699          test -z "$ac_c_werror_flag" ||
46700          test ! -s conftest.err
46701        } && test -s conftest$ac_exeext &&
46702        $as_test_x conftest$ac_exeext; then
46703   ac_cv_lib_socket_socket=yes
46704 else
46705   echo "$as_me: failed program was:" >&5
46706 sed 's/^/| /' conftest.$ac_ext >&5
46707
46708         ac_cv_lib_socket_socket=no
46709 fi
46710
46711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46712       conftest$ac_exeext conftest.$ac_ext
46713 LIBS=$ac_check_lib_save_LIBS
46714 fi
46715 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46716 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46717 if test $ac_cv_lib_socket_socket = yes; then
46718   if test "$INET_LINK" != " -lsocket"; then
46719                         INET_LINK="$INET_LINK -lsocket"
46720                     fi
46721 else
46722
46723                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46724 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46725                         wxUSE_SOCKETS=no
46726
46727
46728 fi
46729
46730
46731
46732 fi
46733
46734     fi
46735 fi
46736
46737 if test "$wxUSE_SOCKETS" = "yes" ; then
46738                 if test "$TOOLKIT" != "MSW"; then
46739                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46740 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46741 if test "${wx_cv_type_getsockname3+set}" = set; then
46742   echo $ECHO_N "(cached) $ECHO_C" >&6
46743 else
46744
46745                 ac_ext=cpp
46746 ac_cpp='$CXXCPP $CPPFLAGS'
46747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46750
46751                 cat >conftest.$ac_ext <<_ACEOF
46752 /* confdefs.h.  */
46753 _ACEOF
46754 cat confdefs.h >>conftest.$ac_ext
46755 cat >>conftest.$ac_ext <<_ACEOF
46756 /* end confdefs.h.  */
46757
46758                         #include <sys/types.h>
46759                         #include <sys/socket.h>
46760
46761 int
46762 main ()
46763 {
46764
46765                         socklen_t len;
46766                         getsockname(0, 0, &len);
46767
46768   ;
46769   return 0;
46770 }
46771 _ACEOF
46772 rm -f conftest.$ac_objext
46773 if { (ac_try="$ac_compile"
46774 case "(($ac_try" in
46775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46776   *) ac_try_echo=$ac_try;;
46777 esac
46778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46779   (eval "$ac_compile") 2>conftest.er1
46780   ac_status=$?
46781   grep -v '^ *+' conftest.er1 >conftest.err
46782   rm -f conftest.er1
46783   cat conftest.err >&5
46784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46785   (exit $ac_status); } && {
46786          test -z "$ac_cxx_werror_flag" ||
46787          test ! -s conftest.err
46788        } && test -s conftest.$ac_objext; then
46789   wx_cv_type_getsockname3=socklen_t
46790 else
46791   echo "$as_me: failed program was:" >&5
46792 sed 's/^/| /' conftest.$ac_ext >&5
46793
46794
46795                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46796                         if test "$GCC" = yes ; then
46797                             CFLAGS="-Werror $CFLAGS"
46798                         fi
46799
46800                         cat >conftest.$ac_ext <<_ACEOF
46801 /* confdefs.h.  */
46802 _ACEOF
46803 cat confdefs.h >>conftest.$ac_ext
46804 cat >>conftest.$ac_ext <<_ACEOF
46805 /* end confdefs.h.  */
46806
46807                                 #include <sys/types.h>
46808                                 #include <sys/socket.h>
46809
46810 int
46811 main ()
46812 {
46813
46814                                 size_t len;
46815                                 getsockname(0, 0, &len);
46816
46817   ;
46818   return 0;
46819 }
46820 _ACEOF
46821 rm -f conftest.$ac_objext
46822 if { (ac_try="$ac_compile"
46823 case "(($ac_try" in
46824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46825   *) ac_try_echo=$ac_try;;
46826 esac
46827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46828   (eval "$ac_compile") 2>conftest.er1
46829   ac_status=$?
46830   grep -v '^ *+' conftest.er1 >conftest.err
46831   rm -f conftest.er1
46832   cat conftest.err >&5
46833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46834   (exit $ac_status); } && {
46835          test -z "$ac_cxx_werror_flag" ||
46836          test ! -s conftest.err
46837        } && test -s conftest.$ac_objext; then
46838   wx_cv_type_getsockname3=size_t
46839 else
46840   echo "$as_me: failed program was:" >&5
46841 sed 's/^/| /' conftest.$ac_ext >&5
46842
46843         cat >conftest.$ac_ext <<_ACEOF
46844 /* confdefs.h.  */
46845 _ACEOF
46846 cat confdefs.h >>conftest.$ac_ext
46847 cat >>conftest.$ac_ext <<_ACEOF
46848 /* end confdefs.h.  */
46849
46850                                     #include <sys/types.h>
46851                                     #include <sys/socket.h>
46852
46853 int
46854 main ()
46855 {
46856
46857                                     int len;
46858                                     getsockname(0, 0, &len);
46859
46860   ;
46861   return 0;
46862 }
46863 _ACEOF
46864 rm -f conftest.$ac_objext
46865 if { (ac_try="$ac_compile"
46866 case "(($ac_try" in
46867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46868   *) ac_try_echo=$ac_try;;
46869 esac
46870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46871   (eval "$ac_compile") 2>conftest.er1
46872   ac_status=$?
46873   grep -v '^ *+' conftest.er1 >conftest.err
46874   rm -f conftest.er1
46875   cat conftest.err >&5
46876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46877   (exit $ac_status); } && {
46878          test -z "$ac_cxx_werror_flag" ||
46879          test ! -s conftest.err
46880        } && test -s conftest.$ac_objext; then
46881   wx_cv_type_getsockname3=int
46882 else
46883   echo "$as_me: failed program was:" >&5
46884 sed 's/^/| /' conftest.$ac_ext >&5
46885
46886         wx_cv_type_getsockname3=unknown
46887
46888 fi
46889
46890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46891
46892 fi
46893
46894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46895
46896                         CFLAGS="$CFLAGS_OLD"
46897
46898
46899 fi
46900
46901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46902                 ac_ext=c
46903 ac_cpp='$CPP $CPPFLAGS'
46904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46907
46908
46909 fi
46910 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46911 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46912
46913         if test "$wx_cv_type_getsockname3" = "unknown"; then
46914             wxUSE_SOCKETS=no
46915             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46916 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46917         else
46918             cat >>confdefs.h <<_ACEOF
46919 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46920 _ACEOF
46921
46922         fi
46923                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46924 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46925 if test "${wx_cv_type_getsockopt5+set}" = set; then
46926   echo $ECHO_N "(cached) $ECHO_C" >&6
46927 else
46928
46929                                                                                                 ac_ext=cpp
46930 ac_cpp='$CXXCPP $CPPFLAGS'
46931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46934
46935                 cat >conftest.$ac_ext <<_ACEOF
46936 /* confdefs.h.  */
46937 _ACEOF
46938 cat confdefs.h >>conftest.$ac_ext
46939 cat >>conftest.$ac_ext <<_ACEOF
46940 /* end confdefs.h.  */
46941
46942                         #include <sys/types.h>
46943                         #include <sys/socket.h>
46944
46945 int
46946 main ()
46947 {
46948
46949                         socklen_t len;
46950                         getsockopt(0, 0, 0, 0, &len);
46951
46952   ;
46953   return 0;
46954 }
46955 _ACEOF
46956 rm -f conftest.$ac_objext
46957 if { (ac_try="$ac_compile"
46958 case "(($ac_try" in
46959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46960   *) ac_try_echo=$ac_try;;
46961 esac
46962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46963   (eval "$ac_compile") 2>conftest.er1
46964   ac_status=$?
46965   grep -v '^ *+' conftest.er1 >conftest.err
46966   rm -f conftest.er1
46967   cat conftest.err >&5
46968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46969   (exit $ac_status); } && {
46970          test -z "$ac_cxx_werror_flag" ||
46971          test ! -s conftest.err
46972        } && test -s conftest.$ac_objext; then
46973   wx_cv_type_getsockopt5=socklen_t
46974 else
46975   echo "$as_me: failed program was:" >&5
46976 sed 's/^/| /' conftest.$ac_ext >&5
46977
46978
46979                         cat >conftest.$ac_ext <<_ACEOF
46980 /* confdefs.h.  */
46981 _ACEOF
46982 cat confdefs.h >>conftest.$ac_ext
46983 cat >>conftest.$ac_ext <<_ACEOF
46984 /* end confdefs.h.  */
46985
46986                                 #include <sys/types.h>
46987                                 #include <sys/socket.h>
46988
46989 int
46990 main ()
46991 {
46992
46993                                 size_t len;
46994                                 getsockopt(0, 0, 0, 0, &len);
46995
46996   ;
46997   return 0;
46998 }
46999 _ACEOF
47000 rm -f conftest.$ac_objext
47001 if { (ac_try="$ac_compile"
47002 case "(($ac_try" in
47003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47004   *) ac_try_echo=$ac_try;;
47005 esac
47006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47007   (eval "$ac_compile") 2>conftest.er1
47008   ac_status=$?
47009   grep -v '^ *+' conftest.er1 >conftest.err
47010   rm -f conftest.er1
47011   cat conftest.err >&5
47012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47013   (exit $ac_status); } && {
47014          test -z "$ac_cxx_werror_flag" ||
47015          test ! -s conftest.err
47016        } && test -s conftest.$ac_objext; then
47017   wx_cv_type_getsockopt5=size_t
47018 else
47019   echo "$as_me: failed program was:" >&5
47020 sed 's/^/| /' conftest.$ac_ext >&5
47021
47022         cat >conftest.$ac_ext <<_ACEOF
47023 /* confdefs.h.  */
47024 _ACEOF
47025 cat confdefs.h >>conftest.$ac_ext
47026 cat >>conftest.$ac_ext <<_ACEOF
47027 /* end confdefs.h.  */
47028
47029                                     #include <sys/types.h>
47030                                     #include <sys/socket.h>
47031
47032 int
47033 main ()
47034 {
47035
47036                                     int len;
47037                                     getsockopt(0, 0, 0, 0, &len);
47038
47039   ;
47040   return 0;
47041 }
47042 _ACEOF
47043 rm -f conftest.$ac_objext
47044 if { (ac_try="$ac_compile"
47045 case "(($ac_try" in
47046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47047   *) ac_try_echo=$ac_try;;
47048 esac
47049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47050   (eval "$ac_compile") 2>conftest.er1
47051   ac_status=$?
47052   grep -v '^ *+' conftest.er1 >conftest.err
47053   rm -f conftest.er1
47054   cat conftest.err >&5
47055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47056   (exit $ac_status); } && {
47057          test -z "$ac_cxx_werror_flag" ||
47058          test ! -s conftest.err
47059        } && test -s conftest.$ac_objext; then
47060   wx_cv_type_getsockopt5=int
47061 else
47062   echo "$as_me: failed program was:" >&5
47063 sed 's/^/| /' conftest.$ac_ext >&5
47064
47065         wx_cv_type_getsockopt5=unknown
47066
47067 fi
47068
47069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47070
47071 fi
47072
47073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47074
47075
47076 fi
47077
47078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47079                 ac_ext=c
47080 ac_cpp='$CPP $CPPFLAGS'
47081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47084
47085
47086 fi
47087 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47088 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
47089
47090         if test "$wx_cv_type_getsockopt5" = "unknown"; then
47091             wxUSE_SOCKETS=no
47092             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47093 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47094         else
47095             cat >>confdefs.h <<_ACEOF
47096 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
47097 _ACEOF
47098
47099         fi
47100     fi
47101 fi
47102
47103 if test "$wxUSE_SOCKETS" = "yes" ; then
47104     cat >>confdefs.h <<\_ACEOF
47105 #define wxUSE_SOCKETS 1
47106 _ACEOF
47107
47108     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47109 fi
47110
47111 if test "$wxUSE_PROTOCOL" = "yes"; then
47112     if test "$wxUSE_SOCKETS" != "yes"; then
47113         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47114 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47115         wxUSE_PROTOCOL=no
47116     fi
47117 fi
47118
47119 if test "$wxUSE_PROTOCOL" = "yes"; then
47120     cat >>confdefs.h <<\_ACEOF
47121 #define wxUSE_PROTOCOL 1
47122 _ACEOF
47123
47124
47125     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47126         cat >>confdefs.h <<\_ACEOF
47127 #define wxUSE_PROTOCOL_HTTP 1
47128 _ACEOF
47129
47130     fi
47131     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47132         cat >>confdefs.h <<\_ACEOF
47133 #define wxUSE_PROTOCOL_FTP 1
47134 _ACEOF
47135
47136     fi
47137     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47138         cat >>confdefs.h <<\_ACEOF
47139 #define wxUSE_PROTOCOL_FILE 1
47140 _ACEOF
47141
47142     fi
47143 else
47144     if test "$wxUSE_FS_INET" = "yes"; then
47145         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47146 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47147         wxUSE_FS_INET="no"
47148     fi
47149 fi
47150
47151 if test "$wxUSE_URL" = "yes"; then
47152     if test "$wxUSE_PROTOCOL" != "yes"; then
47153         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47154 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47155         wxUSE_URL=no
47156     fi
47157     if test "$wxUSE_URL" = "yes"; then
47158         cat >>confdefs.h <<\_ACEOF
47159 #define wxUSE_URL 1
47160 _ACEOF
47161
47162     fi
47163 fi
47164
47165 if test "$wxUSE_VARIANT" = "yes"; then
47166     cat >>confdefs.h <<\_ACEOF
47167 #define wxUSE_VARIANT 1
47168 _ACEOF
47169
47170 fi
47171
47172 if test "$wxUSE_FS_INET" = "yes"; then
47173   cat >>confdefs.h <<\_ACEOF
47174 #define wxUSE_FS_INET 1
47175 _ACEOF
47176
47177 fi
47178
47179
47180 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47181     wxUSE_JOYSTICK=no
47182
47183         if test "$TOOLKIT" = "MSW"; then
47184         wxUSE_JOYSTICK=yes
47185
47186         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47187         if test "$USE_DARWIN" = 1; then
47188                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47189 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47190             ac_ext=cpp
47191 ac_cpp='$CXXCPP $CPPFLAGS'
47192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47195
47196             cat >conftest.$ac_ext <<_ACEOF
47197 /* confdefs.h.  */
47198 _ACEOF
47199 cat confdefs.h >>conftest.$ac_ext
47200 cat >>conftest.$ac_ext <<_ACEOF
47201 /* end confdefs.h.  */
47202  #include <IOKit/hid/IOHIDLib.h>
47203 int
47204 main ()
47205 {
47206  IOHIDQueueInterface *qi = NULL;
47207                               IOHIDCallbackFunction cb = NULL;
47208                               qi->setEventCallout(NULL, cb, NULL, NULL);
47209   ;
47210   return 0;
47211 }
47212 _ACEOF
47213 rm -f conftest.$ac_objext
47214 if { (ac_try="$ac_compile"
47215 case "(($ac_try" in
47216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47217   *) ac_try_echo=$ac_try;;
47218 esac
47219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47220   (eval "$ac_compile") 2>conftest.er1
47221   ac_status=$?
47222   grep -v '^ *+' conftest.er1 >conftest.err
47223   rm -f conftest.er1
47224   cat conftest.err >&5
47225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47226   (exit $ac_status); } && {
47227          test -z "$ac_cxx_werror_flag" ||
47228          test ! -s conftest.err
47229        } && test -s conftest.$ac_objext; then
47230    wxUSE_JOYSTICK=yes
47231
47232 else
47233   echo "$as_me: failed program was:" >&5
47234 sed 's/^/| /' conftest.$ac_ext >&5
47235
47236
47237 fi
47238
47239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47240             ac_ext=c
47241 ac_cpp='$CPP $CPPFLAGS'
47242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47245
47246             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47247 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47248         fi
47249
47250         else
47251                 if test "$wxUSE_MGL" != "1"; then
47252                                                                                     { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
47253 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
47254 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
47255   echo $ECHO_N "(cached) $ECHO_C" >&6
47256 else
47257   cat >conftest.$ac_ext <<_ACEOF
47258 /* confdefs.h.  */
47259 _ACEOF
47260 cat confdefs.h >>conftest.$ac_ext
47261 cat >>conftest.$ac_ext <<_ACEOF
47262 /* end confdefs.h.  */
47263 $ac_includes_default
47264
47265 #include <linux/joystick.h>
47266 _ACEOF
47267 rm -f conftest.$ac_objext
47268 if { (ac_try="$ac_compile"
47269 case "(($ac_try" in
47270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47271   *) ac_try_echo=$ac_try;;
47272 esac
47273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47274   (eval "$ac_compile") 2>conftest.er1
47275   ac_status=$?
47276   grep -v '^ *+' conftest.er1 >conftest.err
47277   rm -f conftest.er1
47278   cat conftest.err >&5
47279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47280   (exit $ac_status); } && {
47281          test -z "$ac_c_werror_flag" ||
47282          test ! -s conftest.err
47283        } && test -s conftest.$ac_objext; then
47284   ac_cv_header_linux_joystick_h=yes
47285 else
47286   echo "$as_me: failed program was:" >&5
47287 sed 's/^/| /' conftest.$ac_ext >&5
47288
47289         ac_cv_header_linux_joystick_h=no
47290 fi
47291
47292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47293 fi
47294 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
47295 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
47296 if test $ac_cv_header_linux_joystick_h = yes; then
47297   wxUSE_JOYSTICK=yes
47298 fi
47299
47300
47301         fi
47302     fi
47303
47304     if test "$wxUSE_JOYSTICK" = "yes"; then
47305         cat >>confdefs.h <<\_ACEOF
47306 #define wxUSE_JOYSTICK 1
47307 _ACEOF
47308
47309         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47310     else
47311         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47312 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47313     fi
47314 fi
47315
47316
47317
47318 if test "$wxUSE_FONTMAP" = "yes" ; then
47319   cat >>confdefs.h <<\_ACEOF
47320 #define wxUSE_FONTMAP 1
47321 _ACEOF
47322
47323 fi
47324
47325 if test "$wxUSE_UNICODE" = "yes" ; then
47326   cat >>confdefs.h <<\_ACEOF
47327 #define wxUSE_UNICODE 1
47328 _ACEOF
47329
47330
47331   if test "$USE_WIN32" != 1; then
47332       wxUSE_UNICODE_MSLU=no
47333   fi
47334
47335   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47336         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47337 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47338 if test "${ac_cv_lib_unicows_main+set}" = set; then
47339   echo $ECHO_N "(cached) $ECHO_C" >&6
47340 else
47341   ac_check_lib_save_LIBS=$LIBS
47342 LIBS="-lunicows  $LIBS"
47343 cat >conftest.$ac_ext <<_ACEOF
47344 /* confdefs.h.  */
47345 _ACEOF
47346 cat confdefs.h >>conftest.$ac_ext
47347 cat >>conftest.$ac_ext <<_ACEOF
47348 /* end confdefs.h.  */
47349
47350
47351 int
47352 main ()
47353 {
47354 return main ();
47355   ;
47356   return 0;
47357 }
47358 _ACEOF
47359 rm -f conftest.$ac_objext conftest$ac_exeext
47360 if { (ac_try="$ac_link"
47361 case "(($ac_try" in
47362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47363   *) ac_try_echo=$ac_try;;
47364 esac
47365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47366   (eval "$ac_link") 2>conftest.er1
47367   ac_status=$?
47368   grep -v '^ *+' conftest.er1 >conftest.err
47369   rm -f conftest.er1
47370   cat conftest.err >&5
47371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47372   (exit $ac_status); } && {
47373          test -z "$ac_c_werror_flag" ||
47374          test ! -s conftest.err
47375        } && test -s conftest$ac_exeext &&
47376        $as_test_x conftest$ac_exeext; then
47377   ac_cv_lib_unicows_main=yes
47378 else
47379   echo "$as_me: failed program was:" >&5
47380 sed 's/^/| /' conftest.$ac_ext >&5
47381
47382         ac_cv_lib_unicows_main=no
47383 fi
47384
47385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47386       conftest$ac_exeext conftest.$ac_ext
47387 LIBS=$ac_check_lib_save_LIBS
47388 fi
47389 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47390 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47391 if test $ac_cv_lib_unicows_main = yes; then
47392
47393                 cat >>confdefs.h <<\_ACEOF
47394 #define wxUSE_UNICODE_MSLU 1
47395 _ACEOF
47396
47397
47398 else
47399
47400                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47401                              Applications will only run on Windows NT/2000/XP!" >&5
47402 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47403                              Applications will only run on Windows NT/2000/XP!" >&2;}
47404                 wxUSE_UNICODE_MSLU=no
47405
47406 fi
47407
47408     fi
47409 fi
47410
47411 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47412     cat >>confdefs.h <<\_ACEOF
47413 #define wxUSE_UNICODE_UTF8 1
47414 _ACEOF
47415
47416
47417     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47418         cat >>confdefs.h <<\_ACEOF
47419 #define wxUSE_UTF8_LOCALE_ONLY 1
47420 _ACEOF
47421
47422     fi
47423 fi
47424
47425 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
47426   cat >>confdefs.h <<\_ACEOF
47427 #define wxUSE_EXPERIMENTAL_PRINTF 1
47428 _ACEOF
47429
47430 fi
47431
47432
47433 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47434     cat >>confdefs.h <<\_ACEOF
47435 #define wxUSE_CONSTRAINTS 1
47436 _ACEOF
47437
47438     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47439 fi
47440
47441 if test "$wxUSE_MDI" = "yes"; then
47442     cat >>confdefs.h <<\_ACEOF
47443 #define wxUSE_MDI 1
47444 _ACEOF
47445
47446
47447     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47448         cat >>confdefs.h <<\_ACEOF
47449 #define wxUSE_MDI_ARCHITECTURE 1
47450 _ACEOF
47451
47452         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47453     fi
47454 fi
47455
47456 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47457     cat >>confdefs.h <<\_ACEOF
47458 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47459 _ACEOF
47460
47461     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47462     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47463         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47464     fi
47465 fi
47466
47467 if test "$wxUSE_HELP" = "yes"; then
47468     cat >>confdefs.h <<\_ACEOF
47469 #define wxUSE_HELP 1
47470 _ACEOF
47471
47472     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47473
47474     if test "$wxUSE_MSW" = 1; then
47475       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47476         cat >>confdefs.h <<\_ACEOF
47477 #define wxUSE_MS_HTML_HELP 1
47478 _ACEOF
47479
47480       fi
47481     fi
47482
47483     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47484       if test "$wxUSE_HTML" = "yes"; then
47485         cat >>confdefs.h <<\_ACEOF
47486 #define wxUSE_WXHTML_HELP 1
47487 _ACEOF
47488
47489       else
47490         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47491 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47492         wxUSE_WXHTML_HELP=no
47493       fi
47494     fi
47495 fi
47496
47497 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47498     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47499         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47500 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47501     else
47502         cat >>confdefs.h <<\_ACEOF
47503 #define wxUSE_PRINTING_ARCHITECTURE 1
47504 _ACEOF
47505
47506     fi
47507     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47508 fi
47509
47510 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47511   cat >>confdefs.h <<\_ACEOF
47512 #define wxUSE_POSTSCRIPT 1
47513 _ACEOF
47514
47515 fi
47516
47517 cat >>confdefs.h <<\_ACEOF
47518 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47519 _ACEOF
47520
47521
47522 cat >>confdefs.h <<\_ACEOF
47523 #define wxUSE_NORMALIZED_PS_FONTS 1
47524 _ACEOF
47525
47526
47527 if test "$wxUSE_SVG" = "yes"; then
47528     cat >>confdefs.h <<\_ACEOF
47529 #define wxUSE_SVG 1
47530 _ACEOF
47531
47532 fi
47533
47534
47535 if test "$wxUSE_METAFILE" = "yes"; then
47536     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47537         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47538 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47539         wxUSE_METAFILE=no
47540     fi
47541 fi
47542
47543
47544 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47545                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47546                           -o "$wxUSE_OLE"     = "yes" \
47547                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47548     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47549 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47550 if test "${ac_cv_header_ole2_h+set}" = set; then
47551   echo $ECHO_N "(cached) $ECHO_C" >&6
47552 else
47553   cat >conftest.$ac_ext <<_ACEOF
47554 /* confdefs.h.  */
47555 _ACEOF
47556 cat confdefs.h >>conftest.$ac_ext
47557 cat >>conftest.$ac_ext <<_ACEOF
47558 /* end confdefs.h.  */
47559
47560
47561 #include <ole2.h>
47562 _ACEOF
47563 rm -f conftest.$ac_objext
47564 if { (ac_try="$ac_compile"
47565 case "(($ac_try" in
47566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47567   *) ac_try_echo=$ac_try;;
47568 esac
47569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47570   (eval "$ac_compile") 2>conftest.er1
47571   ac_status=$?
47572   grep -v '^ *+' conftest.er1 >conftest.err
47573   rm -f conftest.er1
47574   cat conftest.err >&5
47575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47576   (exit $ac_status); } && {
47577          test -z "$ac_c_werror_flag" ||
47578          test ! -s conftest.err
47579        } && test -s conftest.$ac_objext; then
47580   ac_cv_header_ole2_h=yes
47581 else
47582   echo "$as_me: failed program was:" >&5
47583 sed 's/^/| /' conftest.$ac_ext >&5
47584
47585         ac_cv_header_ole2_h=no
47586 fi
47587
47588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47589 fi
47590 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47591 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47592
47593
47594
47595     if test "$ac_cv_header_ole2_h" = "yes" ; then
47596         if test "$GCC" = yes ; then
47597             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47598 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47599             cat >conftest.$ac_ext <<_ACEOF
47600 /* confdefs.h.  */
47601 _ACEOF
47602 cat confdefs.h >>conftest.$ac_ext
47603 cat >>conftest.$ac_ext <<_ACEOF
47604 /* end confdefs.h.  */
47605 #include <windows.h>
47606                             #include <ole2.h>
47607 int
47608 main ()
47609 {
47610
47611   ;
47612   return 0;
47613 }
47614 _ACEOF
47615 rm -f conftest.$ac_objext
47616 if { (ac_try="$ac_compile"
47617 case "(($ac_try" in
47618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47619   *) ac_try_echo=$ac_try;;
47620 esac
47621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47622   (eval "$ac_compile") 2>conftest.er1
47623   ac_status=$?
47624   grep -v '^ *+' conftest.er1 >conftest.err
47625   rm -f conftest.er1
47626   cat conftest.err >&5
47627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47628   (exit $ac_status); } && {
47629          test -z "$ac_c_werror_flag" ||
47630          test ! -s conftest.err
47631        } && test -s conftest.$ac_objext; then
47632   { echo "$as_me:$LINENO: result: no" >&5
47633 echo "${ECHO_T}no" >&6; }
47634 else
47635   echo "$as_me: failed program was:" >&5
47636 sed 's/^/| /' conftest.$ac_ext >&5
47637
47638         { echo "$as_me:$LINENO: result: yes" >&5
47639 echo "${ECHO_T}yes" >&6; }
47640                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47641 fi
47642
47643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47644             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47645             if test "$wxUSE_OLE" = "yes" ; then
47646                 cat >>confdefs.h <<\_ACEOF
47647 #define wxUSE_OLE 1
47648 _ACEOF
47649
47650                 cat >>confdefs.h <<\_ACEOF
47651 #define wxUSE_OLE_AUTOMATION 1
47652 _ACEOF
47653
47654                 cat >>confdefs.h <<\_ACEOF
47655 #define wxUSE_ACTIVEX 1
47656 _ACEOF
47657
47658                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47659             fi
47660         fi
47661
47662                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47663             cat >>confdefs.h <<\_ACEOF
47664 #define wxUSE_DATAOBJ 1
47665 _ACEOF
47666
47667         fi
47668     else
47669         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47670 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47671
47672         wxUSE_CLIPBOARD=no
47673         wxUSE_DRAG_AND_DROP=no
47674         wxUSE_DATAOBJ=no
47675         wxUSE_OLE=no
47676     fi
47677
47678     if test "$wxUSE_METAFILE" = "yes"; then
47679         cat >>confdefs.h <<\_ACEOF
47680 #define wxUSE_METAFILE 1
47681 _ACEOF
47682
47683
47684                 cat >>confdefs.h <<\_ACEOF
47685 #define wxUSE_ENH_METAFILE 1
47686 _ACEOF
47687
47688     fi
47689 fi
47690
47691 if test "$wxUSE_IPC" = "yes"; then
47692     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47693         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47694 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47695         wxUSE_IPC=no
47696     fi
47697
47698     if test "$wxUSE_IPC" = "yes"; then
47699         cat >>confdefs.h <<\_ACEOF
47700 #define wxUSE_IPC 1
47701 _ACEOF
47702
47703         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47704     fi
47705 fi
47706
47707 if test "$wxUSE_DATAOBJ" = "yes"; then
47708     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47709         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47710 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47711         wxUSE_DATAOBJ=no
47712     else
47713         cat >>confdefs.h <<\_ACEOF
47714 #define wxUSE_DATAOBJ 1
47715 _ACEOF
47716
47717     fi
47718 else
47719     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47720 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47721     wxUSE_CLIPBOARD=no
47722     wxUSE_DRAG_AND_DROP=no
47723 fi
47724
47725 if test "$wxUSE_CLIPBOARD" = "yes"; then
47726     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47727         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47728 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47729         wxUSE_CLIPBOARD=no
47730     fi
47731
47732     if test "$wxUSE_CLIPBOARD" = "yes"; then
47733         cat >>confdefs.h <<\_ACEOF
47734 #define wxUSE_CLIPBOARD 1
47735 _ACEOF
47736
47737     fi
47738 fi
47739
47740 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47741     if test "$wxUSE_GTK" = 1; then
47742         if test "$WXGTK12" != 1; then
47743             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47744 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47745             wxUSE_DRAG_AND_DROP=no
47746         fi
47747     fi
47748
47749     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47750             "$wxUSE_DFB" = 1; then
47751         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47752 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47753         wxUSE_DRAG_AND_DROP=no
47754     fi
47755
47756     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47757         cat >>confdefs.h <<\_ACEOF
47758 #define wxUSE_DRAG_AND_DROP 1
47759 _ACEOF
47760
47761     fi
47762
47763 fi
47764
47765 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47766     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47767 fi
47768
47769 if test "$wxUSE_SPLINES" = "yes" ; then
47770   cat >>confdefs.h <<\_ACEOF
47771 #define wxUSE_SPLINES 1
47772 _ACEOF
47773
47774 fi
47775
47776 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47777   cat >>confdefs.h <<\_ACEOF
47778 #define wxUSE_MOUSEWHEEL 1
47779 _ACEOF
47780
47781 fi
47782
47783
47784 USES_CONTROLS=0
47785 if test "$wxUSE_CONTROLS" = "yes"; then
47786   USES_CONTROLS=1
47787 fi
47788
47789 if test "$wxUSE_ACCEL" = "yes"; then
47790   cat >>confdefs.h <<\_ACEOF
47791 #define wxUSE_ACCEL 1
47792 _ACEOF
47793
47794   USES_CONTROLS=1
47795 fi
47796
47797 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47798   cat >>confdefs.h <<\_ACEOF
47799 #define wxUSE_ANIMATIONCTRL 1
47800 _ACEOF
47801
47802   USES_CONTROLS=1
47803   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47804 fi
47805
47806 if test "$wxUSE_BUTTON" = "yes"; then
47807   cat >>confdefs.h <<\_ACEOF
47808 #define wxUSE_BUTTON 1
47809 _ACEOF
47810
47811   USES_CONTROLS=1
47812 fi
47813
47814 if test "$wxUSE_BMPBUTTON" = "yes"; then
47815   cat >>confdefs.h <<\_ACEOF
47816 #define wxUSE_BMPBUTTON 1
47817 _ACEOF
47818
47819   USES_CONTROLS=1
47820 fi
47821
47822 if test "$wxUSE_CALCTRL" = "yes"; then
47823   cat >>confdefs.h <<\_ACEOF
47824 #define wxUSE_CALENDARCTRL 1
47825 _ACEOF
47826
47827   USES_CONTROLS=1
47828   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47829 fi
47830
47831 if test "$wxUSE_CARET" = "yes"; then
47832   cat >>confdefs.h <<\_ACEOF
47833 #define wxUSE_CARET 1
47834 _ACEOF
47835
47836   USES_CONTROLS=1
47837   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47838 fi
47839
47840 if test "$wxUSE_COLLPANE" = "yes"; then
47841     cat >>confdefs.h <<\_ACEOF
47842 #define wxUSE_COLLPANE 1
47843 _ACEOF
47844
47845     USES_CONTROLS=1
47846     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47847 fi
47848
47849 if test "$wxUSE_COMBOBOX" = "yes"; then
47850   cat >>confdefs.h <<\_ACEOF
47851 #define wxUSE_COMBOBOX 1
47852 _ACEOF
47853
47854   USES_CONTROLS=1
47855 fi
47856
47857 if test "$wxUSE_COMBOCTRL" = "yes"; then
47858   cat >>confdefs.h <<\_ACEOF
47859 #define wxUSE_COMBOCTRL 1
47860 _ACEOF
47861
47862   USES_CONTROLS=1
47863 fi
47864
47865 if test "$wxUSE_CHOICE" = "yes"; then
47866   cat >>confdefs.h <<\_ACEOF
47867 #define wxUSE_CHOICE 1
47868 _ACEOF
47869
47870   USES_CONTROLS=1
47871 fi
47872
47873 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47874     cat >>confdefs.h <<\_ACEOF
47875 #define wxUSE_CHOICEBOOK 1
47876 _ACEOF
47877
47878     USES_CONTROLS=1
47879 fi
47880
47881 if test "$wxUSE_CHECKBOX" = "yes"; then
47882   cat >>confdefs.h <<\_ACEOF
47883 #define wxUSE_CHECKBOX 1
47884 _ACEOF
47885
47886   USES_CONTROLS=1
47887 fi
47888
47889 if test "$wxUSE_CHECKLST" = "yes"; then
47890   cat >>confdefs.h <<\_ACEOF
47891 #define wxUSE_CHECKLISTBOX 1
47892 _ACEOF
47893
47894   USES_CONTROLS=1
47895   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
47896 fi
47897
47898 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47899   cat >>confdefs.h <<\_ACEOF
47900 #define wxUSE_COLOURPICKERCTRL 1
47901 _ACEOF
47902
47903   USES_CONTROLS=1
47904 fi
47905
47906 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47907   cat >>confdefs.h <<\_ACEOF
47908 #define wxUSE_DATEPICKCTRL 1
47909 _ACEOF
47910
47911   USES_CONTROLS=1
47912 fi
47913
47914 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47915   cat >>confdefs.h <<\_ACEOF
47916 #define wxUSE_DIRPICKERCTRL 1
47917 _ACEOF
47918
47919   USES_CONTROLS=1
47920 fi
47921
47922 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47923   cat >>confdefs.h <<\_ACEOF
47924 #define wxUSE_FILEPICKERCTRL 1
47925 _ACEOF
47926
47927   USES_CONTROLS=1
47928 fi
47929
47930 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47931   cat >>confdefs.h <<\_ACEOF
47932 #define wxUSE_FONTPICKERCTRL 1
47933 _ACEOF
47934
47935   USES_CONTROLS=1
47936 fi
47937
47938 if test "$wxUSE_DISPLAY" = "yes"; then
47939     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47940         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47941 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47942         wxUSE_DISPLAY=no
47943     else
47944         cat >>confdefs.h <<\_ACEOF
47945 #define wxUSE_DISPLAY 1
47946 _ACEOF
47947
47948         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
47949     fi
47950 fi
47951
47952 if test "$wxUSE_DETECT_SM" = "yes"; then
47953     cat >>confdefs.h <<\_ACEOF
47954 #define wxUSE_DETECT_SM 1
47955 _ACEOF
47956
47957 fi
47958
47959 if test "$wxUSE_GAUGE" = "yes"; then
47960   cat >>confdefs.h <<\_ACEOF
47961 #define wxUSE_GAUGE 1
47962 _ACEOF
47963
47964   USES_CONTROLS=1
47965 fi
47966
47967 if test "$wxUSE_GRID" = "yes"; then
47968   cat >>confdefs.h <<\_ACEOF
47969 #define wxUSE_GRID 1
47970 _ACEOF
47971
47972   USES_CONTROLS=1
47973   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47974 fi
47975
47976 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47977   cat >>confdefs.h <<\_ACEOF
47978 #define wxUSE_HYPERLINKCTRL 1
47979 _ACEOF
47980
47981   USES_CONTROLS=1
47982 fi
47983
47984 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47985   cat >>confdefs.h <<\_ACEOF
47986 #define wxUSE_BITMAPCOMBOBOX 1
47987 _ACEOF
47988
47989   USES_CONTROLS=1
47990 fi
47991
47992 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47993   cat >>confdefs.h <<\_ACEOF
47994 #define wxUSE_DATAVIEWCTRL 1
47995 _ACEOF
47996
47997   USES_CONTROLS=1
47998   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47999 fi
48000
48001 if test "$wxUSE_IMAGLIST" = "yes"; then
48002     cat >>confdefs.h <<\_ACEOF
48003 #define wxUSE_IMAGLIST 1
48004 _ACEOF
48005
48006 fi
48007
48008 if test "$wxUSE_LISTBOOK" = "yes"; then
48009     cat >>confdefs.h <<\_ACEOF
48010 #define wxUSE_LISTBOOK 1
48011 _ACEOF
48012
48013     USES_CONTROLS=1
48014 fi
48015
48016 if test "$wxUSE_LISTBOX" = "yes"; then
48017     cat >>confdefs.h <<\_ACEOF
48018 #define wxUSE_LISTBOX 1
48019 _ACEOF
48020
48021     USES_CONTROLS=1
48022     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
48023 fi
48024
48025 if test "$wxUSE_LISTCTRL" = "yes"; then
48026     if test "$wxUSE_IMAGLIST" = "yes"; then
48027         cat >>confdefs.h <<\_ACEOF
48028 #define wxUSE_LISTCTRL 1
48029 _ACEOF
48030
48031         USES_CONTROLS=1
48032         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
48033     else
48034         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
48035 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
48036     fi
48037 fi
48038
48039 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
48040     cat >>confdefs.h <<\_ACEOF
48041 #define wxUSE_EDITABLELISTBOX 1
48042 _ACEOF
48043
48044     USES_CONTROLS=1
48045     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48046 fi
48047
48048 if test "$wxUSE_NOTEBOOK" = "yes"; then
48049     cat >>confdefs.h <<\_ACEOF
48050 #define wxUSE_NOTEBOOK 1
48051 _ACEOF
48052
48053     USES_CONTROLS=1
48054     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48055 fi
48056
48057 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48058   cat >>confdefs.h <<\_ACEOF
48059 #define wxUSE_ODCOMBOBOX 1
48060 _ACEOF
48061
48062   USES_CONTROLS=1
48063   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48064 fi
48065
48066
48067 if test "$wxUSE_RADIOBOX" = "yes"; then
48068     cat >>confdefs.h <<\_ACEOF
48069 #define wxUSE_RADIOBOX 1
48070 _ACEOF
48071
48072     USES_CONTROLS=1
48073 fi
48074
48075 if test "$wxUSE_RADIOBTN" = "yes"; then
48076     cat >>confdefs.h <<\_ACEOF
48077 #define wxUSE_RADIOBTN 1
48078 _ACEOF
48079
48080     USES_CONTROLS=1
48081 fi
48082
48083 if test "$wxUSE_SASH" = "yes"; then
48084     cat >>confdefs.h <<\_ACEOF
48085 #define wxUSE_SASH 1
48086 _ACEOF
48087
48088     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48089 fi
48090
48091 if test "$wxUSE_SCROLLBAR" = "yes"; then
48092     cat >>confdefs.h <<\_ACEOF
48093 #define wxUSE_SCROLLBAR 1
48094 _ACEOF
48095
48096     USES_CONTROLS=1
48097     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48098 fi
48099
48100 if test "$wxUSE_SEARCHCTRL" = "yes"; then
48101     cat >>confdefs.h <<\_ACEOF
48102 #define wxUSE_SEARCHCTRL 1
48103 _ACEOF
48104
48105     USES_CONTROLS=1
48106 fi
48107
48108 if test "$wxUSE_SLIDER" = "yes"; then
48109     cat >>confdefs.h <<\_ACEOF
48110 #define wxUSE_SLIDER 1
48111 _ACEOF
48112
48113     USES_CONTROLS=1
48114 fi
48115
48116 if test "$wxUSE_SPINBTN" = "yes"; then
48117     cat >>confdefs.h <<\_ACEOF
48118 #define wxUSE_SPINBTN 1
48119 _ACEOF
48120
48121     USES_CONTROLS=1
48122 fi
48123
48124 if test "$wxUSE_SPINCTRL" = "yes"; then
48125     cat >>confdefs.h <<\_ACEOF
48126 #define wxUSE_SPINCTRL 1
48127 _ACEOF
48128
48129     USES_CONTROLS=1
48130 fi
48131
48132 if test "$wxUSE_SPLITTER" = "yes"; then
48133     cat >>confdefs.h <<\_ACEOF
48134 #define wxUSE_SPLITTER 1
48135 _ACEOF
48136
48137     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48138 fi
48139
48140 if test "$wxUSE_STATBMP" = "yes"; then
48141     cat >>confdefs.h <<\_ACEOF
48142 #define wxUSE_STATBMP 1
48143 _ACEOF
48144
48145     USES_CONTROLS=1
48146 fi
48147
48148 if test "$wxUSE_STATBOX" = "yes"; then
48149     cat >>confdefs.h <<\_ACEOF
48150 #define wxUSE_STATBOX 1
48151 _ACEOF
48152
48153     USES_CONTROLS=1
48154 fi
48155
48156 if test "$wxUSE_STATTEXT" = "yes"; then
48157     cat >>confdefs.h <<\_ACEOF
48158 #define wxUSE_STATTEXT 1
48159 _ACEOF
48160
48161     USES_CONTROLS=1
48162 fi
48163
48164 if test "$wxUSE_STATLINE" = "yes"; then
48165     cat >>confdefs.h <<\_ACEOF
48166 #define wxUSE_STATLINE 1
48167 _ACEOF
48168
48169     USES_CONTROLS=1
48170 fi
48171
48172 if test "$wxUSE_STATUSBAR" = "yes"; then
48173         cat >>confdefs.h <<\_ACEOF
48174 #define wxUSE_NATIVE_STATUSBAR 1
48175 _ACEOF
48176
48177     cat >>confdefs.h <<\_ACEOF
48178 #define wxUSE_STATUSBAR 1
48179 _ACEOF
48180
48181     USES_CONTROLS=1
48182
48183     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48184 fi
48185
48186 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48187     cat >>confdefs.h <<\_ACEOF
48188 #define wxUSE_TAB_DIALOG 1
48189 _ACEOF
48190
48191 fi
48192
48193 if test "$wxUSE_TEXTCTRL" = "yes"; then
48194     cat >>confdefs.h <<\_ACEOF
48195 #define wxUSE_TEXTCTRL 1
48196 _ACEOF
48197
48198     USES_CONTROLS=1
48199     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48200 fi
48201
48202 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48203     if test "$wxUSE_COCOA" = 1 ; then
48204         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48205 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48206         wxUSE_TOGGLEBTN=no
48207     fi
48208
48209     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48210         cat >>confdefs.h <<\_ACEOF
48211 #define wxUSE_TOGGLEBTN 1
48212 _ACEOF
48213
48214         USES_CONTROLS=1
48215     fi
48216 fi
48217
48218 if test "$wxUSE_TOOLBAR" = "yes"; then
48219     cat >>confdefs.h <<\_ACEOF
48220 #define wxUSE_TOOLBAR 1
48221 _ACEOF
48222
48223     USES_CONTROLS=1
48224
48225     if test "$wxUSE_UNIVERSAL" = "yes"; then
48226         wxUSE_TOOLBAR_NATIVE="no"
48227     else
48228         wxUSE_TOOLBAR_NATIVE="yes"
48229         cat >>confdefs.h <<\_ACEOF
48230 #define wxUSE_TOOLBAR_NATIVE 1
48231 _ACEOF
48232
48233     fi
48234
48235     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48236 fi
48237
48238 if test "$wxUSE_TOOLTIPS" = "yes"; then
48239     if test "$wxUSE_MOTIF" = 1; then
48240         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48241 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48242     else
48243         if test "$wxUSE_UNIVERSAL" = "yes"; then
48244             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48245 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48246         else
48247             cat >>confdefs.h <<\_ACEOF
48248 #define wxUSE_TOOLTIPS 1
48249 _ACEOF
48250
48251         fi
48252     fi
48253 fi
48254
48255 if test "$wxUSE_TREEBOOK" = "yes"; then
48256     cat >>confdefs.h <<\_ACEOF
48257 #define wxUSE_TREEBOOK 1
48258 _ACEOF
48259
48260     USES_CONTROLS=1
48261 fi
48262
48263 if test "$wxUSE_TOOLBOOK" = "yes"; then
48264     cat >>confdefs.h <<\_ACEOF
48265 #define wxUSE_TOOLBOOK 1
48266 _ACEOF
48267
48268     USES_CONTROLS=1
48269 fi
48270
48271 if test "$wxUSE_TREECTRL" = "yes"; then
48272     if test "$wxUSE_IMAGLIST" = "yes"; then
48273         cat >>confdefs.h <<\_ACEOF
48274 #define wxUSE_TREECTRL 1
48275 _ACEOF
48276
48277         USES_CONTROLS=1
48278         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48279     else
48280         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48281 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48282     fi
48283 fi
48284
48285 if test "$wxUSE_POPUPWIN" = "yes"; then
48286     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48287         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48288 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48289     else
48290         if test "$wxUSE_PM" = 1; then
48291             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48292 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48293         else
48294             cat >>confdefs.h <<\_ACEOF
48295 #define wxUSE_POPUPWIN 1
48296 _ACEOF
48297
48298             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48299
48300             USES_CONTROLS=1
48301         fi
48302     fi
48303 fi
48304
48305 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48306     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48307         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48308 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48309     else
48310         cat >>confdefs.h <<\_ACEOF
48311 #define wxUSE_DIALUP_MANAGER 1
48312 _ACEOF
48313
48314         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48315     fi
48316 fi
48317
48318 if test "$wxUSE_TIPWINDOW" = "yes"; then
48319     if test "$wxUSE_PM" = 1; then
48320         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48321 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48322     else
48323         cat >>confdefs.h <<\_ACEOF
48324 #define wxUSE_TIPWINDOW 1
48325 _ACEOF
48326
48327     fi
48328 fi
48329
48330 if test "$USES_CONTROLS" = 1; then
48331     cat >>confdefs.h <<\_ACEOF
48332 #define wxUSE_CONTROLS 1
48333 _ACEOF
48334
48335 fi
48336
48337
48338 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48339     cat >>confdefs.h <<\_ACEOF
48340 #define wxUSE_ACCESSIBILITY 1
48341 _ACEOF
48342
48343     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48344 fi
48345
48346 if test "$wxUSE_DC_CACHEING" = "yes"; then
48347     cat >>confdefs.h <<\_ACEOF
48348 #define wxUSE_DC_CACHEING 1
48349 _ACEOF
48350
48351 fi
48352
48353 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48354     cat >>confdefs.h <<\_ACEOF
48355 #define wxUSE_DRAGIMAGE 1
48356 _ACEOF
48357
48358     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48359 fi
48360
48361 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48362     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48363         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48364 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48365     else
48366         cat >>confdefs.h <<\_ACEOF
48367 #define wxUSE_EXCEPTIONS 1
48368 _ACEOF
48369
48370         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48371     fi
48372 fi
48373
48374 USE_HTML=0
48375 if test "$wxUSE_HTML" = "yes"; then
48376     cat >>confdefs.h <<\_ACEOF
48377 #define wxUSE_HTML 1
48378 _ACEOF
48379
48380     USE_HTML=1
48381     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48382     if test "$wxUSE_MAC" = 1; then
48383         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48384     fi
48385 fi
48386 if test "$wxUSE_WEBKIT" = "yes"; then
48387     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48388         old_CPPFLAGS="$CPPFLAGS"
48389         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48390         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48391 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48392 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48393   echo $ECHO_N "(cached) $ECHO_C" >&6
48394 else
48395   cat >conftest.$ac_ext <<_ACEOF
48396 /* confdefs.h.  */
48397 _ACEOF
48398 cat confdefs.h >>conftest.$ac_ext
48399 cat >>conftest.$ac_ext <<_ACEOF
48400 /* end confdefs.h.  */
48401
48402                            #include <Carbon/Carbon.h>
48403                            #include <WebKit/WebKit.h>
48404
48405
48406 #include <WebKit/HIWebView.h>
48407 _ACEOF
48408 rm -f conftest.$ac_objext
48409 if { (ac_try="$ac_compile"
48410 case "(($ac_try" in
48411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48412   *) ac_try_echo=$ac_try;;
48413 esac
48414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48415   (eval "$ac_compile") 2>conftest.er1
48416   ac_status=$?
48417   grep -v '^ *+' conftest.er1 >conftest.err
48418   rm -f conftest.er1
48419   cat conftest.err >&5
48420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48421   (exit $ac_status); } && {
48422          test -z "$ac_c_werror_flag" ||
48423          test ! -s conftest.err
48424        } && test -s conftest.$ac_objext; then
48425   ac_cv_header_WebKit_HIWebView_h=yes
48426 else
48427   echo "$as_me: failed program was:" >&5
48428 sed 's/^/| /' conftest.$ac_ext >&5
48429
48430         ac_cv_header_WebKit_HIWebView_h=no
48431 fi
48432
48433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48434 fi
48435 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48436 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48437 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48438
48439                            cat >>confdefs.h <<\_ACEOF
48440 #define wxUSE_WEBKIT 1
48441 _ACEOF
48442
48443                            WEBKIT_LINK="-framework WebKit"
48444
48445 else
48446
48447                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48448 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48449                            wxUSE_WEBKIT=no
48450
48451 fi
48452
48453
48454         CPPFLAGS="$old_CPPFLAGS"
48455     elif test "$wxUSE_COCOA" = 1; then
48456         cat >>confdefs.h <<\_ACEOF
48457 #define wxUSE_WEBKIT 1
48458 _ACEOF
48459
48460     else
48461         wxUSE_WEBKIT=no
48462     fi
48463 fi
48464
48465 USE_XRC=0
48466 if test "$wxUSE_XRC" = "yes"; then
48467     if test "$wxUSE_XML" != "yes"; then
48468         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48469 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48470         wxUSE_XRC=no
48471     else
48472         cat >>confdefs.h <<\_ACEOF
48473 #define wxUSE_XRC 1
48474 _ACEOF
48475
48476         USE_XRC=1
48477         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48478     fi
48479 fi
48480
48481 USE_AUI=0
48482 if test "$wxUSE_AUI" = "yes"; then
48483    cat >>confdefs.h <<\_ACEOF
48484 #define wxUSE_AUI 1
48485 _ACEOF
48486
48487    USE_AUI=1
48488    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48489 fi
48490
48491 USE_STC=0
48492 if test "$wxUSE_STC" = "yes"; then
48493    cat >>confdefs.h <<\_ACEOF
48494 #define wxUSE_STC 1
48495 _ACEOF
48496
48497    USE_STC=1
48498    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48499 fi
48500
48501 if test "$wxUSE_MENUS" = "yes"; then
48502     cat >>confdefs.h <<\_ACEOF
48503 #define wxUSE_MENUS 1
48504 _ACEOF
48505
48506     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48507 fi
48508
48509 if test "$wxUSE_METAFILE" = "yes"; then
48510     cat >>confdefs.h <<\_ACEOF
48511 #define wxUSE_METAFILE 1
48512 _ACEOF
48513
48514 fi
48515
48516 if test "$wxUSE_MIMETYPE" = "yes"; then
48517     cat >>confdefs.h <<\_ACEOF
48518 #define wxUSE_MIMETYPE 1
48519 _ACEOF
48520
48521 fi
48522
48523 if test "$wxUSE_MINIFRAME" = "yes"; then
48524     cat >>confdefs.h <<\_ACEOF
48525 #define wxUSE_MINIFRAME 1
48526 _ACEOF
48527
48528     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
48529 fi
48530
48531 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48532     cat >>confdefs.h <<\_ACEOF
48533 #define wxUSE_SYSTEM_OPTIONS 1
48534 _ACEOF
48535
48536 fi
48537
48538 if test "$wxUSE_TASKBARICON" = "yes"; then
48539     cat >>confdefs.h <<\_ACEOF
48540 #define wxUSE_TASKBARICON 1
48541 _ACEOF
48542
48543     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48544 fi
48545
48546
48547 if test "$wxUSE_VALIDATORS" = "yes"; then
48548     cat >>confdefs.h <<\_ACEOF
48549 #define wxUSE_VALIDATORS 1
48550 _ACEOF
48551
48552     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48553 fi
48554
48555 if test "$wxUSE_PALETTE" = "yes" ; then
48556     if test "$wxUSE_DFB" = 1; then
48557         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48558 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48559         wxUSE_PALETTE=no
48560     else
48561         cat >>confdefs.h <<\_ACEOF
48562 #define wxUSE_PALETTE 1
48563 _ACEOF
48564
48565     fi
48566 fi
48567
48568 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48569     LIBS=" -lunicows $LIBS"
48570 fi
48571
48572 USE_RICHTEXT=0
48573 if test "$wxUSE_RICHTEXT" = "yes"; then
48574     cat >>confdefs.h <<\_ACEOF
48575 #define wxUSE_RICHTEXT 1
48576 _ACEOF
48577
48578     USE_RICHTEXT=1
48579     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48580 fi
48581
48582
48583 if test "$wxUSE_IMAGE" = "yes" ; then
48584     cat >>confdefs.h <<\_ACEOF
48585 #define wxUSE_IMAGE 1
48586 _ACEOF
48587
48588
48589     if test "$wxUSE_GIF" = "yes" ; then
48590       cat >>confdefs.h <<\_ACEOF
48591 #define wxUSE_GIF 1
48592 _ACEOF
48593
48594     fi
48595
48596     if test "$wxUSE_PCX" = "yes" ; then
48597       cat >>confdefs.h <<\_ACEOF
48598 #define wxUSE_PCX 1
48599 _ACEOF
48600
48601     fi
48602
48603     if test "$wxUSE_TGA" = "yes" ; then
48604       cat >>confdefs.h <<\_ACEOF
48605 #define wxUSE_TGA 1
48606 _ACEOF
48607
48608     fi
48609
48610     if test "$wxUSE_IFF" = "yes" ; then
48611       cat >>confdefs.h <<\_ACEOF
48612 #define wxUSE_IFF 1
48613 _ACEOF
48614
48615     fi
48616
48617     if test "$wxUSE_PNM" = "yes" ; then
48618       cat >>confdefs.h <<\_ACEOF
48619 #define wxUSE_PNM 1
48620 _ACEOF
48621
48622     fi
48623
48624     if test "$wxUSE_XPM" = "yes" ; then
48625       cat >>confdefs.h <<\_ACEOF
48626 #define wxUSE_XPM 1
48627 _ACEOF
48628
48629     fi
48630
48631     if test "$wxUSE_ICO_CUR" = "yes" ; then
48632       cat >>confdefs.h <<\_ACEOF
48633 #define wxUSE_ICO_CUR 1
48634 _ACEOF
48635
48636     fi
48637 fi
48638
48639
48640 if test "$wxUSE_ABOUTDLG" = "yes"; then
48641     cat >>confdefs.h <<\_ACEOF
48642 #define wxUSE_ABOUTDLG 1
48643 _ACEOF
48644
48645 fi
48646
48647 if test "$wxUSE_CHOICEDLG" = "yes"; then
48648     cat >>confdefs.h <<\_ACEOF
48649 #define wxUSE_CHOICEDLG 1
48650 _ACEOF
48651
48652 fi
48653
48654 if test "$wxUSE_COLOURDLG" = "yes"; then
48655     cat >>confdefs.h <<\_ACEOF
48656 #define wxUSE_COLOURDLG 1
48657 _ACEOF
48658
48659 fi
48660
48661 if test "$wxUSE_FILEDLG" = "yes"; then
48662     cat >>confdefs.h <<\_ACEOF
48663 #define wxUSE_FILEDLG 1
48664 _ACEOF
48665
48666 fi
48667
48668 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48669     cat >>confdefs.h <<\_ACEOF
48670 #define wxUSE_FINDREPLDLG 1
48671 _ACEOF
48672
48673 fi
48674
48675 if test "$wxUSE_FONTDLG" = "yes"; then
48676     cat >>confdefs.h <<\_ACEOF
48677 #define wxUSE_FONTDLG 1
48678 _ACEOF
48679
48680 fi
48681
48682 if test "$wxUSE_DIRDLG" = "yes"; then
48683     if test "$wxUSE_TREECTRL" != "yes"; then
48684         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48685 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48686     else
48687         cat >>confdefs.h <<\_ACEOF
48688 #define wxUSE_DIRDLG 1
48689 _ACEOF
48690
48691     fi
48692 fi
48693
48694 if test "$wxUSE_MSGDLG" = "yes"; then
48695     cat >>confdefs.h <<\_ACEOF
48696 #define wxUSE_MSGDLG 1
48697 _ACEOF
48698
48699 fi
48700
48701 if test "$wxUSE_NUMBERDLG" = "yes"; then
48702     cat >>confdefs.h <<\_ACEOF
48703 #define wxUSE_NUMBERDLG 1
48704 _ACEOF
48705
48706 fi
48707
48708 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48709     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48710        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
48711 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
48712     else
48713         cat >>confdefs.h <<\_ACEOF
48714 #define wxUSE_PROGRESSDLG 1
48715 _ACEOF
48716
48717     fi
48718 fi
48719
48720 if test "$wxUSE_SPLASH" = "yes"; then
48721     cat >>confdefs.h <<\_ACEOF
48722 #define wxUSE_SPLASH 1
48723 _ACEOF
48724
48725     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48726 fi
48727
48728 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48729     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48730        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
48731 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
48732     else
48733         cat >>confdefs.h <<\_ACEOF
48734 #define wxUSE_STARTUP_TIPS 1
48735 _ACEOF
48736
48737     fi
48738 fi
48739
48740 if test "$wxUSE_TEXTDLG" = "yes"; then
48741     cat >>confdefs.h <<\_ACEOF
48742 #define wxUSE_TEXTDLG 1
48743 _ACEOF
48744
48745 fi
48746
48747 if test "$wxUSE_WIZARDDLG" = "yes"; then
48748     cat >>confdefs.h <<\_ACEOF
48749 #define wxUSE_WIZARDDLG 1
48750 _ACEOF
48751
48752     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48753 fi
48754
48755
48756 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48757    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
48758       cat >>confdefs.h <<\_ACEOF
48759 #define wxUSE_GRAPHICS_CONTEXT 1
48760 _ACEOF
48761
48762    elif test "$wxUSE_GTK" != 1; then
48763             cat >>confdefs.h <<\_ACEOF
48764 #define wxUSE_GRAPHICS_CONTEXT 1
48765 _ACEOF
48766
48767    else
48768
48769 pkg_failed=no
48770 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48771 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48772
48773 if test -n "$PKG_CONFIG"; then
48774     if test -n "$CAIRO_CFLAGS"; then
48775         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48776     else
48777         if test -n "$PKG_CONFIG" && \
48778     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48779   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48780   ac_status=$?
48781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48782   (exit $ac_status); }; then
48783   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48784 else
48785   pkg_failed=yes
48786 fi
48787     fi
48788 else
48789         pkg_failed=untried
48790 fi
48791 if test -n "$PKG_CONFIG"; then
48792     if test -n "$CAIRO_LIBS"; then
48793         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48794     else
48795         if test -n "$PKG_CONFIG" && \
48796     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48797   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48798   ac_status=$?
48799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48800   (exit $ac_status); }; then
48801   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48802 else
48803   pkg_failed=yes
48804 fi
48805     fi
48806 else
48807         pkg_failed=untried
48808 fi
48809
48810
48811
48812 if test $pkg_failed = yes; then
48813
48814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48815         _pkg_short_errors_supported=yes
48816 else
48817         _pkg_short_errors_supported=no
48818 fi
48819         if test $_pkg_short_errors_supported = yes; then
48820                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48821         else
48822                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48823         fi
48824         # Put the nasty error message in config.log where it belongs
48825         echo "$CAIRO_PKG_ERRORS" >&5
48826
48827         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48828 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48829
48830 elif test $pkg_failed = untried; then
48831         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48832 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48833
48834 else
48835         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48836         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48837         { echo "$as_me:$LINENO: result: yes" >&5
48838 echo "${ECHO_T}yes" >&6; }
48839         cat >>confdefs.h <<\_ACEOF
48840 #define wxUSE_GRAPHICS_CONTEXT 1
48841 _ACEOF
48842
48843 fi
48844    fi
48845 fi
48846
48847
48848 USE_MEDIA=0
48849
48850 if test "$wxUSE_MEDIACTRL" = "yes"; then
48851     USE_MEDIA=1
48852
48853                 if test "$wxUSE_GTK" = 1; then
48854         wxUSE_GSTREAMER="no"
48855
48856                                                                 GST_VERSION_MAJOR=0
48857         GST_VERSION_MINOR=10
48858         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48859
48860         if test "$wxUSE_GSTREAMER8" = "no"; then
48861
48862 pkg_failed=no
48863 { echo "$as_me:$LINENO: checking for GST" >&5
48864 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48865
48866 if test -n "$PKG_CONFIG"; then
48867     if test -n "$GST_CFLAGS"; then
48868         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48869     else
48870         if test -n "$PKG_CONFIG" && \
48871     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48872   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48873   ac_status=$?
48874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48875   (exit $ac_status); }; then
48876   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48877 else
48878   pkg_failed=yes
48879 fi
48880     fi
48881 else
48882         pkg_failed=untried
48883 fi
48884 if test -n "$PKG_CONFIG"; then
48885     if test -n "$GST_LIBS"; then
48886         pkg_cv_GST_LIBS="$GST_LIBS"
48887     else
48888         if test -n "$PKG_CONFIG" && \
48889     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48890   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48891   ac_status=$?
48892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48893   (exit $ac_status); }; then
48894   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48895 else
48896   pkg_failed=yes
48897 fi
48898     fi
48899 else
48900         pkg_failed=untried
48901 fi
48902
48903
48904
48905 if test $pkg_failed = yes; then
48906
48907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48908         _pkg_short_errors_supported=yes
48909 else
48910         _pkg_short_errors_supported=no
48911 fi
48912         if test $_pkg_short_errors_supported = yes; then
48913                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48914         else
48915                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48916         fi
48917         # Put the nasty error message in config.log where it belongs
48918         echo "$GST_PKG_ERRORS" >&5
48919
48920
48921                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48922 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48923                     GST_VERSION_MINOR=8
48924
48925
48926 elif test $pkg_failed = untried; then
48927
48928                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48929 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48930                     GST_VERSION_MINOR=8
48931
48932
48933 else
48934         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48935         GST_LIBS=$pkg_cv_GST_LIBS
48936         { echo "$as_me:$LINENO: result: yes" >&5
48937 echo "${ECHO_T}yes" >&6; }
48938
48939                     wxUSE_GSTREAMER="yes"
48940                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48941
48942 fi
48943         else
48944                         GST_VERSION_MINOR=8
48945         fi
48946
48947         if test $GST_VERSION_MINOR = "8"; then
48948             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48949
48950 pkg_failed=no
48951 { echo "$as_me:$LINENO: checking for GST" >&5
48952 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48953
48954 if test -n "$PKG_CONFIG"; then
48955     if test -n "$GST_CFLAGS"; then
48956         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48957     else
48958         if test -n "$PKG_CONFIG" && \
48959     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48960   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48961   ac_status=$?
48962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48963   (exit $ac_status); }; then
48964   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48965 else
48966   pkg_failed=yes
48967 fi
48968     fi
48969 else
48970         pkg_failed=untried
48971 fi
48972 if test -n "$PKG_CONFIG"; then
48973     if test -n "$GST_LIBS"; then
48974         pkg_cv_GST_LIBS="$GST_LIBS"
48975     else
48976         if test -n "$PKG_CONFIG" && \
48977     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48978   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48979   ac_status=$?
48980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48981   (exit $ac_status); }; then
48982   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48983 else
48984   pkg_failed=yes
48985 fi
48986     fi
48987 else
48988         pkg_failed=untried
48989 fi
48990
48991
48992
48993 if test $pkg_failed = yes; then
48994
48995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48996         _pkg_short_errors_supported=yes
48997 else
48998         _pkg_short_errors_supported=no
48999 fi
49000         if test $_pkg_short_errors_supported = yes; then
49001                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49002         else
49003                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49004         fi
49005         # Put the nasty error message in config.log where it belongs
49006         echo "$GST_PKG_ERRORS" >&5
49007
49008
49009                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49010 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49011
49012 elif test $pkg_failed = untried; then
49013
49014                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49015 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49016
49017 else
49018         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49019         GST_LIBS=$pkg_cv_GST_LIBS
49020         { echo "$as_me:$LINENO: result: yes" >&5
49021 echo "${ECHO_T}yes" >&6; }
49022         wxUSE_GSTREAMER="yes"
49023 fi
49024         fi
49025
49026
49027         if test "$wxUSE_GSTREAMER" = "yes"; then
49028             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49029             LIBS="$GST_LIBS $LIBS"
49030
49031             cat >>confdefs.h <<\_ACEOF
49032 #define wxUSE_GSTREAMER 1
49033 _ACEOF
49034
49035         else
49036             USE_MEDIA=0
49037         fi
49038     fi
49039
49040     if test $USE_MEDIA = 1; then
49041         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49042         cat >>confdefs.h <<\_ACEOF
49043 #define wxUSE_MEDIACTRL 1
49044 _ACEOF
49045
49046     fi
49047 fi
49048
49049
49050 if test "$cross_compiling" = "yes"; then
49051         OSINFO="\"$host\""
49052 else
49053         OSINFO=`uname -s -r -m`
49054     OSINFO="\"$OSINFO\""
49055 fi
49056
49057 cat >>confdefs.h <<_ACEOF
49058 #define WXWIN_OS_DESCRIPTION $OSINFO
49059 _ACEOF
49060
49061
49062
49063 if test "x$prefix" != "xNONE"; then
49064     wxPREFIX=$prefix
49065 else
49066     wxPREFIX=$ac_default_prefix
49067 fi
49068
49069 cat >>confdefs.h <<_ACEOF
49070 #define wxINSTALL_PREFIX "$wxPREFIX"
49071 _ACEOF
49072
49073
49074
49075
49076 STD_BASE_LIBS="base"
49077 STD_GUI_LIBS=""
49078 BUILT_WX_LIBS="base"
49079 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
49080
49081 if test "$wxUSE_SOCKETS" = "yes" ; then
49082     STD_BASE_LIBS="net $STD_BASE_LIBS"
49083     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49084 fi
49085 if test "$wxUSE_ODBC" != "no" ; then
49086     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
49087 fi
49088 if test "$wxUSE_XML" = "yes" ; then
49089     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49090     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49091 fi
49092
49093 if test "$wxUSE_GUI" = "yes"; then
49094     STD_GUI_LIBS="adv core"
49095     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49096
49097     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49098         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49099         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49100     fi
49101     if test "$wxUSE_ODBC" != "no" ; then
49102         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
49103     fi
49104     if test "$wxUSE_HTML" = "yes" ; then
49105         STD_GUI_LIBS="html $STD_GUI_LIBS"
49106         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49107     fi
49108     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49109         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49110     fi
49111     if test "$wxUSE_OPENGL" = "yes" ; then
49112         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49113     fi
49114     if test "$wxUSE_AUI" = "yes" ; then
49115         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49116     fi
49117     if test "$wxUSE_STC" = "yes" ; then
49118         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49119     fi
49120     if test "$wxUSE_XRC" = "yes" ; then
49121         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49122         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49123     fi
49124 fi
49125
49126
49127
49128
49129
49130
49131
49132
49133 if test "$wxUSE_MAC" = 1 ; then
49134     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49135         if test "$USE_DARWIN" = 1; then
49136             LDFLAGS="$LDFLAGS -framework QuickTime"
49137         else
49138             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49139         fi
49140     fi
49141     if test "$USE_DARWIN" = 1; then
49142         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49143     else
49144         LDFLAGS="$LDFLAGS -lCarbonLib"
49145     fi
49146 fi
49147 if test "$wxUSE_COCOA" = 1 ; then
49148     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49149     if test "$wxUSE_MEDIACTRL" = "yes"; then
49150         LDFLAGS="$LDFLAGS -framework QuickTime"
49151     fi
49152 fi
49153 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49154     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49155 fi
49156
49157 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49158
49159 if test "$wxUSE_GUI" = "yes"; then
49160
49161
49162         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49163                      dynamic erase event exec font image minimal mobile \
49164                      mobile/wxedit mobile/styles propsize render \
49165                      rotate shaped svg taborder vscroll widgets"
49166
49167     if test "$wxUSE_MONOLITHIC" != "yes"; then
49168         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49169     fi
49170     if test "$TOOLKIT" = "MSW"; then
49171         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49172         if test "$wxUSE_UNIVERSAL" != "yes"; then
49173             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49174         fi
49175     fi
49176     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49177         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49178     fi
49179 else
49180     SAMPLES_SUBDIRS="console"
49181 fi
49182
49183
49184 if test "x$INTELCC" = "xyes" ; then
49185                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49186 elif test "$GCC" = yes ; then
49187     CWARNINGS="-Wall -Wundef"
49188 fi
49189
49190 if test "x$INTELCXX" = "xyes" ; then
49191                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49192 elif test "$GXX" = yes ; then
49193         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
49194 fi
49195
49196
49197 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49198 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49199
49200
49201 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49202  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49203  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49204  $CPPFLAGS `
49205
49206 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49207 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49208 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49209
49210 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49211
49212
49213 if test "x$MWCC" = "xyes"; then
49214
49215             CC="$CC -cwd source -I-"
49216     CXX="$CXX -cwd source -I-"
49217 fi
49218
49219
49220 LIBS=`echo $LIBS`
49221 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49222 EXTRALIBS_XML="$EXPAT_LINK"
49223 EXTRALIBS_HTML="$MSPACK_LINK"
49224 EXTRALIBS_ODBC="$ODBC_LINK"
49225 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49226 if test "$wxUSE_GUI" = "yes"; then
49227     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49228 fi
49229 if test "$wxUSE_OPENGL" = "yes"; then
49230     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49231 fi
49232
49233 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49234
49235 WXCONFIG_LIBS="$LIBS"
49236
49237 if test "$wxUSE_REGEX" = "builtin" ; then
49238     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49239 fi
49240 if test "$wxUSE_EXPAT" = "builtin" ; then
49241     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49242 fi
49243 if test "$wxUSE_ODBC" = "builtin" ; then
49244     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
49245 fi
49246 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49247     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49248 fi
49249 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49250     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49251 fi
49252 if test "$wxUSE_LIBPNG" = "builtin" ; then
49253     wxconfig_3rdparty="png $wxconfig_3rdparty"
49254 fi
49255 if test "$wxUSE_ZLIB" = "builtin" ; then
49256     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49257 fi
49258
49259 for i in $wxconfig_3rdparty ; do
49260     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49261 done
49262
49263
49264 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49265     WXUNIV=1
49266
49267     case "$wxUNIV_THEMES" in
49268         ''|all)
49269             cat >>confdefs.h <<\_ACEOF
49270 #define wxUSE_ALL_THEMES 1
49271 _ACEOF
49272
49273             ;;
49274
49275         *)
49276             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49277                 cat >>confdefs.h <<_ACEOF
49278 #define wxUSE_THEME_$t 1
49279 _ACEOF
49280
49281             done
49282     esac
49283 else
49284     WXUNIV=0
49285 fi
49286
49287
49288
49289
49290
49291
49292
49293
49294
49295 if test $wxUSE_MONOLITHIC = "yes" ; then
49296     MONOLITHIC=1
49297 else
49298     MONOLITHIC=0
49299 fi
49300
49301 if test $wxUSE_PLUGINS = "yes" ; then
49302     USE_PLUGINS=1
49303 else
49304     USE_PLUGINS=0
49305 fi
49306
49307 if test $wxUSE_ODBC != "no" ; then
49308     USE_ODBC=1
49309 else
49310     USE_ODBC=0
49311 fi
49312
49313 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49314     USE_QA=1
49315 else
49316     USE_QA=0
49317 fi
49318
49319 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49320     OFFICIAL_BUILD=1
49321 else
49322     OFFICIAL_BUILD=0
49323 fi
49324
49325
49326
49327
49328
49329
49330
49331
49332
49333
49334
49335
49336
49337
49338
49339
49340
49341
49342
49343
49344
49345
49346
49347
49348
49349
49350 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
49351
49352
49353
49354
49355
49356
49357
49358
49359 case "$TOOLKIT" in
49360     GTK)
49361         TOOLKIT_DESC="GTK+"
49362         if test "$WXGTK20" = 1; then
49363             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49364             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49365                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49366             fi
49367             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49368                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49369             fi
49370             if test "$wxUSE_LIBHILDON" = "yes"; then
49371                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49372             fi
49373
49374             if test "$TOOLKIT_EXTRA" != ""; then
49375                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49376             fi
49377         fi
49378         ;;
49379
49380     ?*)
49381         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49382         ;;
49383
49384     *)
49385         TOOLKIT_DESC="base only"
49386         ;;
49387 esac
49388
49389 if test "$wxUSE_WINE" = "yes"; then
49390     BAKEFILE_FORCE_PLATFORM=win32
49391 fi
49392
49393 if test "$wxUSE_MAC" = 1 ; then
49394     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
49395                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
49396             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
49397         else
49398                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
49399         fi
49400         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
49401         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
49402         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
49403         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
49404         bk_use_pch=no
49405     fi
49406     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
49407     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
49408 fi
49409
49410 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49411 then
49412     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49413 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49414 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49415   echo $ECHO_N "(cached) $ECHO_C" >&6
49416 else
49417
49418             echo '#include <stdio.h>
49419                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49420
49421             echo '#include "conftest.h"
49422                   int main()
49423                   {
49424                      printf("%ls", test_var);
49425                      return 0;
49426                   }' > conftest.cpp
49427
49428             wx_cv_gcc_pch_bug="pch not supported"
49429
49430             if $CXX conftest.h >/dev/null 2>&1
49431             then
49432                 wx_cv_gcc_pch_bug=
49433
49434                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49435                 then
49436                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49437                         grep awidetest >/dev/null
49438                     then
49439                         wx_cv_gcc_pch_bug=no
49440                     else
49441                         wx_cv_gcc_pch_bug=yes
49442                     fi
49443                 fi
49444             fi
49445
49446             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49447
49448 fi
49449 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49450 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49451
49452     if test "$wx_cv_gcc_pch_bug" = yes; then
49453                         bk_use_pch=no
49454     fi
49455 fi
49456
49457
49458
49459
49460     if test "x$BAKEFILE_HOST" = "x"; then
49461                if test "x${host}" = "x" ; then
49462                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49463 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49464    { (exit 1); exit 1; }; }
49465                fi
49466
49467         BAKEFILE_HOST="${host}"
49468     fi
49469
49470     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49471
49472     if test -n "$ac_tool_prefix"; then
49473   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49477 if test "${ac_cv_prog_RANLIB+set}" = set; then
49478   echo $ECHO_N "(cached) $ECHO_C" >&6
49479 else
49480   if test -n "$RANLIB"; then
49481   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49482 else
49483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49484 for as_dir in $PATH
49485 do
49486   IFS=$as_save_IFS
49487   test -z "$as_dir" && as_dir=.
49488   for ac_exec_ext in '' $ac_executable_extensions; do
49489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49490     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49492     break 2
49493   fi
49494 done
49495 done
49496 IFS=$as_save_IFS
49497
49498 fi
49499 fi
49500 RANLIB=$ac_cv_prog_RANLIB
49501 if test -n "$RANLIB"; then
49502   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49503 echo "${ECHO_T}$RANLIB" >&6; }
49504 else
49505   { echo "$as_me:$LINENO: result: no" >&5
49506 echo "${ECHO_T}no" >&6; }
49507 fi
49508
49509
49510 fi
49511 if test -z "$ac_cv_prog_RANLIB"; then
49512   ac_ct_RANLIB=$RANLIB
49513   # Extract the first word of "ranlib", so it can be a program name with args.
49514 set dummy ranlib; ac_word=$2
49515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49518   echo $ECHO_N "(cached) $ECHO_C" >&6
49519 else
49520   if test -n "$ac_ct_RANLIB"; then
49521   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49522 else
49523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49524 for as_dir in $PATH
49525 do
49526   IFS=$as_save_IFS
49527   test -z "$as_dir" && as_dir=.
49528   for ac_exec_ext in '' $ac_executable_extensions; do
49529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49530     ac_cv_prog_ac_ct_RANLIB="ranlib"
49531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49532     break 2
49533   fi
49534 done
49535 done
49536 IFS=$as_save_IFS
49537
49538 fi
49539 fi
49540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49541 if test -n "$ac_ct_RANLIB"; then
49542   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49544 else
49545   { echo "$as_me:$LINENO: result: no" >&5
49546 echo "${ECHO_T}no" >&6; }
49547 fi
49548
49549   if test "x$ac_ct_RANLIB" = x; then
49550     RANLIB=":"
49551   else
49552     case $cross_compiling:$ac_tool_warned in
49553 yes:)
49554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49555 whose name does not start with the host triplet.  If you think this
49556 configuration is useful to you, please write to autoconf@gnu.org." >&5
49557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49558 whose name does not start with the host triplet.  If you think this
49559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49560 ac_tool_warned=yes ;;
49561 esac
49562     RANLIB=$ac_ct_RANLIB
49563   fi
49564 else
49565   RANLIB="$ac_cv_prog_RANLIB"
49566 fi
49567
49568     # Find a good install program.  We prefer a C program (faster),
49569 # so one script is as good as another.  But avoid the broken or
49570 # incompatible versions:
49571 # SysV /etc/install, /usr/sbin/install
49572 # SunOS /usr/etc/install
49573 # IRIX /sbin/install
49574 # AIX /bin/install
49575 # AmigaOS /C/install, which installs bootblocks on floppy discs
49576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49579 # OS/2's system install, which has a completely different semantic
49580 # ./install, which can be erroneously created by make from ./install.sh.
49581 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49582 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49583 if test -z "$INSTALL"; then
49584 if test "${ac_cv_path_install+set}" = set; then
49585   echo $ECHO_N "(cached) $ECHO_C" >&6
49586 else
49587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49588 for as_dir in $PATH
49589 do
49590   IFS=$as_save_IFS
49591   test -z "$as_dir" && as_dir=.
49592   # Account for people who put trailing slashes in PATH elements.
49593 case $as_dir/ in
49594   ./ | .// | /cC/* | \
49595   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49596   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49597   /usr/ucb/* ) ;;
49598   *)
49599     # OSF1 and SCO ODT 3.0 have their own names for install.
49600     # Don't use installbsd from OSF since it installs stuff as root
49601     # by default.
49602     for ac_prog in ginstall scoinst install; do
49603       for ac_exec_ext in '' $ac_executable_extensions; do
49604         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49605           if test $ac_prog = install &&
49606             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49607             # AIX install.  It has an incompatible calling convention.
49608             :
49609           elif test $ac_prog = install &&
49610             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49611             # program-specific install script used by HP pwplus--don't use.
49612             :
49613           else
49614             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49615             break 3
49616           fi
49617         fi
49618       done
49619     done
49620     ;;
49621 esac
49622 done
49623 IFS=$as_save_IFS
49624
49625
49626 fi
49627   if test "${ac_cv_path_install+set}" = set; then
49628     INSTALL=$ac_cv_path_install
49629   else
49630     # As a last resort, use the slow shell script.  Don't cache a
49631     # value for INSTALL within a source directory, because that will
49632     # break other packages using the cache if that directory is
49633     # removed, or if the value is a relative name.
49634     INSTALL=$ac_install_sh
49635   fi
49636 fi
49637 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49638 echo "${ECHO_T}$INSTALL" >&6; }
49639
49640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49641 # It thinks the first close brace ends the variable substitution.
49642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49643
49644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49645
49646 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49647
49648     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49649 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49650 LN_S=$as_ln_s
49651 if test "$LN_S" = "ln -s"; then
49652   { echo "$as_me:$LINENO: result: yes" >&5
49653 echo "${ECHO_T}yes" >&6; }
49654 else
49655   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49656 echo "${ECHO_T}no, using $LN_S" >&6; }
49657 fi
49658
49659
49660     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49661 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49662 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49663 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49664   echo $ECHO_N "(cached) $ECHO_C" >&6
49665 else
49666   cat >conftest.make <<\_ACEOF
49667 SHELL = /bin/sh
49668 all:
49669         @echo '@@@%%%=$(MAKE)=@@@%%%'
49670 _ACEOF
49671 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49672 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49673   *@@@%%%=?*=@@@%%%*)
49674     eval ac_cv_prog_make_${ac_make}_set=yes;;
49675   *)
49676     eval ac_cv_prog_make_${ac_make}_set=no;;
49677 esac
49678 rm -f conftest.make
49679 fi
49680 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49681   { echo "$as_me:$LINENO: result: yes" >&5
49682 echo "${ECHO_T}yes" >&6; }
49683   SET_MAKE=
49684 else
49685   { echo "$as_me:$LINENO: result: no" >&5
49686 echo "${ECHO_T}no" >&6; }
49687   SET_MAKE="MAKE=${MAKE-make}"
49688 fi
49689
49690
49691
49692     if test "x$SUNCXX" = "xyes"; then
49693                                 AR=$CXX
49694         AROPTIONS="-xar -o"
49695
49696     elif test "x$SGICC" = "xyes"; then
49697                 AR=$CXX
49698         AROPTIONS="-ar -o"
49699
49700     else
49701         if test -n "$ac_tool_prefix"; then
49702   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49703 set dummy ${ac_tool_prefix}ar; ac_word=$2
49704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49706 if test "${ac_cv_prog_AR+set}" = set; then
49707   echo $ECHO_N "(cached) $ECHO_C" >&6
49708 else
49709   if test -n "$AR"; then
49710   ac_cv_prog_AR="$AR" # Let the user override the test.
49711 else
49712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49713 for as_dir in $PATH
49714 do
49715   IFS=$as_save_IFS
49716   test -z "$as_dir" && as_dir=.
49717   for ac_exec_ext in '' $ac_executable_extensions; do
49718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49719     ac_cv_prog_AR="${ac_tool_prefix}ar"
49720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49721     break 2
49722   fi
49723 done
49724 done
49725 IFS=$as_save_IFS
49726
49727 fi
49728 fi
49729 AR=$ac_cv_prog_AR
49730 if test -n "$AR"; then
49731   { echo "$as_me:$LINENO: result: $AR" >&5
49732 echo "${ECHO_T}$AR" >&6; }
49733 else
49734   { echo "$as_me:$LINENO: result: no" >&5
49735 echo "${ECHO_T}no" >&6; }
49736 fi
49737
49738
49739 fi
49740 if test -z "$ac_cv_prog_AR"; then
49741   ac_ct_AR=$AR
49742   # Extract the first word of "ar", so it can be a program name with args.
49743 set dummy ar; ac_word=$2
49744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49746 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49747   echo $ECHO_N "(cached) $ECHO_C" >&6
49748 else
49749   if test -n "$ac_ct_AR"; then
49750   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49751 else
49752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49753 for as_dir in $PATH
49754 do
49755   IFS=$as_save_IFS
49756   test -z "$as_dir" && as_dir=.
49757   for ac_exec_ext in '' $ac_executable_extensions; do
49758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49759     ac_cv_prog_ac_ct_AR="ar"
49760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49761     break 2
49762   fi
49763 done
49764 done
49765 IFS=$as_save_IFS
49766
49767 fi
49768 fi
49769 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49770 if test -n "$ac_ct_AR"; then
49771   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49772 echo "${ECHO_T}$ac_ct_AR" >&6; }
49773 else
49774   { echo "$as_me:$LINENO: result: no" >&5
49775 echo "${ECHO_T}no" >&6; }
49776 fi
49777
49778   if test "x$ac_ct_AR" = x; then
49779     AR="ar"
49780   else
49781     case $cross_compiling:$ac_tool_warned in
49782 yes:)
49783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49784 whose name does not start with the host triplet.  If you think this
49785 configuration is useful to you, please write to autoconf@gnu.org." >&5
49786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49787 whose name does not start with the host triplet.  If you think this
49788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49789 ac_tool_warned=yes ;;
49790 esac
49791     AR=$ac_ct_AR
49792   fi
49793 else
49794   AR="$ac_cv_prog_AR"
49795 fi
49796
49797         AROPTIONS=rcu
49798     fi
49799
49800
49801     if test -n "$ac_tool_prefix"; then
49802   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49803 set dummy ${ac_tool_prefix}strip; ac_word=$2
49804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49806 if test "${ac_cv_prog_STRIP+set}" = set; then
49807   echo $ECHO_N "(cached) $ECHO_C" >&6
49808 else
49809   if test -n "$STRIP"; then
49810   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49811 else
49812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49813 for as_dir in $PATH
49814 do
49815   IFS=$as_save_IFS
49816   test -z "$as_dir" && as_dir=.
49817   for ac_exec_ext in '' $ac_executable_extensions; do
49818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49819     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49821     break 2
49822   fi
49823 done
49824 done
49825 IFS=$as_save_IFS
49826
49827 fi
49828 fi
49829 STRIP=$ac_cv_prog_STRIP
49830 if test -n "$STRIP"; then
49831   { echo "$as_me:$LINENO: result: $STRIP" >&5
49832 echo "${ECHO_T}$STRIP" >&6; }
49833 else
49834   { echo "$as_me:$LINENO: result: no" >&5
49835 echo "${ECHO_T}no" >&6; }
49836 fi
49837
49838
49839 fi
49840 if test -z "$ac_cv_prog_STRIP"; then
49841   ac_ct_STRIP=$STRIP
49842   # Extract the first word of "strip", so it can be a program name with args.
49843 set dummy strip; ac_word=$2
49844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49846 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49847   echo $ECHO_N "(cached) $ECHO_C" >&6
49848 else
49849   if test -n "$ac_ct_STRIP"; then
49850   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49851 else
49852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49853 for as_dir in $PATH
49854 do
49855   IFS=$as_save_IFS
49856   test -z "$as_dir" && as_dir=.
49857   for ac_exec_ext in '' $ac_executable_extensions; do
49858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49859     ac_cv_prog_ac_ct_STRIP="strip"
49860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49861     break 2
49862   fi
49863 done
49864 done
49865 IFS=$as_save_IFS
49866
49867 fi
49868 fi
49869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49870 if test -n "$ac_ct_STRIP"; then
49871   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49872 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49873 else
49874   { echo "$as_me:$LINENO: result: no" >&5
49875 echo "${ECHO_T}no" >&6; }
49876 fi
49877
49878   if test "x$ac_ct_STRIP" = x; then
49879     STRIP=":"
49880   else
49881     case $cross_compiling:$ac_tool_warned in
49882 yes:)
49883 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49884 whose name does not start with the host triplet.  If you think this
49885 configuration is useful to you, please write to autoconf@gnu.org." >&5
49886 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49887 whose name does not start with the host triplet.  If you think this
49888 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49889 ac_tool_warned=yes ;;
49890 esac
49891     STRIP=$ac_ct_STRIP
49892   fi
49893 else
49894   STRIP="$ac_cv_prog_STRIP"
49895 fi
49896
49897     if test -n "$ac_tool_prefix"; then
49898   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49899 set dummy ${ac_tool_prefix}nm; ac_word=$2
49900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49902 if test "${ac_cv_prog_NM+set}" = set; then
49903   echo $ECHO_N "(cached) $ECHO_C" >&6
49904 else
49905   if test -n "$NM"; then
49906   ac_cv_prog_NM="$NM" # Let the user override the test.
49907 else
49908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49909 for as_dir in $PATH
49910 do
49911   IFS=$as_save_IFS
49912   test -z "$as_dir" && as_dir=.
49913   for ac_exec_ext in '' $ac_executable_extensions; do
49914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49915     ac_cv_prog_NM="${ac_tool_prefix}nm"
49916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49917     break 2
49918   fi
49919 done
49920 done
49921 IFS=$as_save_IFS
49922
49923 fi
49924 fi
49925 NM=$ac_cv_prog_NM
49926 if test -n "$NM"; then
49927   { echo "$as_me:$LINENO: result: $NM" >&5
49928 echo "${ECHO_T}$NM" >&6; }
49929 else
49930   { echo "$as_me:$LINENO: result: no" >&5
49931 echo "${ECHO_T}no" >&6; }
49932 fi
49933
49934
49935 fi
49936 if test -z "$ac_cv_prog_NM"; then
49937   ac_ct_NM=$NM
49938   # Extract the first word of "nm", so it can be a program name with args.
49939 set dummy nm; ac_word=$2
49940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49942 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49943   echo $ECHO_N "(cached) $ECHO_C" >&6
49944 else
49945   if test -n "$ac_ct_NM"; then
49946   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49947 else
49948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49949 for as_dir in $PATH
49950 do
49951   IFS=$as_save_IFS
49952   test -z "$as_dir" && as_dir=.
49953   for ac_exec_ext in '' $ac_executable_extensions; do
49954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49955     ac_cv_prog_ac_ct_NM="nm"
49956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49957     break 2
49958   fi
49959 done
49960 done
49961 IFS=$as_save_IFS
49962
49963 fi
49964 fi
49965 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49966 if test -n "$ac_ct_NM"; then
49967   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49968 echo "${ECHO_T}$ac_ct_NM" >&6; }
49969 else
49970   { echo "$as_me:$LINENO: result: no" >&5
49971 echo "${ECHO_T}no" >&6; }
49972 fi
49973
49974   if test "x$ac_ct_NM" = x; then
49975     NM=":"
49976   else
49977     case $cross_compiling:$ac_tool_warned in
49978 yes:)
49979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49980 whose name does not start with the host triplet.  If you think this
49981 configuration is useful to you, please write to autoconf@gnu.org." >&5
49982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49983 whose name does not start with the host triplet.  If you think this
49984 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49985 ac_tool_warned=yes ;;
49986 esac
49987     NM=$ac_ct_NM
49988   fi
49989 else
49990   NM="$ac_cv_prog_NM"
49991 fi
49992
49993
49994     case ${BAKEFILE_HOST} in
49995         *-hp-hpux* )
49996                                     INSTALL_DIR="mkdir -p"
49997             ;;
49998         * )
49999                                     INSTALL_DIR='$(INSTALL) -d'
50000             ;;
50001     esac
50002
50003
50004     LDFLAGS_GUI=
50005     case ${BAKEFILE_HOST} in
50006         *-*-cygwin* | *-*-mingw32* )
50007         LDFLAGS_GUI="-mwindows"
50008     esac
50009
50010
50011     fi
50012
50013         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50014 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50015 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50016   echo $ECHO_N "(cached) $ECHO_C" >&6
50017 else
50018
50019         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50020                 egrep -s GNU > /dev/null); then
50021             bakefile_cv_prog_makeisgnu="yes"
50022         else
50023             bakefile_cv_prog_makeisgnu="no"
50024         fi
50025
50026 fi
50027 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50028 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50029
50030     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50031         IF_GNU_MAKE=""
50032     else
50033         IF_GNU_MAKE="#"
50034     fi
50035
50036
50037
50038     PLATFORM_UNIX=0
50039     PLATFORM_WIN32=0
50040     PLATFORM_MSDOS=0
50041     PLATFORM_MAC=0
50042     PLATFORM_MACOS=0
50043     PLATFORM_MACOSX=0
50044     PLATFORM_OS2=0
50045     PLATFORM_BEOS=0
50046
50047     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50048         case "${BAKEFILE_HOST}" in
50049             *-*-mingw32* )
50050                 PLATFORM_WIN32=1
50051             ;;
50052             *-pc-msdosdjgpp )
50053                 PLATFORM_MSDOS=1
50054             ;;
50055             *-pc-os2_emx | *-pc-os2-emx )
50056                 PLATFORM_OS2=1
50057             ;;
50058             *-*-darwin* )
50059                 PLATFORM_MAC=1
50060                 PLATFORM_MACOSX=1
50061             ;;
50062             *-*-beos* )
50063                 PLATFORM_BEOS=1
50064             ;;
50065             powerpc-apple-macos* )
50066                 PLATFORM_MAC=1
50067                 PLATFORM_MACOS=1
50068             ;;
50069             * )
50070                 PLATFORM_UNIX=1
50071             ;;
50072         esac
50073     else
50074         case "$BAKEFILE_FORCE_PLATFORM" in
50075             win32 )
50076                 PLATFORM_WIN32=1
50077             ;;
50078             msdos )
50079                 PLATFORM_MSDOS=1
50080             ;;
50081             os2 )
50082                 PLATFORM_OS2=1
50083             ;;
50084             darwin )
50085                 PLATFORM_MAC=1
50086                 PLATFORM_MACOSX=1
50087             ;;
50088             unix )
50089                 PLATFORM_UNIX=1
50090             ;;
50091             beos )
50092                 PLATFORM_BEOS=1
50093             ;;
50094             * )
50095                                             ;;
50096         esac
50097     fi
50098
50099
50100
50101
50102
50103
50104
50105
50106
50107
50108
50109     # Check whether --enable-omf was given.
50110 if test "${enable_omf+set}" = set; then
50111   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50112 fi
50113
50114
50115     case "${BAKEFILE_HOST}" in
50116       *-*-darwin* )
50117                         if test "x$GCC" = "xyes"; then
50118             CFLAGS="$CFLAGS -fno-common"
50119             CXXFLAGS="$CXXFLAGS -fno-common"
50120         fi
50121         if test "x$XLCC" = "xyes"; then
50122             CFLAGS="$CFLAGS -qnocommon"
50123             CXXFLAGS="$CXXFLAGS -qnocommon"
50124         fi
50125         ;;
50126
50127       *-pc-os2_emx | *-pc-os2-emx )
50128         if test "x$bk_os2_use_omf" = "xyes" ; then
50129             AR=emxomfar
50130             RANLIB=:
50131             LDFLAGS="-Zomf $LDFLAGS"
50132             CFLAGS="-Zomf $CFLAGS"
50133             CXXFLAGS="-Zomf $CXXFLAGS"
50134             OS2_LIBEXT="lib"
50135         else
50136             OS2_LIBEXT="a"
50137         fi
50138         ;;
50139
50140       i*86-*-beos* )
50141         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50142         ;;
50143     esac
50144
50145
50146     SO_SUFFIX="so"
50147     SO_SUFFIX_MODULE="so"
50148     EXEEXT=""
50149     LIBPREFIX="lib"
50150     LIBEXT=".a"
50151     DLLPREFIX="lib"
50152     DLLPREFIX_MODULE=""
50153     DLLIMP_SUFFIX=""
50154     dlldir="$libdir"
50155
50156     case "${BAKEFILE_HOST}" in
50157         *-hp-hpux* )
50158             SO_SUFFIX="sl"
50159             SO_SUFFIX_MODULE="sl"
50160         ;;
50161         *-*-aix* )
50162                                                                         SO_SUFFIX="a"
50163             SO_SUFFIX_MODULE="a"
50164         ;;
50165         *-*-cygwin* )
50166             SO_SUFFIX="dll"
50167             SO_SUFFIX_MODULE="dll"
50168             DLLIMP_SUFFIX="dll.a"
50169             EXEEXT=".exe"
50170             DLLPREFIX="cyg"
50171             dlldir="$bindir"
50172         ;;
50173         *-*-mingw32* )
50174             SO_SUFFIX="dll"
50175             SO_SUFFIX_MODULE="dll"
50176             DLLIMP_SUFFIX="dll.a"
50177             EXEEXT=".exe"
50178             DLLPREFIX=""
50179             dlldir="$bindir"
50180         ;;
50181         *-pc-msdosdjgpp )
50182             EXEEXT=".exe"
50183             DLLPREFIX=""
50184             dlldir="$bindir"
50185         ;;
50186         *-pc-os2_emx | *-pc-os2-emx )
50187             SO_SUFFIX="dll"
50188             SO_SUFFIX_MODULE="dll"
50189             DLLIMP_SUFFIX=$OS2_LIBEXT
50190             EXEEXT=".exe"
50191             DLLPREFIX=""
50192             LIBPREFIX=""
50193             LIBEXT=".$OS2_LIBEXT"
50194             dlldir="$bindir"
50195         ;;
50196         *-*-darwin* )
50197             SO_SUFFIX="dylib"
50198             SO_SUFFIX_MODULE="bundle"
50199         ;;
50200     esac
50201
50202     if test "x$DLLIMP_SUFFIX" = "x" ; then
50203         DLLIMP_SUFFIX="$SO_SUFFIX"
50204     fi
50205
50206
50207
50208
50209
50210
50211
50212
50213
50214
50215
50216
50217         PIC_FLAG=""
50218     if test "x$GCC" = "xyes"; then
50219                 PIC_FLAG="-fPIC"
50220     fi
50221
50222         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50223     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50224     WINDOWS_IMPLIB=0
50225
50226     case "${BAKEFILE_HOST}" in
50227       *-hp-hpux* )
50228                 if test "x$GCC" != "xyes"; then
50229                         LDFLAGS="$LDFLAGS -L/usr/lib"
50230
50231             SHARED_LD_CC="${CC} -b -o"
50232             SHARED_LD_CXX="${CXX} -b -o"
50233             PIC_FLAG="+Z"
50234         fi
50235       ;;
50236
50237       *-*-linux* )
50238         if test "$INTELCC" = "yes"; then
50239             PIC_FLAG="-KPIC"
50240         elif test "x$SUNCXX" = "xyes"; then
50241             SHARED_LD_CC="${CC} -G -o"
50242             SHARED_LD_CXX="${CXX} -G -o"
50243             PIC_FLAG="-KPIC"
50244         fi
50245       ;;
50246
50247       *-*-solaris2* )
50248         if test "x$SUNCXX" = xyes ; then
50249             SHARED_LD_CC="${CC} -G -o"
50250             SHARED_LD_CXX="${CXX} -G -o"
50251             PIC_FLAG="-KPIC"
50252         fi
50253       ;;
50254
50255       *-*-darwin* )
50256
50257 D='$'
50258 cat <<EOF >shared-ld-sh
50259 #!/bin/sh
50260 #-----------------------------------------------------------------------------
50261 #-- Name:        distrib/mac/shared-ld-sh
50262 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50263 #-- Author:      Gilles Depeyrot
50264 #-- Copyright:   (c) 2002 Gilles Depeyrot
50265 #-- Licence:     any use permitted
50266 #-----------------------------------------------------------------------------
50267
50268 verbose=0
50269 args=""
50270 objects=""
50271 linking_flag="-dynamiclib"
50272 ldargs="-r -keep_private_externs -nostdlib"
50273
50274 while test ${D}# -gt 0; do
50275     case ${D}1 in
50276
50277        -v)
50278         verbose=1
50279         ;;
50280
50281        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50282         # collect these options and values
50283         args="${D}{args} ${D}1 ${D}2"
50284         shift
50285         ;;
50286
50287        -s|-Wl,*)
50288         # collect these load args
50289         ldargs="${D}{ldargs} ${D}1"
50290         ;;
50291
50292        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50293         # collect these options
50294         args="${D}{args} ${D}1"
50295         ;;
50296
50297        -dynamiclib|-bundle)
50298         linking_flag="${D}1"
50299         ;;
50300
50301        -*)
50302         echo "shared-ld: unhandled option '${D}1'"
50303         exit 1
50304         ;;
50305
50306         *.o | *.a | *.dylib)
50307         # collect object files
50308         objects="${D}{objects} ${D}1"
50309         ;;
50310
50311         *)
50312         echo "shared-ld: unhandled argument '${D}1'"
50313         exit 1
50314         ;;
50315
50316     esac
50317     shift
50318 done
50319
50320 status=0
50321
50322 #
50323 # Link one module containing all the others
50324 #
50325 if test ${D}{verbose} = 1; then
50326     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50327 fi
50328 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50329 status=${D}?
50330
50331 #
50332 # Link the shared library from the single module created, but only if the
50333 # previous command didn't fail:
50334 #
50335 if test ${D}{status} = 0; then
50336     if test ${D}{verbose} = 1; then
50337         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50338     fi
50339     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50340     status=${D}?
50341 fi
50342
50343 #
50344 # Remove intermediate module
50345 #
50346 rm -f master.${D}${D}.o
50347
50348 exit ${D}status
50349 EOF
50350
50351         chmod +x shared-ld-sh
50352
50353         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50354         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50355
50356
50357                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50358 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50359 if test "${bakefile_cv_gcc31+set}" = set; then
50360   echo $ECHO_N "(cached) $ECHO_C" >&6
50361 else
50362
50363            cat >conftest.$ac_ext <<_ACEOF
50364 /* confdefs.h.  */
50365 _ACEOF
50366 cat confdefs.h >>conftest.$ac_ext
50367 cat >>conftest.$ac_ext <<_ACEOF
50368 /* end confdefs.h.  */
50369
50370 int
50371 main ()
50372 {
50373
50374                    #if (__GNUC__ < 3) || \
50375                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50376                        This is old gcc
50377                    #endif
50378
50379   ;
50380   return 0;
50381 }
50382 _ACEOF
50383 rm -f conftest.$ac_objext
50384 if { (ac_try="$ac_compile"
50385 case "(($ac_try" in
50386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50387   *) ac_try_echo=$ac_try;;
50388 esac
50389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50390   (eval "$ac_compile") 2>conftest.er1
50391   ac_status=$?
50392   grep -v '^ *+' conftest.er1 >conftest.err
50393   rm -f conftest.er1
50394   cat conftest.err >&5
50395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50396   (exit $ac_status); } && {
50397          test -z "$ac_c_werror_flag" ||
50398          test ! -s conftest.err
50399        } && test -s conftest.$ac_objext; then
50400
50401                    bakefile_cv_gcc31=yes
50402
50403 else
50404   echo "$as_me: failed program was:" >&5
50405 sed 's/^/| /' conftest.$ac_ext >&5
50406
50407
50408                    bakefile_cv_gcc31=no
50409
50410
50411 fi
50412
50413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50414
50415 fi
50416 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50417 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50418         if test "$bakefile_cv_gcc31" = "no"; then
50419                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50420             SHARED_LD_CXX="$SHARED_LD_CC"
50421         else
50422                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50423             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50424         fi
50425
50426         if test "x$GCC" == "xyes"; then
50427             PIC_FLAG="-dynamic -fPIC"
50428         fi
50429         if test "x$XLCC" = "xyes"; then
50430             PIC_FLAG="-dynamic -DPIC"
50431         fi
50432       ;;
50433
50434       *-*-aix* )
50435         if test "x$GCC" = "xyes"; then
50436                                                             PIC_FLAG=""
50437
50438                                                                                     case "${BAKEFILE_HOST}" in
50439                 *-*-aix5* )
50440                     LD_EXPFULL="-Wl,-bexpfull"
50441                     ;;
50442             esac
50443
50444             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50445             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50446         else
50447                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50448 set dummy makeC++SharedLib; ac_word=$2
50449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50451 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50452   echo $ECHO_N "(cached) $ECHO_C" >&6
50453 else
50454   if test -n "$AIX_CXX_LD"; then
50455   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50456 else
50457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50458 for as_dir in $PATH
50459 do
50460   IFS=$as_save_IFS
50461   test -z "$as_dir" && as_dir=.
50462   for ac_exec_ext in '' $ac_executable_extensions; do
50463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50464     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50466     break 2
50467   fi
50468 done
50469 done
50470 IFS=$as_save_IFS
50471
50472   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50473 fi
50474 fi
50475 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50476 if test -n "$AIX_CXX_LD"; then
50477   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50478 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50479 else
50480   { echo "$as_me:$LINENO: result: no" >&5
50481 echo "${ECHO_T}no" >&6; }
50482 fi
50483
50484
50485             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50486             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50487         fi
50488       ;;
50489
50490       *-*-beos* )
50491                         SHARED_LD_CC="${LD} -nostart -o"
50492         SHARED_LD_CXX="${LD} -nostart -o"
50493       ;;
50494
50495       *-*-irix* )
50496                 if test "x$GCC" != "xyes"; then
50497             PIC_FLAG="-KPIC"
50498         fi
50499       ;;
50500
50501       *-*-cygwin* | *-*-mingw32* )
50502         PIC_FLAG=""
50503         SHARED_LD_CC="\$(CC) -shared -o"
50504         SHARED_LD_CXX="\$(CXX) -shared -o"
50505         WINDOWS_IMPLIB=1
50506       ;;
50507
50508       *-pc-os2_emx | *-pc-os2-emx )
50509         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50510         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50511         PIC_FLAG=""
50512
50513 D='$'
50514 cat <<EOF >dllar.sh
50515 #!/bin/sh
50516 #
50517 # dllar - a tool to build both a .dll and an .a file
50518 # from a set of object (.o) files for EMX/OS2.
50519 #
50520 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50521 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50522 #
50523 #  This script will accept a set of files on the command line.
50524 #  All the public symbols from the .o files will be exported into
50525 #  a .DEF file, then linker will be run (through gcc) against them to
50526 #  build a shared library consisting of all given .o files. All libraries
50527 #  (.a) will be first decompressed into component .o files then act as
50528 #  described above. You can optionally give a description (-d "description")
50529 #  which will be put into .DLL. To see the list of accepted options (as well
50530 #  as command-line format) simply run this program without options. The .DLL
50531 #  is built to be imported by name (there is no guarantee that new versions
50532 #  of the library you build will have same ordinals for same symbols).
50533 #
50534 #  dllar is free software; you can redistribute it and/or modify
50535 #  it under the terms of the GNU General Public License as published by
50536 #  the Free Software Foundation; either version 2, or (at your option)
50537 #  any later version.
50538 #
50539 #  dllar is distributed in the hope that it will be useful,
50540 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50541 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50542 #  GNU General Public License for more details.
50543 #
50544 #  You should have received a copy of the GNU General Public License
50545 #  along with dllar; see the file COPYING.  If not, write to the Free
50546 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50547 #  02111-1307, USA.
50548
50549 # To successfuly run this program you will need:
50550 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50551 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50552 #  - gcc
50553 #    (used to build the .dll)
50554 #  - emxexp
50555 #    (used to create .def file from .o files)
50556 #  - emximp
50557 #    (used to create .a file from .def file)
50558 #  - GNU text utilites (cat, sort, uniq)
50559 #    used to process emxexp output
50560 #  - GNU file utilities (mv, rm)
50561 #  - GNU sed
50562 #  - lxlite (optional, see flag below)
50563 #    (used for general .dll cleanup)
50564 #
50565
50566 flag_USE_LXLITE=1;
50567
50568 #
50569 # helper functions
50570 # basnam, variant of basename, which does _not_ remove the path, _iff_
50571 #                              second argument (suffix to remove) is given
50572 basnam(){
50573     case ${D}# in
50574     1)
50575         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50576         ;;
50577     2)
50578         echo ${D}1 | sed 's/'${D}2'${D}//'
50579         ;;
50580     *)
50581         echo "error in basnam ${D}*"
50582         exit 8
50583         ;;
50584     esac
50585 }
50586
50587 # Cleanup temporary files and output
50588 CleanUp() {
50589     cd ${D}curDir
50590     for i in ${D}inputFiles ; do
50591         case ${D}i in
50592         *!)
50593             rm -rf \`basnam ${D}i !\`
50594             ;;
50595         *)
50596             ;;
50597         esac
50598     done
50599
50600     # Kill result in case of failure as there is just to many stupid make/nmake
50601     # things out there which doesn't do this.
50602     if [ ${D}# -eq 0 ]; then
50603         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50604     fi
50605 }
50606
50607 # Print usage and exit script with rc=1.
50608 PrintHelp() {
50609  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50610  echo '       [-name-mangler-script script.sh]'
50611  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50612  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50613  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50614  echo '       [*.o] [*.a]'
50615  echo '*> "output_file" should have no extension.'
50616  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50617  echo '   The import library name is derived from this and is set to "name".a,'
50618  echo '   unless overridden by -import'
50619  echo '*> "importlib_name" should have no extension.'
50620  echo '   If it has the .o, or .a extension, it is automatically removed.'
50621  echo '   This name is used as the import library name and may be longer and'
50622  echo '   more descriptive than the DLL name which has to follow the old '
50623  echo '   8.3 convention of FAT.'
50624  echo '*> "script.sh may be given to override the output_file name by a'
50625  echo '   different name. It is mainly useful if the regular make process'
50626  echo '   of some package does not take into account OS/2 restriction of'
50627  echo '   DLL name lengths. It takes the importlib name as input and is'
50628  echo '   supposed to procude a shorter name as output. The script should'
50629  echo '   expect to get importlib_name without extension and should produce'
50630  echo '   a (max.) 8 letter name without extension.'
50631  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50632  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50633  echo '   These flags will be put at the start of GCC command line.'
50634  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50635  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50636  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50637  echo '   If the last character of a symbol is "*", all symbols beginning'
50638  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50639  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50640  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50641  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50642  echo '   C runtime DLLs.'
50643  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50644  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50645  echo '   unchanged to GCC at the end of command line.'
50646  echo '*> If you create a DLL from a library and you do not specify -o,'
50647  echo '   the basename for DLL and import library will be set to library name,'
50648  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50649  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50650  echo '   library will be renamed into gcc_s.a.'
50651  echo '--------'
50652  echo 'Example:'
50653  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50654  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50655  CleanUp
50656  exit 1
50657 }
50658
50659 # Execute a command.
50660 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50661 # @Uses    Whatever CleanUp() uses.
50662 doCommand() {
50663     echo "${D}*"
50664     eval ${D}*
50665     rcCmd=${D}?
50666
50667     if [ ${D}rcCmd -ne 0 ]; then
50668         echo "command failed, exit code="${D}rcCmd
50669         CleanUp
50670         exit ${D}rcCmd
50671     fi
50672 }
50673
50674 # main routine
50675 # setup globals
50676 cmdLine=${D}*
50677 outFile=""
50678 outimpFile=""
50679 inputFiles=""
50680 renameScript=""
50681 description=""
50682 CC=gcc.exe
50683 CFLAGS="-s -Zcrtdll"
50684 EXTRA_CFLAGS=""
50685 EXPORT_BY_ORDINALS=0
50686 exclude_symbols=""
50687 library_flags=""
50688 curDir=\`pwd\`
50689 curDirS=curDir
50690 case ${D}curDirS in
50691 */)
50692   ;;
50693 *)
50694   curDirS=${D}{curDirS}"/"
50695   ;;
50696 esac
50697 # Parse commandline
50698 libsToLink=0
50699 omfLinking=0
50700 while [ ${D}1 ]; do
50701     case ${D}1 in
50702     -ord*)
50703         EXPORT_BY_ORDINALS=1;
50704         ;;
50705     -o*)
50706         shift
50707         outFile=${D}1
50708         ;;
50709     -i*)
50710         shift
50711         outimpFile=${D}1
50712         ;;
50713     -name-mangler-script)
50714         shift
50715         renameScript=${D}1
50716         ;;
50717     -d*)
50718         shift
50719         description=${D}1
50720         ;;
50721     -f*)
50722         shift
50723         CFLAGS=${D}1
50724         ;;
50725     -c*)
50726         shift
50727         CC=${D}1
50728         ;;
50729     -h*)
50730         PrintHelp
50731         ;;
50732     -ex*)
50733         shift
50734         exclude_symbols=${D}{exclude_symbols}${D}1" "
50735         ;;
50736     -libf*)
50737         shift
50738         library_flags=${D}{library_flags}${D}1" "
50739         ;;
50740     -nocrt*)
50741         CFLAGS="-s"
50742         ;;
50743     -nolxl*)
50744         flag_USE_LXLITE=0
50745         ;;
50746     -* | /*)
50747         case ${D}1 in
50748         -L* | -l*)
50749             libsToLink=1
50750             ;;
50751         -Zomf)
50752             omfLinking=1
50753             ;;
50754         *)
50755             ;;
50756         esac
50757         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50758         ;;
50759     *.dll)
50760         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50761         if [ ${D}omfLinking -eq 1 ]; then
50762             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50763         else
50764             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50765         fi
50766         ;;
50767     *)
50768         found=0;
50769         if [ ${D}libsToLink -ne 0 ]; then
50770             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50771         else
50772             for file in ${D}1 ; do
50773                 if [ -f ${D}file ]; then
50774                     inputFiles="${D}{inputFiles} ${D}file"
50775                     found=1
50776                 fi
50777             done
50778             if [ ${D}found -eq 0 ]; then
50779                 echo "ERROR: No file(s) found: "${D}1
50780                 exit 8
50781             fi
50782         fi
50783       ;;
50784     esac
50785     shift
50786 done # iterate cmdline words
50787
50788 #
50789 if [ -z "${D}inputFiles" ]; then
50790     echo "dllar: no input files"
50791     PrintHelp
50792 fi
50793
50794 # Now extract all .o files from .a files
50795 newInputFiles=""
50796 for file in ${D}inputFiles ; do
50797     case ${D}file in
50798     *.a | *.lib)
50799         case ${D}file in
50800         *.a)
50801             suffix=".a"
50802             AR="ar"
50803             ;;
50804         *.lib)
50805             suffix=".lib"
50806             AR="emxomfar"
50807             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50808             ;;
50809         *)
50810             ;;
50811         esac
50812         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50813         mkdir ${D}dirname
50814         if [ ${D}? -ne 0 ]; then
50815             echo "Failed to create subdirectory ./${D}dirname"
50816             CleanUp
50817             exit 8;
50818         fi
50819         # Append '!' to indicate archive
50820         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50821         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50822         cd ${D}curDir
50823         found=0;
50824         for subfile in ${D}dirname/*.o* ; do
50825             if [ -f ${D}subfile ]; then
50826                 found=1
50827                 if [ -s ${D}subfile ]; then
50828                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50829                     newInputFiles="${D}newInputFiles ${D}subfile"
50830                 fi
50831             fi
50832         done
50833         if [ ${D}found -eq 0 ]; then
50834             echo "WARNING: there are no files in archive \\'${D}file\\'"
50835         fi
50836         ;;
50837     *)
50838         newInputFiles="${D}{newInputFiles} ${D}file"
50839         ;;
50840     esac
50841 done
50842 inputFiles="${D}newInputFiles"
50843
50844 # Output filename(s).
50845 do_backup=0;
50846 if [ -z ${D}outFile ]; then
50847     do_backup=1;
50848     set outFile ${D}inputFiles; outFile=${D}2
50849 fi
50850
50851 # If it is an archive, remove the '!' and the '_%' suffixes
50852 case ${D}outFile in
50853 *_%!)
50854     outFile=\`basnam ${D}outFile _%!\`
50855     ;;
50856 *)
50857     ;;
50858 esac
50859 case ${D}outFile in
50860 *.dll)
50861     outFile=\`basnam ${D}outFile .dll\`
50862     ;;
50863 *.DLL)
50864     outFile=\`basnam ${D}outFile .DLL\`
50865     ;;
50866 *.o)
50867     outFile=\`basnam ${D}outFile .o\`
50868     ;;
50869 *.obj)
50870     outFile=\`basnam ${D}outFile .obj\`
50871     ;;
50872 *.a)
50873     outFile=\`basnam ${D}outFile .a\`
50874     ;;
50875 *.lib)
50876     outFile=\`basnam ${D}outFile .lib\`
50877     ;;
50878 *)
50879     ;;
50880 esac
50881 case ${D}outimpFile in
50882 *.a)
50883     outimpFile=\`basnam ${D}outimpFile .a\`
50884     ;;
50885 *.lib)
50886     outimpFile=\`basnam ${D}outimpFile .lib\`
50887     ;;
50888 *)
50889     ;;
50890 esac
50891 if [ -z ${D}outimpFile ]; then
50892     outimpFile=${D}outFile
50893 fi
50894 defFile="${D}{outFile}.def"
50895 arcFile="${D}{outimpFile}.a"
50896 arcFile2="${D}{outimpFile}.lib"
50897
50898 #create ${D}dllFile as something matching 8.3 restrictions,
50899 if [ -z ${D}renameScript ] ; then
50900     dllFile="${D}outFile"
50901 else
50902     dllFile=\`${D}renameScript ${D}outimpFile\`
50903 fi
50904
50905 if [ ${D}do_backup -ne 0 ] ; then
50906     if [ -f ${D}arcFile ] ; then
50907         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50908     fi
50909     if [ -f ${D}arcFile2 ] ; then
50910         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50911     fi
50912 fi
50913
50914 # Extract public symbols from all the object files.
50915 tmpdefFile=${D}{defFile}_%
50916 rm -f ${D}tmpdefFile
50917 for file in ${D}inputFiles ; do
50918     case ${D}file in
50919     *!)
50920         ;;
50921     *)
50922         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50923         ;;
50924     esac
50925 done
50926
50927 # Create the def file.
50928 rm -f ${D}defFile
50929 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50930 dllFile="${D}{dllFile}.dll"
50931 if [ ! -z ${D}description ]; then
50932     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50933 fi
50934 echo "EXPORTS" >> ${D}defFile
50935
50936 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50937 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50938
50939 # Checks if the export is ok or not.
50940 for word in ${D}exclude_symbols; do
50941     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50942     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50943 done
50944
50945
50946 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50947     sed "=" < ${D}tmpdefFile | \\
50948     sed '
50949       N
50950       : loop
50951       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
50952       t loop
50953     ' > ${D}{tmpdefFile}%
50954     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
50955 else
50956     rm -f ${D}{tmpdefFile}%
50957 fi
50958 cat ${D}tmpdefFile >> ${D}defFile
50959 rm -f ${D}tmpdefFile
50960
50961 # Do linking, create implib, and apply lxlite.
50962 gccCmdl="";
50963 for file in ${D}inputFiles ; do
50964     case ${D}file in
50965     *!)
50966         ;;
50967     *)
50968         gccCmdl="${D}gccCmdl ${D}file"
50969         ;;
50970     esac
50971 done
50972 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
50973 touch "${D}{outFile}.dll"
50974
50975 doCommand "emximp -o ${D}arcFile ${D}defFile"
50976 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
50977     add_flags="";
50978     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50979         add_flags="-ynd"
50980     fi
50981     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50982 fi
50983 doCommand "emxomf -s -l ${D}arcFile"
50984
50985 # Successful exit.
50986 CleanUp 1
50987 exit 0
50988 EOF
50989
50990         chmod +x dllar.sh
50991       ;;
50992
50993       powerpc-apple-macos* | \
50994       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50995       *-*-mirbsd* | \
50996       *-*-sunos4* | \
50997       *-*-osf* | \
50998       *-*-dgux5* | \
50999       *-*-sysv5* | \
51000       *-pc-msdosdjgpp )
51001               ;;
51002
51003       *)
51004         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51005 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51006    { (exit 1); exit 1; }; }
51007     esac
51008
51009     if test "x$PIC_FLAG" != "x" ; then
51010         PIC_FLAG="$PIC_FLAG -DPIC"
51011     fi
51012
51013     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51014         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51015     fi
51016     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51017         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51018     fi
51019
51020
51021
51022
51023
51024
51025
51026
51027
51028     USE_SOVERSION=0
51029     USE_SOVERLINUX=0
51030     USE_SOVERSOLARIS=0
51031     USE_SOVERCYGWIN=0
51032     USE_SOSYMLINKS=0
51033     USE_MACVERSION=0
51034     SONAME_FLAG=
51035
51036     case "${BAKEFILE_HOST}" in
51037       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
51038         if test "x$SUNCXX" = "xyes"; then
51039             SONAME_FLAG="-h "
51040         else
51041             SONAME_FLAG="-Wl,-soname,"
51042         fi
51043         USE_SOVERSION=1
51044         USE_SOVERLINUX=1
51045         USE_SOSYMLINKS=1
51046       ;;
51047
51048       *-*-solaris2* )
51049         SONAME_FLAG="-h "
51050         USE_SOVERSION=1
51051         USE_SOVERSOLARIS=1
51052         USE_SOSYMLINKS=1
51053       ;;
51054
51055       *-*-darwin* )
51056         USE_MACVERSION=1
51057         USE_SOVERSION=1
51058         USE_SOSYMLINKS=1
51059       ;;
51060
51061       *-*-cygwin* )
51062         USE_SOVERSION=1
51063         USE_SOVERCYGWIN=1
51064       ;;
51065     esac
51066
51067
51068
51069
51070
51071
51072
51073
51074
51075
51076     # Check whether --enable-dependency-tracking was given.
51077 if test "${enable_dependency_tracking+set}" = set; then
51078   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51079 fi
51080
51081
51082     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51083 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51084
51085     BK_DEPS=""
51086     if test "x$bk_use_trackdeps" = "xno" ; then
51087         DEPS_TRACKING=0
51088         { echo "$as_me:$LINENO: result: disabled" >&5
51089 echo "${ECHO_T}disabled" >&6; }
51090     else
51091         DEPS_TRACKING=1
51092
51093         if test "x$GCC" = "xyes"; then
51094             DEPSMODE=gcc
51095             case "${BAKEFILE_HOST}" in
51096                 *-*-darwin* )
51097                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51098                 ;;
51099                 * )
51100                     DEPSFLAG="-MMD"
51101                 ;;
51102             esac
51103             { echo "$as_me:$LINENO: result: gcc" >&5
51104 echo "${ECHO_T}gcc" >&6; }
51105         elif test "x$MWCC" = "xyes"; then
51106             DEPSMODE=mwcc
51107             DEPSFLAG="-MM"
51108             { echo "$as_me:$LINENO: result: mwcc" >&5
51109 echo "${ECHO_T}mwcc" >&6; }
51110         elif test "x$SUNCC" = "xyes"; then
51111             DEPSMODE=unixcc
51112             DEPSFLAG="-xM1"
51113             { echo "$as_me:$LINENO: result: Sun cc" >&5
51114 echo "${ECHO_T}Sun cc" >&6; }
51115         elif test "x$SGICC" = "xyes"; then
51116             DEPSMODE=unixcc
51117             DEPSFLAG="-M"
51118             { echo "$as_me:$LINENO: result: SGI cc" >&5
51119 echo "${ECHO_T}SGI cc" >&6; }
51120         elif test "x$HPCC" = "xyes"; then
51121             DEPSMODE=unixcc
51122             DEPSFLAG="+make"
51123             { echo "$as_me:$LINENO: result: HP cc" >&5
51124 echo "${ECHO_T}HP cc" >&6; }
51125         elif test "x$COMPAQCC" = "xyes"; then
51126             DEPSMODE=gcc
51127             DEPSFLAG="-MD"
51128             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51129 echo "${ECHO_T}Compaq cc" >&6; }
51130         else
51131             DEPS_TRACKING=0
51132             { echo "$as_me:$LINENO: result: none" >&5
51133 echo "${ECHO_T}none" >&6; }
51134         fi
51135
51136         if test $DEPS_TRACKING = 1 ; then
51137
51138 D='$'
51139 cat <<EOF >bk-deps
51140 #!/bin/sh
51141
51142 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51143 # script. It is used to track C/C++ files dependencies in portable way.
51144 #
51145 # Permission is given to use this file in any way.
51146
51147 DEPSMODE=${DEPSMODE}
51148 DEPSDIR=.deps
51149 DEPSFLAG="${DEPSFLAG}"
51150
51151 mkdir -p ${D}DEPSDIR
51152
51153 if test ${D}DEPSMODE = gcc ; then
51154     ${D}* ${D}{DEPSFLAG}
51155     status=${D}?
51156     if test ${D}{status} != 0 ; then
51157         exit ${D}{status}
51158     fi
51159     # move created file to the location we want it in:
51160     while test ${D}# -gt 0; do
51161         case "${D}1" in
51162             -o )
51163                 shift
51164                 objfile=${D}1
51165             ;;
51166             -* )
51167             ;;
51168             * )
51169                 srcfile=${D}1
51170             ;;
51171         esac
51172         shift
51173     done
51174     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51175     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51176     if test -f ${D}depfile ; then
51177         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51178         rm -f ${D}depfile
51179     else
51180         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51181         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51182         if test ! -f ${D}depfile ; then
51183             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51184             depfile="${D}objfile.d"
51185         fi
51186         if test -f ${D}depfile ; then
51187             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51188             rm -f ${D}depfile
51189         fi
51190     fi
51191     exit 0
51192 elif test ${D}DEPSMODE = mwcc ; then
51193     ${D}* || exit ${D}?
51194     # Run mwcc again with -MM and redirect into the dep file we want
51195     # NOTE: We can't use shift here because we need ${D}* to be valid
51196     prevarg=
51197     for arg in ${D}* ; do
51198         if test "${D}prevarg" = "-o"; then
51199             objfile=${D}arg
51200         else
51201             case "${D}arg" in
51202                 -* )
51203                 ;;
51204                 * )
51205                     srcfile=${D}arg
51206                 ;;
51207             esac
51208         fi
51209         prevarg="${D}arg"
51210     done
51211     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51212     exit 0
51213 elif test ${D}DEPSMODE = unixcc; then
51214     ${D}* || exit ${D}?
51215     # Run compiler again with deps flag and redirect into the dep file.
51216     # It doesn't work if the '-o FILE' option is used, but without it the
51217     # dependency file will contain the wrong name for the object. So it is
51218     # removed from the command line, and the dep file is fixed with sed.
51219     cmd=""
51220     while test ${D}# -gt 0; do
51221         case "${D}1" in
51222             -o )
51223                 shift
51224                 objfile=${D}1
51225             ;;
51226             * )
51227                 eval arg${D}#=\\${D}1
51228                 cmd="${D}cmd \\${D}arg${D}#"
51229             ;;
51230         esac
51231         shift
51232     done
51233     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51234     exit 0
51235 else
51236     ${D}*
51237     exit ${D}?
51238 fi
51239 EOF
51240
51241             chmod +x bk-deps
51242                                     BK_DEPS="`pwd`/bk-deps"
51243         fi
51244     fi
51245
51246
51247
51248
51249
51250     case ${BAKEFILE_HOST} in
51251         *-*-cygwin* | *-*-mingw32* )
51252                         if test -n "$ac_tool_prefix"; then
51253   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51254 set dummy ${ac_tool_prefix}windres; ac_word=$2
51255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51257 if test "${ac_cv_prog_WINDRES+set}" = set; then
51258   echo $ECHO_N "(cached) $ECHO_C" >&6
51259 else
51260   if test -n "$WINDRES"; then
51261   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51262 else
51263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51264 for as_dir in $PATH
51265 do
51266   IFS=$as_save_IFS
51267   test -z "$as_dir" && as_dir=.
51268   for ac_exec_ext in '' $ac_executable_extensions; do
51269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51270     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51272     break 2
51273   fi
51274 done
51275 done
51276 IFS=$as_save_IFS
51277
51278 fi
51279 fi
51280 WINDRES=$ac_cv_prog_WINDRES
51281 if test -n "$WINDRES"; then
51282   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51283 echo "${ECHO_T}$WINDRES" >&6; }
51284 else
51285   { echo "$as_me:$LINENO: result: no" >&5
51286 echo "${ECHO_T}no" >&6; }
51287 fi
51288
51289
51290 fi
51291 if test -z "$ac_cv_prog_WINDRES"; then
51292   ac_ct_WINDRES=$WINDRES
51293   # Extract the first word of "windres", so it can be a program name with args.
51294 set dummy windres; ac_word=$2
51295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51297 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51298   echo $ECHO_N "(cached) $ECHO_C" >&6
51299 else
51300   if test -n "$ac_ct_WINDRES"; then
51301   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51302 else
51303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51304 for as_dir in $PATH
51305 do
51306   IFS=$as_save_IFS
51307   test -z "$as_dir" && as_dir=.
51308   for ac_exec_ext in '' $ac_executable_extensions; do
51309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51310     ac_cv_prog_ac_ct_WINDRES="windres"
51311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51312     break 2
51313   fi
51314 done
51315 done
51316 IFS=$as_save_IFS
51317
51318 fi
51319 fi
51320 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51321 if test -n "$ac_ct_WINDRES"; then
51322   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51323 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51324 else
51325   { echo "$as_me:$LINENO: result: no" >&5
51326 echo "${ECHO_T}no" >&6; }
51327 fi
51328
51329   if test "x$ac_ct_WINDRES" = x; then
51330     WINDRES=""
51331   else
51332     case $cross_compiling:$ac_tool_warned in
51333 yes:)
51334 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51335 whose name does not start with the host triplet.  If you think this
51336 configuration is useful to you, please write to autoconf@gnu.org." >&5
51337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51338 whose name does not start with the host triplet.  If you think this
51339 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51340 ac_tool_warned=yes ;;
51341 esac
51342     WINDRES=$ac_ct_WINDRES
51343   fi
51344 else
51345   WINDRES="$ac_cv_prog_WINDRES"
51346 fi
51347
51348          ;;
51349
51350       *-*-darwin* | powerpc-apple-macos* )
51351             # Extract the first word of "Rez", so it can be a program name with args.
51352 set dummy Rez; ac_word=$2
51353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51355 if test "${ac_cv_prog_REZ+set}" = set; then
51356   echo $ECHO_N "(cached) $ECHO_C" >&6
51357 else
51358   if test -n "$REZ"; then
51359   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51360 else
51361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51362 for as_dir in $PATH
51363 do
51364   IFS=$as_save_IFS
51365   test -z "$as_dir" && as_dir=.
51366   for ac_exec_ext in '' $ac_executable_extensions; do
51367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51368     ac_cv_prog_REZ="Rez"
51369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51370     break 2
51371   fi
51372 done
51373 done
51374 IFS=$as_save_IFS
51375
51376   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51377 fi
51378 fi
51379 REZ=$ac_cv_prog_REZ
51380 if test -n "$REZ"; then
51381   { echo "$as_me:$LINENO: result: $REZ" >&5
51382 echo "${ECHO_T}$REZ" >&6; }
51383 else
51384   { echo "$as_me:$LINENO: result: no" >&5
51385 echo "${ECHO_T}no" >&6; }
51386 fi
51387
51388
51389             # Extract the first word of "SetFile", so it can be a program name with args.
51390 set dummy SetFile; ac_word=$2
51391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51393 if test "${ac_cv_prog_SETFILE+set}" = set; then
51394   echo $ECHO_N "(cached) $ECHO_C" >&6
51395 else
51396   if test -n "$SETFILE"; then
51397   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51398 else
51399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51400 for as_dir in $PATH
51401 do
51402   IFS=$as_save_IFS
51403   test -z "$as_dir" && as_dir=.
51404   for ac_exec_ext in '' $ac_executable_extensions; do
51405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51406     ac_cv_prog_SETFILE="SetFile"
51407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51408     break 2
51409   fi
51410 done
51411 done
51412 IFS=$as_save_IFS
51413
51414   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51415 fi
51416 fi
51417 SETFILE=$ac_cv_prog_SETFILE
51418 if test -n "$SETFILE"; then
51419   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51420 echo "${ECHO_T}$SETFILE" >&6; }
51421 else
51422   { echo "$as_me:$LINENO: result: no" >&5
51423 echo "${ECHO_T}no" >&6; }
51424 fi
51425
51426
51427         ;;
51428     esac
51429
51430
51431
51432
51433
51434
51435     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
51436
51437
51438 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
51439
51440
51441
51442     # Check whether --enable-precomp-headers was given.
51443 if test "${enable_precomp_headers+set}" = set; then
51444   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51445 fi
51446
51447
51448     GCC_PCH=0
51449     ICC_PCH=0
51450     USE_PCH=0
51451     BK_MAKE_PCH=""
51452
51453     case ${BAKEFILE_HOST} in
51454         *-*-cygwin* )
51455                                                 bk_use_pch="no"
51456             ;;
51457     esac
51458
51459     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51460         if test "x$GCC" = "xyes"; then
51461                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51462 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51463             cat >conftest.$ac_ext <<_ACEOF
51464 /* confdefs.h.  */
51465 _ACEOF
51466 cat confdefs.h >>conftest.$ac_ext
51467 cat >>conftest.$ac_ext <<_ACEOF
51468 /* end confdefs.h.  */
51469
51470 int
51471 main ()
51472 {
51473
51474                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51475                         There is no PCH support
51476                     #endif
51477                     #if (__GNUC__ < 3)
51478                         There is no PCH support
51479                     #endif
51480                     #if (__GNUC__ == 3) && \
51481                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51482                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51483                        ( defined(__INTEL_COMPILER) )
51484                         There is no PCH support
51485                     #endif
51486
51487   ;
51488   return 0;
51489 }
51490 _ACEOF
51491 rm -f conftest.$ac_objext
51492 if { (ac_try="$ac_compile"
51493 case "(($ac_try" in
51494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51495   *) ac_try_echo=$ac_try;;
51496 esac
51497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51498   (eval "$ac_compile") 2>conftest.er1
51499   ac_status=$?
51500   grep -v '^ *+' conftest.er1 >conftest.err
51501   rm -f conftest.er1
51502   cat conftest.err >&5
51503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51504   (exit $ac_status); } && {
51505          test -z "$ac_c_werror_flag" ||
51506          test ! -s conftest.err
51507        } && test -s conftest.$ac_objext; then
51508
51509                     { echo "$as_me:$LINENO: result: yes" >&5
51510 echo "${ECHO_T}yes" >&6; }
51511                     GCC_PCH=1
51512
51513 else
51514   echo "$as_me: failed program was:" >&5
51515 sed 's/^/| /' conftest.$ac_ext >&5
51516
51517
51518                     cat >conftest.$ac_ext <<_ACEOF
51519 /* confdefs.h.  */
51520 _ACEOF
51521 cat confdefs.h >>conftest.$ac_ext
51522 cat >>conftest.$ac_ext <<_ACEOF
51523 /* end confdefs.h.  */
51524
51525 int
51526 main ()
51527 {
51528
51529                             #if !defined(__INTEL_COMPILER) || \
51530                                 (__INTEL_COMPILER < 800)
51531                                 There is no PCH support
51532                             #endif
51533
51534   ;
51535   return 0;
51536 }
51537 _ACEOF
51538 rm -f conftest.$ac_objext
51539 if { (ac_try="$ac_compile"
51540 case "(($ac_try" in
51541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51542   *) ac_try_echo=$ac_try;;
51543 esac
51544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51545   (eval "$ac_compile") 2>conftest.er1
51546   ac_status=$?
51547   grep -v '^ *+' conftest.er1 >conftest.err
51548   rm -f conftest.er1
51549   cat conftest.err >&5
51550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51551   (exit $ac_status); } && {
51552          test -z "$ac_c_werror_flag" ||
51553          test ! -s conftest.err
51554        } && test -s conftest.$ac_objext; then
51555
51556                             { echo "$as_me:$LINENO: result: yes" >&5
51557 echo "${ECHO_T}yes" >&6; }
51558                             ICC_PCH=1
51559
51560 else
51561   echo "$as_me: failed program was:" >&5
51562 sed 's/^/| /' conftest.$ac_ext >&5
51563
51564
51565                             { echo "$as_me:$LINENO: result: no" >&5
51566 echo "${ECHO_T}no" >&6; }
51567
51568 fi
51569
51570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51571
51572 fi
51573
51574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51575             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51576                 USE_PCH=1
51577
51578 D='$'
51579 cat <<EOF >bk-make-pch
51580 #!/bin/sh
51581
51582 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51583 # script. It is used to generated precompiled headers.
51584 #
51585 # Permission is given to use this file in any way.
51586
51587 outfile="${D}{1}"
51588 header="${D}{2}"
51589 shift
51590 shift
51591
51592 compiler=""
51593 headerfile=""
51594
51595 while test ${D}{#} -gt 0; do
51596     add_to_cmdline=1
51597     case "${D}{1}" in
51598         -I* )
51599             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51600             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51601                 headerfile="${D}{incdir}/${D}{header}"
51602             fi
51603         ;;
51604         -use-pch|-use_pch )
51605             shift
51606             add_to_cmdline=0
51607         ;;
51608     esac
51609     if test ${D}add_to_cmdline = 1 ; then
51610         compiler="${D}{compiler} ${D}{1}"
51611     fi
51612     shift
51613 done
51614
51615 if test "x${D}{headerfile}" = "x" ; then
51616     echo "error: can't find header ${D}{header} in include paths" >&2
51617 else
51618     if test -f ${D}{outfile} ; then
51619         rm -f ${D}{outfile}
51620     else
51621         mkdir -p \`dirname ${D}{outfile}\`
51622     fi
51623     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51624     mkdir -p .deps
51625     if test "x${GCC_PCH}" = "x1" ; then
51626         # can do this because gcc is >= 3.4:
51627         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51628     elif test "x${ICC_PCH}" = "x1" ; then
51629         filename=pch_gen-${D}${D}
51630         file=${D}{filename}.c
51631         dfile=${D}{filename}.d
51632         cat > ${D}file <<EOT
51633 #include "${D}header"
51634 EOT
51635         # using -MF icc complains about differing command lines in creation/use
51636         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
51637           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51638           rm -f ${D}file ${D}dfile ${D}{filename}.o
51639     fi
51640     exit ${D}{?}
51641 fi
51642 EOF
51643
51644                 chmod +x bk-make-pch
51645                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51646             fi
51647         fi
51648     fi
51649
51650
51651
51652
51653
51654     COND_BUILD_DEBUG="#"
51655     if test "x$BUILD" = "xdebug" ; then
51656         COND_BUILD_DEBUG=""
51657     fi
51658
51659     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51660     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51661         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51662     fi
51663
51664     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51665     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51666         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51667     fi
51668
51669     COND_BUILD_DEBUG_UNICODE_0="#"
51670     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51671         COND_BUILD_DEBUG_UNICODE_0=""
51672     fi
51673
51674     COND_BUILD_DEBUG_UNICODE_1="#"
51675     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51676         COND_BUILD_DEBUG_UNICODE_1=""
51677     fi
51678
51679     COND_BUILD_RELEASE="#"
51680     if test "x$BUILD" = "xrelease" ; then
51681         COND_BUILD_RELEASE=""
51682     fi
51683
51684     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51685     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51686         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51687     fi
51688
51689     COND_BUILD_RELEASE_UNICODE_0="#"
51690     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51691         COND_BUILD_RELEASE_UNICODE_0=""
51692     fi
51693
51694     COND_BUILD_RELEASE_UNICODE_1="#"
51695     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51696         COND_BUILD_RELEASE_UNICODE_1=""
51697     fi
51698
51699     COND_DEBUG_FLAG_1="#"
51700     if test "x$DEBUG_FLAG" = "x1" ; then
51701         COND_DEBUG_FLAG_1=""
51702     fi
51703
51704     COND_DEBUG_INFO_0="#"
51705     if test "x$DEBUG_INFO" = "x0" ; then
51706         COND_DEBUG_INFO_0=""
51707     fi
51708
51709     COND_DEBUG_INFO_1="#"
51710     if test "x$DEBUG_INFO" = "x1" ; then
51711         COND_DEBUG_INFO_1=""
51712     fi
51713
51714     COND_DEPS_TRACKING_0="#"
51715     if test "x$DEPS_TRACKING" = "x0" ; then
51716         COND_DEPS_TRACKING_0=""
51717     fi
51718
51719     COND_DEPS_TRACKING_1="#"
51720     if test "x$DEPS_TRACKING" = "x1" ; then
51721         COND_DEPS_TRACKING_1=""
51722     fi
51723
51724     COND_GCC_PCH_1="#"
51725     if test "x$GCC_PCH" = "x1" ; then
51726         COND_GCC_PCH_1=""
51727     fi
51728
51729     COND_ICC_PCH_1="#"
51730     if test "x$ICC_PCH" = "x1" ; then
51731         COND_ICC_PCH_1=""
51732     fi
51733
51734     COND_MONOLITHIC_0="#"
51735     if test "x$MONOLITHIC" = "x0" ; then
51736         COND_MONOLITHIC_0=""
51737     fi
51738
51739     COND_MONOLITHIC_0_SHARED_0="#"
51740     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51741         COND_MONOLITHIC_0_SHARED_0=""
51742     fi
51743
51744     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51745     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51746         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51747     fi
51748
51749     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51750     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51751         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51752     fi
51753
51754     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51755     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51756         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51757     fi
51758
51759     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51760     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51761         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51762     fi
51763
51764     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
51765     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51766         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
51767     fi
51768
51769     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51770     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51771         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51772     fi
51773
51774     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
51775     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
51776         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
51777     fi
51778
51779     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51780     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51781         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51782     fi
51783
51784     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51785     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51786         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51787     fi
51788
51789     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51790     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51791         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51792     fi
51793
51794     COND_MONOLITHIC_0_SHARED_1="#"
51795     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51796         COND_MONOLITHIC_0_SHARED_1=""
51797     fi
51798
51799     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51800     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51801         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51802     fi
51803
51804     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51805     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51806         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51807     fi
51808
51809     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51810     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51811         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51812     fi
51813
51814     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51815     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51816         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51817     fi
51818
51819     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
51820     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51821         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
51822     fi
51823
51824     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51825     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51826         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51827     fi
51828
51829     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
51830     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
51831         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
51832     fi
51833
51834     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51835     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51836         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51837     fi
51838
51839     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51840     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51841         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51842     fi
51843
51844     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51845     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51846         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51847     fi
51848
51849     COND_MONOLITHIC_0_USE_AUI_1="#"
51850     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51851         COND_MONOLITHIC_0_USE_AUI_1=""
51852     fi
51853
51854     COND_MONOLITHIC_0_USE_GUI_1="#"
51855     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51856         COND_MONOLITHIC_0_USE_GUI_1=""
51857     fi
51858
51859     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51860     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51861         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51862     fi
51863
51864     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
51865     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51866         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
51867     fi
51868
51869     COND_MONOLITHIC_0_USE_HTML_1="#"
51870     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51871         COND_MONOLITHIC_0_USE_HTML_1=""
51872     fi
51873
51874     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51875     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51876         COND_MONOLITHIC_0_USE_MEDIA_1=""
51877     fi
51878
51879     COND_MONOLITHIC_0_USE_ODBC_1="#"
51880     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
51881         COND_MONOLITHIC_0_USE_ODBC_1=""
51882     fi
51883
51884     COND_MONOLITHIC_0_USE_QA_1="#"
51885     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51886         COND_MONOLITHIC_0_USE_QA_1=""
51887     fi
51888
51889     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51890     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51891         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51892     fi
51893
51894     COND_MONOLITHIC_0_USE_STC_1="#"
51895     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51896         COND_MONOLITHIC_0_USE_STC_1=""
51897     fi
51898
51899     COND_MONOLITHIC_0_USE_XRC_1="#"
51900     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51901         COND_MONOLITHIC_0_USE_XRC_1=""
51902     fi
51903
51904     COND_MONOLITHIC_1="#"
51905     if test "x$MONOLITHIC" = "x1" ; then
51906         COND_MONOLITHIC_1=""
51907     fi
51908
51909     COND_MONOLITHIC_1_SHARED_0="#"
51910     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
51911         COND_MONOLITHIC_1_SHARED_0=""
51912     fi
51913
51914     COND_MONOLITHIC_1_SHARED_1="#"
51915     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
51916         COND_MONOLITHIC_1_SHARED_1=""
51917     fi
51918
51919     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
51920     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
51921         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
51922     fi
51923
51924     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
51925     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
51926         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
51927     fi
51928
51929     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
51930     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51931         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
51932     fi
51933
51934     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
51935     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51936         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
51937     fi
51938
51939     COND_PLATFORM_MACOSX_1="#"
51940     if test "x$PLATFORM_MACOSX" = "x1" ; then
51941         COND_PLATFORM_MACOSX_1=""
51942     fi
51943
51944     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
51945     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
51946         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
51947     fi
51948
51949     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
51950     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
51951         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
51952     fi
51953
51954     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
51955     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
51956         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
51957     fi
51958
51959     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
51960     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
51961         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
51962     fi
51963
51964     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
51965     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
51966         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
51967     fi
51968
51969     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
51970     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
51971         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
51972     fi
51973
51974     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
51975     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
51976         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
51977     fi
51978
51979     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51980     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51981         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51982     fi
51983
51984     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51985     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51986         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51987     fi
51988
51989     COND_PLATFORM_MACOS_1="#"
51990     if test "x$PLATFORM_MACOS" = "x1" ; then
51991         COND_PLATFORM_MACOS_1=""
51992     fi
51993
51994     COND_PLATFORM_MAC_1="#"
51995     if test "x$PLATFORM_MAC" = "x1" ; then
51996         COND_PLATFORM_MAC_1=""
51997     fi
51998
51999     COND_PLATFORM_MSDOS_0="#"
52000     if test "x$PLATFORM_MSDOS" = "x0" ; then
52001         COND_PLATFORM_MSDOS_0=""
52002     fi
52003
52004     COND_PLATFORM_MSDOS_1="#"
52005     if test "x$PLATFORM_MSDOS" = "x1" ; then
52006         COND_PLATFORM_MSDOS_1=""
52007     fi
52008
52009     COND_PLATFORM_OS2_1="#"
52010     if test "x$PLATFORM_OS2" = "x1" ; then
52011         COND_PLATFORM_OS2_1=""
52012     fi
52013
52014     COND_PLATFORM_UNIX_0="#"
52015     if test "x$PLATFORM_UNIX" = "x0" ; then
52016         COND_PLATFORM_UNIX_0=""
52017     fi
52018
52019     COND_PLATFORM_UNIX_1="#"
52020     if test "x$PLATFORM_UNIX" = "x1" ; then
52021         COND_PLATFORM_UNIX_1=""
52022     fi
52023
52024     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52025     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52026         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52027     fi
52028
52029     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52030     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52031         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52032     fi
52033
52034     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52035     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52036         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52037     fi
52038
52039     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52040     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52041         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52042     fi
52043
52044     COND_PLATFORM_WIN32_0="#"
52045     if test "x$PLATFORM_WIN32" = "x0" ; then
52046         COND_PLATFORM_WIN32_0=""
52047     fi
52048
52049     COND_PLATFORM_WIN32_1="#"
52050     if test "x$PLATFORM_WIN32" = "x1" ; then
52051         COND_PLATFORM_WIN32_1=""
52052     fi
52053
52054     COND_SHARED_0="#"
52055     if test "x$SHARED" = "x0" ; then
52056         COND_SHARED_0=""
52057     fi
52058
52059     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52060     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52061         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52062     fi
52063
52064     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52065     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52066         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52067     fi
52068
52069     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52070     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52071         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52072     fi
52073
52074     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52075     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52076         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52077     fi
52078
52079     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52080     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52081         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52082     fi
52083
52084     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52085     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52086         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52087     fi
52088
52089     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52090     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52091         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52092     fi
52093
52094     COND_SHARED_0_USE_STC_1="#"
52095     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52096         COND_SHARED_0_USE_STC_1=""
52097     fi
52098
52099     COND_SHARED_0_USE_XRC_1="#"
52100     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52101         COND_SHARED_0_USE_XRC_1=""
52102     fi
52103
52104     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52105     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52106         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52107     fi
52108
52109     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
52110     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
52111         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
52112     fi
52113
52114     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52115     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52116         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52117     fi
52118
52119     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52120     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52121         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52122     fi
52123
52124     COND_SHARED_1="#"
52125     if test "x$SHARED" = "x1" ; then
52126         COND_SHARED_1=""
52127     fi
52128
52129     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52130     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52131         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52132     fi
52133
52134     COND_SHARED_1_USE_XRC_1="#"
52135     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52136         COND_SHARED_1_USE_XRC_1=""
52137     fi
52138
52139     COND_TOOLKIT_="#"
52140     if test "x$TOOLKIT" = "x" ; then
52141         COND_TOOLKIT_=""
52142     fi
52143
52144     COND_TOOLKIT_COCOA="#"
52145     if test "x$TOOLKIT" = "xCOCOA" ; then
52146         COND_TOOLKIT_COCOA=""
52147     fi
52148
52149     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52150     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52151         COND_TOOLKIT_COCOA_USE_GUI_1=""
52152     fi
52153
52154     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52155     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52156         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52157     fi
52158
52159     COND_TOOLKIT_DFB="#"
52160     if test "x$TOOLKIT" = "xDFB" ; then
52161         COND_TOOLKIT_DFB=""
52162     fi
52163
52164     COND_TOOLKIT_DFB_USE_GUI_1="#"
52165     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52166         COND_TOOLKIT_DFB_USE_GUI_1=""
52167     fi
52168
52169     COND_TOOLKIT_GTK="#"
52170     if test "x$TOOLKIT" = "xGTK" ; then
52171         COND_TOOLKIT_GTK=""
52172     fi
52173
52174     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52175     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52176         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52177     fi
52178
52179     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52180     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52181         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52182     fi
52183
52184     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52185     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52186         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52187     fi
52188
52189     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52190     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52191         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52192     fi
52193
52194     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52195     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52196         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52197     fi
52198
52199     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52200     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52201         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52202     fi
52203
52204     COND_TOOLKIT_GTK_USE_GUI_1="#"
52205     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52206         COND_TOOLKIT_GTK_USE_GUI_1=""
52207     fi
52208
52209     COND_TOOLKIT_MAC="#"
52210     if test "x$TOOLKIT" = "xMAC" ; then
52211         COND_TOOLKIT_MAC=""
52212     fi
52213
52214     COND_TOOLKIT_MAC_USE_GUI_1="#"
52215     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52216         COND_TOOLKIT_MAC_USE_GUI_1=""
52217     fi
52218
52219     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52220     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52221         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52222     fi
52223
52224     COND_TOOLKIT_MGL="#"
52225     if test "x$TOOLKIT" = "xMGL" ; then
52226         COND_TOOLKIT_MGL=""
52227     fi
52228
52229     COND_TOOLKIT_MGL_USE_GUI_1="#"
52230     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52231         COND_TOOLKIT_MGL_USE_GUI_1=""
52232     fi
52233
52234     COND_TOOLKIT_MOTIF="#"
52235     if test "x$TOOLKIT" = "xMOTIF" ; then
52236         COND_TOOLKIT_MOTIF=""
52237     fi
52238
52239     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52240     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52241         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52242     fi
52243
52244     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52245     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52246         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52247     fi
52248
52249     COND_TOOLKIT_MSW="#"
52250     if test "x$TOOLKIT" = "xMSW" ; then
52251         COND_TOOLKIT_MSW=""
52252     fi
52253
52254     COND_TOOLKIT_MSW_USE_GUI_1="#"
52255     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52256         COND_TOOLKIT_MSW_USE_GUI_1=""
52257     fi
52258
52259     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52260     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52261         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52262     fi
52263
52264     COND_TOOLKIT_MSW_WXUNIV_0="#"
52265     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52266         COND_TOOLKIT_MSW_WXUNIV_0=""
52267     fi
52268
52269     COND_TOOLKIT_PM="#"
52270     if test "x$TOOLKIT" = "xPM" ; then
52271         COND_TOOLKIT_PM=""
52272     fi
52273
52274     COND_TOOLKIT_PM_USE_GUI_1="#"
52275     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52276         COND_TOOLKIT_PM_USE_GUI_1=""
52277     fi
52278
52279     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52280     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52281         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52282     fi
52283
52284     COND_TOOLKIT_WINCE="#"
52285     if test "x$TOOLKIT" = "xWINCE" ; then
52286         COND_TOOLKIT_WINCE=""
52287     fi
52288
52289     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52290     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52291         COND_TOOLKIT_WINCE_USE_GUI_1=""
52292     fi
52293
52294     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52295     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52296         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52297     fi
52298
52299     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52300     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52301         COND_TOOLKIT_WINCE_WXUNIV_0=""
52302     fi
52303
52304     COND_TOOLKIT_X11="#"
52305     if test "x$TOOLKIT" = "xX11" ; then
52306         COND_TOOLKIT_X11=""
52307     fi
52308
52309     COND_TOOLKIT_X11_USE_GUI_1="#"
52310     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52311         COND_TOOLKIT_X11_USE_GUI_1=""
52312     fi
52313
52314     COND_UNICODE_1="#"
52315     if test "x$UNICODE" = "x1" ; then
52316         COND_UNICODE_1=""
52317     fi
52318
52319     COND_USE_EXCEPTIONS_0="#"
52320     if test "x$USE_EXCEPTIONS" = "x0" ; then
52321         COND_USE_EXCEPTIONS_0=""
52322     fi
52323
52324     COND_USE_EXCEPTIONS_1="#"
52325     if test "x$USE_EXCEPTIONS" = "x1" ; then
52326         COND_USE_EXCEPTIONS_1=""
52327     fi
52328
52329     COND_USE_GUI_0="#"
52330     if test "x$USE_GUI" = "x0" ; then
52331         COND_USE_GUI_0=""
52332     fi
52333
52334     COND_USE_GUI_1="#"
52335     if test "x$USE_GUI" = "x1" ; then
52336         COND_USE_GUI_1=""
52337     fi
52338
52339     COND_USE_GUI_1_USE_OPENGL_1="#"
52340     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52341         COND_USE_GUI_1_USE_OPENGL_1=""
52342     fi
52343
52344     COND_USE_GUI_1_WXUNIV_0="#"
52345     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52346         COND_USE_GUI_1_WXUNIV_0=""
52347     fi
52348
52349     COND_USE_GUI_1_WXUNIV_1="#"
52350     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52351         COND_USE_GUI_1_WXUNIV_1=""
52352     fi
52353
52354     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52355     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52356         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52357     fi
52358
52359     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52360     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52361         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52362     fi
52363
52364     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52365     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52366         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52367     fi
52368
52369     COND_USE_ODBC_1="#"
52370     if test "x$USE_ODBC" = "x1" ; then
52371         COND_USE_ODBC_1=""
52372     fi
52373
52374     COND_USE_OPENGL_1="#"
52375     if test "x$USE_OPENGL" = "x1" ; then
52376         COND_USE_OPENGL_1=""
52377     fi
52378
52379     COND_USE_PCH_1="#"
52380     if test "x$USE_PCH" = "x1" ; then
52381         COND_USE_PCH_1=""
52382     fi
52383
52384     COND_USE_PLUGINS_0="#"
52385     if test "x$USE_PLUGINS" = "x0" ; then
52386         COND_USE_PLUGINS_0=""
52387     fi
52388
52389     COND_USE_RTTI_0="#"
52390     if test "x$USE_RTTI" = "x0" ; then
52391         COND_USE_RTTI_0=""
52392     fi
52393
52394     COND_USE_RTTI_1="#"
52395     if test "x$USE_RTTI" = "x1" ; then
52396         COND_USE_RTTI_1=""
52397     fi
52398
52399     COND_USE_SOSYMLINKS_1="#"
52400     if test "x$USE_SOSYMLINKS" = "x1" ; then
52401         COND_USE_SOSYMLINKS_1=""
52402     fi
52403
52404     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52405     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52406         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52407     fi
52408
52409     COND_USE_SOVERLINUX_1="#"
52410     if test "x$USE_SOVERLINUX" = "x1" ; then
52411         COND_USE_SOVERLINUX_1=""
52412     fi
52413
52414     COND_USE_SOVERSION_0="#"
52415     if test "x$USE_SOVERSION" = "x0" ; then
52416         COND_USE_SOVERSION_0=""
52417     fi
52418
52419     COND_USE_SOVERSOLARIS_1="#"
52420     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52421         COND_USE_SOVERSOLARIS_1=""
52422     fi
52423
52424     COND_USE_STC_1="#"
52425     if test "x$USE_STC" = "x1" ; then
52426         COND_USE_STC_1=""
52427     fi
52428
52429     COND_USE_THREADS_0="#"
52430     if test "x$USE_THREADS" = "x0" ; then
52431         COND_USE_THREADS_0=""
52432     fi
52433
52434     COND_USE_THREADS_1="#"
52435     if test "x$USE_THREADS" = "x1" ; then
52436         COND_USE_THREADS_1=""
52437     fi
52438
52439     COND_USE_XRC_1="#"
52440     if test "x$USE_XRC" = "x1" ; then
52441         COND_USE_XRC_1=""
52442     fi
52443
52444     COND_WINDOWS_IMPLIB_1="#"
52445     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52446         COND_WINDOWS_IMPLIB_1=""
52447     fi
52448
52449     COND_WITH_PLUGIN_SDL_1="#"
52450     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52451         COND_WITH_PLUGIN_SDL_1=""
52452     fi
52453
52454     COND_WXUNIV_0="#"
52455     if test "x$WXUNIV" = "x0" ; then
52456         COND_WXUNIV_0=""
52457     fi
52458
52459     COND_WXUNIV_1="#"
52460     if test "x$WXUNIV" = "x1" ; then
52461         COND_WXUNIV_1=""
52462     fi
52463
52464     COND_WXUSE_EXPAT_BUILTIN="#"
52465     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52466         COND_WXUSE_EXPAT_BUILTIN=""
52467     fi
52468
52469     COND_WXUSE_LIBJPEG_BUILTIN="#"
52470     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52471         COND_WXUSE_LIBJPEG_BUILTIN=""
52472     fi
52473
52474     COND_WXUSE_LIBPNG_BUILTIN="#"
52475     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52476         COND_WXUSE_LIBPNG_BUILTIN=""
52477     fi
52478
52479     COND_WXUSE_LIBTIFF_BUILTIN="#"
52480     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52481         COND_WXUSE_LIBTIFF_BUILTIN=""
52482     fi
52483
52484     COND_WXUSE_ODBC_BUILTIN="#"
52485     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
52486         COND_WXUSE_ODBC_BUILTIN=""
52487     fi
52488
52489     COND_WXUSE_REGEX_BUILTIN="#"
52490     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52491         COND_WXUSE_REGEX_BUILTIN=""
52492     fi
52493
52494     COND_WXUSE_ZLIB_BUILTIN="#"
52495     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52496         COND_WXUSE_ZLIB_BUILTIN=""
52497     fi
52498
52499
52500
52501     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52502         { { 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
52503 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;}
52504    { (exit 1); exit 1; }; }
52505     fi
52506
52507     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52508         { { 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
52509 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;}
52510    { (exit 1); exit 1; }; }
52511     fi
52512
52513
52514 if test $GCC_PCH = 1
52515 then
52516     if test "$wx_cv_gcc_pch_bug" = yes; then
52517         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52518 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52519         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52520 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52521         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52522 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52523     fi
52524
52525     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
52526 fi
52527
52528
52529 if test "$wxUSE_MAC" = 1 ; then
52530     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52531         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52532         mv temp bk-deps
52533         chmod +x bk-deps
52534     fi
52535 fi
52536
52537 if test "$wxUSE_SHARED" = "yes"; then
52538
52539                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
52540     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
52541
52542                 case "${host}" in
52543       *-pc-os2_emx | *-pc-os2-emx )
52544         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52545         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52546         cp -p ${srcdir}/src/os2/dllnames.sh .
52547         cp -p ${srcdir}/src/os2/dllar.sh .
52548       ;;
52549     esac
52550 else
52551
52552         EXE_LINKER="$CXX -o"
52553
52554 fi
52555 if test "$wxUSE_OMF" = "yes"; then
52556     case "${host}" in
52557       *-pc-os2_emx | *-pc-os2-emx )
52558         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52559         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52560         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52561       ;;
52562     esac
52563 fi
52564
52565 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52566
52567
52568 case "${host}" in
52569     *-*-solaris2* )
52570                         if "$GCC" = yes; then
52571             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52572             LIBS=`echo $LIBS | sed 's/-mt//'`
52573             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52574         fi
52575         ;;
52576
52577     *-*-linux* )
52578                         if test "x$SUNCXX" = xyes; then
52579             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52580             LIBS=`echo $LIBS | sed 's/-pthread//'`
52581             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52582         fi
52583         ;;
52584 esac
52585
52586 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52587 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52588
52589 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52590
52591
52592
52593
52594
52595
52596
52597
52598
52599
52600
52601
52602
52603
52604
52605
52606
52607
52608
52609
52610
52611
52612
52613
52614
52615
52616
52617
52618
52619
52620
52621
52622
52623
52624
52625
52626
52627
52628
52629
52630
52631
52632
52633
52634
52635
52636
52637
52638
52639
52640
52641
52642
52643
52644
52645
52646
52647
52648
52649
52650
52651 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52652 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52653 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52654 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52655   echo $ECHO_N "(cached) $ECHO_C" >&6
52656 else
52657   cat >conftest.make <<\_ACEOF
52658 SHELL = /bin/sh
52659 all:
52660         @echo '@@@%%%=$(MAKE)=@@@%%%'
52661 _ACEOF
52662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52664   *@@@%%%=?*=@@@%%%*)
52665     eval ac_cv_prog_make_${ac_make}_set=yes;;
52666   *)
52667     eval ac_cv_prog_make_${ac_make}_set=no;;
52668 esac
52669 rm -f conftest.make
52670 fi
52671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52672   { echo "$as_me:$LINENO: result: yes" >&5
52673 echo "${ECHO_T}yes" >&6; }
52674   SET_MAKE=
52675 else
52676   { echo "$as_me:$LINENO: result: no" >&5
52677 echo "${ECHO_T}no" >&6; }
52678   SET_MAKE="MAKE=${MAKE-make}"
52679 fi
52680
52681
52682
52683 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52684
52685
52686 if test "$USE_WIN32" = 1; then
52687     ac_config_commands="$ac_config_commands
52688             rcdefs.h
52689         "
52690
52691 fi
52692
52693 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52694
52695
52696 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52697
52698
52699 if test "$wx_cv_version_script" = "yes"; then
52700     ac_config_files="$ac_config_files version-script"
52701
52702 fi
52703 ac_config_files="$ac_config_files Makefile"
52704
52705
52706 ac_config_commands="$ac_config_commands wx-config"
52707
52708
52709
52710 if test "$wxWITH_SUBDIRS" != "no"; then
52711 if test "$wxUSE_GUI" = "yes"; then
52712     SUBDIRS="samples demos utils"
52713 else         SUBDIRS="samples utils"
52714 fi
52715
52716
52717
52718 # Check whether --with-cppunit-prefix was given.
52719 if test "${with_cppunit_prefix+set}" = set; then
52720   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52721 else
52722   cppunit_config_prefix=""
52723 fi
52724
52725
52726 # Check whether --with-cppunit-exec-prefix was given.
52727 if test "${with_cppunit_exec_prefix+set}" = set; then
52728   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52729 else
52730   cppunit_config_exec_prefix=""
52731 fi
52732
52733
52734   if test x$cppunit_config_exec_prefix != x ; then
52735      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52736      if test x${CPPUNIT_CONFIG+set} != xset ; then
52737         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52738      fi
52739   fi
52740   if test x$cppunit_config_prefix != x ; then
52741      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52742      if test x${CPPUNIT_CONFIG+set} != xset ; then
52743         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52744      fi
52745   fi
52746
52747   # Extract the first word of "cppunit-config", so it can be a program name with args.
52748 set dummy cppunit-config; ac_word=$2
52749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52751 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52752   echo $ECHO_N "(cached) $ECHO_C" >&6
52753 else
52754   case $CPPUNIT_CONFIG in
52755   [\\/]* | ?:[\\/]*)
52756   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52757   ;;
52758   *)
52759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52760 for as_dir in $PATH
52761 do
52762   IFS=$as_save_IFS
52763   test -z "$as_dir" && as_dir=.
52764   for ac_exec_ext in '' $ac_executable_extensions; do
52765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52766     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52768     break 2
52769   fi
52770 done
52771 done
52772 IFS=$as_save_IFS
52773
52774   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52775   ;;
52776 esac
52777 fi
52778 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52779 if test -n "$CPPUNIT_CONFIG"; then
52780   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52781 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52782 else
52783   { echo "$as_me:$LINENO: result: no" >&5
52784 echo "${ECHO_T}no" >&6; }
52785 fi
52786
52787
52788   cppunit_version_min=1.8.0
52789
52790   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52791 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52792   no_cppunit=""
52793   if test "$CPPUNIT_CONFIG" = "no" ; then
52794     { echo "$as_me:$LINENO: result: no" >&5
52795 echo "${ECHO_T}no" >&6; }
52796     no_cppunit=yes
52797   else
52798     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52799     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52800     cppunit_version=`$CPPUNIT_CONFIG --version`
52801
52802     cppunit_major_version=`echo $cppunit_version | \
52803            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52804     cppunit_minor_version=`echo $cppunit_version | \
52805            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52806     cppunit_micro_version=`echo $cppunit_version | \
52807            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52808
52809     cppunit_major_min=`echo $cppunit_version_min | \
52810            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52811     cppunit_minor_min=`echo $cppunit_version_min | \
52812            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52813     cppunit_micro_min=`echo $cppunit_version_min | \
52814            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52815
52816     cppunit_version_proper=`expr \
52817         $cppunit_major_version \> $cppunit_major_min \| \
52818         $cppunit_major_version \= $cppunit_major_min \& \
52819         $cppunit_minor_version \> $cppunit_minor_min \| \
52820         $cppunit_major_version \= $cppunit_major_min \& \
52821         $cppunit_minor_version \= $cppunit_minor_min \& \
52822         $cppunit_micro_version \>= $cppunit_micro_min `
52823
52824     if test "$cppunit_version_proper" = "1" ; then
52825       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52826 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52827     else
52828       { echo "$as_me:$LINENO: result: no" >&5
52829 echo "${ECHO_T}no" >&6; }
52830       no_cppunit=yes
52831     fi
52832   fi
52833
52834   if test "x$no_cppunit" = x ; then
52835      SUBDIRS="$SUBDIRS tests"
52836   else
52837      CPPUNIT_CFLAGS=""
52838      CPPUNIT_LIBS=""
52839      :
52840   fi
52841
52842
52843
52844
52845
52846 for subdir in `echo $SUBDIRS`; do
52847     if test -d ${srcdir}/${subdir} ; then
52848         if test "$wxUSE_GUI" = "yes"; then
52849             if test ${subdir} = "samples"; then
52850                                                 makefiles="samples/Makefile.in $makefiles"
52851                 for sample in `echo $SAMPLES_SUBDIRS`; do
52852                     if test -d $srcdir/samples/$sample; then
52853                         makefiles="samples/$sample/Makefile.in $makefiles"
52854                     fi
52855                 done
52856             else
52857                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
52858                 eval "disabled=\$$disabled_var"
52859                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52860                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52861             fi
52862         else                                     if test ${subdir} = "samples"; then
52863                 makefiles="samples/Makefile.in samples/console/Makefile.in"
52864             elif test ${subdir} = "utils"; then
52865                 makefiles=""
52866                 for util in HelpGen tex2rtf ; do
52867                     if test -d $srcdir/utils/$util ; then
52868                         makefiles="utils/$util/Makefile.in \
52869                                    utils/$util/src/Makefile.in \
52870                                    $makefiles"
52871                     fi
52872                 done
52873             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
52874             fi
52875         fi
52876
52877         for mkin in $makefiles ; do
52878             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
52879             ac_config_files="$ac_config_files $mk"
52880
52881         done
52882     fi
52883 done
52884 fi
52885 cat >confcache <<\_ACEOF
52886 # This file is a shell script that caches the results of configure
52887 # tests run on this system so they can be shared between configure
52888 # scripts and configure runs, see configure's option --config-cache.
52889 # It is not useful on other systems.  If it contains results you don't
52890 # want to keep, you may remove or edit it.
52891 #
52892 # config.status only pays attention to the cache file if you give it
52893 # the --recheck option to rerun configure.
52894 #
52895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52897 # following values.
52898
52899 _ACEOF
52900
52901 # The following way of writing the cache mishandles newlines in values,
52902 # but we know of no workaround that is simple, portable, and efficient.
52903 # So, we kill variables containing newlines.
52904 # Ultrix sh set writes to stderr and can't be redirected directly,
52905 # and sets the high bit in the cache file unless we assign to the vars.
52906 (
52907   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52908     eval ac_val=\$$ac_var
52909     case $ac_val in #(
52910     *${as_nl}*)
52911       case $ac_var in #(
52912       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52913 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52914       esac
52915       case $ac_var in #(
52916       _ | IFS | as_nl) ;; #(
52917       *) $as_unset $ac_var ;;
52918       esac ;;
52919     esac
52920   done
52921
52922   (set) 2>&1 |
52923     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52924     *${as_nl}ac_space=\ *)
52925       # `set' does not quote correctly, so add quotes (double-quote
52926       # substitution turns \\\\ into \\, and sed turns \\ into \).
52927       sed -n \
52928         "s/'/'\\\\''/g;
52929           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52930       ;; #(
52931     *)
52932       # `set' quotes correctly as required by POSIX, so do not add quotes.
52933       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52934       ;;
52935     esac |
52936     sort
52937 ) |
52938   sed '
52939      /^ac_cv_env_/b end
52940      t clear
52941      :clear
52942      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52943      t end
52944      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52945      :end' >>confcache
52946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52947   if test -w "$cache_file"; then
52948     test "x$cache_file" != "x/dev/null" &&
52949       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52950 echo "$as_me: updating cache $cache_file" >&6;}
52951     cat confcache >$cache_file
52952   else
52953     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52954 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52955   fi
52956 fi
52957 rm -f confcache
52958
52959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52960 # Let make expand exec_prefix.
52961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52962
52963 DEFS=-DHAVE_CONFIG_H
52964
52965 ac_libobjs=
52966 ac_ltlibobjs=
52967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52968   # 1. Remove the extension, and $U if already installed.
52969   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52970   ac_i=`echo "$ac_i" | sed "$ac_script"`
52971   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52972   #    will be set to the directory where LIBOBJS objects are built.
52973   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52974   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52975 done
52976 LIBOBJS=$ac_libobjs
52977
52978 LTLIBOBJS=$ac_ltlibobjs
52979
52980
52981
52982 : ${CONFIG_STATUS=./config.status}
52983 ac_clean_files_save=$ac_clean_files
52984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52985 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52986 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52987 cat >$CONFIG_STATUS <<_ACEOF
52988 #! $SHELL
52989 # Generated by $as_me.
52990 # Run this file to recreate the current configuration.
52991 # Compiler output produced by configure, useful for debugging
52992 # configure, is in config.log if it exists.
52993
52994 debug=false
52995 ac_cs_recheck=false
52996 ac_cs_silent=false
52997 SHELL=\${CONFIG_SHELL-$SHELL}
52998 _ACEOF
52999
53000 cat >>$CONFIG_STATUS <<\_ACEOF
53001 ## --------------------- ##
53002 ## M4sh Initialization.  ##
53003 ## --------------------- ##
53004
53005 # Be more Bourne compatible
53006 DUALCASE=1; export DUALCASE # for MKS sh
53007 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53008   emulate sh
53009   NULLCMD=:
53010   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53011   # is contrary to our usage.  Disable this feature.
53012   alias -g '${1+"$@"}'='"$@"'
53013   setopt NO_GLOB_SUBST
53014 else
53015   case `(set -o) 2>/dev/null` in
53016   *posix*) set -o posix ;;
53017 esac
53018
53019 fi
53020
53021
53022
53023
53024 # PATH needs CR
53025 # Avoid depending upon Character Ranges.
53026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53029 as_cr_digits='0123456789'
53030 as_cr_alnum=$as_cr_Letters$as_cr_digits
53031
53032 # The user is always right.
53033 if test "${PATH_SEPARATOR+set}" != set; then
53034   echo "#! /bin/sh" >conf$$.sh
53035   echo  "exit 0"   >>conf$$.sh
53036   chmod +x conf$$.sh
53037   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53038     PATH_SEPARATOR=';'
53039   else
53040     PATH_SEPARATOR=:
53041   fi
53042   rm -f conf$$.sh
53043 fi
53044
53045 # Support unset when possible.
53046 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53047   as_unset=unset
53048 else
53049   as_unset=false
53050 fi
53051
53052
53053 # IFS
53054 # We need space, tab and new line, in precisely that order.  Quoting is
53055 # there to prevent editors from complaining about space-tab.
53056 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53057 # splitting by setting IFS to empty value.)
53058 as_nl='
53059 '
53060 IFS=" ""        $as_nl"
53061
53062 # Find who we are.  Look in the path if we contain no directory separator.
53063 case $0 in
53064   *[\\/]* ) as_myself=$0 ;;
53065   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53066 for as_dir in $PATH
53067 do
53068   IFS=$as_save_IFS
53069   test -z "$as_dir" && as_dir=.
53070   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53071 done
53072 IFS=$as_save_IFS
53073
53074      ;;
53075 esac
53076 # We did not find ourselves, most probably we were run as `sh COMMAND'
53077 # in which case we are not to be found in the path.
53078 if test "x$as_myself" = x; then
53079   as_myself=$0
53080 fi
53081 if test ! -f "$as_myself"; then
53082   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53083   { (exit 1); exit 1; }
53084 fi
53085
53086 # Work around bugs in pre-3.0 UWIN ksh.
53087 for as_var in ENV MAIL MAILPATH
53088 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53089 done
53090 PS1='$ '
53091 PS2='> '
53092 PS4='+ '
53093
53094 # NLS nuisances.
53095 for as_var in \
53096   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53097   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53098   LC_TELEPHONE LC_TIME
53099 do
53100   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53101     eval $as_var=C; export $as_var
53102   else
53103     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53104   fi
53105 done
53106
53107 # Required to use basename.
53108 if expr a : '\(a\)' >/dev/null 2>&1 &&
53109    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53110   as_expr=expr
53111 else
53112   as_expr=false
53113 fi
53114
53115 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53116   as_basename=basename
53117 else
53118   as_basename=false
53119 fi
53120
53121
53122 # Name of the executable.
53123 as_me=`$as_basename -- "$0" ||
53124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53125          X"$0" : 'X\(//\)$' \| \
53126          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53127 echo X/"$0" |
53128     sed '/^.*\/\([^/][^/]*\)\/*$/{
53129             s//\1/
53130             q
53131           }
53132           /^X\/\(\/\/\)$/{
53133             s//\1/
53134             q
53135           }
53136           /^X\/\(\/\).*/{
53137             s//\1/
53138             q
53139           }
53140           s/.*/./; q'`
53141
53142 # CDPATH.
53143 $as_unset CDPATH
53144
53145
53146
53147   as_lineno_1=$LINENO
53148   as_lineno_2=$LINENO
53149   test "x$as_lineno_1" != "x$as_lineno_2" &&
53150   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53151
53152   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53153   # uniformly replaced by the line number.  The first 'sed' inserts a
53154   # line-number line after each line using $LINENO; the second 'sed'
53155   # does the real work.  The second script uses 'N' to pair each
53156   # line-number line with the line containing $LINENO, and appends
53157   # trailing '-' during substitution so that $LINENO is not a special
53158   # case at line end.
53159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53160   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53161   # E. McMahon (1931-1989) for sed's syntax.  :-)
53162   sed -n '
53163     p
53164     /[$]LINENO/=
53165   ' <$as_myself |
53166     sed '
53167       s/[$]LINENO.*/&-/
53168       t lineno
53169       b
53170       :lineno
53171       N
53172       :loop
53173       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53174       t loop
53175       s/-\n.*//
53176     ' >$as_me.lineno &&
53177   chmod +x "$as_me.lineno" ||
53178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53179    { (exit 1); exit 1; }; }
53180
53181   # Don't try to exec as it changes $[0], causing all sort of problems
53182   # (the dirname of $[0] is not the place where we might find the
53183   # original and so on.  Autoconf is especially sensitive to this).
53184   . "./$as_me.lineno"
53185   # Exit status is that of the last command.
53186   exit
53187 }
53188
53189
53190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53191   as_dirname=dirname
53192 else
53193   as_dirname=false
53194 fi
53195
53196 ECHO_C= ECHO_N= ECHO_T=
53197 case `echo -n x` in
53198 -n*)
53199   case `echo 'x\c'` in
53200   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53201   *)   ECHO_C='\c';;
53202   esac;;
53203 *)
53204   ECHO_N='-n';;
53205 esac
53206
53207 if expr a : '\(a\)' >/dev/null 2>&1 &&
53208    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53209   as_expr=expr
53210 else
53211   as_expr=false
53212 fi
53213
53214 rm -f conf$$ conf$$.exe conf$$.file
53215 if test -d conf$$.dir; then
53216   rm -f conf$$.dir/conf$$.file
53217 else
53218   rm -f conf$$.dir
53219   mkdir conf$$.dir
53220 fi
53221 echo >conf$$.file
53222 if ln -s conf$$.file conf$$ 2>/dev/null; then
53223   as_ln_s='ln -s'
53224   # ... but there are two gotchas:
53225   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53226   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53227   # In both cases, we have to default to `cp -p'.
53228   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53229     as_ln_s='cp -p'
53230 elif ln conf$$.file conf$$ 2>/dev/null; then
53231   as_ln_s=ln
53232 else
53233   as_ln_s='cp -p'
53234 fi
53235 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53236 rmdir conf$$.dir 2>/dev/null
53237
53238 if mkdir -p . 2>/dev/null; then
53239   as_mkdir_p=:
53240 else
53241   test -d ./-p && rmdir ./-p
53242   as_mkdir_p=false
53243 fi
53244
53245 if test -x / >/dev/null 2>&1; then
53246   as_test_x='test -x'
53247 else
53248   if ls -dL / >/dev/null 2>&1; then
53249     as_ls_L_option=L
53250   else
53251     as_ls_L_option=
53252   fi
53253   as_test_x='
53254     eval sh -c '\''
53255       if test -d "$1"; then
53256         test -d "$1/.";
53257       else
53258         case $1 in
53259         -*)set "./$1";;
53260         esac;
53261         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53262         ???[sx]*):;;*)false;;esac;fi
53263     '\'' sh
53264   '
53265 fi
53266 as_executable_p=$as_test_x
53267
53268 # Sed expression to map a string onto a valid CPP name.
53269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53270
53271 # Sed expression to map a string onto a valid variable name.
53272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53273
53274
53275 exec 6>&1
53276
53277 # Save the log message, to keep $[0] and so on meaningful, and to
53278 # report actual input values of CONFIG_FILES etc. instead of their
53279 # values after options handling.
53280 ac_log="
53281 This file was extended by wxWidgets $as_me 2.9.0, which was
53282 generated by GNU Autoconf 2.61.  Invocation command line was
53283
53284   CONFIG_FILES    = $CONFIG_FILES
53285   CONFIG_HEADERS  = $CONFIG_HEADERS
53286   CONFIG_LINKS    = $CONFIG_LINKS
53287   CONFIG_COMMANDS = $CONFIG_COMMANDS
53288   $ $0 $@
53289
53290 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53291 "
53292
53293 _ACEOF
53294
53295 cat >>$CONFIG_STATUS <<_ACEOF
53296 # Files that config.status was made for.
53297 config_files="$ac_config_files"
53298 config_headers="$ac_config_headers"
53299 config_commands="$ac_config_commands"
53300
53301 _ACEOF
53302
53303 cat >>$CONFIG_STATUS <<\_ACEOF
53304 ac_cs_usage="\
53305 \`$as_me' instantiates files from templates according to the
53306 current configuration.
53307
53308 Usage: $0 [OPTIONS] [FILE]...
53309
53310   -h, --help       print this help, then exit
53311   -V, --version    print version number and configuration settings, then exit
53312   -q, --quiet      do not print progress messages
53313   -d, --debug      don't remove temporary files
53314       --recheck    update $as_me by reconfiguring in the same conditions
53315   --file=FILE[:TEMPLATE]
53316                    instantiate the configuration file FILE
53317   --header=FILE[:TEMPLATE]
53318                    instantiate the configuration header FILE
53319
53320 Configuration files:
53321 $config_files
53322
53323 Configuration headers:
53324 $config_headers
53325
53326 Configuration commands:
53327 $config_commands
53328
53329 Report bugs to <bug-autoconf@gnu.org>."
53330
53331 _ACEOF
53332 cat >>$CONFIG_STATUS <<_ACEOF
53333 ac_cs_version="\\
53334 wxWidgets config.status 2.9.0
53335 configured by $0, generated by GNU Autoconf 2.61,
53336   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53337
53338 Copyright (C) 2006 Free Software Foundation, Inc.
53339 This config.status script is free software; the Free Software Foundation
53340 gives unlimited permission to copy, distribute and modify it."
53341
53342 ac_pwd='$ac_pwd'
53343 srcdir='$srcdir'
53344 INSTALL='$INSTALL'
53345 _ACEOF
53346
53347 cat >>$CONFIG_STATUS <<\_ACEOF
53348 # If no file are specified by the user, then we need to provide default
53349 # value.  By we need to know if files were specified by the user.
53350 ac_need_defaults=:
53351 while test $# != 0
53352 do
53353   case $1 in
53354   --*=*)
53355     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53356     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53357     ac_shift=:
53358     ;;
53359   *)
53360     ac_option=$1
53361     ac_optarg=$2
53362     ac_shift=shift
53363     ;;
53364   esac
53365
53366   case $ac_option in
53367   # Handling of the options.
53368   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53369     ac_cs_recheck=: ;;
53370   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53371     echo "$ac_cs_version"; exit ;;
53372   --debug | --debu | --deb | --de | --d | -d )
53373     debug=: ;;
53374   --file | --fil | --fi | --f )
53375     $ac_shift
53376     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53377     ac_need_defaults=false;;
53378   --header | --heade | --head | --hea )
53379     $ac_shift
53380     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53381     ac_need_defaults=false;;
53382   --he | --h)
53383     # Conflict between --help and --header
53384     { echo "$as_me: error: ambiguous option: $1
53385 Try \`$0 --help' for more information." >&2
53386    { (exit 1); exit 1; }; };;
53387   --help | --hel | -h )
53388     echo "$ac_cs_usage"; exit ;;
53389   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53390   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53391     ac_cs_silent=: ;;
53392
53393   # This is an error.
53394   -*) { echo "$as_me: error: unrecognized option: $1
53395 Try \`$0 --help' for more information." >&2
53396    { (exit 1); exit 1; }; } ;;
53397
53398   *) ac_config_targets="$ac_config_targets $1"
53399      ac_need_defaults=false ;;
53400
53401   esac
53402   shift
53403 done
53404
53405 ac_configure_extra_args=
53406
53407 if $ac_cs_silent; then
53408   exec 6>/dev/null
53409   ac_configure_extra_args="$ac_configure_extra_args --silent"
53410 fi
53411
53412 _ACEOF
53413 cat >>$CONFIG_STATUS <<_ACEOF
53414 if \$ac_cs_recheck; then
53415   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53416   CONFIG_SHELL=$SHELL
53417   export CONFIG_SHELL
53418   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53419 fi
53420
53421 _ACEOF
53422 cat >>$CONFIG_STATUS <<\_ACEOF
53423 exec 5>>config.log
53424 {
53425   echo
53426   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53427 ## Running $as_me. ##
53428 _ASBOX
53429   echo "$ac_log"
53430 } >&5
53431
53432 _ACEOF
53433 cat >>$CONFIG_STATUS <<_ACEOF
53434 #
53435 # INIT-COMMANDS
53436 #
53437
53438             CPP="$CPP"
53439             infile="$srcdir/include/wx/msw/genrcdefs.h"
53440             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53441
53442
53443  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53444  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53445  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53446                      LN_S="${LN_S}"
53447
53448
53449 _ACEOF
53450
53451 cat >>$CONFIG_STATUS <<\_ACEOF
53452
53453 # Handling of arguments.
53454 for ac_config_target in $ac_config_targets
53455 do
53456   case $ac_config_target in
53457     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53458     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53459     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53460     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53461     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53462     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53463     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53464     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53465
53466   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53467 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53468    { (exit 1); exit 1; }; };;
53469   esac
53470 done
53471
53472
53473 # If the user did not use the arguments to specify the items to instantiate,
53474 # then the envvar interface is used.  Set only those that are not.
53475 # We use the long form for the default assignment because of an extremely
53476 # bizarre bug on SunOS 4.1.3.
53477 if $ac_need_defaults; then
53478   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53479   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53480   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53481 fi
53482
53483 # Have a temporary directory for convenience.  Make it in the build tree
53484 # simply because there is no reason against having it here, and in addition,
53485 # creating and moving files from /tmp can sometimes cause problems.
53486 # Hook for its removal unless debugging.
53487 # Note that there is a small window in which the directory will not be cleaned:
53488 # after its creation but before its name has been assigned to `$tmp'.
53489 $debug ||
53490 {
53491   tmp=
53492   trap 'exit_status=$?
53493   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53494 ' 0
53495   trap '{ (exit 1); exit 1; }' 1 2 13 15
53496 }
53497 # Create a (secure) tmp directory for tmp files.
53498
53499 {
53500   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53501   test -n "$tmp" && test -d "$tmp"
53502 }  ||
53503 {
53504   tmp=./conf$$-$RANDOM
53505   (umask 077 && mkdir "$tmp")
53506 } ||
53507 {
53508    echo "$me: cannot create a temporary directory in ." >&2
53509    { (exit 1); exit 1; }
53510 }
53511
53512 #
53513 # Set up the sed scripts for CONFIG_FILES section.
53514 #
53515
53516 # No need to generate the scripts if there are no CONFIG_FILES.
53517 # This happens for instance when ./config.status config.h
53518 if test -n "$CONFIG_FILES"; then
53519
53520 _ACEOF
53521
53522
53523
53524 ac_delim='%!_!# '
53525 for ac_last_try in false false false false false :; do
53526   cat >conf$$subs.sed <<_ACEOF
53527 SHELL!$SHELL$ac_delim
53528 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53529 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53530 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53531 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53532 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53533 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53534 exec_prefix!$exec_prefix$ac_delim
53535 prefix!$prefix$ac_delim
53536 program_transform_name!$program_transform_name$ac_delim
53537 bindir!$bindir$ac_delim
53538 sbindir!$sbindir$ac_delim
53539 libexecdir!$libexecdir$ac_delim
53540 datarootdir!$datarootdir$ac_delim
53541 datadir!$datadir$ac_delim
53542 sysconfdir!$sysconfdir$ac_delim
53543 sharedstatedir!$sharedstatedir$ac_delim
53544 localstatedir!$localstatedir$ac_delim
53545 includedir!$includedir$ac_delim
53546 oldincludedir!$oldincludedir$ac_delim
53547 docdir!$docdir$ac_delim
53548 infodir!$infodir$ac_delim
53549 htmldir!$htmldir$ac_delim
53550 dvidir!$dvidir$ac_delim
53551 pdfdir!$pdfdir$ac_delim
53552 psdir!$psdir$ac_delim
53553 libdir!$libdir$ac_delim
53554 localedir!$localedir$ac_delim
53555 mandir!$mandir$ac_delim
53556 DEFS!$DEFS$ac_delim
53557 ECHO_C!$ECHO_C$ac_delim
53558 ECHO_N!$ECHO_N$ac_delim
53559 ECHO_T!$ECHO_T$ac_delim
53560 LIBS!$LIBS$ac_delim
53561 build_alias!$build_alias$ac_delim
53562 host_alias!$host_alias$ac_delim
53563 target_alias!$target_alias$ac_delim
53564 build!$build$ac_delim
53565 build_cpu!$build_cpu$ac_delim
53566 build_vendor!$build_vendor$ac_delim
53567 build_os!$build_os$ac_delim
53568 host!$host$ac_delim
53569 host_cpu!$host_cpu$ac_delim
53570 host_vendor!$host_vendor$ac_delim
53571 host_os!$host_os$ac_delim
53572 target!$target$ac_delim
53573 target_cpu!$target_cpu$ac_delim
53574 target_vendor!$target_vendor$ac_delim
53575 target_os!$target_os$ac_delim
53576 wx_top_builddir!$wx_top_builddir$ac_delim
53577 CC!$CC$ac_delim
53578 CFLAGS!$CFLAGS$ac_delim
53579 LDFLAGS!$LDFLAGS$ac_delim
53580 CPPFLAGS!$CPPFLAGS$ac_delim
53581 ac_ct_CC!$ac_ct_CC$ac_delim
53582 EXEEXT!$EXEEXT$ac_delim
53583 OBJEXT!$OBJEXT$ac_delim
53584 CPP!$CPP$ac_delim
53585 GREP!$GREP$ac_delim
53586 EGREP!$EGREP$ac_delim
53587 CXX!$CXX$ac_delim
53588 CXXFLAGS!$CXXFLAGS$ac_delim
53589 ac_ct_CXX!$ac_ct_CXX$ac_delim
53590 RANLIB!$RANLIB$ac_delim
53591 AR!$AR$ac_delim
53592 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53593 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53594 INSTALL_DATA!$INSTALL_DATA$ac_delim
53595 STRIP!$STRIP$ac_delim
53596 WINDRES!$WINDRES$ac_delim
53597 DLLTOOL!$DLLTOOL$ac_delim
53598 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53599 LN_S!$LN_S$ac_delim
53600 subdirs!$subdirs$ac_delim
53601 PKG_CONFIG!$PKG_CONFIG$ac_delim
53602 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53603 GTK_LIBS!$GTK_LIBS$ac_delim
53604 GTK_CONFIG!$GTK_CONFIG$ac_delim
53605 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53606 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53607 XMKMF!$XMKMF$ac_delim
53608 X_CFLAGS!$X_CFLAGS$ac_delim
53609 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53610 X_LIBS!$X_LIBS$ac_delim
53611 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53612 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53613 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53614 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53615 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53616 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53617 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53618 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53619 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53620 REZ!$REZ$ac_delim
53621 DEREZ!$DEREZ$ac_delim
53622 SETFILE!$SETFILE$ac_delim
53623 LIBICONV!$LIBICONV$ac_delim
53624 _ACEOF
53625
53626   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53627     break
53628   elif $ac_last_try; then
53629     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53630 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53631    { (exit 1); exit 1; }; }
53632   else
53633     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53634   fi
53635 done
53636
53637 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53638 if test -n "$ac_eof"; then
53639   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53640   ac_eof=`expr $ac_eof + 1`
53641 fi
53642
53643 cat >>$CONFIG_STATUS <<_ACEOF
53644 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53646 _ACEOF
53647 sed '
53648 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53649 s/^/s,@/; s/!/@,|#_!!_#|/
53650 :n
53651 t n
53652 s/'"$ac_delim"'$/,g/; t
53653 s/$/\\/; p
53654 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53655 ' >>$CONFIG_STATUS <conf$$subs.sed
53656 rm -f conf$$subs.sed
53657 cat >>$CONFIG_STATUS <<_ACEOF
53658 CEOF$ac_eof
53659 _ACEOF
53660
53661
53662 ac_delim='%!_!# '
53663 for ac_last_try in false false false false false :; do
53664   cat >conf$$subs.sed <<_ACEOF
53665 SDL_CONFIG!$SDL_CONFIG$ac_delim
53666 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53667 SDL_LIBS!$SDL_LIBS$ac_delim
53668 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53669 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53670 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53671 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53672 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53673 HILDON_LIBS!$HILDON_LIBS$ac_delim
53674 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53675 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53676 GST_CFLAGS!$GST_CFLAGS$ac_delim
53677 GST_LIBS!$GST_LIBS$ac_delim
53678 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53679 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53680 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53681 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53682 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53683 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53684 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53685 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
53686 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53687 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53688 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53689 VENDOR!$VENDOR$ac_delim
53690 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53691 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53692 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53693 WXUNIV!$WXUNIV$ac_delim
53694 MONOLITHIC!$MONOLITHIC$ac_delim
53695 USE_PLUGINS!$USE_PLUGINS$ac_delim
53696 CXXWARNINGS!$CXXWARNINGS$ac_delim
53697 EXTRALIBS!$EXTRALIBS$ac_delim
53698 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53699 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53700 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
53701 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53702 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53703 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53704 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53705 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53706 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53707 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53708 UNICODE!$UNICODE$ac_delim
53709 BUILD!$BUILD$ac_delim
53710 DEBUG_INFO!$DEBUG_INFO$ac_delim
53711 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53712 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53713 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53714 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53715 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
53716 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53717 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53718 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53719 SET_MAKE!$SET_MAKE$ac_delim
53720 MAKE_SET!$MAKE_SET$ac_delim
53721 AROPTIONS!$AROPTIONS$ac_delim
53722 NM!$NM$ac_delim
53723 INSTALL_DIR!$INSTALL_DIR$ac_delim
53724 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53725 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53726 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53727 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53728 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53729 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53730 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53731 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53732 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53733 SO_SUFFIX!$SO_SUFFIX$ac_delim
53734 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53735 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53736 LIBPREFIX!$LIBPREFIX$ac_delim
53737 LIBEXT!$LIBEXT$ac_delim
53738 DLLPREFIX!$DLLPREFIX$ac_delim
53739 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53740 dlldir!$dlldir$ac_delim
53741 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53742 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53743 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53744 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53745 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53746 PIC_FLAG!$PIC_FLAG$ac_delim
53747 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53748 USE_SOVERSION!$USE_SOVERSION$ac_delim
53749 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53750 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53751 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53752 USE_MACVERSION!$USE_MACVERSION$ac_delim
53753 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
53754 SONAME_FLAG!$SONAME_FLAG$ac_delim
53755 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53756 BK_DEPS!$BK_DEPS$ac_delim
53757 GCC_PCH!$GCC_PCH$ac_delim
53758 ICC_PCH!$ICC_PCH$ac_delim
53759 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53760 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53761 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53762 _ACEOF
53763
53764   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53765     break
53766   elif $ac_last_try; then
53767     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53768 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53769    { (exit 1); exit 1; }; }
53770   else
53771     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53772   fi
53773 done
53774
53775 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53776 if test -n "$ac_eof"; then
53777   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53778   ac_eof=`expr $ac_eof + 1`
53779 fi
53780
53781 cat >>$CONFIG_STATUS <<_ACEOF
53782 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53784 _ACEOF
53785 sed '
53786 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53787 s/^/s,@/; s/!/@,|#_!!_#|/
53788 :n
53789 t n
53790 s/'"$ac_delim"'$/,g/; t
53791 s/$/\\/; p
53792 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53793 ' >>$CONFIG_STATUS <conf$$subs.sed
53794 rm -f conf$$subs.sed
53795 cat >>$CONFIG_STATUS <<_ACEOF
53796 CEOF$ac_eof
53797 _ACEOF
53798
53799
53800 ac_delim='%!_!# '
53801 for ac_last_try in false false false false false :; do
53802   cat >conf$$subs.sed <<_ACEOF
53803 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53804 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53805 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53806 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53807 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53808 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53809 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53810 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53811 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53812 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53813 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53814 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53815 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53816 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53817 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53818 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53819 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53820 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53821 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53822 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53823 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
53824 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53825 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
53826 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53827 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53828 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53829 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53830 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53831 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53832 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53833 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53834 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
53835 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53836 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
53837 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53838 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53839 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53840 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53841 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53842 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53843 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
53844 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53845 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53846 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
53847 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
53848 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53849 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53850 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53851 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53852 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53853 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53854 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53855 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53856 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53857 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53858 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53859 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
53860 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
53861 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
53862 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
53863 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
53864 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
53865 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
53866 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53867 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53868 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53869 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53870 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
53871 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53872 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53873 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53874 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53875 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53876 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53877 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53878 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53879 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53880 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53881 COND_SHARED_0!$COND_SHARED_0$ac_delim
53882 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53883 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
53884 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53885 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53886 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53887 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53888 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53889 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53890 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
53891 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
53892 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
53893 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
53894 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
53895 COND_SHARED_1!$COND_SHARED_1$ac_delim
53896 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53897 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
53898 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53899 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53900 _ACEOF
53901
53902   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53903     break
53904   elif $ac_last_try; then
53905     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53906 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53907    { (exit 1); exit 1; }; }
53908   else
53909     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53910   fi
53911 done
53912
53913 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53914 if test -n "$ac_eof"; then
53915   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53916   ac_eof=`expr $ac_eof + 1`
53917 fi
53918
53919 cat >>$CONFIG_STATUS <<_ACEOF
53920 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53922 _ACEOF
53923 sed '
53924 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53925 s/^/s,@/; s/!/@,|#_!!_#|/
53926 :n
53927 t n
53928 s/'"$ac_delim"'$/,g/; t
53929 s/$/\\/; p
53930 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53931 ' >>$CONFIG_STATUS <conf$$subs.sed
53932 rm -f conf$$subs.sed
53933 cat >>$CONFIG_STATUS <<_ACEOF
53934 CEOF$ac_eof
53935 _ACEOF
53936
53937
53938 ac_delim='%!_!# '
53939 for ac_last_try in false false false false false :; do
53940   cat >conf$$subs.sed <<_ACEOF
53941 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53942 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53943 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53944 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53945 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53946 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53947 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53948 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53949 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53950 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53951 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53952 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53953 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53954 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
53955 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
53956 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53957 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53958 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53959 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53960 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53961 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53962 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53963 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53964 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53965 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53966 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53967 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53968 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53969 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53970 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53971 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53972 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53973 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53974 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
53975 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53976 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53977 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53978 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53979 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53980 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
53981 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
53982 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53983 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53984 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53985 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
53986 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
53987 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
53988 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
53989 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
53990 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
53991 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
53992 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
53993 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
53994 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
53995 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
53996 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
53997 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
53998 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
53999 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54000 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54001 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54002 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54003 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54004 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54005 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54006 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54007 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54008 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
54009 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54010 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54011 SHARED!$SHARED$ac_delim
54012 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54013 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54014 USE_GUI!$USE_GUI$ac_delim
54015 AFMINSTALL!$AFMINSTALL$ac_delim
54016 WIN32INSTALL!$WIN32INSTALL$ac_delim
54017 TOOLKIT!$TOOLKIT$ac_delim
54018 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54019 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54020 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54021 cross_compiling!$cross_compiling$ac_delim
54022 WIDGET_SET!$WIDGET_SET$ac_delim
54023 WX_RELEASE!$WX_RELEASE$ac_delim
54024 WX_VERSION!$WX_VERSION$ac_delim
54025 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54026 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54027 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
54028 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54029 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54030 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54031 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54032 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54033 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54034 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54035 EXE_LINKER!$EXE_LINKER$ac_delim
54036 GUIDIST!$GUIDIST$ac_delim
54037 DISTDIR!$DISTDIR$ac_delim
54038 _ACEOF
54039
54040   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54041     break
54042   elif $ac_last_try; then
54043     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54044 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54045    { (exit 1); exit 1; }; }
54046   else
54047     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54048   fi
54049 done
54050
54051 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54052 if test -n "$ac_eof"; then
54053   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54054   ac_eof=`expr $ac_eof + 1`
54055 fi
54056
54057 cat >>$CONFIG_STATUS <<_ACEOF
54058 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54060 _ACEOF
54061 sed '
54062 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54063 s/^/s,@/; s/!/@,|#_!!_#|/
54064 :n
54065 t n
54066 s/'"$ac_delim"'$/,g/; t
54067 s/$/\\/; p
54068 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54069 ' >>$CONFIG_STATUS <conf$$subs.sed
54070 rm -f conf$$subs.sed
54071 cat >>$CONFIG_STATUS <<_ACEOF
54072 CEOF$ac_eof
54073 _ACEOF
54074
54075
54076 ac_delim='%!_!# '
54077 for ac_last_try in false false false false false :; do
54078   cat >conf$$subs.sed <<_ACEOF
54079 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54080 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54081 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54082 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54083 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54084 RESCOMP!$RESCOMP$ac_delim
54085 RESFLAGS!$RESFLAGS$ac_delim
54086 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54087 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54088 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54089 LIBWXMACRES!$LIBWXMACRES$ac_delim
54090 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54091 MACSETFILE!$MACSETFILE$ac_delim
54092 GCC!$GCC$ac_delim
54093 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54094 LIBOBJS!$LIBOBJS$ac_delim
54095 LTLIBOBJS!$LTLIBOBJS$ac_delim
54096 _ACEOF
54097
54098   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
54099     break
54100   elif $ac_last_try; then
54101     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54102 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54103    { (exit 1); exit 1; }; }
54104   else
54105     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54106   fi
54107 done
54108
54109 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54110 if test -n "$ac_eof"; then
54111   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54112   ac_eof=`expr $ac_eof + 1`
54113 fi
54114
54115 cat >>$CONFIG_STATUS <<_ACEOF
54116 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54117 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54118 _ACEOF
54119 sed '
54120 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54121 s/^/s,@/; s/!/@,|#_!!_#|/
54122 :n
54123 t n
54124 s/'"$ac_delim"'$/,g/; t
54125 s/$/\\/; p
54126 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54127 ' >>$CONFIG_STATUS <conf$$subs.sed
54128 rm -f conf$$subs.sed
54129 cat >>$CONFIG_STATUS <<_ACEOF
54130 :end
54131 s/|#_!!_#|//g
54132 CEOF$ac_eof
54133 _ACEOF
54134
54135
54136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54138 # trailing colons and then remove the whole line if VPATH becomes empty
54139 # (actually we leave an empty line to preserve line numbers).
54140 if test "x$srcdir" = x.; then
54141   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54142 s/:*\$(srcdir):*/:/
54143 s/:*\${srcdir}:*/:/
54144 s/:*@srcdir@:*/:/
54145 s/^\([^=]*=[     ]*\):*/\1/
54146 s/:*$//
54147 s/^[^=]*=[       ]*$//
54148 }'
54149 fi
54150
54151 cat >>$CONFIG_STATUS <<\_ACEOF
54152 fi # test -n "$CONFIG_FILES"
54153
54154
54155 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54156 do
54157   case $ac_tag in
54158   :[FHLC]) ac_mode=$ac_tag; continue;;
54159   esac
54160   case $ac_mode$ac_tag in
54161   :[FHL]*:*);;
54162   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54163 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54164    { (exit 1); exit 1; }; };;
54165   :[FH]-) ac_tag=-:-;;
54166   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54167   esac
54168   ac_save_IFS=$IFS
54169   IFS=:
54170   set x $ac_tag
54171   IFS=$ac_save_IFS
54172   shift
54173   ac_file=$1
54174   shift
54175
54176   case $ac_mode in
54177   :L) ac_source=$1;;
54178   :[FH])
54179     ac_file_inputs=
54180     for ac_f
54181     do
54182       case $ac_f in
54183       -) ac_f="$tmp/stdin";;
54184       *) # Look for the file first in the build tree, then in the source tree
54185          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54186          # because $ac_f cannot contain `:'.
54187          test -f "$ac_f" ||
54188            case $ac_f in
54189            [\\/$]*) false;;
54190            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54191            esac ||
54192            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54193 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54194    { (exit 1); exit 1; }; };;
54195       esac
54196       ac_file_inputs="$ac_file_inputs $ac_f"
54197     done
54198
54199     # Let's still pretend it is `configure' which instantiates (i.e., don't
54200     # use $as_me), people would be surprised to read:
54201     #    /* config.h.  Generated by config.status.  */
54202     configure_input="Generated from "`IFS=:
54203           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54204     if test x"$ac_file" != x-; then
54205       configure_input="$ac_file.  $configure_input"
54206       { echo "$as_me:$LINENO: creating $ac_file" >&5
54207 echo "$as_me: creating $ac_file" >&6;}
54208     fi
54209
54210     case $ac_tag in
54211     *:-:* | *:-) cat >"$tmp/stdin";;
54212     esac
54213     ;;
54214   esac
54215
54216   ac_dir=`$as_dirname -- "$ac_file" ||
54217 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54218          X"$ac_file" : 'X\(//\)[^/]' \| \
54219          X"$ac_file" : 'X\(//\)$' \| \
54220          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54221 echo X"$ac_file" |
54222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54223             s//\1/
54224             q
54225           }
54226           /^X\(\/\/\)[^/].*/{
54227             s//\1/
54228             q
54229           }
54230           /^X\(\/\/\)$/{
54231             s//\1/
54232             q
54233           }
54234           /^X\(\/\).*/{
54235             s//\1/
54236             q
54237           }
54238           s/.*/./; q'`
54239   { as_dir="$ac_dir"
54240   case $as_dir in #(
54241   -*) as_dir=./$as_dir;;
54242   esac
54243   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54244     as_dirs=
54245     while :; do
54246       case $as_dir in #(
54247       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54248       *) as_qdir=$as_dir;;
54249       esac
54250       as_dirs="'$as_qdir' $as_dirs"
54251       as_dir=`$as_dirname -- "$as_dir" ||
54252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54253          X"$as_dir" : 'X\(//\)[^/]' \| \
54254          X"$as_dir" : 'X\(//\)$' \| \
54255          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54256 echo X"$as_dir" |
54257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54258             s//\1/
54259             q
54260           }
54261           /^X\(\/\/\)[^/].*/{
54262             s//\1/
54263             q
54264           }
54265           /^X\(\/\/\)$/{
54266             s//\1/
54267             q
54268           }
54269           /^X\(\/\).*/{
54270             s//\1/
54271             q
54272           }
54273           s/.*/./; q'`
54274       test -d "$as_dir" && break
54275     done
54276     test -z "$as_dirs" || eval "mkdir $as_dirs"
54277   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54278 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54279    { (exit 1); exit 1; }; }; }
54280   ac_builddir=.
54281
54282 case "$ac_dir" in
54283 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54284 *)
54285   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54286   # A ".." for each directory in $ac_dir_suffix.
54287   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54288   case $ac_top_builddir_sub in
54289   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54290   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54291   esac ;;
54292 esac
54293 ac_abs_top_builddir=$ac_pwd
54294 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54295 # for backward compatibility:
54296 ac_top_builddir=$ac_top_build_prefix
54297
54298 case $srcdir in
54299   .)  # We are building in place.
54300     ac_srcdir=.
54301     ac_top_srcdir=$ac_top_builddir_sub
54302     ac_abs_top_srcdir=$ac_pwd ;;
54303   [\\/]* | ?:[\\/]* )  # Absolute name.
54304     ac_srcdir=$srcdir$ac_dir_suffix;
54305     ac_top_srcdir=$srcdir
54306     ac_abs_top_srcdir=$srcdir ;;
54307   *) # Relative name.
54308     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54309     ac_top_srcdir=$ac_top_build_prefix$srcdir
54310     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54311 esac
54312 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54313
54314
54315   case $ac_mode in
54316   :F)
54317   #
54318   # CONFIG_FILE
54319   #
54320
54321   case $INSTALL in
54322   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54323   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54324   esac
54325 _ACEOF
54326
54327 cat >>$CONFIG_STATUS <<\_ACEOF
54328 # If the template does not know about datarootdir, expand it.
54329 # FIXME: This hack should be removed a few years after 2.60.
54330 ac_datarootdir_hack=; ac_datarootdir_seen=
54331
54332 case `sed -n '/datarootdir/ {
54333   p
54334   q
54335 }
54336 /@datadir@/p
54337 /@docdir@/p
54338 /@infodir@/p
54339 /@localedir@/p
54340 /@mandir@/p
54341 ' $ac_file_inputs` in
54342 *datarootdir*) ac_datarootdir_seen=yes;;
54343 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54344   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54345 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54346 _ACEOF
54347 cat >>$CONFIG_STATUS <<_ACEOF
54348   ac_datarootdir_hack='
54349   s&@datadir@&$datadir&g
54350   s&@docdir@&$docdir&g
54351   s&@infodir@&$infodir&g
54352   s&@localedir@&$localedir&g
54353   s&@mandir@&$mandir&g
54354     s&\\\${datarootdir}&$datarootdir&g' ;;
54355 esac
54356 _ACEOF
54357
54358 # Neutralize VPATH when `$srcdir' = `.'.
54359 # Shell code in configure.ac might set extrasub.
54360 # FIXME: do we really want to maintain this feature?
54361 cat >>$CONFIG_STATUS <<_ACEOF
54362   sed "$ac_vpsub
54363 $extrasub
54364 _ACEOF
54365 cat >>$CONFIG_STATUS <<\_ACEOF
54366 :t
54367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54368 s&@configure_input@&$configure_input&;t t
54369 s&@top_builddir@&$ac_top_builddir_sub&;t t
54370 s&@srcdir@&$ac_srcdir&;t t
54371 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54372 s&@top_srcdir@&$ac_top_srcdir&;t t
54373 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54374 s&@builddir@&$ac_builddir&;t t
54375 s&@abs_builddir@&$ac_abs_builddir&;t t
54376 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54377 s&@INSTALL@&$ac_INSTALL&;t t
54378 $ac_datarootdir_hack
54379 " $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
54380
54381 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54382   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54383   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54384   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54385 which seems to be undefined.  Please make sure it is defined." >&5
54386 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54387 which seems to be undefined.  Please make sure it is defined." >&2;}
54388
54389   rm -f "$tmp/stdin"
54390   case $ac_file in
54391   -) cat "$tmp/out"; rm -f "$tmp/out";;
54392   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54393   esac
54394  ;;
54395   :H)
54396   #
54397   # CONFIG_HEADER
54398   #
54399 _ACEOF
54400
54401 # Transform confdefs.h into a sed script `conftest.defines', that
54402 # substitutes the proper values into config.h.in to produce config.h.
54403 rm -f conftest.defines conftest.tail
54404 # First, append a space to every undef/define line, to ease matching.
54405 echo 's/$/ /' >conftest.defines
54406 # Then, protect against being on the right side of a sed subst, or in
54407 # an unquoted here document, in config.status.  If some macros were
54408 # called several times there might be several #defines for the same
54409 # symbol, which is useless.  But do not sort them, since the last
54410 # AC_DEFINE must be honored.
54411 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54412 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54413 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54414 # PARAMS is the parameter list in the macro definition--in most cases, it's
54415 # just an empty string.
54416 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54417 ac_dB='\\)[      (].*,\\1define\\2'
54418 ac_dC=' '
54419 ac_dD=' ,'
54420
54421 uniq confdefs.h |
54422   sed -n '
54423         t rset
54424         :rset
54425         s/^[     ]*#[    ]*define[       ][      ]*//
54426         t ok
54427         d
54428         :ok
54429         s/[\\&,]/\\&/g
54430         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54431         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54432   ' >>conftest.defines
54433
54434 # Remove the space that was appended to ease matching.
54435 # Then replace #undef with comments.  This is necessary, for
54436 # example, in the case of _POSIX_SOURCE, which is predefined and required
54437 # on some systems where configure will not decide to define it.
54438 # (The regexp can be short, since the line contains either #define or #undef.)
54439 echo 's/ $//
54440 s,^[     #]*u.*,/* & */,' >>conftest.defines
54441
54442 # Break up conftest.defines:
54443 ac_max_sed_lines=50
54444
54445 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54446 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54447 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54448 # et cetera.
54449 ac_in='$ac_file_inputs'
54450 ac_out='"$tmp/out1"'
54451 ac_nxt='"$tmp/out2"'
54452
54453 while :
54454 do
54455   # Write a here document:
54456     cat >>$CONFIG_STATUS <<_ACEOF
54457     # First, check the format of the line:
54458     cat >"\$tmp/defines.sed" <<\\CEOF
54459 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54460 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54461 b
54462 :def
54463 _ACEOF
54464   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54465   echo 'CEOF
54466     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54467   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54468   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54469   grep . conftest.tail >/dev/null || break
54470   rm -f conftest.defines
54471   mv conftest.tail conftest.defines
54472 done
54473 rm -f conftest.defines conftest.tail
54474
54475 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54476 cat >>$CONFIG_STATUS <<\_ACEOF
54477   if test x"$ac_file" != x-; then
54478     echo "/* $configure_input  */" >"$tmp/config.h"
54479     cat "$ac_result" >>"$tmp/config.h"
54480     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54481       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54482 echo "$as_me: $ac_file is unchanged" >&6;}
54483     else
54484       rm -f $ac_file
54485       mv "$tmp/config.h" $ac_file
54486     fi
54487   else
54488     echo "/* $configure_input  */"
54489     cat "$ac_result"
54490   fi
54491   rm -f "$tmp/out12"
54492  ;;
54493
54494   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54495 echo "$as_me: executing $ac_file commands" >&6;}
54496  ;;
54497   esac
54498
54499
54500   case $ac_file$ac_mode in
54501     "rcdefs.h":C)
54502             mkdir -p $outdir &&
54503             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54504          ;;
54505     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54506     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54507     "wx-config":C)  rm -f wx-config
54508                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54509                     ;;
54510
54511   esac
54512 done # for ac_tag
54513
54514
54515 { (exit 0); exit 0; }
54516 _ACEOF
54517 chmod +x $CONFIG_STATUS
54518 ac_clean_files=$ac_clean_files_save
54519
54520
54521 # configure is writing to config.log, and then calls config.status.
54522 # config.status does its own redirection, appending to config.log.
54523 # Unfortunately, on DOS this fails, as config.log is still kept open
54524 # by configure, so config.status won't be able to write to it; its
54525 # output is simply discarded.  So we exec the FD to /dev/null,
54526 # effectively closing config.log, so it can be properly (re)opened and
54527 # appended to by config.status.  When coming back to configure, we
54528 # need to make the FD available again.
54529 if test "$no_create" != yes; then
54530   ac_cs_success=:
54531   ac_config_status_args=
54532   test "$silent" = yes &&
54533     ac_config_status_args="$ac_config_status_args --quiet"
54534   exec 5>/dev/null
54535   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54536   exec 5>>config.log
54537   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54538   # would make configure fail if this is the last instruction.
54539   $ac_cs_success || { (exit 1); exit 1; }
54540 fi
54541
54542 #
54543 # CONFIG_SUBDIRS section.
54544 #
54545 if test "$no_recursion" != yes; then
54546
54547   # Remove --cache-file and --srcdir arguments so they do not pile up.
54548   ac_sub_configure_args=
54549   ac_prev=
54550   eval "set x $ac_configure_args"
54551   shift
54552   for ac_arg
54553   do
54554     if test -n "$ac_prev"; then
54555       ac_prev=
54556       continue
54557     fi
54558     case $ac_arg in
54559     -cache-file | --cache-file | --cache-fil | --cache-fi \
54560     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54561       ac_prev=cache_file ;;
54562     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54563     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54564     | --c=*)
54565       ;;
54566     --config-cache | -C)
54567       ;;
54568     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54569       ac_prev=srcdir ;;
54570     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54571       ;;
54572     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54573       ac_prev=prefix ;;
54574     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54575       ;;
54576     *)
54577       case $ac_arg in
54578       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54579       esac
54580       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54581     esac
54582   done
54583
54584   # Always prepend --prefix to ensure using the same prefix
54585   # in subdir configurations.
54586   ac_arg="--prefix=$prefix"
54587   case $ac_arg in
54588   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54589   esac
54590   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54591
54592   # Pass --silent
54593   if test "$silent" = yes; then
54594     ac_sub_configure_args="--silent $ac_sub_configure_args"
54595   fi
54596
54597   ac_popdir=`pwd`
54598   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54599
54600     # Do not complain, so a configure script can configure whichever
54601     # parts of a large source tree are present.
54602     test -d "$srcdir/$ac_dir" || continue
54603
54604     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54605     echo "$as_me:$LINENO: $ac_msg" >&5
54606     echo "$ac_msg" >&6
54607     { as_dir="$ac_dir"
54608   case $as_dir in #(
54609   -*) as_dir=./$as_dir;;
54610   esac
54611   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54612     as_dirs=
54613     while :; do
54614       case $as_dir in #(
54615       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54616       *) as_qdir=$as_dir;;
54617       esac
54618       as_dirs="'$as_qdir' $as_dirs"
54619       as_dir=`$as_dirname -- "$as_dir" ||
54620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54621          X"$as_dir" : 'X\(//\)[^/]' \| \
54622          X"$as_dir" : 'X\(//\)$' \| \
54623          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54624 echo X"$as_dir" |
54625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54626             s//\1/
54627             q
54628           }
54629           /^X\(\/\/\)[^/].*/{
54630             s//\1/
54631             q
54632           }
54633           /^X\(\/\/\)$/{
54634             s//\1/
54635             q
54636           }
54637           /^X\(\/\).*/{
54638             s//\1/
54639             q
54640           }
54641           s/.*/./; q'`
54642       test -d "$as_dir" && break
54643     done
54644     test -z "$as_dirs" || eval "mkdir $as_dirs"
54645   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54646 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54647    { (exit 1); exit 1; }; }; }
54648     ac_builddir=.
54649
54650 case "$ac_dir" in
54651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54652 *)
54653   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54654   # A ".." for each directory in $ac_dir_suffix.
54655   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54656   case $ac_top_builddir_sub in
54657   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54658   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54659   esac ;;
54660 esac
54661 ac_abs_top_builddir=$ac_pwd
54662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54663 # for backward compatibility:
54664 ac_top_builddir=$ac_top_build_prefix
54665
54666 case $srcdir in
54667   .)  # We are building in place.
54668     ac_srcdir=.
54669     ac_top_srcdir=$ac_top_builddir_sub
54670     ac_abs_top_srcdir=$ac_pwd ;;
54671   [\\/]* | ?:[\\/]* )  # Absolute name.
54672     ac_srcdir=$srcdir$ac_dir_suffix;
54673     ac_top_srcdir=$srcdir
54674     ac_abs_top_srcdir=$srcdir ;;
54675   *) # Relative name.
54676     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54677     ac_top_srcdir=$ac_top_build_prefix$srcdir
54678     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54679 esac
54680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54681
54682
54683     cd "$ac_dir"
54684
54685     # Check for guested configure; otherwise get Cygnus style configure.
54686     if test -f "$ac_srcdir/configure.gnu"; then
54687       ac_sub_configure=$ac_srcdir/configure.gnu
54688     elif test -f "$ac_srcdir/configure"; then
54689       ac_sub_configure=$ac_srcdir/configure
54690     elif test -f "$ac_srcdir/configure.in"; then
54691       # This should be Cygnus configure.
54692       ac_sub_configure=$ac_aux_dir/configure
54693     else
54694       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54695 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54696       ac_sub_configure=
54697     fi
54698
54699     # The recursion is here.
54700     if test -n "$ac_sub_configure"; then
54701       # Make the cache file name correct relative to the subdirectory.
54702       case $cache_file in
54703       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54704       *) # Relative name.
54705         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54706       esac
54707
54708       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54709 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54710       # The eval makes quoting arguments work.
54711       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54712            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54713         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54714 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54715    { (exit 1); exit 1; }; }
54716     fi
54717
54718     cd "$ac_popdir"
54719   done
54720 fi
54721
54722
54723 echo
54724 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54725 echo ""
54726 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54727 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54728
54729 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
54730 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54731 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
54732 if test "$wxUSE_UNICODE" = "yes"; then
54733     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54734         echo " (using UTF-8)"
54735     else
54736         echo " (using wchar_t)"
54737     fi
54738 else
54739     echo
54740 fi
54741
54742 echo "  What level of wxWidgets compatibility should be enabled?"
54743 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54744 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54745
54746 echo "  Which libraries should wxWidgets use?"
54747 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54748 echo "                                       png                ${wxUSE_LIBPNG-none}"
54749 echo "                                       regex              ${wxUSE_REGEX}"
54750 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54751 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54752 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54753 fi
54754 echo "                                       zlib               ${wxUSE_ZLIB}"
54755 echo "                                       odbc               ${wxUSE_ODBC}"
54756 echo "                                       expat              ${wxUSE_EXPAT}"
54757 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54758 echo "                                       sdl                ${wxUSE_LIBSDL}"
54759
54760 echo ""
54761